dkms

This is for discussing general topics about how to use VirtualBox.
Post Reply
coke
Posts: 8
Joined: 26. Oct 2011, 22:14
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos

dkms

Post by coke »

Hi,

I am new to Virtualbox and I have a very basic question. Do I install dkms in host or guest? or both? Thanks!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: dkms

Post by Perryg »

dkms is a Linux thing. Since your host says Windows you don't need it there.
coke
Posts: 8
Joined: 26. Oct 2011, 22:14
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos

Re: dkms

Post by coke »

Thanks for your reply and information.

I have Virtualbox 4.1.4 installed in my Windows 7. Then I have installed centos 6.0 (i386) as the guest. When I install guest additions, I meet this problem.

Building the main Guest Additions module [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)

------- here is the log --------

/tmp/vbox.0/Makefile.include.header:94: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

I am wondering what I need to do in my guest centos. Surely no need to install dkms for now.

Any suggestions please?

Thanks!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: dkms

Post by Sasquatch »

Did you check the Tutorials and Rules/FAQ section where you can find my guide like Howto: Install Linux Guest Additions + Xorg config?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
coke
Posts: 8
Joined: 26. Oct 2011, 22:14
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos

Re: dkms

Post by coke »

Yes, I have read it and it seems I need to install dkms in my guest OS... Here are the completed list. Perryg just says I don't need to install it if my host is windows...

dkms
binutils
gcc
make
patch
libgomp
glibc-headers
glibc-devel
kernel-headers
kernel-devel OR kernel-pae-devel
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: dkms

Post by Sasquatch »

Ok, 'cause the error suggests you're missing the kernel headers or kernel devel package. You have to make sure you have the correct version. Did you do a full upgrade and a reboot prior to the installation?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
coke
Posts: 8
Joined: 26. Oct 2011, 22:14
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos

Re: dkms

Post by coke »

Ah, Thanks!

I will do it tonight and post it later what I have.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: dkms

Post by mpack »

In fact, Perry told you it wasn't needed in your host - after you asked if it needed to be installed on both. You were never told not to install it in the guest.
coke
Posts: 8
Joined: 26. Oct 2011, 22:14
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos

Re: dkms

Post by coke »

Thanks to everyone here! My guest additions rocks after I do a full update :D

@mpack, thanks for the clarification! My bad, I was totally out of my mind yesterday. I was trying to ask if I need to install both if both host and guest are linux. My understanding is that I only need to install it in guest. Guest only!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: dkms

Post by Perryg »

If your host is Linux and you are using VirtualBox or any other proprietary driver you should install dkms on the host as well so that when they update the OS kernel the drivers are updated as well. If you decide to not install dkms you will need to re-compile the drivers manually.
coke
Posts: 8
Joined: 26. Oct 2011, 22:14
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: centos

Re: dkms

Post by coke »

Crystal clear! Thanks Perryg! Once I feel comfortable with VB in Windows, I will install it in my Mac and Ubuntu desktop. It is awesome!

cheers!
Post Reply