Build a Proxmox VM using a .vmdk
Build an initial VM
We will start by creating a KVM virtual machine.
- Click the Create VM button.
- Enter a VM ID (e.g. 301).
- Enter a meaningful Hostname (e.g. vmware-01).
- Choose a Resource Pool (if applicable).
- Choose a family of OS (e.g. Microsoft Windows XP/2003, or Linux etc...).
- Do not use any media as a CD/DVD installation disk.
- Choose IDE for the Bus/Device.
- Select VMware image format (vmdk) as the format.
- Leave CPU defaults.
- Select Max and Min Memory limits (e.g. 1024, 512).
- Choose the correct Bridge for this container to use.
- Leave the NIC Model as Intel E1000.
- Click Finish.
This will create a VM with an empty hard drive.
Now use your preferred FTP client and browse to your server with the following settings.
- Host: your_ip_address
- Protocol: SFTP
- Logon Type: Normal
- User: root
Browse to /var/lib/vz/images/301/ or your own storage (e.g. /mnt/vms/301/) and upload your .vmdk file and name it the same as the empty drive you've just created (e.g. vm-301-disk-1.vmdk). Depending on the size of your .vmdk file, this might take a while, however SFTP is generally a reliable protocol and the transfer will hopefully happen without any errors.
Convert to qcow2
Access your Proxmox node, using either SSH or the console from the web interface.
- Browse to where your .vmdk file is stored.
- Run the following command.
qemu-img convert -f vmdk vm-301-disk-1.vmdk -O qcow2 vm-301-disk-1.qcow2
Using the Proxmox web interface...
- Select your newly created VM in the left pane.
- Select the Hardware tab.
- Click Move disk, with the Hard Disk selected.
- Select the same Target Storage (assuming you have enough spare).
- Choose QEMU as the Format.
- Click Move disk.
If you don't select Delete source, you'll have the original .vmdk file as a backup.
Power up considerations
I recommend that you initially power up your new server, without it connecting to a physical network, so you can see that it is booting up as expected.
Thanks for visiting.