Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When open ubuntu on virtual box , it doesn't work , and the following message appear "No bootable medium found system halted"

How i can solve this problm?

Thanks

share|improve this question
    
What OS have you installed in VirtualBox? –  Mitch Jul 16 '12 at 17:30
    
do you mean version of ubuntu ? if that ubuntu 11.04 –  alsadi90 Jul 16 '12 at 17:36
    
You have installed it already inside VirtualBox? –  Mitch Jul 16 '12 at 17:51
1  
the boot order is : hard disk then cd/dvd rom then floppy then network –  alsadi90 Jul 16 '12 at 18:07
1  
in setting > storage > ide cotrollere is empty , soi specified the location of the source again(a compressed file which contain ubuntu 11.04) –  alsadi90 Jul 16 '12 at 18:35
show 6 more comments

1 Answer

This error is thrown by what you might call the "BIOS" of VirtualBox. There should be a button you can press during startup to select a boot device. If this doesn't work, you might want to try reinstalling.

If grub2 (the bootloader) isn't installed, the system cannot boot. To fix this, you will need to boot from a live cd, that is, booting from the installation disc and selecting "try ubuntu". Then open a terminal window (search for "terminal") and issue this command:

dpkg-reconfigure grub-pc

This will open a sort of wizard with several options. You can leave the text fields at the default value, but make sure to select the correct drive when you are asked. You will need to select the primary virtual hard drive, which most likely would be /dev/sda (not sda1). Look at the size of the drive to make sure that it matches.

After doing this, grub2 will be installed. Please note that this requires a working installation of ubuntu, so if it fails, try reinstalling. Also, there might be several boot options in a menu during boot (the grub2 menu), in which case you will need to find the right one. Once you have booted the virtual machine from the hard disk, you can eject the CD and run the above command again. I'm not completely sure about this last step, and it might not be necessary. Make sure to remove the CD before trying to boot the new installation.

share|improve this answer
add comment

Your Answer

 
discard

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.