Migrate vm to smaller vm

sg29

New Member
Jun 18, 2020
7
1
3
40
Hello,

I'm actually trying to save an old physical machine (win 10 x86) to a virtual machine.

I managed to clone it from physical to virtual with no real problems and it actually works fine on vm (the physical on died, rip).

But i am hitting a wall on the last step, reducing virtual disk size (i need it reduced because i do not have much space on the replication server).

The physical machine has a 250Go disk but with only 59Go used for the system partition, rest is unused.

I have tried multiple solutions and all failed...
clonezilla disk to disk with -idcs on local disk
clonezilla disk to disk with -idcs on distant vm
clonezilla partition to partition on local
clonezilla partition to partition on distant
aoemi backuper to local partition

So is there a proper way to do that ?

Best regards,

Seb
 
hi,

you can use diskpart tool (preinstalled on windows i think) to shrink the volume to the desired size, and then use sdelete (in microsoft sysinternals) to clear up the free space on the logical disk.

afterwards you can use qemu-img convert to create a new disk this time it will be smaller