How to Import a Third-Party VM Image into Proxmox VE
In the example below, the VM ID is always 100; change it as needed.
File Format Conversion
- Use
qemu-imgto convert virtual disk files in other formats toqcow2 - For example, the following converts
vmdktoqcow2
qemu-img convert -f vmdk /mnt/usb/windows-server/windows-server.vmdk -O qcow2 /var/lib/vz/images/100/windows-server.qcow2
Add a Virtual Disk
- First add a
localvirtual disk in the web UI, for example the system may automatically generatevm-100-disk-0.qcow2
qcow2 File Handling
Copy this image to /var/lib/vz/images/100/
Edit the VM Configuration File
vim /etc/pve/qemu-server/100.conf
Find vm-100-disk-0.qcow2 and replace it with the filename you actually need.
Delete the Empty Virtual Disk
- Manually enter
/var/lib/vz/images/100/and delete the empty virtual disk file created in step 1,vm-100-disk-0.qcow2
cd /var/lib/vz/images/100/
rm vm-100-disk-0.qcow2
References QEMU-IMG Migration of servers to Proxmox VE