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

virsh start vmname What I want to know is how to add an option to virsh vm's start
ps aux | grep qemu
I use libvirt to manage a QEMU/KVM system. Starting a VM only by using script, in my case I want to add QEMU logging option (-d and -D). I can see from that current VM started using virsh not including those options ~ady

On Tue, Nov 25, 2014 at 12:46:41PM +0900, Ady Wahyudi Paundu wrote:
virsh start vmname What I want to know is how to add an option to virsh vm's start
ps aux | grep qemu
I use libvirt to manage a QEMU/KVM system. Starting a VM only by using script, in my case I want to add QEMU logging option (-d and -D). I can see from 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: http://libvirt.org/drvqemu.html E.g.: <domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> ... <qemu:commandline> <qemu:arg value='-d'/> <qemu:arg value='cpu'/> </qemu:commandline> ... </domain> Martin

Hi Martin, it works \(^o^)/ thank you. Best regards, AdyWP On 11/25/14, Martin Kletzander <mkletzan@redhat.com> wrote:
On Tue, Nov 25, 2014 at 12:46:41PM +0900, Ady Wahyudi Paundu wrote:
virsh start vmname What I want to know is how to add an option to virsh vm's start
ps aux | grep qemu
I use libvirt to manage a QEMU/KVM system. Starting a VM only by using script, in my case I want to add QEMU logging option (-d and -D). I can see from 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:
http://libvirt.org/drvqemu.html
E.g.:
<domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'> ... <qemu:commandline> <qemu:arg value='-d'/> <qemu:arg value='cpu'/> </qemu:commandline> ... </domain>
Martin
participants (2)
-
Ady Wahyudi Paundu
-
Martin Kletzander