Bug 659070 - libvirtd ignores extra command line parameters for qemu-kvm
libvirtd ignores extra command line parameters for qemu-kvm
Product: Fedora
Classification: Fedora
Component: libvirt (Show other bugs)
Unspecified Unspecified
low Severity medium
: ---
: ---
Assigned To: Daniel Veillard
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2010-12-01 15:35 EST by Akshat Aranya
Modified: 2010-12-02 09:50 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-12-02 09:50:30 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Akshat Aranya 2010-12-01 15:35:04 EST
Description of problem:

I am trying to pass an extra command line parameter to qemu-kvm to allow kernel debugging through gdb.  This is a '-s' option for the qemu-kvm command line.  I am unable to pass this parameter using virsh

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


How reproducible:


Steps to Reproduce:
1. Determine the correct XML to use for specifying command line parameters for qemu-kvm. This is done using virsh domxml-from-native:

$ virsh domxml-from-native qemu-argv test

This generates an XML file with the following snippet:

    <qemu:arg value='-s'/>

2.  Add the snippet to the guest VMs XML using virsh edit and save the edited XML.
3.  Dump the XML file using virsh dumpxml
Actual results:

The XML file does not contain the newly-added command line parameter.  When the VM is started, the qemu-kvm command line does not include the -s option.

Expected results:

The XML file contains the newly-added command line parameter and qemu-kvm starts up with the extra command line parameter.

Additional info:
Comment 1 Chris Lalancette 2010-12-01 17:07:27 EST
You also need to add the namespace argument at the top of the output from virsh domxml-from-native (i.e. xmlns:qemu=http://libvirt.org/schemas/domain/qemu/1.0).  If you add that, does it work?

Chris Lalancette
Comment 2 Akshat Aranya 2010-12-02 09:03:34 EST
Indeed, adding the xml namespace worked.  Thank you.  Sorry for the noise.
Comment 3 Chris Lalancette 2010-12-02 09:50:30 EST
No problem, happy to help.

Chris Lalancette

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