[Libguestfs] Debugging nested KVM guest (L2) booting with libguestfs/gdb

Richard W.M. Jones rjones at redhat.com
Thu Feb 13 09:52:15 UTC 2014


On Thu, Feb 13, 2014 at 12:08:37AM +0530, Kashyap Chamarthy wrote:
> The 'qemu-kvm' command-line just hung at:
> 
>     $ ./run libguestfs-test-tool
>     [. . .]
>         -chardev socket,path=/home/tuser1/src/libguestfs/tmp/libguestfspCGc1F/guestfsd.sock,id=channel0 \
>     -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
>     -append 'panic=1 console=ttyS0 udevtimeout=600 no_timer_check lpj=2294686 acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=screen'

It's supposed to "hang" if you add the -S -s arguments.

It is waiting for you to connect gdb to qemu.  See the docs in
src/launch-direct.c.

https://github.com/libguestfs/libguestfs/blob/master/src/launch-direct.c#L404

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW




More information about the Libguestfs mailing list