But now after a reboot I get this error when trying to start the VM:
Error starting domain: Cannot get interface MTU on 'br0': No such device
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 72, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 108, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1402, in startup
self._backend.create()
File "/usr/lib/python3.12/site-packages/libvirt.py", line 1379, in create
raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: Cannot get interface MTU on 'br0': No such device
What exactly do you mean by that, NAT bridge is not the same as creating a bridge to the physical network adapter of your host? A NAT bridge is a virtual bridge defined within Qemu and a bridge using your host network adapter is done with NetworkManager or with whatever Networking service you are using.
I don’t really understand all of that, to tell you the truth.
What did I do to create the bridged connection?
I opened the settings of the VM, in Virt-Manager. I went to the NIC tab. I changed the network source to bridged. I assigned the device name of br0. And that’s it, that’s all I did.
nmcli con show
NAME UUID TYPE DEVICE
Wired connection 2 3484ae00-b4e7-3915-9fb4-747a40474bae ethernet enp3s0
lo 32166855-c20c-4fe4-a83c-50e9a06d7ce2 loopback lo
virbr0 0b3b793f-0ad7-4aec-b7d3-776ba7c2d1c0 bridge virbr0
Wired connection 1 32242c33-ae36-3404-9203-81a6981df29d ethernet --
The only bridge you have defined is a virtual bridge which is a NAT bridge defined within Qemu but it also show in NetworkManager. If you want to to create a bridge that gets an ip in the same network as your lan better to do it manually. So like this.
Which kind of bridged connection do you think is best for my user case?
I want a bridged connection so the Windows VM can talk to my WIFI-connected Brother printer through the native Windows software provided by Brother. The Windows software has a PC-to-Fax driver that I use for sending old-fashioned faxes directly from my computer.
I will check it out, thanks!
Should I revert the settings on the NIC tab back to NAT, like it was before? Or did I take a step in the right direction by making it bridged?
I see it now, now it makes more sense. What you did there is switch your vm’s virtual network interface from NAT(which use a virtual nat bridge) to use the bridge device br0. Since br0 doesn’t exist Qemu is complaining about br0 not existing.
If you use NetworkManager to actually create br0, as how they explain it in that Archwiki article.
Then using the Network source “Bridge device” being br0 should work.