LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   Using VirtualBox in OpenSuSE 12.1 (http://www.linuxquestions.org/questions/suse-novell-60/using-virtualbox-in-opensuse-12-1-a-927266/)

TroN-0074 02-02-2012 04:21 PM

Using VirtualBox in OpenSuSE 12.1
 
I know there is another post already with the same problem however I looked it and it didnt help my problem.

Which is when I try to run VirtualBox I get the following error
Quote:

kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv.
Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first.
This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

so I in run /etc/init.d/vboxdrv setup and I get

Quote:

# /etc/init.d/vboxdrv setup
WARNING: All config files need .conf: /etc/modprobe.d/50-sound.conf.save.1, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/50-sound.conf.save, it will be ignored in a future release.
WARNING: /etc/modprobe.d/50-sound.conf.save line 2: ignoring bad line starting with 'ptions'
WARNING: /etc/modprobe.d/50-sound.conf.save.1 line 2: ignoring bad line starting with 'ptions'
WARNING: /etc/modprobe.d/50-sound.conf.save.1 line 8: ignoring bad line starting with 'tions'
Stopping VirtualBox kernel modules done
Uninstalling old VirtualBox DKMS kernel modules done
Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 3.1.0-1.2-desktop cannot be found at
/lib/modules/3.1.0-1.2-desktop/build or /lib/modules/3.1.0-1.2-desktop/source.
failed
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules failed
(Look at /var/log/vbox-install.log to find out what went wrong)
I installed DKMS from Yast and still get the error,
Anybody has a workaround this problem? I will appreciate it.
Thank you.

kilgoretrout 02-03-2012 09:16 AM

Quote:

Error! Your kernel headers for kernel 3.1.0-1.2-desktop cannot be found at
/lib/modules/3.1.0-1.2-desktop/build or /lib/modules/3.1.0-1.2-desktop/source.
failed
(Failed, trying without DKMS)
That, in a nutshell, is most likely the problem. You have to install the kernel headers for your current kernel to compile the virtualbox kernel modules. I'm not that familiar with Suse, but I would look in your package manager and see if you can find the kernel header package and install it. A quick google reveals that the package name will be something like "linux-kernel-headers-<kernel version number>". Make sure you install the one that corresponds to your kernel. Afterwards, retry your vboxdrv setup command and see if the kernel modules will compile.

Knightron 03-02-2012 01:35 AM

In opensuse it's called kernel-devel i believe

m1qe 03-02-2012 09:13 AM

Actually in opensuse it's called kernel-source

Knightron 03-02-2012 06:16 PM

Quote:

Originally Posted by m1qe (Post 4616859)
Actually in opensuse it's called kernel-source

bull.
Here it is directly from Yast.
Code:

kernel-devel - Development files needed for building kernel modules

Kernel-level headers and Makefiles required for development of external kernel modules.
Source Timestamp: 2012-01-27 09:55:10 +0100 GIT Revision: efb5ff410eab35d86ab48d359d3edf177b1d82d5 GIT Branch: openSUSE-12.1

Good luck Tron. You will want dkms and development tools too if you don't have them installed.

m1qe 03-03-2012 02:47 AM

My bad.

Good luck Tron

TroN-0074 03-04-2012 08:09 PM

Thank you since I could not get this issue resolved I switched to kvm and used quemu to created a virtual disk in my laptop.
I havent installed anything however I have a virtual disk of 15 GB ready to test a OS. I was thinking to install OpenIndiana in there to test their world famous ZFS. Or I was thinking to install MINIX 3. I havent decided yet

Thank you.


All times are GMT -5. The time now is 03:10 AM.