printing the qemu final execution line from an xml

Greetings, I have a qemu line which I want to convert ot libvirt xml but as domxml-from-native is deprecated, I want to try it the other way around. e.g. write an libvirt xml and dump the final qemu line without running it. is there a way to do so? Thanks, Dagg.

On 9/4/20 9:17 AM, daggs wrote:
Greetings,
I have a qemu line which I want to convert ot libvirt xml but as domxml-from-native is deprecated, I want to try it the other way around. e.g. write an libvirt xml and dump the final qemu line without running it. is there a way to do so?
Sure, there is domxml-to-native. It accepts either an existing domain or path to XML file, for instance: virsh domxml-to-native --domain fedora --format qemu-argv Michal

thanks, it worked.
Sent: Friday, September 04, 2020 at 12:01 PM From: "Michal Prívozník" <mprivozn@redhat.com> To: "daggs" <daggs@gmx.com>, libvirt-users@redhat.com Subject: Re: printing the qemu final execution line from an xml
On 9/4/20 9:17 AM, daggs wrote:
Greetings,
I have a qemu line which I want to convert ot libvirt xml but as domxml-from-native is deprecated, I want to try it the other way around. e.g. write an libvirt xml and dump the final qemu line without running it. is there a way to do so?
Sure, there is domxml-to-native. It accepts either an existing domain or path to XML file, for instance:
virsh domxml-to-native --domain fedora --format qemu-argv
Michal
participants (2)
-
daggs
-
Michal Prívozník