[libvirt-users] how to modify virsh vm start script

Martin Kletzander mkletzan at redhat.com
Tue Nov 25 07:54:07 UTC 2014

On Tue, Nov 25, 2014 at 12:46:41PM +0900, Ady Wahyudi Paundu wrote:
>I use libvirt to manage a QEMU/KVM system. Starting a VM only by using
>  > virsh start vmname
>What I want to know is how to add an option to virsh vm's start
>script, in my case I want to add QEMU logging option (-d and -D). I
>can see from
>  > ps aux | grep qemu
>that current VM started using virsh not including those options

This is not supported in our XML, but you can use passthrough of
arbitrary options:



<domain type='qemu'
    <qemu:arg value='-d'/>
    <qemu:arg value='cpu'/>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20141125/90a94194/attachment.sig>

More information about the libvirt-users mailing list