User Tools

Site Tools


vmdk2proxmox


This is an old revision of the document!


VMDK to Proxmox ZVol

Loosely based on https://dannyda.com/2022/10/15/how-to-convert-qcow2-virtual-disk-to-zfs-zvol-for-vurtual-machine-vm-in-proxmox-ve-pve/

  • Unordered List ItemCopy the vmdk to the proxmox machine:
scp unifiController-disk1.vmdk [email protected]:/pool1
  • SSH into the proxmox machine and convert the vmdk to a raw disk image
convert -f vmdk /pool1/unifiController-disk1.vmdk -p -O raw /pool1/unifiController.raw ; sync
  • Create the VM in Proxmox, making a zvol in the same or greater capacity. Note the VID.
  • List zvols on the proxmox host
root@pedge:/pool1# ls -hapl /dev/zvol/pool1/
total 0
drwxr-xr-x 2 root root 660 Sep 16 11:33 ./
drwxr-xr-x 3 root root  60 Sep 11 21:39 ../
lrwxrwxrwx 1 root root   9 Sep 13 13:55 vm-100-disk-0 -> ../../zd0
lrwxrwxrwx 1 root root  10 Sep 13 13:55 vm-100-disk-1 -> ../../zd16
...
...
lrwxrwxrwx 1 root root  11 Sep 16 11:33 vm-107-disk-0 -> ../../zd144
  • dd the raw disk image into the zvol
dd if=/pool1/unifiController of=/dev/zd144 bs=1M status=progress oflag=dsync ; sync
vmdk2proxmox.1694878654.txt.gz ยท Last modified: 2024/11/14 02:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki