Re: How to show underlying QEMU command line using virsh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

Attachment: signature.asc
Description: Digital signature

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux