qemu-img convert -f qcow2 input.img -O raw tmp.img
VBoxManage convertfromraw --format VDI tmp.img out.vdi
qemu-img create -f qcow2 myimg
qemu-img resize disk.qcow2 +40G
if guest doesn't show physical disk with new size try follows
virsh start domainname
virsh blockresize domainname path-to-image newsizeG
- reboot virtual machine
to remove reserved partition on windows system to allow disk expand there is the need to use diskpart, eg
list disk
select disk 0 <--- check your own
list partition
select partition 3 <--- check your own
delete partition override
- use
--sparse --inplace -z
options to save bandwidth when transferring qemu virtual images that have smaller effective disk image size ( seeqemu-img info file.qcow2
to show virtual and disk size of the image )