My end goal is to be able to use libvirt.uri = 'qemu:///session'
with Vagrant, which means creating machines as non-root, but in order to do that I need to have a default
libvirt network as non-root, where virsh net-list
as non-root is empty. As root
I get the below output.
Question
How can I create a default
libvirt network for non-root users?
# virsh net-list
Name State Autostart Persistent
--------------------------------------------
default active yes yes
# virsh net-dumpxml default
<network>
<name>default</name>
<uuid>d2421e8d-e34f-4f28-9b11-db6e6f7c4aae</uuid>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr0' stp='on' delay='0'/>
<mac address='52:54:00:13:3e:0a'/>
<ip address='192.168.122.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.122.2' end='192.168.122.254'/>
</dhcp>
</ip>
</network>