I have discovered that this timeout is due to kvm-84 being really slow to start (~10-15 seconds just to get to the bios screen).

 

Is there any way that this timeout can be set via the Libvirt.conf with a reasonable default.

It seems as though the current default is only around 3 seconds which seems a little too optimistic to me.

 

Regards,

 

-J

 

From: libvir-list-bounces@redhat.com [mailto:libvir-list-bounces@redhat.com] On Behalf Of jmandawg
Sent: Wednesday, February 25, 2009 8:28 AM
To: libvir-list@redhat.com
Subject: [libvirt] internal error Timed out while reading console log output

 

Hi,

 

I just compiled installed Libvirt from the latest git repo, and for some reason when I try to start a VM from virsh I get the following error:

 

virsh # start XPTest

error: Failed to start domain XPTest

error: internal error unable to start guest:

 

and the corresponding output from libvirtd running in verbose mode:

 

08:19:53.163: info : Received unexpected signal 17

08:20:00.083: info : Received unexpected signal 17

08:20:00.095: info : Received unexpected signal 17

08:20:03.200: error : internal error Timed out while reading console log output

libvir: QEMU error : internal error Timed out while reading console log output

08:20:03.200: error : internal error unable to start guest:

libvir: QEMU error : internal error unable to start guest:

 

 

Here is the command virsh is trying to run from the Libvirt log file:

 

LC_ALL=C PATH=/usr/bin:/bin:/root/bin:/usr/X11R6/bin:/usr/local/kvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games HOME=/root USER=root LOGNAME=root /usr/bin/kvm -S -M pc -m 512 -smp 1 -name XPTest -uuid 732fcba8-b71f-face-e067-cf8431fc94aa -monitor pty -pidfile /var/run/libvirt/qemu//XPTest.pid -localtime -no-acpi -boot c -drive file=/var/kvm-images/XPTest/XP_Test.img,if=ide,index=0,boot=on -net nic,macaddr=00:0c:29:f6:c4:f8,vlan=0,model=e1000 -net tap,fd=20,script=,vlan=0,ifname=vnet3 -serial none -parallel none -usb -usbdevice tablet -vnc 0.0.0.0:9

 

 

If I start the VM from the commandline manually using this command and then shutdown, I can successfully start it from Virsh

 

qemu-system-x86_64 -no-acpi -m 512 -hda XP_Test.img \

                -net nic,macaddr=00:0C:29:F6:C4:F8 \

                -net tap \

                -usb -usbdevice tablet \

                -monitor unix:monitor,server,nowait \

                -soundhw all \

                -pidfile pid &

 

 

 

virsh # version

Compiled against library: libvir 0.6.0

Using library: libvir 0.6.0

Using API: QEMU 0.6.0

Running hypervisor: QEMU 0.9.1

 

Any help would be appreciated.

 

 

Thanks,

 

John