scientificlinuxforum.org QR code
Scientific Linux Forum.org



  Reply to this topicStart new topicStart Poll

> VirtualBox PUEL edition problem (Solved)
redman
 Posted: Apr 8 2011, 07:17 PM
Quote Post


SLF Admin
********

Group: Admins
Posts: 1662
Member No.: 2
Joined: 8-April 11









joutlan was so kind as to post this information on the "old" forum:

QUOTE

I've installed VB many many times on various distros.  I have DKMS installed, but not sure if I have the right header files installed.  When trying to launch a virtual machine on SL6 x32 (I have it running fine on another laptop, SL6 x64) I get the well know error that I need to run '/etc/init.d/vboxdrv setup' to build the module.  When I go to build the module as root, I get this:

CODE
[root@localhost ~]# /etc/init.d/vboxdrv setup
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.32-71.18.2.el6.i686 cannot be found at
/lib/modules/2.6.32-71.18.2.el6.i686/build or /lib/modules/2.6.32-71.18.2.el6.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)
[root@localhost ~]#


my /var/log/vbox-install.log contains the following:


CODE
Uninstalling modules from DKMS
 removing old DKMS module vboxhost version  4.0.4

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

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

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:167: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.


I had no problems on my Precision with SL6 x64 so this is throwing me off a little.  Anyone see what's wrong?

thanks

Solved:  do this:

CODE
yum install kernel-devel


this was a 'duh' moment for me, but I'm leaving it up in case someone else overlooks those packages.  I thought I had it solved by installing headers like in debian. smile.gif


--------------------
What is SL? - Forum Rules - Info on 3rd Party Repos - How to post images - How to post large text / config files

Desktop: Asus P5QPL-AM, Intel Dual-Core E6500, 4GB DDR2, Asus GeForce GT 430 1GB, SL6.4 x86_64
Test box: Intel S5000PSL, 2x Intel Xeon E5310, 8GB ECC DDR2 FB-Dimm, Asus GeForce GT 220 1GB, SL6.4 x86_64
PMEmail Poster
^
Trespasser
 Posted: Oct 9 2011, 02:56 AM
Quote Post


SLF Rookie
*

Group: Members
Posts: 18
Member No.: 77
Joined: 20-April 11









joutlan, redman, or anyone who knows,

I found a dkms howto for fc12 and used it to set up my GeForce 9300 (laptop) using Nvidia's 280.13 release. Well, we had a kernel update a few days back and, to my surprise, my card went south instead of dkms building a new module. I've tried using elrepo's 280.13 packages but for some reason desktop effects get turned off, and I can't turn them back on, once I reboot, so they don't work for me. I just did a manual install of NVIDIA-Linux-x86-280.13.run and as usual it was successful. Desktop-effects, compiz, cairo-dock, and emerald work fine.

What I would like to know is what structure was your dkms.conf file plus any other steps you used to get dkms to build a new module when a kernel update occurs.

BTW, I have all the necessary build files installed...at least I assume I do. If you use RPMForge's dkms file it appears to drag in everything that is needed.

Thanks for any help on this...smile.gif.

Later....

Bob
PM
^
U308
 Posted: Oct 9 2011, 11:25 AM
Quote Post


SLF Advocate
*****

Group: Members
Posts: 486
Member No.: 32
Joined: 11-April 11









Hi Trespasser,

Wow, I don't know what to make of that. Have you got these installed......

make automake gcc gcc-c++ kernel-devel

Also there is a new driver which I installed from elrepo ..

user posted image

http://scientificlinuxforum.org/index.php?showtopic=15&st=0&#entry7650

Regards (Ocky)
PM
^
Trespasser
 Posted: Oct 9 2011, 06:05 PM
Quote Post


SLF Rookie
*

Group: Members
Posts: 18
Member No.: 77
Joined: 20-April 11









QUOTE (U308 @ Oct 9 2011, 06:25 AM)
Hi Trespasser,

Wow, I don't know what to make of that. Have you got these installed......

make automake gcc gcc-c++ kernel-devel

Also there is a new driver which I installed from elrepo ..

user posted image

http://scientificlinuxforum.org/index.php?showtopic=15&st=0&#entry7650

Regards (Ocky)


Hey Ocky, or U308...smile.gif
No I didn't have automake installed nor gcc-c++, but they are now. Thanks.

I have no idea why elrepo's nvidia packages disable the desktop-effects switch, but doing a manual install of the nvidia driver does re-enable it (I don't use fusion-icon).

My procedure for installing the nvidia driver and utilizing dkms looks like this (when I was using 280.13...I'm using 285.05.09 now)...

1) Install RPMForge repo package for your respective architecture (32 or 64 bit)

2) Install dkms (this will bring in all the necessary other packages)

3) Add this to the end of the kernel line in /boot/grub/grub.conf

rdblacklist=nouveau nouveau modeset=0 vga=31B

and add blacklist nouveau to blacklist.conf in /etc/modprobe.d

Here is a list of VGA modes

Replace 31B with the desired mode:

1600x1200 - 346
1280x1024 - 31B
1400x1050 - 348
1024x768 - 318
800x600 - 315

4) Since I have a copy of my Nvidia xorg.conf file I now move xorg.conf to /etc/X11 "mv xorg.conf /etc/X11" (you can skip this step if you prefer to let the Nvidia manual install process do it for you)

5) Place NVIDIA-Linux-x86-280.13.run in Home folder
5a) Place NVIDIA-Linux-x86_64-280.13.run in Home folder (64 bit)

6) Reboot

7) During reboot the process will stall out...hit ctrl-alt-f2 to gain prompt

8) Login as user, then as root

9) Enter "./NVIDIA-Linux-x86-280.13.run" and follow prompts until finished
9a) Enter "./NVIDIA-Linux-x86_64-280.13.run" (for 64 bit) and follow prompts until finished

10) Reboot

11) Then as root type "chkconfig dkms_autoinstaller on"

12) Next enter "mkdir /usr/src/nvidia-280.13"

13) Then, as user, extract Nvidia package "sh NVIDIA-Linux-x86-280.13.run -x"
13a) Then, as user, extract Nvidia package "sh NVIDIA-Linux-x86_64-280.13.run -x" (for 64 bit)

14) Next, create a file, as user, that instructs dkms on how to build and install the module. Name it "dkms.conf":

#
# /usr/src/nvidia-280.13/dkms.conf
# maybe add "&& make install" to MAKE[0]="make module" if it doesn't work
#

PACKAGE_NAME="nvidia"
PACKAGE_VERSION="280.13"
CLEAN="make clean"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_NAME[0]="nvidia"
MAKE[0]="make module"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video/"
AUTOINSTALL="yes"

# End

15) Place the dkms.conf file (you just created) in the extracted folder (NVIDIA-Linux-x86-280.13 or NVIDIA-Linux-x86_64-280.13, if 64 bit)

16) Then as root, type mv NVIDIA-Linux-x86-280.13/* /usr/src/nvidia-280.13
16a) Then as root, type mv NVIDIA-Linux-x86_64-280.13/* /usr/src/nvidia-280.13 (64 bit)

17) The last thing to do is to add the module to the dkms database "dkms add -m nvidia -v 280.13"

If anyone has any suggestions I would appreciate it.

Thanks.

Later...

Bob
PM
^
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll