中文 English

How to Import a Third-Party VM Image into Proxmox VE

Published: 2021-02-01
PVE kvm QEMU vmdk qcow2 import 导入 virtual machine mirror image Proxmox VE img

In the example below, the VM ID is always 100; change it as needed.

File Format Conversion

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

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

cd /var/lib/vz/images/100/
rm vm-100-disk-0.qcow2

References QEMU-IMG Migration of servers to Proxmox VE