LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-09-2009, 08:14 PM   #1
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 649

Rep: Reputation: 30
Need DKMS for Virtual Box


Hi,

I am trying to install Virtual Box (3.9.8) on my Linux (MEPIS 8.0 - debian based) desktop.

It looks like DKMS (Dynamic Kernel Module Support) is either a required or recommended package. Unfortunately, it is not in synaptic when I search.

Elsewhere online, I found "dkms-2.0.22.0.tar.gz" version and saved it, but I have no idea how to use / install it. I did find a "man page" online (http://linux.dell.com/dkms/manpage.html) but do not understand it.

A quick LQ search yielded some interesting but irrelevant threads. A quick google search yielded little more than the previously mentioned "man page".

I need to install this package, whether it is from synaptic or elsewhere.

Could someone point me in the right direction? If something is not in synaptic, then I am really a fish out of water.

Any suggestions, resources, etc would be great.

Thanks!
 
Old 08-10-2009, 03:34 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Did you use the "m-a prepare" step detailed on MEPIS WIKI? That step may load the dkms package, amongst others including build-essential.

You may also find some insight at Linux Chronicles.

BTW, VirtualBox has just gone to 3.0.3 so your 3.9.8 looks strange.
 
Old 08-10-2009, 12:16 PM   #3
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 649

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by catkin View Post
Did you use the "m-a prepare" step detailed on MEPIS WIKI? That step may load the dkms package, amongst others including build-essential.

You may also find some insight at Linux Chronicles.

BTW, VirtualBox has just gone to 3.0.3 so your 3.9.8 looks strange.


Oopps...no it is not 3.9.8 - that was another package I was working.

Yes, it is 3.0.4.

No, I actually never heard of those 2 resources you linked. I will certainly check them out.

Thanks!
 
Old 08-10-2009, 05:33 PM   #4
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 649

Original Poster
Rep: Reputation: 30
Do you know of

Catkin, et al:

I checked those links. However, I still need to learn how to use the

dkms-2.0.22.0.tar.gz

file I downloaded.

Though not required, this file will supposedly rebuild the kernel if I update my host. I am sure months or years down the road, that would be helpful.

Since I could find dkms in synaptic, I searched for the tar.gz version and found it. Unfortunately, I don't know how to "run" files in the "tar.gz" version.

Do you know of any tutorials, etc I could read and learn?
 
Old 08-11-2009, 06:34 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by MBA Whore View Post
I still need to learn how to use the
dkms-2.0.22.0.tar.gz
[snip]
Do you know of any tutorials, etc I could read and learn?
No but here's a typical procedure which may help you find some:
Code:
tar xzvf <whatever>.tar.gz
cd <whatever>
debuild -us -uc -b
Prudent to check the man page to see what those debuild options do.
 
Old 08-11-2009, 04:10 PM   #6
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 649

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by catkin View Post
No but here's a typical procedure which may help you find some:
Code:
tar xzvf <whatever>.tar.gz
cd <whatever>
debuild -us -uc -b
Prudent to check the man page to see what those debuild options do.

I will do so. Thank you again for your help.
 
Old 08-12-2009, 03:49 PM   #7
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 649

Original Poster
Rep: Reputation: 30
Update:

Unfortunately, I can not find DKMS in synaptic or apt-get. However, I did find the tar version (dkms-2.0.22.0.tar.gz) and successfully "untared" it to my directory.

Unfortunately, I got stuck at the next step (configure). Here is my terminal input / output:

Virtual@mepis1:~$ cd DOWNLOADED
Virtual@mepis1:~/DOWNLOADED$ cd dkms-2.0.22.0
Virtual@mepis1:~/DOWNLOADED/dkms-2.0.22.0$ ./configure
bash: ./configure: No such file or directory
Virtual@mepis1:~/DOWNLOADED/dkms-2.0.22.0$


I don't understand that message. Could someone explain?

For clarification, I went into the "README" DKMS file and noticed this:

2. Installation via DKMS Tarballs
##################################

DKMS is not limited to installation via RPM only. In fact, DKMS can also
install directly from the following:

a. Generic module source tarballs which contain a dkms.conf file
b. Specially created DKMS tarballs with module source, pre-built module
binaries and a dkms.conf file
c. Specially created DKMS tarballs with pre-built module binaries and a
dkms.conf file
d. Manual placement of module source and dkms.conf file into
/usr/src/<module>-<moduleversion>/ directory

In order to load any tarball into the DKMS tree, you must use the following
command:

dkms ldtarball --archive=/path/to/dkms_enabled.tar.gz

This command will first inspect the tarball to ensure that it contains a
dkms.conf configuration file for that module. If it cannot find this file
anywhere within the archive, then the ldtarball will fail.

From here, it will place the source in the tarball into /usr/src/<module>-
<moduleversion>/. If source already exists in the directory, it will not
overwrite it unless the --force option is specified. If the tarball is of type
"c" above and does not contain source, it will only continue to load the
tarball if existing module source is found in /usr/src/<module>-<moduleversion>/
or if the --force option is specified.

Continuing on, if the tarball is of type "b" or "c" it will then load any
pre-built binaries found within the tarball into the dkms tree, but will stop
short of installing them. Thus, all pre-built binaries will then be of in the
"built" state when checked from the `dkms status` command. You can then use the
`dkms install` command to install any of these binaries.

To create a tarball of type "a" above, you need only to take module source and a
dkms.conf file for that module and create a tarball from them. Tarballs of
type "b" or type "c" are created with the `dkms mktarball` command. To create
a type "c" tarball, you must specify the flag --binaries-only with the
mktarball.


Would any of that be relevant?

Unfortunately, this project very quickly became too technical for me to understand. However, I do now know that I need / want DKMS before doing anything else.

I would appreciate any insight.

Thanks.
 
Old 08-13-2009, 05:42 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
dkms is a convenience (although you may not think so right now!) rather than a necessity. It should (TM) not be necessary for the installation and is only used after installation to compile the VBox kernel module when the kernel is changed.

Netsearching did not turn up any dkms build HOWTOs. That suggests that few people do so -- if it's not available as a package for a distro then it's not convenient (!) and people probably just manually build the VBox kernel module.

Page 22 of the VBox User Manual (for version 3) gives an outline procedure.

Regards what you quoted from the README, I don't know what it means. I find that the case with all the DELL technical documentation!
 
Old 08-13-2009, 10:04 AM   #9
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 649

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by catkin View Post
dkms is a convenience (although you may not think so right now!) rather than a necessity. It should (TM) not be necessary for the installation and is only used after installation to compile the VBox kernel module when the kernel is changed.

Netsearching did not turn up any dkms build HOWTOs. That suggests that few people do so -- if it's not available as a package for a distro then it's not convenient (!) and people probably just manually build the VBox kernel module.

Page 22 of the VBox User Manual (for version 3) gives an outline procedure.

Regards what you quoted from the README, I don't know what it means. I find that the case with all the DELL technical documentation!

catkin,

Thanks so much for your input!
 
Old 12-02-2010, 10:12 AM   #10
cybermeid
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
--kernelsourcedir option to tell DKMS where it's located

When I tried doing
sudo /etc/init.d/vboxdrv setup
it is showing this message
Quote:
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel source for kernel 2.6.33.3-85.fc13.i686 cannot be found at
/lib/modules/2.6.33.3-85.fc13.i686/build or /lib/modules/2.6.33.3-85.fc13.i686/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
Now when I opened the log file it is showing this error

[Quote]
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 3.2.12

------------------------------
Deleting module version: 3.2.12
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/3.2.12/source ->
/usr/src/vboxhost-3.2.12

DKMS: add Completed.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Can you tell me how to make this work.I'd grealy appreciate it,thanks [/[QUOTE]
I am completely blank on how to make this work.Can someone recommend me on how to make all this thing work.Thanks in advance.
And also can someone tell me what exactly does "--kernelsourcedir option to tell DKMS where it's located " mean?
 
Old 12-04-2010, 12:23 PM   #11
cybermeid
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
Can you make it clear on what exactly do you mean by that statement.I am a newbie in linux and I cant understand Jargons.Can you tell me what do I need to do here.I have the same error and I am quoting my log file which is similar to the guy above facing the same problem.It is
Quote:
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 3.2.12

------------------------------
Deleting module version: 3.2.12
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/3.2.12/source ->
/usr/src/vboxhost-3.2.12

DKMS: add Completed.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

Thanks
 
Old 12-05-2010, 12:32 AM   #12
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
cybermeid, please start a new thread and tell us which distro (version of Linux) you are using. Sounds as if you need to install the kernel source.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
dkms-nvidia-current dkms install fails X86_64 Blackhawkckc Mandriva 5 03-21-2009 04:57 PM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 01:04 PM
Virtual Box JATA01 Linux - Software 6 10-10-2008 08:47 AM
virtual box alf_frommars Ubuntu 6 08-14-2007 08:30 AM
Virtual Box. Removing a shared folder inside virtual xp. glore2002 Linux - Software 2 05-20-2007 11:12 AM

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

All times are GMT -5. The time now is 07:43 AM.

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