Ubuntu – How to install Ubuntu on a VirtualBox client from an ISO image

bootisovirtualbox

I have the ISO image file (that is, *.iso) and I am trying to boot my VirtualBox installation with this image. Is it possible? I know how to mount my ISO image to my filesystem (on my host machine), but I don't think VirtualBox boots an OS from a location on my file system.

I've even tried to mimic mounting, such that VirtualBox thinks it has to boot from the CD drive, but this failed.

What is the correct way to boot an OS from an ISO image in VirtualBox?

My host machine is Ubuntu 10.04 (Lucid Lynx) and my VirtualBox version is 4.1.4.

Best Answer

I would venture to say you are overcomplicating things! You only need to mount the iso in the virtual machine.

  1. Right click on the VM you want to run the .iso in
  2. Click on 'Storage' (On Oracle VM virtualBox, Click on 'Settings' first to get to 'Storage')
  3. Under IDE Controller There should be an icon that shows a CD with a + sign on it, to create a new disc drive as shown highlighted in yellow color in the below snapshot:

    Ubuntu - Settings, Storage menu

  4. A box will come up, click Choose Disk

  5. Choose your .iso

Should boot into the iso like it's in the disc drive.