[libvirt-users] debug kernel

llilulu llilulu at yeah.net
Sat Jan 20 03:54:09 UTC 2018


libvirt 3.4.0
centos 7.4



Hi:

    I want usr libvrit create vm to debug linux kernel. Previous , I usr qemu cmd(-gdb tcp::1234) directly. When I search on Internet, I found I can usr libvrt xml configure kgdb.
<qemu:commandline>
        <qemu:arg value='-gdb'/>
        <qemu:arg value='tcp::1234'/>
  </qemu:commandline>
But configure xml usr kgdb is differnet on kernel boot. usr qemu cmd, before I connect kernel usr gdb , the kernel still not boot, When I usr gdb connect the vm and put continue cmd on gdb, the kernel will start boot. But I usr libvirt xml configure kgdb, the kernel not stop, I want known that have some way I can use libvirt xml configure kgdb let kernel stop boot before I put continue on gdb?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20180120/d37e2940/attachment.htm>


More information about the libvirt-users mailing list