[virt-tools-list] Error using virt-convert

Chandana De Silva chandana at desilva.id.au
Tue Dec 11 18:44:10 UTC 2012


I am trying to use virt-convert to convert a KVM/libvirt guest to VMWare 
ESX 4, and getting an error. Any help would be greatly appreciated.

I have created a virt-image image file as shown at 
http://people.redhat.com/dlutter/virt-image/virt-image-xml.html. See 
below for the xml file.

I am using the following command for the conversion, and am getting the 
error shown :
/usr/bin/virt-convert -i virt-image -o vmx -D vmdk mon03.xml mon03

ERROR    Couldn't import file "mon03.xml": Couldn't import file 
'mon03.xml': Disk entry for 'mon03' not found

The image file itself is readable by all:
ls -la /var/lib/libvirt/imageshelf/mon03.img
-rw-r--r-- 1 root m4u 8589934592 Dec  3 09:25 

ls -la mon03.xml
-rw-rw-r-- 1 chandana chandana 657 Dec  5 09:08 mon03.xml

         <boot type="hvm">
                 <loader dev="cdrom"/>
             <drive disk="mon03" target="hda"/>
             <disk id="mon03" 
file="/var/lib/libvirt/imageshelf/mon03.img" use="system" size="8388608" 
<!-- vi: sw=4 ts=4 et:

More information about the virt-tools-list mailing list