Hide Forgot
Description of problem: 'virsh dumpxml <VMID>' returns wrong domain type (qemu instead of openvz). There was a discussion http://osdir.com/ml/libvir-list/2009-07/msg00635.html but I couldn't find any submitted bug about that issue to keep track on it. Version-Release number of selected component (if applicable): It can be reproduced as below: $ cat ovz.xml.4 <domain type='openvz' id='144'> <name>144</name> <vcpu>1</vcpu> <memory>524288</memory> <os> <type>exe</type> <init>/sbin/init</init> </os> <devices> <filesystem type='template'> <source name='centos-5-x86'/> <target dir='/'/> </filesystem> <interface type='bridge'> <source bridge='br0'/> </interface> </devices> </domain> $ virsh create ovz.xml.4 $ virsh dumpxml 144 <domain type='qemu' id='144'> <name>144</name> <uuid>fb213571-5674-f9d9-f3a3-3e13d23f350b</uuid> <memory>0</memory> <currentMemory>0</currentMemory> <vcpu>1</vcpu> <os> <type>exe</type> <init>/sbin/init</init> </os> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>destroy</on_reboot> <on_crash>destroy</on_crash> <devices> <filesystem type='template' accessmode='passthrough'> <source name='centos-5-x86'/> <target dir='/'/> </filesystem> </devices> </domain> whereas <domain type='qemu' id='144'> has to be <domain type='openvz' id='144'> ovzkernel release is 2.6.18-194.26.1.el5.028stab081.1, vzctl-3.0.26-1, OS is CentOS 5.5, libvirt/virsh version is 0.8.8.
This has been fixed by commit http://libvirt.org/git/?p=libvirt.git;a=commit;h=d173c12fe01bbc8892f93beaaa9c1ee4da3ff28f that will be part of the next libvirt release 0.9.2.
Please close, this is already fixed.