[libvirt-users] virsh net-start default fails

Hi all, I'm getting an error, and have failed to succeed in googling for help with it. I have an old VM that I created a while back (at least one reboot ago, possibly a kernel upgrade ago), and am now finding that it won't start due to a lack of the 'default' network. When I look for how to fix this, everyone seems to agree on the command: # virsh net-start default error: failed to get network 'default' error: An error occurred, but the cause is unknown But this fails. A natural next check would be to use net-list: # virsh net-list --all Name State Autostart ----------------------------------------- Which demonstrates that the 'default' network is unknown. I'm certain that it used to exist, and the file /var/lib/libvirt/network/default.xml does exist, claims to be autogenerated and looks reasonable. I am at a loss as to how to debug this further. Any suggestions? -- David Roundy

On 07.10.2014 20:53, David Roundy wrote:
Hi all,
I'm getting an error, and have failed to succeed in googling for help with it. I have an old VM that I created a while back (at least one reboot ago, possibly a kernel upgrade ago), and am now finding that it won't start due to a lack of the 'default' network.
When I look for how to fix this, everyone seems to agree on the command:
# virsh net-start default error: failed to get network 'default' error: An error occurred, but the cause is unknown
But this fails. A natural next check would be to use net-list:
# virsh net-list --all Name State Autostart -----------------------------------------
Which demonstrates that the 'default' network is unknown. I'm certain that it used to exist, and the file
/var/lib/libvirt/network/default.xml
This is the runtime XML of the network which means the network is already running. Maybe turning on the debug logs will shed more light into this. http://wiki.libvirt.org/page/DebugLogs Michal

On 10/08/2014 03:52 AM, Michal Privoznik wrote:
On 07.10.2014 20:53, David Roundy wrote:
Hi all,
I'm getting an error, and have failed to succeed in googling for help with it. I have an old VM that I created a while back (at least one reboot ago, possibly a kernel upgrade ago), and am now finding that it won't start due to a lack of the 'default' network.
When I look for how to fix this, everyone seems to agree on the command:
# virsh net-start default error: failed to get network 'default' error: An error occurred, but the cause is unknown
But this fails. A natural next check would be to use net-list:
# virsh net-list --all Name State Autostart -----------------------------------------
Which demonstrates that the 'default' network is unknown. I'm certain that it used to exist, and the file
/var/lib/libvirt/network/default.xml
This is the runtime XML of the network which means the network is already running.
Does /etc/libvirt/qemu/networks/default.xml exist? If so, what is its content? (Michal's and Eric's suggestions also apply)
Maybe turning on the debug logs will shed more light into this.
http://wiki.libvirt.org/page/DebugLogs
Michal
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

On 10/07/2014 12:53 PM, David Roundy wrote:
Hi all,
I'm getting an error, and have failed to succeed in googling for help with it. I have an old VM that I created a while back (at least one reboot ago, possibly a kernel upgrade ago), and am now finding that it won't start due to a lack of the 'default' network.
Which distro? At least on Fedora, you can try to (re-)install the libvirt-daemon-config-network package, to see if that will (re-)create the default network for you. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (4)
-
David Roundy
-
Eric Blake
-
Laine Stump
-
Michal Privoznik