Bug 636140 - RFE: QEMU GDB: support attaching to QEMU vms using GDB
Summary: RFE: QEMU GDB: support attaching to QEMU vms using GDB
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: libvirtTodoDebugging
TreeView+ depends on / blocked
 
Reported: 2010-09-21 14:58 UTC by Daniel Berrangé
Modified: 2017-11-21 15:48 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-21 00:36:48 UTC
Embargoed:


Attachments (Terms of Use)

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 ...


Note You need to log in before you can comment on or make changes to this bug.