On Fri, Aug 01, 2014 at 03:14:17PM -0700, Zetan Drableg wrote:> Setup debuginfo repo > /etc/yum.repos.d/debuginfo. > repo > [ol6_debuginfo] > name=Oracle Linux 6 debuginfo > baseurl=http://oss.oracle.com/ol6/debuginfo > gpgkey=https://oss.oracle.com/ol6/RPM-GPG-KEY-oracle > gpgcheck=1 > enabled=1 > > yum update > yum install kernel-debuginfo > > (gdb) set architecture i8086 > The target architecture is assumed to be i8086 > (gdb) symbol-file /usr/lib/debug/lib/modules/2.6.32-431.20.3.el6.x86_64/vmlinux > Reading symbols from > /usr/lib/debug/lib/modules/2.6.32-431.20.3.el6.x86_64/vmlinux...done. > (gdb) target remote :1234 > Remote debugging using :1234 > 0x0000fff0 in ?? () > (gdb) break *0x7c00 > Breakpoint 1 at 0x7c00This might be the wrong breakpoint ...> (gdb) cont > Continuing. > .... > Didn't hit the breakpoint... but in any case you can hit ^C at some point to pause the guest and find out where the guest is stuck. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
I discovered another tip today. Force TCG by changing the qemu command line to: -machine pc,accel=tcg and add the following on the command line: -d in_asm,exec,int That will cause each instruction emulated by TCG to be dumped out, along with registers and other information. It should tell you what the VM is doing. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Sometimes the most complex problems have the simplest answers. I switched from 2.6.39-400.215.3.el6uek.x86_64 to 2.6.32-431.20.3.el6.x86_64 and the libguest tools work! Something with UEK is causing the problem. Thanks for all the help. On Thu, Aug 7, 2014 at 3:55 AM, Richard W.M. Jones <rjones@redhat.com> wrote:> I discovered another tip today. > > Force TCG by changing the qemu command line to: > > -machine pc,accel=tcg > > and add the following on the command line: > > -d in_asm,exec,int > > That will cause each instruction emulated by TCG to be dumped out, > along with registers and other information. It should tell you what > the VM is doing. > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > virt-p2v converts physical machines to virtual machines. Boot with a > live CD or over the network (PXE) and turn machines into KVM guests. > http://libguestfs.org/virt-v2v