DKMS - RC=-1908 on Linux (Oracle 6.3)

This is for discussing general topics about how to use VirtualBox.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

I have been trying for a couple of days to get Virtual box to run on a many different Linux OS. Every time I keep getting the same error. I have looked in all the help files and here and have tried all the different setting and suggestions.

When I run the most common fix "/ect/init.d/vboxdrv setup"
I get stopped Kernel Modules = OK
uninstalled Old Virtualbox DKMS kernel modules = OK
But then I get two fails.
Trying to register the Virtualbox kernel using DKMS = FAILED
Recompoling VirtualBox Kernel = FAILED

I am running the 64 bit verison of Oracle Linux 6.3 update 3. I have downloaded the package directly from Virtualbox and I have removed and reinstalled it a couple of times also. This is my 4th different Linux OS and I keep getting the same error message. Does anyone have any suggestions?
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 - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

Look at /var/log/vbox-install.log for reason. Post here (as an attachment)

Also post the exact name of the VirtualBox install you are using.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

The package tha I have downloaded for this OS is

/home/trather/Downloads/VirtualBox-4.1-4.1.18_78361_rhel6-1.x86_64.rpm


Here is what is in the logfile.
Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

Here is the file.
Attachments
vbox-install.log
(138 Bytes) Downloaded 94 times
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 - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

Code: Select all

unable to find the sources of your current Linux kernel
Have you added the Public Yum Repository to your ol6 host?
Then you need to add a few packages such as the one mentioned to be able to build external mods.
This should have actually been shown as an error during install. You need to watch closely for errors during install.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

There were no errors that showed up during the install. I was prompted one time for the root password and other then that it all seemed to install fine. Where did you see this error or How do you know about this package?
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 - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

Where did you see this error or How do you know about this package?
Hummm, open the file you just send and read it.

Linux usually does not install packages that are not needed in generic installs and must be added on demand. Other wise the installs would be huge.
Also you didn't answer my question. Have you added the repo I mentioned above? I even sent the link telling you how.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

The file that I sent you is what gets writen in after I run the following command.

Code: Select all

/etc/init.d/vboxdrv setup
When I download the package from Virtualbox the only thing that I can do with it is to run in with install manager. When I do that there is nothing in the install log it is blank. When I open Virtualbox I can go and create the VM instance but when I try to start it that is when I get the RC=-1908 and then the error message shows up the in "Log" file
I am fairly new to this whole GUI Linux so if there is a different way to run the install package I would like to know.

As for your link I did run that and then I did a star and stop of the server and still it is not working.

When I run the downloaded package it does install some other files and everything appears to install correctly but I can't seem to get it to run.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

Also I was not sure what this ment
"Locate the section in the file for the repository you plan to update from, e.g. [el4_u6_base]"

I have no idea what section needs to be activated.
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 - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

Ok since you have added the public repo, do the following (all from the terminal):

1) first do a yum update. (as su/sudo) This will get you up-to date. ( ask if you don't know how)
2) next install the packages listed below:

Code: Select all

yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
Then install the VirtualBox package again.

Note1: some of the packages above may already be installed but it does not hurt trying them and you need to make sure you have all the packages that you need.
Note2: report any error message (exact) if they show except of course already installed.

Since you are running ol6 this is what you need to do as (su/sudo) to add the proper repo:
Oracle Linux 6

Code: Select all

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

I don't know how to do the yums update.
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 - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

Open a terminal window and type su then press enter. When asked type the password you entered on install.
Then type yum update

As long as you see a # at the beginning of the line you are still in su and can run any of the commands listed above.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

I am sorry I had to travle for work and was away from the computer. I went ahead and put in a new hard drive and started all over again. I followed all the steps that you showed me as far as install "YUM" and then I went out and got the latest download of Virtual box.

Code: Select all

[root@localhost Downloads]# yum install VirtualBox-4.1-4.1.20_80170_el6-1.x86_64.rpm
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Examining VirtualBox-4.1-4.1.20_80170_el6-1.x86_64.rpm: VirtualBox-4.1-4.1.20_80170_el6-1.x86_64
Marking VirtualBox-4.1-4.1.20_80170_el6-1.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package VirtualBox-4.1.x86_64 0:4.1.20_80170_el6-1 will be installed
--> Processing Dependency: libSDL-1.2.so.0()(64bit) for package: VirtualBox-4.1-4.1.20_80170_el6-1.x86_64
--> Running transaction check
---> Package SDL.x86_64 0:1.2.14-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package
      Arch   Version            Repository                                 Size
================================================================================
Installing:
 VirtualBox-4.1
      x86_64 4.1.20_80170_el6-1 /VirtualBox-4.1-4.1.20_80170_el6-1.x86_64 131 M
Installing for dependencies:
 SDL  x86_64 1.2.14-3.el6       ol6_latest                                192 k

Transaction Summary
================================================================================
Install       2 Package(s)

Total size: 131 M
Total download size: 192 k
Installed size: 131 M
Is this ok [y/N]: y
Downloading Packages:
SDL-1.2.14-3.el6.x86_64.rpm                              | 192 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : SDL-1.2.14-3.el6.x86_64                                      1/2 
  Installing : VirtualBox-4.1-4.1.20_80170_el6-1.x86_64                     2/2 

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules [  OK  ]
Trying to register the VirtualBox kernel modules using DKMS [FAILED]
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
  (Look at /var/log/vbox-install.log to find out what went wrong)
  Verifying  : VirtualBox-4.1-4.1.20_80170_el6-1.x86_64                     1/2 
  Verifying  : SDL-1.2.14-3.el6.x86_64                                      2/2 

Installed:
  VirtualBox-4.1.x86_64 0:4.1.20_80170_el6-1                                    

Dependency Installed:
  SDL.x86_64 0:1.2.14-3.el6                                                     

Complete!
[root@localhost Downloads]# ^C
[root@localhost Downloads]# 
You can see that I did the install as root and I am still getting the same error message about the "DKMS" so I am not sure what else to do at this point. Any other suggestion would help.
Ratman
Posts: 18
Joined: 17. Aug 2012, 22:24

Re: DKMS - RC=-1908 on Linux (Oracle 6.3)

Post by Ratman »

Here is the only error message that I am getting in the log file for Virtualbox.

Code: Select all

Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
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 - RC=-1908 on Linux (Oracle 6.3)

Post by Perryg »

The error is telling you that you need to install the kernel-headers & kernel-devel
Post Reply