Linux – exporting a virtualbox VDI to a harddrive to boot it natively

debianlinuxvirtualboxwindowswindows xp

I have a VirtualBox 3.1.2 image of Debian 5.0.2 running on Windows XP SP3. I would like to export that Debian image to a USB harddrive such that I could boot to that drive and run it natively. Is that possible to do with a VDI?

Best Answer

You can export a VDI to a raw disk image with the following command:

VBoxManage clonemedium --format RAW debian.vdi debian.img

You can then use the dd command or any suitable disk imaging software to write the image to the disk.