Fix libvirt network create error with vagrant
when vagrant up `create': Call to virD omainCreateWithFlags failed: Network not found: no network with matching name 'vagrant-libvirt' (Libvirt::Error) fix it 1cat<<EOF> /var/tmp/vagrant-libvirt.xml 2<!-- 3WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE 4OVERWRITTEN AND LOST. Changes to this xml configuration should be made using: 5 virsh net-edit default 6or other application using the libvirt API. 7--> 8 9<network> 10 <name>vagrant-libvirt</name> 11 <uuid>17f365b0-4da6-4f19-91b6-c4dde30d6ac0</uuid> 12 <forward mode='nat'/> 13 <bridge name='virbr1' stp='on' delay='0'/> 14 <mac address='52:54:00:0f:4f:10'/> 15 <domain name='kvm' localOnly='yes'/> 16 <ip address='192.168.122.1' netmask='255.255.255.0'> 17 <dhcp> 18 <range start='192.168.122.2' end='192.168.122.254'/> 19 </dhcp> 20 </ip> 21</network> 22EOF 23virsh net-define /var/tmp/vagrant-libvirt.xml 24virsh net-start vagrant-libvirt 25virsh net-autostart vagrant-libvirt 26virsh net-list 27brctl show create libvirt network