из vdi в raw:
VBoxManage internalcommands converttoraw image.vdi image.raw
из raw в qcow:
qemu-img convert -f raw image.raw -O qcow2 image.qcow
Step 1. Convert the VB disk vdi image to a raw image format.
VBoxManage clonehd --format RAW ubuntu.vdi ubuntu.img
Note: The ubunut.img is a raw disk image, it will be quite large (as many GB as your virtual drive is, see above).
Step 2 : convert the raw image to a qcow
qemu-img convert -f raw ubuntu.img -O qcow2 ubuntu.qcow
That is all there is to it, the ubuntu.qcow can be used with KVM.
Test your new image (ubuntu.qcow) with:
kvm -m 512 -usbdevice tablet -hda ubuntu.qcow
If it is working you may delete the raw image (ubuntu.img) and archive or delete the ubuntu.vdi .
Welcome to KVM :)
Комментариев нет:
Отправить комментарий