virsh / Failed to start network default
I've been scouring google for the past day trying to figure out why I can't create a default network for my linux guest. One source says the iptables error is harmless, but I still can't create a default network. What's going on here?
the default.xml didn't even exist on my filesystem, so I had to copy it from a forum. Code:
# pwd Code:
# uname -a |
Found the magic bullet. I think I just had to restart the libvertd service...
Code:
virsh net-undefine default |
Thank you!
Eight months later this post saved my day! No, what am I saying, my week!
virsh --version 6.7.0 Running on Debian 10. Just a note: my default.xml was located in the directory /etc/libvirt/qemu/networks/, and it was erased by the command virsh net-destroy default. Luckily I had an old one saved as /etc/libvirt/qemu/networks/default.xml.dpkg-old, which only differed from the original one by the interface's UUID and mac address. So I only had to copy it into /etc/libvirt/qemu/networks/default.xml and run: virsh net-define /etc/libvirt/qemu/networks/default.xml virsh net-autostart default virsh net-start default to have the network back online! Should it be handy to someone else, I'm copying it's content here: <!-- WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE OVERWRITTEN AND LOST. Changes to this xml configuration should be made using: virsh net-edit default or other application using the libvirt API. --> <network> <name>default</name> <uuid>df2e3516-fd39-9ac5-4df2-a6125fd75c7c</uuid> <forward mode='nat'/> <bridge name='virbr0' stp='on' delay='0'/> <mac address='a0:47:01:d5:85:c6'/> <ip address='192.168.0.1' netmask='255.255.255.0'> <dhcp> <range start='192.168.0.2' end='192.168.0.254'/> </dhcp> </ip> </network> |
All times are GMT -5. The time now is 05:30 PM. |