Alexander Hussey, RHCSA, RHCE
He/Him/His
Consultant
40 Marcus Clarke Street, Canberra, ACT,2601
Hi everyone,
As a result of the meeting we are going to test enabling qemu gdb by exec-ing into the virt-launcher and using the qemu monitor command.
I just wanted to get an understanding/appreciation for how I might execute this command. It seems like it is a function in [libvirt-go](https://pkg.go.dev/github.com/libvirt/libvirt-go#Domain.QemuMonitorCommand) and [libvirt-qemu](https://libvirt.org/html/libvirt-libvirt-qemu.html#virDomainQemuMonitorCommand). So in order to execute that function in the virt-launcher container, would I need to compile a Go script which imports the appropriate libraries (libvirt-go ?) and then calls `<domain>.QemuMonitorCommand('-gdb tcp::1234')`.
Please excuse if wrong syntax, I'm not fluent in Go.
Kind regards,AlexOn Wednesday, June 1, 2022 at 12:00:21 PM UTC+10 Alexander Hussey wrote:Hi everyone,
TL;DR - I am looking to have a feature implemented which enables exposing the GDB port on a VM.
Please find my GitHub issue for reference: https://github.com/kubevirt/kubevirt/issues/7714
I plan to join in on the next KubeVirt/Community meeting and would be happy to discuss it there also.
I understand there will need to be some modifications to my issue and I welcome all critique. I am also happy to try and help dev a solution, but please note writing in Go is not one of my strengths.
Please also find a GDB hook sidecar that I have developed for testing purposes. It is based heavily on the example hook sidecar.
https://github.com/ahussey-redhat/kubevirt/tree/gdb/cmd/gdb-hook-sidecar
--Kind regards,AlexAlexander Hussey, RHCSA, RHCE
He/Him/His
Consultant
40 Marcus Clarke Street, Canberra, ACT,2601
--
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/c1c4217f-ec0d-432c-810e-b8409b59c498n%40googlegroups.com.
Hi everyone,
As a result of the meeting we are going to test enabling qemu gdb by exec-ing into the virt-launcher and using the qemu monitor command.
I just wanted to get an understanding/appreciation for how I might execute this command. It seems like it is a function in [libvirt-go](https://pkg.go.dev/github.com/libvirt/libvirt-go#Domain.QemuMonitorCommand) and [libvirt-qemu](https://libvirt.org/html/libvirt-libvirt-qemu.html#virDomainQemuMonitorCommand). So in order to execute that function in the virt-launcher container, would I need to compile a Go script which imports the appropriate libraries (libvirt-go ?) and then calls `<domain>.QemuMonitorCommand('-gdb tcp::1234')`.
--
You received this message because you are subscribed to the Google Groups "kubevirt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubevirt-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/6c912520-6425-4968-9639-d005afdf1513n%40googlegroups.com.