Libvirt/qemu autostart vm with bridge network

Well It used to only lists my Default network, but then I activated a bridged-network pointing to my br0 bridge that I added via nmcli. I created a file called bridge-network.xml with:

<network>
    <name>bridged-network</name>
    <forward mode="bridge" />
    <bridge name="br0" />
</network>

Then I defined that network with:
sudo virsh net-define bridge-network.xml

After I started and autostarted the new bridged-network my VM started on boot. I’m still confused because my VM uses the br0 network instead of the virtual: bridged-network, but it seems to work, at least right now.

1 Like