Left Menu







Howto set up Virtual Box in Ubuntu (including Karmic Koala -- 9.10)

This howto is for all newbies that will need virtual box in Ubuntu ( especially the new 9.10 Karmic Koala ). We were amazed when we saw that Virtual Box is not working "Out of the Box". Thats ok! We were able to fix this in a couple easy and simple steps:

NOTE: This howto applies only for Ubuntu

1. Installation

~ $ sudo apt-get install virtualbox-ose
This should pull out the required dependencies, but if not these are all the needed packages:
virtualbox-guest-additions     
virtualbox-ose-dbg  
virtualbox-ose-guest-source    
virtualbox-ose-guest-utils   
virtualbox-ose-guest-x11      
virtualbox-ose-qt          
virtualbox-ose-source         


After installation is complete you can start it up, but most likely to end up with error like:

VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot (VERR_VMX_IN_VMX_ROOT_MODE).



To fix this, there is no need of recompiling the kernel. All you have to do is to unload module "kvm_intel" and backlist it as well! or simply remove the package qemu-kvm (For unknown reasons with installing Virtual Box Ose the compiler automaticly installs this package, which cause the loading of that module, so if you don't need it just remove it!)
To remove qemu-kvm simply execute this command:
~ $ sudo apt-get remove qemu-kvm
Removing this package will fix the issue, but if you need it just simply follow this two easy steps:
To unload the module execute the command:

~ $ sudo modprobe -r kvm_intel

And if you try to start Virtual Box you will succeed


To automate this proccess and avoid manually unloading the module you can add it to "/etc/modprobe.d/blacklist.conf"

~ $ sudo nano /etc/modprobe.d/blacklist.conf
and add the following line at the end of the file :
blacklist kvm_intel

That's all folks, so easy no need to recompile kernel! Now on the next boot this module will not be loaded!


For additional questions please refer to our FORUM



Delicious de.li.cio.us


|Home | LinuXchange| Updates | Contact Us | About The Project | Unique Visitors| Sponsorship|