What is the exact syntax to shrink an XP virtual disk?
I'm looking at shrinking XP KVM disks of unused disk space. There is a wiki topic, but the topic lacks specific information.
The example shows:
cp image.qcow2 image.qcow2_backup
There are no files on the host with a qcow2 file extension. There are files using the naming convention of vm-XXX-disk-1, where XXX is the VM ID.
The QEMU guest agent is installed. The qm man page shows the following to discard unused space:
qm guest cmd <vmid> fstrim
Is all that is needed is run sdelete inside the XP guest and then run the qm guest cmd <vmid> fstrim command?
I'm looking at shrinking XP KVM disks of unused disk space. There is a wiki topic, but the topic lacks specific information.
The example shows:
cp image.qcow2 image.qcow2_backup
There are no files on the host with a qcow2 file extension. There are files using the naming convention of vm-XXX-disk-1, where XXX is the VM ID.
The QEMU guest agent is installed. The qm man page shows the following to discard unused space:
qm guest cmd <vmid> fstrim
Is all that is needed is run sdelete inside the XP guest and then run the qm guest cmd <vmid> fstrim command?
Last edited: