Bug 588 - module for VirtualBox is missing in 2.6.38.1-desktop-1.mga
Summary: module for VirtualBox is missing in 2.6.38.1-desktop-1.mga
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-29 15:03 CEST by Kristoffer Grundström
Modified: 2011-03-29 17:22 CEST (History)
1 user (show)

See Also:
Source RPM: kernel-2.6.38.1-desktop-1.mga
CVE:
Status comment:


Attachments
Here's the proof of what's installed (33.59 KB, image/png)
2011-03-29 15:29 CEST, Kristoffer Grundström
Details

Description Kristoffer Grundström 2011-03-29 15:03:26 CEST
Description of problem: I installed Virtualbox & ran it to create a machine. When executing the machine I see the message that I should do '/etc/init.d/vboxdrv setup' as root.

I went to Terminal & logged in as root.
Wrote that command & got:

-bash: /etc/init.d/vboxdrv setup: File or directory doesn't exist

Version-Release number of selected component (if applicable): 4.0.4

How reproducible: Everytime.

Steps to Reproduce:
1. Open Terminal.
2. Login as root.
3. Type urpmi virtualbox & press Enter (or use the graphical way if you prefer that way instead).
4. See that dkms-virtualbox gets installed as well.
5. Run virtualbox.
6. Create a machine & attach an ISO-image.
7. Run the machine.
8. A window will appear telling you the following thing:

"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. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary."

Conlusion:

I found the sh-file for VBox by typing locate VBox.sh & found it in /usr/share/virtualbox 

After that I tried to execute byt doing the following:

[kristoffer@ip7-12 virtualbox]$ ./VBox.sh
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (2.6.38.1-desktop-1.mga) or it failed to
         load. Please recompile the kernel module and install it by

           sudo /etc/rc.d/init.d/virtualbox start

         You will not be able to start VMs until this problem is fixed.
Unknown application - VBox.sh

Output of rpm -qa | grep virtualbox is:

dkms-virtualbox-4.0.4-6.mga1
virtualbox-doc-4.0.4-6.mga1
virtualbox-4.0.4-6.mga1

Reproducible: 

Steps to Reproduce:
Kristoffer Grundström 2011-03-29 15:03:50 CEST

Source RPM: kernel => kernel-2.6.38.1-desktop-1.mga

Kristoffer Grundström 2011-03-29 15:04:00 CEST

Hardware: All => i586

Comment 1 Kristoffer Grundström 2011-03-29 15:14:07 CEST
Problem is solved when you boot to the next kernel.
The boot-sequence will install virtualbox-module.

Should I close as fixed?
Comment 2 Kristoffer Grundström 2011-03-29 15:29:58 CEST
Created attachment 172 [details]
Here's the proof of what's installed
Comment 3 Kristoffer Grundström 2011-03-29 15:30:25 CEST
Still no VirtualBox-dir in /usr/bin/
Comment 4 Kristoffer Grundström 2011-03-29 15:44:11 CEST
Had to reload the file-list in rpmdrake to see the guest-additions-package for Virtualbox to, but it has conflicts when installing the 6th-version of 4.04 'cause of missing kmod (vboxdrv).
Comment 5 Ahmad Samir 2011-03-29 17:13:59 CEST
You only need the virtualbox-guest-additions package if you're installing Mageia _inside_ a virtual machine, i.e. when Mageia is the guest OS.

For the time being (and as with development releases) you need the -devel-latest package matching the kernel flavour you have, this will enable DKMS to build the necessary kernel modules when you boot a new kernel.

Status: NEW => RESOLVED
Resolution: (none) => INVALID
Severity: major => normal

Comment 6 Frank Griffin 2011-03-29 17:22:14 CEST
If you happened to install a new kernel before dkms-virtualbox, it probably compiled against the new kernel devel files, producing a module in the /lib/modules for the new kernel, not the one you were running under.  That would make it impossible to load the new module until you rebooted with the new kernel.

However, it should have at least compiled the driver module during install.  Did you notice if it rebuilt the module during the reboot ?

CC: (none) => ftg


Note You need to log in before you can comment on or make changes to this bug.