Search code examples
centosportvmwarewindows-server-2012-r2kvm

Migrate VMWare image to KVM


I am trying to migrate VMWare image with Windows 2012 R2 to KVM. I was able to get to point where I:

  • merged all parts of vmdk into one file

  • removed VMWare tools fro image

  • converted vmdk to qcow2

    qemu-img convert -o compat=0.10 -O qcow2 Windows2012-cl1.vmdk Windows2012-cl1.img

  • created new virtual machine in KVM

  • added img drive to it

  • booted VM in KVM

System was booting up but than it thrown an error

Your PC ran into a problem and needs to restart.

I tried to repair the system but it said that system drive is read-only. Where could be the problem? I also tried to boot from Win2012R2 ISO image to repair the system but it said that it cannot find system drive.

Host system: CentOS 6.5


Solution

  • It seems that this was problem of CentOS qemu old version. It seems that CentOS 7 has still quite old qemu but I did not give it a try. Instead I tried Ubuntu 14.04 and it seems it is working. So anyone trying to do something like me I recommend checking version of qemu.