My libvirtd service starts fine, but my VM does not auto-start, even though the "autostart" option is enabled. It used to work. Starting it manually gives this: [root@xena ~]# libvirtd /etc/libvirt/qemu/MikeWindows.xml libvir: error : invalid connection pointer in virNetworkLookupByName libvir: QEMU error : internal error Network 'default' not found Failed to autostart VM 'MikeWindows': internal error Network 'default' not found I am using the default network setup. This was also reported to the libvirt mailing list by someone else: http://www.mail-archive.com/libvir-list@redhat.com/msg09937.html The VM starts up fine once libvirtd is up and you use the Virtual Machine Manager to start the VM, manually. This is crippling for my users, since root access is required to start the VMs manually. - Mike
My workaround for now is to do this: chkconfig --level 0123456 libvirtd off and add this to root's crontab: @reboot /sbin/service libvirtd start; /bin/sleep 10; /usr/bin/virsh start MikeWindows - Mike
To fix this you need - either the two patches that were posted by me in the thread mentioned above or - current libvirt cvs (which contains my patches with some documentation etc. added)
Here's the fix committed to CVS: http://git.et.redhat.com/?p=libvirt.git;a=commitdiff;h=4e64546fa7 This was in 0.5.1, so closing the bug
Re-opening bug, because it still doesn't work: [root@xena ~]# rpm -qa | grep libvirt libvirt-0.5.1-2.fc10.x86_64 libvirt-python-0.5.1-2.fc10.x86_64 [root@xena ~]# libvirtd /etc/libvirt/qemu/MikeWindows.xml libvir: error : invalid connection pointer in virNetworkLookupByName libvir: QEMU error : internal error Network 'default' not found Failed to autostart VM 'MikeWindows': internal error Network 'default' not found
I think this cset is the needed fix: http://git.et.redhat.com/?p=libvirt.git;a=commit;h=b6e3cbc6656a0487d7662ca7cd4cbf80e5e88eaf This landed shortly after 0.5.1, so it wouldn't be in f10 yet. It affects autostarting VMs which use virtual networking.
Pretty certain this is fixed in 0.6.0, so moving to POST.
This is available in F10 updates-testing now, 0.6.1 release
libvirt-0.6.1-1.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update libvirt'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-2396
Confirmed OK with libvirt-0.6.1-1.fc10.x86_64. Thanks! Closing bug.