I use virt-manager in my setup, so a little different, but for your output from $virsh net-list --all
it appears that only the default bridge is known.
In my setup I had the same thing but I added br0 to this.
Try the following:
- Edit file /tmp/br0.xml with the following content:
<network>
<name>br0</name>
<forward mode="bridge"/>
<bridge name="br0" />
</network>
- Then do:
$sudo virsh net-define /tmp/br0.xml
Hopefully will return something like: Network br0 defined from /tmp/br0.xml
This creates/puts the file in /etc/libvirt/qemu/networks/br0.xml
- Now do:
$sudo virsh net-list --all
Hopefully will show something like:
virsh net-list --all
Name State Autostart Persistent
----------------------------------------------
br0 inactive no yes
default active yes yes
- Now activate br0:
$ sudo virsh net-start br0
Hopefull will return something like: Network br0 started
So now should see:
$ virsh net-list --all
Name State Autostart Persistent
--------------------------------------------
br0 active no yes
default active yes yes
- Set br0 to auto-restart
$ virsh net-autostart br0
Network br0 marked as autostarted
Should now see:
$ virsh net-list --all
Name State Autostart Persistent
--------------------------------------------
br0 active yes yes
default active yes yes
From here I’m a less certain about how to use virt-install (as I use virt-manager).
I don’t know if virtio will work as the network model. You can try it out. In my setup it uses a NIC e1000. so maybe can also try:
--network bridge=br0,model=e1000 \