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.xmlThis 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/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
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 22.10.2014 00:03, David Roundy wrote:> Hi Michal, > > I am attaching debug logs. > > DavidWell, I can see the error message there, but not the reason. Does the /etc/libvirt/qemu/networks/default.xml file exist? Michal
Yes, /etc/libvirt/qemu/networks/default.xml exists and has the contents: $ cat /etc/libvirt/qemu/networks/default.xml <network> <name>default</name> <bridge name="virbr0" /> <forward/> <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> On Thu, Oct 23, 2014 at 10:16 AM, Michal Privoznik <mprivozn@redhat.com> wrote:> On 22.10.2014 00:03, David Roundy wrote: > >> Hi Michal, >> >> I am attaching debug logs. >> >> David >> > > Well, I can see the error message there, but not the reason. Does the > /etc/libvirt/qemu/networks/default.xml file exist? > > Michal >-- David Roundy