LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 01-19-2013, 05:52 AM   #1
kox444
Member
 
Registered: Aug 2012
Posts: 128

Rep: Reputation: Disabled
Is it possible to run virtualbox on 3.2 kernel?


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.
Is there a way to run it?
 
Old 01-19-2013, 08:15 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Do you have the packages mentioned in the warning installed?
virtualbox-ose-dkms
linux-headers-amd64

Regards
 
Old 01-19-2013, 08:27 AM   #3
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
yep
 
Old 01-19-2013, 10:13 AM   #4
headrift
Member
 
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165

Rep: Reputation: 29
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.
 
Old 01-19-2013, 11:21 AM   #5
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
I didn't modprobe it. I'm kinda noob in these kernel and modules things. Can you explain it to me how do I do these things?
 
Old 01-19-2013, 11:32 AM   #6
headrift
Member
 
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165

Rep: Reputation: 29
As root, type:

Code:
modprobe vboxdrv
...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.
 
Old 01-19-2013, 01:00 PM   #7
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-19-2013, 01:20 PM   #8
headrift
Member
 
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165

Rep: Reputation: 29
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.
 
Old 01-19-2013, 01:41 PM   #9
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-19-2013, 05:26 PM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.
 
1 members found this post helpful.
Old 01-19-2013, 06:04 PM   #11
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-19-2013, 06:09 PM   #12
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
It might be the repos have the wrong packages -- I always just grab the source for my kernel and go.
Is Wheezy still testing?
 
Old 01-20-2013, 03:12 AM   #13
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
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.

Last edited by kox444; 01-20-2013 at 03:40 AM.
 
Old 01-20-2013, 04:31 AM   #14
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
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).
 
Old 01-20-2013, 09:22 AM   #15
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
I do update regularly, but somehow the kernel wasn't updated.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing VirtualBox*.run * Oracle*.run on Slackware 14 - Help/Information lkraemer Slackware 3 10-09-2012 09:08 AM
How to UNinstall VirtualBox.run? Aquarius_Girl Linux - Newbie 4 08-09-2011 10:22 AM
[SOLVED] Can't Run KDE 4.5.5 in VirtualBox Woodsman Slackware 5 03-06-2011 06:22 PM
virtualbox wont run rella111 Linux - Software 8 04-09-2010 03:32 AM
Cannot run Virtualbox in Custom Kernel davcefai Debian 7 05-28-2008 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration