As mentioned in another thread I would like to provide a short how-to for resizing images of vulnerable VMs which then can be used in Qubes as HVMs.
In your non-Qubes host system:
In your QubesOS:
install qemu-img if not present
then
[user@sourceVM ~]$ qemu-img convert -O qcow2 /mnt/home/offsec/virtualbox/binaryVM/binary-disk001.vdi binary.qcow2
[user@sourceVM ~]$ qemu-img resize --shrink binary.qcow2 10G
[user@sourceVM ~]$ qemu-img convert -O raw binary.qcow2 binary.raw
[user@dom0 ~]$ qvm-run --pass-io sourceVM 'cat "/home/user/binary.raw"' > ./binary.raw
[user@dom0 ~]$ qvm-create -P poolhd0_qubes --property=virt_mode=hvm --property=memory=4096 --property=kernel='' --label blue --standalone --root-move-from /home/user/binary.raw binaryVM
The entire procedure can (or must) be done with .vdmks (qcow2s and so forth), with different filepaths, with different label, with --root-copy-from instead of --root-move-from and/or without poolhd0_qubes, respectively. Adjust stuff to your environment.