should but don't: /etc/init.d/vboxdrv setup

Discussions related to using VirtualBox on Linux hosts.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: should but don't: /etc/init.d/vboxdrv setup

Post by Perryg »

@nobodie,

There have been reports of dependency issues with F12 and VBox but I have no idea if this is your problem. http://www.virtualbox.org/ticket/5569
You should add your name to this ticket if you feel it applies to you.
As I said the dkms is not needed to make this work it is just to make you life easier and you can add it back in once this situation has been resolved.
As for the deprecation, it is in some OSes that I use. I have no idea why but it is no longer available via their local repo.
BobTheBull
Posts: 30
Joined: 25. Nov 2009, 19:25
Primary OS: openSUSE
VBox Version: OSE other
Guest OSses: WinXP

Re: should but don't: /etc/init.d/vboxdrv setup

Post by BobTheBull »

I was getting the same message in opensuse 11.2. I searched the suse forum for this problem and found the following, posted by andreas ohlsson, which worked for me (of course if you are using a different distro, the packages might not be the same; the point is you probably don't have something installed needed to recompile. Check the install log):

I had a similar issue...since I have been running VBOX on 11.1 for a long time, I was puzzled when I ran into problems after installing VBOX 3.0.12 on 11.2.



Following solved my issue:

install kernel-headers
install kernel-syms
install make
install gcc

add users to vbox group

compile: /etc/init.d/vboxdrv setup

keep an eye on:vbox-install.log
in /var/log

hopes it helps you!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: should but don't: /etc/init.d/vboxdrv setup

Post by Sasquatch »

BobTheBull, that's just the problem with Fedora 12, that doesn't seem to help/work.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
nobodie
Posts: 51
Joined: 20. May 2007, 11:46
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: winxp, pclinux, kubuntu, jolicloud, arch, solaris,
Location: Suzhou,Jiangsu, China
Contact:

Re: should but don't: /etc/init.d/vboxdrv setup

Post by nobodie »

sorry, but i've been buried under work, still am but also desperate to get this solved. I read the last two posts which still don't seem to cover the issues i have. yes, gcc is install and the PAE-devel kernel as noted. No i haven't installed the OSE version since i often use USB and it used to be that USB wasn't available in OSE, (maybe still is that way I haven't checked).

I have also reinstalled VB, a number of times and believe i have focused the problem down to the pointers for vboxdrv. The makefile points it to /usr/src/linux. the modules were in /usr/src/kernel. fine (i changed the pointer) but when I installed kernel-PAE-devel it failed to install to /usr/src/kernel or /linux. something seems to be confused in the install instruction set, but without the makefile working i'm dead in the water.
as in the past, the future is in eggs
nobodie
Posts: 51
Joined: 20. May 2007, 11:46
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: winxp, pclinux, kubuntu, jolicloud, arch, solaris,
Location: Suzhou,Jiangsu, China
Contact:

Re: should but don't: /etc/init.d/vboxdrv setup

Post by nobodie »

i ran another attempt with vboxdrv and it is trying to make the makefile now with gcc, here was the error from that :

Makefile:150: Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.
make KBUILD_VERBOSE=1 -C /usr/src/kernels/2.6.31.5-127.fc12.i686.PAE SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0


i am not sure what directory i need to be in to run that make, in fact i am over my head and out of time , any suggestions for this?
as in the past, the future is in eggs
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: should but don't: /etc/init.d/vboxdrv setup

Post by Perryg »

The makefile points it to /usr/src/linux. the modules were in /usr/src/kernel. fine (i changed the pointer) but when I installed kernel-PAE-devel it failed to install to /usr/src/kernel or /linux. something seems to be confused in the install instruction set, but without the makefile working I'm dead in the water.
After reading this and looking at my F12 (guest) I would change the script back to the way it was and if the location is different I would use a symlink instead. It may be that it now can not find the headers, which produces this same message for me if they are wrong or missing. Since you changed the location of the script I don't know what it would do.

Either way this may be out of my league since I do not run Fedora as host. You should post this with bugtracker.
nobodie
Posts: 51
Joined: 20. May 2007, 11:46
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: winxp, pclinux, kubuntu, jolicloud, arch, solaris,
Location: Suzhou,Jiangsu, China
Contact:

Re: should but don't: /etc/init.d/vboxdrv setup

Post by nobodie »

ok, well, i reset the makefile to the original setting and it has stopped trying to make it and has returned to the original fail message with /etc/src/vboxdrv-3.0.12, so i'm back to square 1. now i should bug it up, ok, thanks for all the fish
as in the past, the future is in eggs
nobodie
Posts: 51
Joined: 20. May 2007, 11:46
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: winxp, pclinux, kubuntu, jolicloud, arch, solaris,
Location: Suzhou,Jiangsu, China
Contact:

Re: should but don't: /etc/init.d/vboxdrv setup

Post by nobodie »

as for sym linking, there were, at the beginning of this, symlinks to something that didn't connect to anything useful since it still failed. oh well, i'm thinking about reloading F12 and then starting from scratch. i checked th eforums at fedora and didn't find any mention of this problem there (when it first occurred i went there first thinking it was probably f12 since f11 worked fine, then came here because there were no other forum posts. still don't see this problem anywhere else. which is surprising.
as in the past, the future is in eggs
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: should but don't: /etc/init.d/vboxdrv setup

Post by Sasquatch »

This type of problem was noted about the GA a few times. If Fedora puts the headers in /usr/src/kernel and VB looks at /usr/src/linux, symlink kernel to linux and it should be done, right?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
firefexx
Posts: 29
Joined: 14. Aug 2009, 12:56
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: Windows
Location: /home

Re: should but don't: /etc/init.d/vboxdrv setup

Post by firefexx »

I have the same problem. You're not alone :D

Is the problem solved now?
There are only 10 types of people in the world: Those who understand binary and those who don't.
nobodie
Posts: 51
Joined: 20. May 2007, 11:46
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: winxp, pclinux, kubuntu, jolicloud, arch, solaris,
Location: Suzhou,Jiangsu, China
Contact:

Re: should but don't: /etc/init.d/vboxdrv setup

Post by nobodie »

Perry et al:
just after i sent the last post i got an update notification and checked the update which included a number of kernel updates. hmmmm. sure enough that solved the problem entirely, Vbox is rocking again and what i've always said about fedora still holds, bleeding edge is bleeding edge, if you want stable and safe and works all the time on everything go to debian or red hat, fedora is for the pioneers and that's why i like it. The exercise was good for me and i really appreciate your help through the process.

love and peace up
nobodie
as in the past, the future is in eggs
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: should but don't: /etc/init.d/vboxdrv setup

Post by Perryg »

Man I just knew it!
Glad you are at it and going strong now.
firefexx
Posts: 29
Joined: 14. Aug 2009, 12:56
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: Windows
Location: /home

Re: should but don't: /etc/init.d/vboxdrv setup

Post by firefexx »

Have you change any link, path or something else before you've updated your system?
I'm still getting the Error Message with the hint to execute "/etc/init.d/vboxdrv setup", but this task fails by the step "Recompiling VirtualBox kernel module".

Any idea what I have to do?

EDIT:
The guys from the German Fedora forum helped me to find a solution:

Code: Select all

yum install kernel-PAE-devel
yum install gcc
/etc/init.d/vboxdrv setup
There are only 10 types of people in the world: Those who understand binary and those who don't.
scoobythedoo
Posts: 1
Joined: 14. Feb 2010, 22:50
Primary OS: Fedora other
VBox Version: OSE Fedora
Guest OSses: Win Xp

Re: should but don't: /etc/init.d/vboxdrv setup

Post by scoobythedoo »

Hi everybody,

just wanted to add that I also had this problem. The solution was:
1. reboot with updated kernel
2. install kernel-header package
3. install kernel-PAE-devel package
4. install dkms package (maybe not necessary)
5. install gcc package
6. /etc/init.d/vboxdrv setup

and it finally worked! Just wanted to share my experience. Hope it will save smb some time.

Schuss, Egor
wgregori
Posts: 8
Joined: 26. Jan 2010, 15:55
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Win2000, Linux

Re: should but don't: /etc/init.d/vboxdrv setup

Post by wgregori »

I'm having the same problem and I've installed all the libraries mentioned here with no luck.

How do I update my kernel? I've seen a number of posts mentioning this.



scoobythedoo wrote:Hi everybody,

just wanted to add that I also had this problem. The solution was:
1. reboot with updated kernel
2. install kernel-header package
3. install kernel-PAE-devel package
4. install dkms package (maybe not necessary)
5. install gcc package
6. /etc/init.d/vboxdrv setup

and it finally worked! Just wanted to share my experience. Hope it will save smb some time.

Schuss, Egor
Post Reply