Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd September 2010, 10:17 PM
Genesis Offline
Registered User
 
Join Date: Sep 2010
Posts: 3
linuxfedorafirefox
Virtual Box Kernel Problem?

Hi, new to the forums, new to Fedora and linux.
Anyway I installed Fedora this morning, got it set up and customized, added some programs, but so far I haven't been able to get Virtual Box to run.

I downloaded it and installed it. but when i try to run the setup with
/etc/init.d/vboxdrv setup

I get this message.
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)

when i go to that file this is written inside:
Attempting to install using DKMS
removing old DKMS module vboxdrv version 3.2.8

------------------------------
Deleting module version: 3.2.8
completely from the DKMS tree.
------------------------------
Done.

Creating symlink /var/lib/dkms/vboxdrv/3.2.8/source ->
/usr/src/vboxdrv-3.2.8

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.31.5-127.fc12.i686.PAE cannot be found at
/lib/modules/2.6.31.5-127.fc12.i686.PAE/build or /lib/modules/2.6.31.5-127.fc12.i686.PAE/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

I've looked all over the internet, and i found a couple clues. It seems like it may be a problem with my kernel, and other people had to remove and switch to a different one for it to run properly.

Don't know how to do it. heres some info:
Release 12 (constantine)
Kernel Linux 2.6.31.5-127.fc12.i686.PAE
GNOME 2.28.2

As I'm new to this forum, I skimmed the rules, but please let me know if I'm posting in the wrong category or breaking some sort of rule. Thanks in advance.
Reply With Quote
  #2  
Old 2nd September 2010, 10:38 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: Virtual Box Kernel Problem?

Hello,

/etc/init.d/vboxdrv setup is incorrect, should be start , stop, restart, status

I looked at my setup vboxdrv is not in /etc/init.d

# find / -name vboxdrv
/sys/devices/virtual/misc/vboxdrv
/sys/bus/platform/drivers/vboxdrv
/sys/class/misc/vboxdrv
/sys/module/vboxdrv
/dev/vboxdrv
/dev/.udev/names/vboxdrv
/usr/src/OLD/debug/VirtualBox-OSE-kmod-3.1.4/_kmod_build_2.6.32.16-141.fc12.x86_64/vboxdrv
/usr/src/debug/VirtualBox-OSE-kmod-3.1.4/_kmod_build_2.6.32.19-163.fc12.x86_64/vboxdrv
#



How did you install ?

Last edited by scott32746; 2nd September 2010 at 10:44 PM.
Reply With Quote
  #3  
Old 2nd September 2010, 10:45 PM
Genesis Offline
Registered User
 
Join Date: Sep 2010
Posts: 3
linuxfedorafirefox
Re: Virtual Box Kernel Problem?

http://www.thelinuxdaily.com/2009/10...a-12-tutorial/

I was loosely following this guide.

hit this snag on the 4th step.
Reply With Quote
  #4  
Old 2nd September 2010, 10:50 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: Virtual Box Kernel Problem?

WoW,
Sorry, I think the setup is an error.
try start not setup and see what happens.

But I also think vboxdrv is not in the correct place.
see if there anything else that may start vbox in /etc/init.d

Last edited by scott32746; 2nd September 2010 at 10:53 PM.
Reply With Quote
  #5  
Old 2nd September 2010, 10:54 PM
Genesis Offline
Registered User
 
Join Date: Sep 2010
Posts: 3
linuxfedorafirefox
Re: Virtual Box Kernel Problem?

alright when i tried start this was the response:

Starting VirtualBox kernel module [FAILED]
(modprobe vboxdrv failed. Please use 'dmesg' to find out why)
Reply With Quote
  #6  
Old 3rd September 2010, 12:43 AM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: Virtual Box Kernel Problem?

did you run dmesg ?

You may need to remove virtual box and reinstall it.

To see what is installed
# rpm -qva |grep -i virtual

To remove a rpm
# remove -e XXXX.rpm
Reply With Quote
  #7  
Old 3rd September 2010, 02:32 AM
motnahp00
Guest
 
Posts: n/a
linuxfedorafirefox
Re: Virtual Box Kernel Problem?

Hey Genesis,

This is the way I install VirtualBox and I don't have any problems.

# yum install gcc dkms -y
# cd YourVirtualBoxLocation
# rpm -Uvh VirtualBox-3.2-3.2.8_64453_fedora13-1.i686.rpm
# /etc/init.d/vboxdrv

I hope this helps.
Reply With Quote
  #8  
Old 3rd September 2010, 04:43 AM
dth4h's Avatar
dth4h Offline
Registered User
 
Join Date: Mar 2009
Posts: 182
linuxchrome
Re: Virtual Box Kernel Problem?

Ya like motnahp00 said. You need to install gcc dkms and kernel-devel or kernel-PAE-devel if you have a PAE kernel. If you have 32 bit Fedora installed then most likely you have a PAE kernel.
To install the packages run this as root:
yum install gcc dkms kernel-PAE-devel

Take out the PAE if you dont have a PAE kernel.

After you install the packages run this again:
/etc/init.d/vboxdrv setup

You need the three packages that I listed installed for the command above to work. My guess is that you don't have gcc installed.
Reply With Quote
  #9  
Old 3rd September 2010, 11:01 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
linuxredhatfirefox
Re: Virtual Box Kernel Problem?

Pay attention to the virtualbox log file also. It will be in /var/log. There are usually very useful clues there. Getting virtualbox to run should generally be very easy.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #10  
Old 3rd September 2010, 11:19 AM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
linuxredhatfirefox
Re: Virtual Box Kernel Problem?

Quote:
Originally Posted by Genesis View Post
Hi, new to the forums, new to Fedora and linux.
Anyway I installed Fedora this morning, got it set up and customized, added some programs, but so far I haven't been able to get Virtual Box to run.

