libvirt

How to restore libvirt network default configure file?


I accidently deleted the /etc/libvirt/qemu/networks/default.xml. How to restore it? Thanks.


Solution

  • On some distros you can find the original master in /usr/share/libvirt/networks. Alternatively it is in GIT upsteam.

    Once you have the file, simply run as root:

    virsh net-define default.xml
    virsh net-start default
    virsh net-autostart default  # if you want it to run on boot