Skip to content

Instantly share code, notes, and snippets.

View martijnvandenboom's full-sized avatar

ing. M.A.C.M. (Martijn) van den Boom martijnvandenboom

View GitHub Profile
HOW TO CONVERT A VIRTULBOX VM TO A BOOTABLE DRIVE
JUL 5, 2017
This is quite easy so I was surprised that I couldn’t find a walk-through anywhere…so here’s one :) This is specifically for a VM of Ubuntu, so it’s possible there may be other hurdles in place for different operating systems.
STEP 1
Create a VM normally in VirtualBox (or use an existing one), install the operating system, and add any programs or files you want to have readily available on the bootable disk.
STEP 2
This is the tricky part, you can use Virtual Box to convert a vdi to an iso, but you have to do it from the terminal. On my machine it wouldn’t work at all in windows default terminal, but I have Cygwin installed, and was able to use that. You first need to cd into the directory where Virtual Box is installed, and run the following command. The folder structure is specific to my machine and will most likely need to be changed on yours.
1