Ubuntu – How to create an iso image from vdi file

custom-distributionsisovdivirtualbox

I have a .vdi file of OpenSUSE-13 in my host system Ubuntu 14.04LTS. Can I create a .iso image of OpenSUSE for installation, which contains all the applications in my vdi file?

The .vdi file is about 25GB in size and 11GB of that is the used space.

Best Answer

From VirtualBox forums:

VBoxManage clonehd file.vdi output.iso --format RAW

dd if=output.iso of=/dev/sdX

Replace X in the above command with the letter of the drive you want to write to. Double check this since the command will destroy data on the designated drive.

Now it is on a bootable USB of whatever size.