Hi all,
I have a virtual machine configured through virt-manager that I want to be able to use UEFI firmware (I have this working), but want to boot it off my DHCP and PXE servers which are on different machines on the network.
I have setup a bridge using the following commands :
nmcli con add ifname br0 type bridge con-name br0
nmcli con add type bridge-slave ifname enp2s0 master br0
When I show the connections I get
traken{dgnemu}# nmcli connection show
NAME UUID TYPE DEVICE
Wired connection 1 2f23ef92-c7da-3fcd-9e70-2f97016fd249 ethernet enp2s0
br0 9e02493d-7ec2-4697-b3a8-4eae3d5b4ba5 bridge br0
lo 9a2bff71-0bd9-47f3-b181-0c260d52f631 loopback lo
bridge-slave-enp2s0 3fdf356c-cc90-44d8-87c8-9b046175a256 ethernet --
In my virtual machine’s virtual network devices, I have set the Network source to ‘bridge device’, device name to ‘br0’ for device mode I have tried both virtio and e1000, neither seemed to work ![]()
if I start the virtual machine and list the connections I now get :
traken{dgnemu}# nmcli connection show
NAME UUID TYPE DEVICE
Wired connection 1 2f23ef92-c7da-3fcd-9e70-2f97016fd249 ethernet enp2s0
br0 9e02493d-7ec2-4697-b3a8-4eae3d5b4ba5 bridge br0
lo 9a2bff71-0bd9-47f3-b181-0c260d52f631 loopback lo
vnet11 bd10600f-7f82-4bbb-ac79-8fd9a41f7e51 tun vnet11
bridge-slave-enp2s0 3fdf356c-cc90-44d8-87c8-9b046175a256 ethernet --
But a few seconds later the vmnet connection disappears. Looking at the log files on my DHCP server, it never receives any packets from my virtual machine, which suggests that there is something not right about the bridge.
ifconfig displays
br0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 6e:02:8e:41:f9:15 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 2 overruns 0 carrier 0 collisions 0
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.12 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::1ac8:e307:6ad7:ac43 prefixlen 64 scopeid 0x20<link>
ether 58:47:ca:7e:69:1a txqueuelen 1000 (Ethernet)
RX packets 1599271 bytes 1794050800 (1.6 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 633135 bytes 1223014304 (1.1 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
vnet11: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::fc54:ff:fe3f:d134 prefixlen 64 scopeid 0x20<link>
ether fe:54:00:3f:d1:34 txqueuelen 1000 (Ethernet)
RX packets 19 bytes 5722 (5.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 111 bytes 30270 (29.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
(lo, and unused wireless connection removed for brevity).
Any idea what the problem is?
Cheers.
Phill.