User Tools

Site Tools


vmdk2proxmox


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vmdk2proxmox [2023/09/16 15:16] – created adminvmdk2proxmox [2024/11/14 02:30] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== VMDK to Proxmox ZVol ====== ====== 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/+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/|this guide]]. 
 + 
 +  * Move the vmdk to the proxmox machine: 
 +<code> 
 +scp unifiController-disk1.vmdk [email protected]:/pool1 
 +</code> 
 + 
 +  * SSH into the proxmox machine and convert the vmdk to a raw disk image 
 +<code> 
 +convert -f vmdk /pool1/unifiController-disk1.vmdk -p -O raw /pool1/unifiController.raw 
 +</code> 
 + 
 +  * Create the VM in Proxmox, making a zvol in the same or greater capacity. Note the VID. 
 +  * List zvols on the proxmox host 
 +<code> 
 +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 
 +</code> 
 + 
 +  * dd the raw disk image into the zvol 
 +<code> 
 +dd if=/pool1/unifiController.raw of=/dev/zd144 bs=1M status=progress oflag=dsync 
 +</code>
vmdk2proxmox.1694877393.txt.gz · Last modified: 2024/11/14 02:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki