[SOLVED] QCOW2 thin Provisioning issue

kakalpa

Member
Aug 16, 2021
5
1
8
33
Hi,

Im pretty much new to proxmox so far im in love with it. I tried to migrate one of my windows servers to the pve physical disk is 1TB converted to a vmdk file as a growable disk which is equal to thin provisioned the vmdk file is roughly around 60 GB. moved it to my PVE and converted it to a qcow2 and imported the disk but after importing in occupied the entire 1TB of space again. is there a way to import or convert to qcow2 format excluding the unused bits just like thin provisioned

import command I used :
Code:
qm importdisk 103 server-HRACC.qcow2 VM_Storage
convert command :
Code:
qemu-img convert -f vmdk server-HRACC.vmdk -O qcow2 -o preallocation=off  server-HRACC.qcow2

pointing me in the right direction is highly appreciated
 
Hi,

Have you had a look at our guide for shrinking qcow2 images [1]? It is possible that only the final section will be necessary.

[1] https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files
Will try that. Is there anyway to reduce at importing ? Since the converted vmdk is only 60 gb. It is kind a wired that it is recreating the trimed space again.

Worked Fine. thank you good sir. in the hard disk it still shows as 900+ gbs but only around 56 Gbs allocated in the LVM.
 
Last edited:
  • Like
Reactions: dylanw
  • Like
Reactions: kakalpa