I downloaded it and installed it. but when i try to run the setup with
/etc/init.d/vboxdrv setup

I get this message.
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)

when i go to that file this is written inside:
Attempting to install using DKMS
removing old DKMS module vboxdrv version 3.2.8

------------------------------
Deleting module version: 3.2.8
completely from the DKMS tree.
------------------------------
Done.

Creating symlink /var/lib/dkms/vboxdrv/3.2.8/source ->
/usr/src/vboxdrv-3.2.8

DKMS: add Completed.

Error! Your kernel source for kernel 2.6.31.5-127.fc12.i686.PAE cannot be found at
/lib/modules/2.6.31.5-127.fc12.i686.PAE/build or /lib/modules/2.6.31.5-127.fc12.i686.PAE/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.


I've looked all over the internet, and i found a couple clues. It seems like it may be a problem with my kernel, and other people had to remove and switch to a different one for it to run properly.

Don't know how to do it. heres some info:
Release 12 (constantine)
Kernel Linux 2.6.31.5-127.fc12.i686.PAE
GNOME 2.28.2

As I'm new to this forum, I skimmed the rules, but please let me know if I'm posting in the wrong category or breaking some sort of rule. Thanks in advance.
You need to install a few more things before this will work, and it will work. First, you're apparently using a PAE kernel. That's fine, but you need the correct kernel source and a few other things. Do the following from the command line:
Code:
su
<password>
yum install kernel-PAE-devel gcc
yum groupinstall 'Development Tools'
The single quotes around Development Tools is important. Once those are installed run
Code:
/etc/init.d/vboxdrv setup
Try VirtualBox now and please post back with results.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #11  
Old 3rd September 2010, 12:46 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: Virtual Box Kernel Problem?

I have removed my old virtualbox and installed the newest version.
One of the option in /etc/init.d/vboxdrv is setup and was able to run it ok.
Never know setup under /etc/init.d before.


[init.d]# sh vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Removing old VirtualBox netadp kernel module [ OK ]
Removing old VirtualBox netflt kernel module [ OK ]
Removing old VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [ OK ]
Starting VirtualBox kernel module [ OK ]
[init.d]#
Reply With Quote
  #12  
Old 15th September 2010, 10:23 PM
trailer8713 Offline
Registered User
 
Join Date: Apr 2008
Posts: 130
linuxfirefox
Re: Virtual Box Kernel Problem?

I have followed this thread done everything suggested and this in my end result
#'/etc/sysconfig/modules/VirtualBox-OSE.modules'
ERROR: modinfo: could not find module vboxdrv
ERROR: modinfo: could not find module vboxnetflt
ERROR: modinfo: could not find module vboxnetadp
Any other idea's my daughter wants windows XP in a VM so she can run Itunes for her touch this is on a 32 bit Fedora 13 install

---------- Post added at 04:23 PM CDT ---------- Previous post was at 04:20 PM CDT ----------

# /etc/init.d/vboxdrv setup
bash:/etc/init.d/vboxdrv: No such file or directory
Reply With Quote
  #13  
Old 15th September 2010, 10:26 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 48
Posts: 1,082
windows_xp_2003firefox
Re: Virtual Box Kernel Problem?

Hello,
post output from

# rpm -qva |grep -i virtual*
# ls -l /etc/init.d/vboxdrv
Reply With Quote
  #14  
Old 15th September 2010, 11:27 PM
trailer8713 Offline
Registered User
 
Join Date: Apr 2008
Posts: 130
linuxfedorafirefox
Re: Virtual Box Kernel Problem?

# rpm -qva |grep -i virtual*
VirtualBox-OSE-3.2.6-2.fc13.i686
kmod-VirtualBox-OSE-2.6.34.6-54.fc13.i686-3.2.6-1.fc13.6.i686
[root@jennifer jennifer]# ls -l /etc/init.d/vboxdrv
ls: cannot access /etc/init.d/vboxdrv: No such file or directory
Thank you for looking into this for me.
Reply With Quote
  #15  
Old 15th September 2010, 11:41 PM
forkbomb's Avatar
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,852
linuxgentoofirefox
Re: Virtual Box Kernel Problem?

Did you manually delete some files like the VBox init files? If the VirtualBox-OSE rpm was installed properly you should have init scripts related to VBox in /etc/init.d... unless you manually deleted them.

If you're doing this to allow syncing of an iPod with iTunes, please realize that Virtualbox OSE doesn't support USB emulation anyway (the Virtualbox USB implementation is closed source). If that's the only reason you're attempting to install Virtualbox this may all be in vain anyway.

Even if you install the PUEL release of Virtualbox (download it directly from the website; I'd remove OSE first), there's no guarantee you'll be able to do what you're intending. Even with the PUEL version, Virtualbox's emulation of a USB can be iffy.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner

Last edited by forkbomb; 15th September 2010 at 11:47 PM.
Reply With Quote
Reply

Tags
box, kernel, problem, virtual

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual disk images (virtual box - virtual machine manager) beaker_ Using Fedora 0 2nd July 2009 01:19 PM
Virtual-box-2.1.4 fix for Kernel-2.6.29-rc? SlowJet Fedora Focus 0 25th February 2009 10:02 PM
Virtual Box and Kernel theWayner Using Fedora 2 23rd May 2008 11:19 PM
problem creating a new virtual system with Virtual Machine Manager in Fedora 7 reboot Using Fedora 3 3rd June 2007 01:51 AM
kernel: Unable to handle kernel NULL pointer dereference at virtual address 0000000c pmzandbergen Using Fedora 15 27th September 2006 03:41 PM


Current GMT-time: 19:14 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat