Bug 659070 - libvirtd ignores extra command line parameters for qemu-kvm
Summary: libvirtd ignores extra command line parameters for qemu-kvm
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 14
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-01 20:35 UTC by Akshat Aranya
Modified: 2010-12-02 14:50 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-12-02 14:50:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Akshat Aranya 2010-12-01 20:35:04 UTC
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):

libvirt-0.8.3-2

How reproducible:

Always

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:commandline>
    <qemu:arg value='-s'/>
  </qemu:commandline>


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 22:07:27 UTC
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 14:03:34 UTC
Indeed, adding the xml namespace worked.  Thank you.  Sorry for the noise.

Comment 3 Chris Lalancette 2010-12-02 14:50:30 UTC
No problem, happy to help.

Chris Lalancette


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