VOGONS


First post, by DracoNihil

User metadata
Rank Oldbie
Rank
Oldbie

I'd really rather not have to completely re-do a entire harddrive image and MS-DOS 6 installation just to migrate from VirtualBox to QEMU, so I was wondering if there was a way to safely convert VDI files to qcow2 or something more raw perhaps?

The VDI was created without "dynamic allocation", it's one huge 2.1 GB file. (I specifically sized it to the maximum possible size a FAT16 partition can be)

Steam Profile
YouTube Channel
Seal of Nehahra

Reply 1 of 2, by UselessSoftware

User metadata
Rank Newbie
Rank
Newbie

You can use QEMU's qemu-img tool to convert.

This is from memory, but I think the command line is:

qemu-img convert -f qcow2 /path/to/source/file /path/to/destination/file

Or -f raw for raw format.

qemu-img --help will tell you if I'm remembering that right...