Hi,
I am migratting ( hyper-v) VHD to ( proxmox) raw
Part of the process is to convert the vhd into raw using
qemu-img convert -f vpc -O raw my_disk.vhd my_disk.raw
My problem is that the result of the conversion is always 32Gb regardless of the size of the vhd
Questions:
1. How do I resize / shrink the image ( all my Linux guests are using 5 Gb hard drives ) ?
I tried the following:
boot the Linux guest from systemrescue
use gparted and shrink the partition to 5 Gb
shut off vm
on host, ran qemu-img resize my_disk.img -28G
although all the above commands completed successfully, my image still remain at 32 Gb and , on the guest, fdisk -l /dev/vda1 still shows 32Gb
What am I missing ???
2. Is there a way to convert vhd to img while controlling / specifying the img size ??
3. is there a better /smarter way to migrate Linux guests from Hyper-v to Proxmox than physically copying the vhd, converted then added to newly created proxmox VM ?
Thanks
Steven
I am migratting ( hyper-v) VHD to ( proxmox) raw
Part of the process is to convert the vhd into raw using
qemu-img convert -f vpc -O raw my_disk.vhd my_disk.raw
My problem is that the result of the conversion is always 32Gb regardless of the size of the vhd
Questions:
1. How do I resize / shrink the image ( all my Linux guests are using 5 Gb hard drives ) ?
I tried the following:
boot the Linux guest from systemrescue
use gparted and shrink the partition to 5 Gb
shut off vm
on host, ran qemu-img resize my_disk.img -28G
although all the above commands completed successfully, my image still remain at 32 Gb and , on the guest, fdisk -l /dev/vda1 still shows 32Gb
What am I missing ???
2. Is there a way to convert vhd to img while controlling / specifying the img size ??
3. is there a better /smarter way to migrate Linux guests from Hyper-v to Proxmox than physically copying the vhd, converted then added to newly created proxmox VM ?
Thanks
Steven