after updating to ubuntu 11.04, i ran into error posted in previous messages. tried everything above, still got same error. then i re-installed gcc and gcc related packages through synaptic and virtualbox 4.08 now works.
thank you everybody for posting advice.
I'm also attempting to install VB 4.08 on Natty 11.04, and I keep getting the kernel diver error discussed above.
When I run sudo /etc/init.d/vboxdrv setup it returns:
* Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 184.108.40.206+drm33.12 cannot be found at
/lib/modules/220.127.116.11+drm33.12/build or /lib/modules/18.104.22.168+drm33.12/source.
I've tried numerous solutions discussed above, but nothing works. I've installed the generic Natty kernels, DKMS, and re-installed gcc.
If anyone has advice, or even encouragement, I'd be appreciative! Thank you.
I had the same problem. I installed VirtualBox 4.0.8.r71778 Windows XP SP3 as the guest OS and my Ubuntu 10.04 (2.6.32 kernel) as the host OS. After I upgrade the kernel into 2.6.38 my XP on the VirtualBox didn't work, I don't exactly remember the error was. But after I reinstalled the VirtualBox, I found that my XP works normal like before!
It finally hit me: I'm running Ubuntu 11.04 as a secondary OS on a Cr-48, Google's test Chromebook. The Chrome OS is curently based on Ubuntu's 2.6.32 kernel, which is also the kernel that my installation of Ubuntu is using. When VirtualBox attempts to install, it can't find the kernel headers for my 2.6.32 kernel, because the kernel headers loaded with 11.04 are based on 2.6.38.
If I was a lot smarter, I'm sure that there's a way to work around the issue. So, it looks like I'm dead in the water until Google begins using the updated kernel.
I'm not sure how to "force" 11.04 to use/install the necessary 2.6.32 kernel files to make VB install.
I'm not sure if you can "force" it either. If you are booted into 2.6.38, it should find the headers for that kernel.
This Link may be helpfull for you!
replace aptitude with apt-get
sudo apt-get update (OK)
sudo apt-get install dkms (already latest)
sudo /etc/init.d/vboxdrv setup (error about conf file not in good format but WORKED)
Thanks all - HTH
my level - advanced noob!
Ever since my last post in this thread 5 months ago? I switched to VMware Player (it's also free)
It's OK, everything we know will become obsolete at some time.