Bug 636140

Summary: RFE: QEMU GDB: support attaching to QEMU vms using GDB
Product: [Community] Virtualization Tools Reporter: Daniel BerrangĂ© <berrange>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: crobinso, loganjerry, slandden, xen-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-21 00:36:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 636031    

Description Daniel Berrangé 2010-09-21 14:58:36 UTC
Description of problem:
It should be possible to launch a VM with GDB debugging stub enabled, without having to bypass libvirt

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Cole Robinson 2016-03-21 00:36:48 UTC
Since this is for debugging and a reasonably rare case, IMO it should be fine just to use qemu command line passthrough here. Closing, but reopen if anyone disagrees

Comment 2 Shawn Landden 2017-11-21 00:12:47 UTC
I can't find qemu command line passthrough? Where is that feature?

Comment 3 Shawn Landden 2017-11-21 00:13:50 UTC
I am using virt-manager 1.4

Comment 4 Daniel Berrangé 2017-11-21 09:06:36 UTC
This is illustrated here:  https://libvirt.org/drvqemu.html#qemucommand

You nede to use 'virsh edit' to modify the XML to include this, rather than virt-manager.

Comment 5 Cole Robinson 2017-11-21 15:47:49 UTC
or you can use: virt-xml $VMNAME --edit --qemu-passthrough '-gdb ...'

Comment 6 Cole Robinson 2017-11-21 15:48:57 UTC
errrr that's virt-xml --qemu-commandline ...