I installed Ubuntu18.04 desktop in a kvm-qemu virtualization setup and it is working. I found that there is a direct kernel boot option in virt-manager settings for a virtual machine. I want to debug the kernel using gdb from the host.
Please help in finding the kernel path and initrd.img file path.
Is kernel path same as arch/x86/boot/bzImage ?. Is it possible to copy the initrd.img file inside the guest (/boot/ directory) to the host machine?
Thanks!

qemu-systemandremote gdb. I wanted to know whether is it possible usingvirt-manageror not? - Debashishvirsh qemu-monitor-commandto enable remote debugging for a VM. - Michael Hamptonvirsh- Debashish