[SOLVED] Is it possible to run virtualbox on 3.2 kernel?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I really want to install VBox on Debian Wheezy but it seems it doesn't support new kernel. Here's what I got:
Quote:
[....] Starting VirtualBox kernel modules[....] No suitable module for running k[FAIL found ... failed!
failed!
invoke-rc.d: initscript virtualbox, action "restart" failed.
Quote:
~$ virtualbox
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-ose-dkms package and the appropriate
headers, most likely linux-headers-amd64.
You will not be able to start VMs until this problem is fixed.
You need to modprobe or insmod vboxdrv, which you've probably already done. VirtualBox has kernel modules it needs, which means they need to be recompiled for each new kernel, which you may not have done.
...at a command prompt. You'll also want to add it to your module autoload list, which I'm not sure how to do in Debian, but that shouldn't be had to find out. You could also load it every time you start VirtualBox, but that would be a hassle.
Now that's strange. It says the module is not found. But it should be loaded at startup according to virtual-ose config file. Any ideas? I'll keep diggin in google.
If the module is not found, it's probably not installed. This: http://wiki.debian.org/VirtualBox#Troubleshooting says that you may need to install the modules package, there are also instructions for making the modules load at boot. You'll also want to make sure your user is in the right group (vboxusers).
If they don't have a module package for your kernel version (which they should if you've been getting all your packages from apt) you'll have to start installing from source.
Once the module is there, you should be able to modprobe it... or just reboot if you set it to load at boot.
I have the packages installed. I don't have virtualbox-ose file, but I have virtualbox file and vboxdrv loading is set to 1.
So I think the issue is the kernel. When previously I was using Squeeze and had 3.x kernel from backports I couldn't install virtualbox as well. It's like they don't have support for this kernel or something. So I knew before installing that I will have problems with it.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I can assure you that Virtualbox works fine on 3.2.0-4-amd64.
It might be worth purging VirtualBox and re-installing whilst making sure you have the dkms and kernel source packages so a driver can be compiled.
I purged it. I have kernel 3.2.0.3-amd64, however there are no headers for it in repos. There are only 3.2.0.4. I downloaded it. During installation of vbox it said "Building only for 3.2.0-3-amd64"
I think I should compile the newest kernel, but how do I do that? I always got that automatically via apt-get upgrade.
I heard it is frozen. So it's like it's almost ready for stable.
So the problem was no headers for 3.2.0.3 in repos. I've upgraded the kernel to 3.2.0.4, installed headers and virtualbox was finally able to build module.
In testing and sid you should upgrade regularly.
As the 3.2.0.3 kernel was replaced by the 3.2.0.4, it and it's headers were removed from the repo (still available in snapshots if though).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.