Hi I've compiled qemu-1.4.0. qemu-img in 1.4 still fails to convert $image.vmdk file, but works OK for $image-flat.vmdk files. To test it I changed the code in libvirt.pm to return $image-flat.vmdk for the file name. Did you have to adjust anything on your side for qemu-img to find $image-flat.vmdk to in $image.vmdk (1)?
The vcld.log has "copy on write virtual disk is not supported for the datastore image type: vmdk, creating full copy of master image file" message, I assume this means all VMware images running on KVM will use full copies, which is a lot of disk space (2). I've also compiled libvirt-1.0.3rc3 and linked /usr/libexec/qemu-kvm -> /usr/local/bin/qemu-system-x86_64. Before I was getting error message about qemu-kvm not supporting vmdk. I'm not entirely sure I needed to build new libvirt, but I worked OK. With the changes above I was able to load VMware VM (vmdk) on KVM host (CentOS Linux as guest, will try Win later). (There are some bugs in CentOS6 and libvirt-1.0.2/1.0.3rc3 with SELinux enabled, so SELinux is disabled on the VM Hosts). Q.: 1. Should qemu-img work with $image.vmdk files? The $image.vmdk file is description files for $image-flat.vmdk. If qemu-img is not suppose to 'follow' to $image-flat.vmdk file, then this could be adjusted in libvirt.pm code. 2. Is there a way to make a linked clone from .vmdk file (i.e. copy of write disk)? Can .vmdk file be converted to .qcow2 file as linked clone? I would like to stay with CentOS6 as host OS if possible, but if #2 above works in Fedora and I cannot make it work in CentOS then I'll try Fedora 16 as host. Thanks. On Mar 1, 2013, at 9:41 , Andy Kurth <[email protected]> wrote: > The versions we are running are listed below. Older versions of qemu-img > does not convert correctly from 2gbsparse vmdk to qcow2. Check the actual > size if the qcow2 file that was created with du. It may be 0 or much smaller > than the original vmdk image. They should be similar in size. > > You can download libvirt/KVM and install it. I have never done this. The > options are daunting. It would be helpful if someone could figure it out and > add instructions to the site. > > I don't think VMware Tools is the problem but it's better to uninstall it > before converting an image to KVM if possible. Once the image is running on > a KVM vm you can't run setup to uninstall it completely. There are cleanup > tools but they don't get everything. > > libguestfs 1.12.7 > libguestfs-tools 1.12.7 > libguestfs-tools-c 1.12.7 > perl-Sys-Guestfs 1.12.7 > libvirt 0.9.6 > libvirt-client 0.9.6 > libvirt-python 0.9.6 > gpxe-roms-qemu 1.0.1 > qemu-common 0.15.0 > qemu-img 0.15.0 > qemu-kvm 0.15.0 > qemu-system 0.15.0 > > Hope this helps, > Andy > > On 2/28/2013 3:34 PM, Dmitri Chebotarov wrote: >> Hi >> >> I'm trying to use CentOS 6.3 as KVM host. >> >> qemu-img fails to convert .vmdk files. It's sees .vmdk as raw format and >> ignores actual data in -flat.vmdk file. >> I assume this is b/c of older version of qemu-img? >> >> qemu version in CentOS 6 is 0.12. Latest version on Qemu.org is 1.4.0. >> >> What is the version of qemu package that comes with Fedora 16? >> >> Thanks. >> >> On Feb 20, 2013, at 13:49 , Josh Thompson <[email protected]> wrote: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> We are also running a mix of VMware and KVM host servers. We are using >>> Fedora >>> 16 as the KVM host. VCL can automatically deploy images captured on either >>> one to either host type. Andy might be able to speak better to any >>> requirements for it to work, but as long as you follow the online >>> instructions >>> on creating base images, it should work. >>> >>> Josh >>> >>> On Wednesday, February 20, 2013 6:18:08 PM Yannick Charbonneau wrote: >>>> We have a mixed vmware/kvm setup. >>>> >>>> I think one thing we were missing initially was "libguestfs-winsupport" >>>> package. Which caused issues with windows machines moving from vmware to >>>> kvm. >>>> We run our vcl on CentOS 6. >>>> >>>> Hope this helps. >>>> >>>> Yanik >>>> -----Original Message----- >>>> From: Dmitri Chebotarov [mailto:[email protected]] >>>> Sent: Wednesday, February 20, 2013 11:12 AM >>>> To: [email protected] >>>> Subject: Running VMware images on KVM host >>>> >>>> Hello >>>> >>>> Have anyone succeeded in running VMware/KVM mixed environment for VCL? >>>> >>>> I'm having difficulties starting Windows 7 VMware images on KVM: the image >>>> would convert and load, but Windows gets blue screen. >>> I assume this is due >>>> missing virtio drivers while attempting to run Windows on KVM. >>>> We also have VMware tools installed on Windows image, which may also >>>> contribute to the problem. >>>> Thank you, >>>> -- >>>> Dmitri Chebotarov >>>> Virtual Computing Lab Systems Engineer, TSD - Ent Servers & Messaging >>>> 223 Aquia Building, Ffx, MSN: 1B5 >>>> Phone: (703) 993-6175 >>>> Fax: (703) 993-3404 >>>> >>>> >>> - -- - ------------------------------- >>> Josh Thompson >>> VCL Developer >>> North Carolina State University >>> >>> my GPG/PGP key can be found at pgp.mit.edu >>> >>> All electronic mail messages in connection with State business which >>> are sent to or received by this account are subject to the NC Public >>> Records Law and may be disclosed to third parties. >>> -----BEGIN PGP SIGNATURE----- >>> Version: GnuPG v2.0.19 (GNU/Linux) >>> >>> iEYEARECAAYFAlElGr4ACgkQV/LQcNdtPQOWTQCcDezY6NHCvR4+gRkf8WcMSbXp >>> chAAn30pvw1mEs3V/WZ5s1SxVNB9cj1t >>> =VgyB >>> -----END PGP SIGNATURE----- >>> >> >> >> -- >> Thank you, >> >> Dmitri Chebotarov >> VCL Sys Eng, Engineering & Architectural Support, TSD - Ent Servers & >> Messaging >> 223 Aquia Building, Ffx, MSN: 1B5 >> Phone: (703) 993-6175 | Fax: (703) 993-3404 >> >> >> > -- Thank you, Dmitri Chebotarov VCL Sys Eng, Engineering & Architectural Support, TSD - Ent Servers & Messaging 223 Aquia Building, Ffx, MSN: 1B5 Phone: (703) 993-6175 | Fax: (703) 993-3404
