LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-24-2008, 11:01 AM   #1
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 739

Rep: Reputation: 31
Cannot run Virtualbox in Custom Kernel


VirtualBox runs on the stock linux 2.6.25-2-xen-686.

However I have had to compile a custom kernel since I use the NVidia driver and this will not install on a Xen-enabled kernel.

Now I cannot run Virtual Box.

Code:
modprobe vboxdrv
returns

Code:
FATAL: Module vboxdrv not found.
I have copied the /lib/modules/2.6.25-2-686/extra/ directory to /lib/modules/2.6.25/ (my custom kernel modules) but to no avail.

Can anybody help please?
 
Old 05-24-2008, 11:07 AM   #2
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
You have to build the vboxdrv module against your new kernel source.
How did you install virtualbox? Can you do:
cd /usr/share/virtualbox/src/
make
sudo checkinstall -D make install
sudo modprobe vboxdrv

Edit: Another option is:
cd /usr/src/path-to-virtualbox-source
m-a prepare
m-a a-i virtualbox
m-a install virtualbox

Either way IMO it's better to use the binary virtualbox for lenny than apt-get the ose version which doesn't have usb support. With the binary version you build the module from /usr/share/virtualbox/src/.

Last edited by makuyl; 05-24-2008 at 11:11 AM.
 
Old 05-24-2008, 12:16 PM   #3
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 739

Original Poster
Rep: Reputation: 31
Wow! That was an incredibly fast response!

I installed Virtualbox from the Debian Repositories.

The checkinstall -D make install failed with a strange message:

Quote:
dpkg-deb - error: (upstream) version (`ose') doesn't contain any digits
dpkg-deb: 1 errors in control file
EDIT

m-a a-i virtualbox failed too! The log file was empty.

Last edited by davcefai; 05-24-2008 at 12:27 PM. Reason: More to report
 
Old 05-24-2008, 12:35 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,570

Rep: Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510Reputation: 510
# /etc/init.d/vboxdrv setup
 
Old 05-24-2008, 12:47 PM   #5
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
Did you apt-get the virtualbox-ose-source package? I don't suppose debs work for self compiled kernels.

BTW, What does "uname -r" say? If 2.6.25-yourname or some such, recompile to 2.6.25-yourname1. Sometimes building debs against a kernel with no numbers in the revision (yourname) borks things up.

Last edited by makuyl; 05-24-2008 at 12:53 PM.
 
Old 05-27-2008, 06:56 AM   #6
lycan
Member
 
Registered: Jul 2007
Location: Kolkata, INDIA
Distribution: Debian Lenny
Posts: 51

Rep: Reputation: 15
Kernel in SID is built using GCC 4.1. You need to install gcc-4.1 package before you try building virtualbox kernel module.

Run the following commands as root:

Code:
1. apt-get install gcc-4.1
2. apt-get install linux-headers-{$uname -r}
3. export CC=gcc-4.1
4. /etc/init.d/vboxdrv setup
Now include "vboxdrv" in /etc/modules otherwise you have to manually load virtualbox module with every restart.
 
Old 05-28-2008, 12:28 AM   #7
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 739

Original Poster
Rep: Reputation: 31
No problem with the gcc-4.1 compiler. However I'm still tangede up and hope to be able to do some more work when I can get home at a reasonable hour.
 
Old 05-28-2008, 11:29 PM   #8
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
I', having an error with VirtualBox, this happened suddenly, 1 day i ran it perfect, the other day didn't work, i think that was after a new kernel i installed (24.1), i got back the original kernel and nothing. I'm using a Lenny/Unstable system

Code:
debian:/usr/bin# uname -r
2.6.22-3-686-bigmem
I reinstalled, using gcc 4.1 and the GCC default on lenny and nothing,

Code:
debian:/usr/bin# aptitude reinstall virtualbox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
The following packages will be REINSTALLED:
  virtualbox 
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/16.1MB of archives. After unpacking 0B will be used.
Writing extended state information... Done
Preconfiguring packages ...
(Reading database ... 138974 files and directories currently installed.)
Preparing to replace virtualbox 1.5.6-28266_Debian_etch (using .../virtualbox_1.5.6-28266%5fDebian%5fetch_i386.deb) ...
Stopping VirtualBox kernel module: vboxdrv.
Shutting down VirtualBox host networking...done.
Unpacking replacement virtualbox ...
Setting up virtualbox (1.5.6-28266_Debian_etch) ...
addgroup: The group `vboxusers' already exists and is not a system group. Exiting.
Messages emitted during module compilation will be logged to /var/log/vbox-install.log.
Success!
Starting VirtualBox kernel module: vboxdrv.
Starting VirtualBox host networking...done.
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done
this is the error i got

Code:
Callee RC: 
0x80470007
I have Vmware also installed and running smoothly

Thanks in advance
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom software fails to run with: Inconsistency detected by ld.so: VelocideX Linux - Software 2 04-16-2008 07:48 PM
virtualbox not work when kernel bring up to date dissident_goodchild Linux - Software 6 12-03-2007 03:04 PM
Creating custom headers to match a custom kernel utanja Debian 2 06-08-2007 03:15 PM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 03:05 AM
Poll: Do you run linux on a prebuilt machine or a custom. SlipAway172 Linux - General 21 10-24-2005 04:50 PM


All times are GMT -5. The time now is 06:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration