I came across this problem as I hosted a few websites (among this one) on VM with Debian 5 on a VMWare server on a Windows system.
This was not the ideal setup so I wanted to migrate to ProxMox.
Step one was migrating the VM to ProxMox as a KVM and later I shall migrate the data to a OpenVZ container, but that’s out of the scope of this article.
Migrate a VMWare .vmdk image to ProxMox VE (KVM)
I assume you have root access to all servers and it’s handiest if you have fingerprinted the servers so you don’t have to log in everytime.
What do you need
- A VMWare VM running on either VMWarePlayer, VMWare Workstation of VMWare Server.
- A ProxMox server on a machine with a processor that supports VT
How to set this up
Copy the .vmdk file(s) to the new machine
If the VMWare image is hosted on a Windows machine, then it’s easiest to use FileZilla or WinSCP to SFTP/SCP the .vmdk file(s) to the server using your root credentials.
If the VMWare image is hosted on a Linux machine, then it’s easiest to use SSH to SCP the .vmdk file(s) to the server using your root credentials.
Create a KVM
Convert the .vmdk to .raw
qemu-img convert /home/ISPConfig/ISPConfig-000001.vmdk /home/richard/ISPConfig.raw
Replace the .raw images
cp -pv /home/richard/ISPConfig.raw /vz/images/205/vm-205-disk-1.raw