Hello all,
I have to move around some physical boxes and virtualise them later on. So I came across this question about qcow2 images and cannot find a conveniant solution for it.
Lets assume having a qcow2 disk image with a big virtual size and a relatively small partition size inside. How can I shrink the image to contain only this/these partition(s)? The problem with qemu-img resize is that you have to give it exact resize numbers. But since I want to make the sizes fitting exactly I would have to "calculate for the byte". Isn't there some way to tell a resize tool "shrink the unused space of a disk at the end" ?
--
Regards
I have to move around some physical boxes and virtualise them later on. So I came across this question about qcow2 images and cannot find a conveniant solution for it.
Lets assume having a qcow2 disk image with a big virtual size and a relatively small partition size inside. How can I shrink the image to contain only this/these partition(s)? The problem with qemu-img resize is that you have to give it exact resize numbers. But since I want to make the sizes fitting exactly I would have to "calculate for the byte". Isn't there some way to tell a resize tool "shrink the unused space of a disk at the end" ?
--
Regards

