Hallo @all
I am trying to shring a virtual disk to be able to create a smal template that can be easily and fast cloned to the nodes.
Unfortunately I have started with a 50GB disksize when I started to build my Windows Server Template. After much work of configuration for my template I realized that cloning 50GB to nodes take much time (and IO delay) so I want to reduce this size.
What I did until now is: I shrinked the drive in windows to 15GB. the rest is "unalocated disk space" for Windows.
Then I shrinked the qcow2 file with following parameter. This made a siginificant reduction of filesize to 7GB
But now when trying to clone the template via WebGUI, it still transfers somehow 50GB and takes the same time to do this. I do not really understand why this happans. Also in the hardware tab, it is still writing me that the drive has 50GB.
So I tried to change that directly in the qemu conf file of that VM. Now for the template VM it is showing me 15GB, but when I start cloning it still transfers 50GB and after completion of the cloning, it is showing me again 50GB in the hardware tab of the new VM.
So is there a way of shrinking a VMs virtual harddisk so that it can be faster cloned?
Thx a lot for any help
Regards
Andy
I am trying to shring a virtual disk to be able to create a smal template that can be easily and fast cloned to the nodes.
Unfortunately I have started with a 50GB disksize when I started to build my Windows Server Template. After much work of configuration for my template I realized that cloning 50GB to nodes take much time (and IO delay) so I want to reduce this size.
What I did until now is: I shrinked the drive in windows to 15GB. the rest is "unalocated disk space" for Windows.
Then I shrinked the qcow2 file with following parameter. This made a siginificant reduction of filesize to 7GB
Code:
qemu-img convert -O qcow2 -c image.qcow2_backup image.qcow2
But now when trying to clone the template via WebGUI, it still transfers somehow 50GB and takes the same time to do this. I do not really understand why this happans. Also in the hardware tab, it is still writing me that the drive has 50GB.
So I tried to change that directly in the qemu conf file of that VM. Now for the template VM it is showing me 15GB, but when I start cloning it still transfers 50GB and after completion of the cloning, it is showing me again 50GB in the hardware tab of the new VM.
So is there a way of shrinking a VMs virtual harddisk so that it can be faster cloned?
Thx a lot for any help
Regards
Andy