1

The libvirt has a default network bridge: virbr0 If I use virsh net-list --all i can see a default bridge: virbr0 If I use virsh -c qemu:///session net-list --all There is nothing Then I just did

virsh net-dumpxml default > default.xml
virsh -c qemu:///session net-define --file default.xml

however, the default is inactive in session

$ virsh -c qemu:///system net-list --all
 Name      State    Autostart   Persistent
--------------------------------------------
 default   active   yes         yes
$ virsh -c qemu:///session net-list --all
 Name      State      Autostart   Persistent
----------------------------------------------
 default   inactive   no          yes

if I try to start the default network, it said:

$ virsh -c qemu:///session net-start default
error: Failed to start network default
error: internal error: Network is already in use by interface virbr0

1 Answer 1

1

actually there is no need to add the network into session. Directly use the virbr0 is fine.

1
  • some explanation goes a long way
    – argon
    Mar 20 at 21:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .