LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   transformation between libvirt xml and qemu native command (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/transformation-between-libvirt-xml-and-qemu-native-command-4175446135/)

screwzm 01-18-2013 02:04 AM

transformation between libvirt xml and qemu native command
 
I need to transforme libvirt xml file to qemu CLI command and vice verse.
By using:
Code:

$virsh domxml-to-native qemu-argv demo.xml > qemu-args
I can get the corresponding qemu CLI command defined by demo.xml

Now, when I try to generate the XML back for the same CLI, it fails:

Code:

$virsh domxml-from-native qemu-argv qem-args
I got this error:

Code:

error: internal error missing index/unit/bus parameter in drive 'file=a.qcow2,if=none,id=drive-ide0-0-0,format=raw'
Could anyone provide any clue? thanks.


All times are GMT -5. The time now is 03:57 PM.