LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing VirtualBox (http://www.linuxquestions.org/questions/linux-newbie-8/installing-virtualbox-927652/)

TroN-0074 02-04-2012 08:45 PM

Installing VirtualBox
 
I am trying to install Virtualbox so I can test non Linux guest, such as Minix, OpenIndiana, NetBSD, etc.

Howerver when I start VB I keep getting and error that it cant find the modules in the kernel to run VB Here is a link to the other thread I had started on a sub forum http://www.linuxquestions.org/questi...12-1-a-927266/

I took a look to the vbox-install.log file and this is how it looks like

Quote:

Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.1.8

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

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

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:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
Kernel I am using is 3.1.9-1.4-desktop
I will appreciate any advice, thank you!

Knightron 02-04-2012 09:01 PM

You need to tell us what distrobution you are using. You need dkms installed, and compiling tools too, they can be named differently depending on what distro you're using.

TroN-0074 02-04-2012 09:20 PM

Thank you this is in OpenSuSE 12.1/Gnome 3.x I alredy installed DKMS and I have gcc as well.
I will appreciate all advices

frankbell 02-04-2012 09:29 PM

Quote:

Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.
It sounds as if DKMS is complaining that the kernel source code is not present. Many distros do not install kernel sources by default.

Edit: You should be able to find them in the repos. The command uname -r will tell you which kernel version you have.

EDDY1 02-04-2012 09:35 PM

How many kernels do you have, because you sad you installed kernel headers.

TroN-0074 02-04-2012 10:01 PM

Quote:

Originally Posted by TroN-0074 (Post 4593988)
Kernel I am using is 3.1.9-1.4-desktop

As far as I know that is the only kernel I have.

Thank you for replaying, I appreciate all advices

Knightron 02-04-2012 10:08 PM

Hey, i've just realized what you're doing. You're trying to install virtual box from the opensuse repo aren't you? I've never had any success from the official repos. I highly sugest you use the virtual box repo, it is so much easier, and you get the newest updates. When i was running opensuse 12.1 not long ago, i did this with no problems, but before that i couldn't get the official repo version to work either.


All times are GMT -5. The time now is 01:56 PM.