LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Oracle VM Virtual box on fedora 14 (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/oracle-vm-virtual-box-on-fedora-14-a-871783/)

cardineau 03-29-2011 03:11 PM

Oracle VM Virtual box on fedora 14
 
Installed VB on Fedora 14 ... all indications during installation normal. Tried to start VB and get this message:

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.


I then installed DKMS and executed the suggested file and got more errors about unloading DKMS and more problems. I need help or should I uninstall VB and try another Virtulization program?

jefro 03-29-2011 07:59 PM

I have played with that and after a while you can get it working. DKMS is a way to fix VB when your distro updates stuff so that VB also knows the change.

Personally I'd consider vmplayer but you can continue to try working this out. All the errors are well documented on other posts, I know because I had those too. Let us know if you want to continue or change.

carltm 03-29-2011 08:24 PM

Did you try running "/etc/init.d/vboxdrv setup"? That is the
command that compiles the kernel driver.

All dkms does is check at boot time if you have the driver
compiled for the current kernel. If it has not been compiled,
it will do that for you automatically. So let's start by
verifying that you have all the requirements to compile it
successfully.

cardineau 03-29-2011 10:10 PM

OK here is what I got after installing dkms and then executing the /etc/init.d/vboxdrv setup


[ken@ken ~]$ su
Password:
[root@ken ken]# /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.35.6-45.fc14.i686 cannot be found at
/lib/modules/2.6.35.6-45.fc14.i686/build or /lib/modules/2.6.35.6-45.fc14.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@ken ken]#



I will now go to /var/log/vbox-install.log and return with whatever I find.

cardineau 03-29-2011 10:14 PM

here is the install log from /var/log/vbox-install.log



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.

cardineau 03-30-2011 08:21 PM

I would like to install this program, but if it's too tuff, I'll just reboot in windows. Seems everything I try to install in Linux has a problem.

thuongquoc 03-30-2011 09:21 PM

You should try in your host:
Quote:

su
root@yourhost:yum install dkms gcc
root@yourhost:/etc/init.d/vboxdrv setup
If you install Virtual Machine Additions you should install dkms only.

cardineau 03-31-2011 03:43 AM

thuongquoc

I don't understand what you mean. You would have to be very explicit with me as I am a real novice.

Thank you
cardineau

thuongquoc 03-31-2011 12:33 PM

To start a virtual machine in VirtualBox your system must be installed DKMS and GCC. You can do by using Terminal.
First of all, open your Terminal and type:su then enter your password to become root.
Second, type yum install dkms gcc into your Terminal to install DKMS and GCC.
Final, type /etc/init.d/vboxdrv setup. After that your VM should be started.
If you install Virtual Machine Additions in your VM you should install dkms.

cardineau 03-31-2011 09:20 PM

thuongquoc

Thank you for your response. I have done exactly as you have instructed. I still get the same results which I have posted above. I did open do to the "Build" script and "Source" scripts which point to the Kernal modules and they both state that they are broken and that the directory to which they point does not exist. I don't know how to install a kernal module in a certain directory to maybe fix this part. It is all a bit overwhelming to me. Thank you again and I do appreciate your help. From your name are you Vietnamese? We have a large Vietnamese population here in New Orleans and my wife is from South East Asia.

thuongquoc 03-31-2011 09:57 PM

Did you do yum update? I have tried to install the newest VirtualBox in a fresh Fedora 14 in several time. It was successful.
I'm a first-year student in university in Vietnam.
I'm a fan of Fedora, too :) Why don't you try Fedora 15 GNOME 3 Alpha? I think it's very good. Beta Release will be publish on 2011-04-19.

cardineau 04-01-2011 05:39 AM

I shall try a new edition of Fedora as well as a new download of Virtual box. That wont happen until next week. I shall let you know the results.

thanks very much for your help and suggestions.

I am an 80 year old from New Orleans who has spent a few years in Asia. I loved it.

thuongquoc 04-01-2011 11:12 AM

May you tell me the results of starting VirtualBox after you did
Quote:

yum update
and
Quote:

/etc/init.d/vboxdrv setup
again.


All times are GMT -5. The time now is 07:31 PM.