1

I want to upload an ISO image to my instance running on Alibaba Cloud but there is no direct way for me to do that as only the VHD format and a few other image formats are supported.

Is there a way to convert an ISO image to VHD so I can then upload the same to Alibaba Cloud instance?

  • How about compressing that ISO file (ZIP, 7ZIP)? Or extract whatever in the ISO and put those in a tarball (TAR, TAR.GZ)? – Biswapriyo Sep 26 '19 at 12:23
1

Yes, but remember that .iso images are primarily for CD/DVDs, which use a different boot mechanism from regular disks.

If you have a "hybrid CD+USB" .iso image (like many Linux distributions provide), you can convert it without problems – just treat it as a raw dd image. For example:

qemu-img convert -f raw -O vpc Foo.iso Foo.vhd
VBoxManage convertfromraw Foo.iso Foo.vhd --format VHD --variant Fixed

But if you have an .iso that was not specifically prepared, and only made for CDs, then you will still be able to upload and attach it but you might won't be able to boot the VM from it.

| improve this answer | |
  • Cool, I have been able to install qemu and do the conversion. I used the first command. Thanks – Alex Sep 26 '19 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.