Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using windows 7 as a host & have ubuntu vdi file. Which I created using Virtual Box & installed the Ubuntu OS in ubuntu.vdi file. Now I want to boot Ubuntu Directly on my hardware. that is at booting time of my pc I could see an option to boot win 7 & Ubuntu. Just want to boot Ubuntu.vdi as real machine. Please help me out.

share|improve this question

You are IMO better off doing a fresh, standard installation. I do not know an easy way to directly boot your ubuntu.vdi, you could probably copy the partition with dd or gparted, but you would then need to manually install and configure grub.

Installing will do the configuration for you, and is thus going to be easier.

You can back up your user data (home) to a usb drive or transfer it from vitrualbox with the use of shared folders.

You can generate a list of installed packages with

sudo dpkg --get-selections > packages.list

You then transfer packages.list to your fresh install and use it to restore you packages with

sudo dpkg --set-selections < packages.list
sudo apt-get dselect-upgrade
share|improve this answer
+1 this is the only sensible way to do it. – Takkat Jan 10 '12 at 20:52

You can, as long as the disk image is a fixed size image. You are a lot better of just doing a new install of Ubuntu, and then mounting the .vdi file by opening it in Virtualbox or with Archive Mounter and then copying your files over. But, if you really want to and are willing to spend enough time at it, here is a tutorial on how to do so. Also see:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.