[libvirt-users] How to show underlying QEMU command line using virsh

Martin Kletzander mkletzan at redhat.com
Wed May 24 12:23:13 UTC 2017


On Wed, May 24, 2017 at 10:49:23AM +0300, Roman Storozhenko wrote:
>Hello, everybody
>
>I use virt to run my VM's and QEMU as a hypervisor. There is a file
>describing my virtual machine:
>
>/etc/libvirt/qemu/centos7.0.xml
>
>As you know it contains xml representation of my VM. Is there any way to
>show underlying qemu command that virsh runs using that file? For
>example:
>
>qemu-system-x86-64 -m 1024 -smp 2 -...
>
>If no, is there any way to figure it out during VM run ?
>

There is virsh domxml-to-native, you can do:

  virsh dumpxml centos7.0 | virsh domxml-to-native qemu-argv /dev/stdin

However be warned that domxml-to-native does not support everything that
the driver will, this API is always a bit behind with some things.

>---
>Thanks in advance,
>Roman Storozhenko
>
>_______________________________________________
>libvirt-users mailing list
>libvirt-users at redhat.com
>https://www.redhat.com/mailman/listinfo/libvirt-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20170524/e1f2672f/attachment.sig>


More information about the libvirt-users mailing list