Virtual Box can't insert module [Solved]

Discussion for all VM - Installing, Software, Problems

Moderator: Moderators

Re: Virtual Box can't insert module

Postby rooboy1984 » Tue Mar 16, 2010 5:38

Here's the lines from my modules.dep ... slightly different.

Code: Select all
# cat /lib/modules/2.6.31-sabayon/modules.dep | grep vbox
misc/vboxvideo.ko: kernel/drivers/gpu/drm/drm.ko kernel/drivers/i2c/i2c-core.ko
misc/vboxdrv.ko:
misc/vboxnetflt.ko: misc/vboxguest.ko misc/vboxdrv.ko
misc/vboxnetadp.ko: misc/vboxguest.ko
misc/vboxvfs.ko: misc/vboxguest.ko
misc/vboxguest.ko:
#


did a 'depmod -a' then attempted to ...
Code: Select all
# modprobe vboxguest
FATAL: Error inserting vboxguest (/lib/modules/2.6.31-sabayon/misc/vboxguest.ko): Invalid module format
# modprobe vboxnetflt
FATAL: Error inserting vboxnetflt (/lib/modules/2.6.31-sabayon/misc/vboxnetflt.ko): Invalid module format
#


Haven't been using Sabayon long, so it's not making a lot of sense right now
rooboy1984
Baby Hen
 
Posts: 3
Joined: Tue Mar 16, 2010 4:10

Re: Virtual Box can't insert module

Postby Fitzcarraldo » Tue Mar 16, 2010 6:07

_cnfss_ is the only person so far (apart from me) who has actually mentioned the specific version number of the packages installed. I repeat my earlier question: Which versions have you got installed? Do an equo search <package name> and paste the output here.

Anyway, I reckon it's a bug in the package app-emulation/virtualbox-guest-additions (see Gentoo Bugzilla Bug Report No. 277541), which I don't have installed and is not essential.

Try un-installing virtualbox-guest-additions, do another depmod and see whether the modprobe works then.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7328
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Virtual Box can't insert module

Postby rooboy1984 » Tue Mar 16, 2010 6:33

Looks like Fitzcarraldo is correct. I'm using Virtualbox-bin-3.1.4-r10 with guest additions as well.

Removing the package virtualbox-guest-additions-3.1.4 and then doing ...

Code: Select all
 # depmod -a
 # modprobe vboxnetflt
 # modprobe vboxnetadp
#


No errors

Seems that, if you're like me and need the guest additions, you're better off going back to 3.0.12 for now.

Thanks Fitzcarraldo.
rooboy1984
Baby Hen
 
Posts: 3
Joined: Tue Mar 16, 2010 4:10

Re: Virtual Box can't insert module

Postby Fitzcarraldo » Tue Mar 16, 2010 6:49

You're welcome.

To avoid doing a modprobe manually every time you reboot your PC, you can put the module names in the file /etc/conf.d/modules so that the modules are loaded automatically, as shown below:

Code: Select all
# cat /etc/conf.d/modules
# You can define a list modules for a specific kernel version,
# a released kernel version, a main kernel version or just a list.
#modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
#modules_2_6_23="tun ieee1394"
#modules_2_6="tun"
#modules="ohci1394"

# You can give modules a different name when they load - the new name
# will also be used to pick arguments below.
#modules="dummy:dummy1"

# Give the modules some arguments if needed, per version if necessary.
#module_ieee1394_args="debug"
#module_ieee1394_args_2_6_23_gentoo_r5="ieee1394 ohci1394"
#module_ieee1394_args_2_6_23="tun ieee1394"
#module_ieee1394_args_2_6="tun"

# You should consult your kernel documentation and configuration
# for a list of modules and their options.

modules="vboxdrv vboxnetflt vboxnetadp"
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7328
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Virtual Box can't insert module

Postby mikey0000 » Fri Mar 19, 2010 12:19

Comfirmed, running depmod then insmod worked.

so i ran depmod
which didn't show anything but did its thing(I assume)
loaded the vboxdrv
and insmod netdlt.ko
and insmod net**

as shown by fitz's post
triple Booting Mac-osx 10.6, Sabayon Linux and Windows 7

2.5 athlon dual core
DFI infinity mobo
2 gb of DDR2 800 G skill ram 3.3.3.12
nvidia 9600gt
housed in a thermaltake taser III case with 7 fans - all turned off lol
User avatar
mikey0000
Growing Hen
 
Posts: 159
Joined: Fri Aug 10, 2007 0:33
Location: Dunedin New Zealand

Re: Virtual Box can't insert module

Postby egghead » Sun Mar 28, 2010 15:14

This didn't work for me on 5.2...

No guest additions:

* app-emulation/virtualbox-guest-additions
Latest version available: 3.1.4
Latest version installed: [ Not Installed ]

Depmod ran:

misc/vboxvfs.ko: misc/vboxguest.ko
misc/vboxdrv.ko:
misc/vboxguest.ko:
misc/vboxnetadp.ko: misc/vboxguest.ko
misc/vboxvideo.ko: kernel/drivers/gpu/drm/drm.ko kernel/drivers/i2c/i2c-core.ko
misc/vboxnetflt.ko: misc/vboxguest.ko misc/vboxdrv.ko

(not sure why vboxguest.ko is still depedent)

Can insmod the modules manually, but can't get the modprobe to work :(
egghead
Simple Hen
 
Posts: 56
Joined: Sat Jun 28, 2008 10:56
Location: /dev/random

Re: Virtual Box can't insert module

Postby egghead » Sun Mar 28, 2010 15:21

Ok no stress, figured it out!
egghead
Simple Hen
 
Posts: 56
Joined: Sat Jun 28, 2008 10:56
Location: /dev/random

Re: Virtual Box can't insert module [Solved]

Postby jozefk » Tue Mar 30, 2010 7:33

How did you figure it out?

I have 5.2 clean install.
Here are the other details and what's happening:
Code: Select all
jozefk@Sabayon ~ $ uname -r
2.6.33-sabayon

jozefk@Sabayon ~ $ equo search virtualbox
@@ Searching...
>>   #1 Sabayon Linux Official Repository
>>      @@ Package: app-emulation/virtualbox-bin-3.1.4-r10 branch: 5, [repo_sabayonlinux.org]
>>        Available:            version: 3.1.4-r10 ~ tag: NoTag ~ revision: 0
>>        Installed:            version: 3.1.4-r10 ~ tag: NoTag ~ revision: 0
>>        Slot:                 0
>>        Homepage:             http://www.virtualbox.org/
>>        Description:          Family of powerful x86 virtualization
>>                              products for enterprise as well
>>                              as home use
>>        License:              PUEL
...
>>      @@ Package: app-emulation/virtualbox-guest-additions-3.1.4#2.6.33-sabayon branch: 5, [repo_sabayonlinux.org]
>>        Available:            version: 3.1.4 ~ tag: 2.6.33-sabayon ~ revision: 1
>>        Installed:            version: 3.1.4 ~ tag: 2.6.33-sabayon ~ revision: 1
>>        Slot:                 2.6.33-sabayon
>>        Homepage:             http://www.virtualbox.org/
>>        Description:          VirtualBox kernel modules and
>>                              user-space tools for Linux guests
>>        License:              GPL-2
...
>>      @@ Package: app-emulation/virtualbox-modules-3.1.4#2.6.33-sabayon branch: 5, [repo_sabayonlinux.org]
>>        Available:            version: 3.1.4 ~ tag: 2.6.33-sabayon ~ revision: 1
>>        Installed:            version: 3.1.4 ~ tag: 2.6.33-sabayon ~ revision: 1
>>        Slot:                 2.6.33-sabayon
>>        Homepage:             http://www.virtualbox.org/
>>        Description:          Kernel Modules for Virtualbox
>>        License:              GPL-2
>>      @@ Package: x11-drivers/xf86-input-virtualbox-3.1.4-r1 branch: 5, [repo_sabayonlinux.org]
>>        Available:            version: 3.1.4-r1 ~ tag: NoTag ~ revision: 0
>>        Installed:            version: 3.1.4-r1 ~ tag: NoTag ~ revision: 0
>>        Slot:                 0
>>        Homepage:             http://www.virtualbox.org/
>>        Description:          VirtualBox input driver
>>        License:              GPL-2
...
>>      @@ Package: x11-drivers/xf86-video-virtualbox-3.1.4-r1#2.6.33-sabayon branch: 5, [repo_sabayonlinux.org]
>>        Available:            version: 3.1.4-r1 ~ tag: 2.6.33-sabayon ~ revision: 0
>>        Installed:            version: 3.1.4-r1 ~ tag: 2.6.33-sabayon ~ revision: 0
>>        Slot:                 2.6.33-sabayon
>>        Homepage:             http://www.virtualbox.org/
>>        Description:          VirtualBox video driver
>>        License:              GPL-2
>>  Keyword:    virtualbox
>>  Found:      16 entries

Sabayon jozefk # modprobe vboxdrv
Sabayon jozefk # modprobe vboxnetflt
FATAL: Error inserting vboxnetflt (/lib/modules/2.6.33-sabayon/misc/vboxnetflt.ko): Invalid module format
Sabayon jozefk # modprobe vboxnetflt
FATAL: Error inserting vboxnetadp (/lib/modules/2.6.33-sabayon/misc/vboxnetadp.ko): Invalid module format

jozefk@Sabayon ~ $ cat /etc/conf.d/modules
# You can define a list modules for a specific kernel version,
# a released kernel version, a main kernel version or just a list.
#modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
#modules_2_6_23="tun ieee1394"
#modules_2_6="tun"
#modules="ohci1394"
modules="vboxdrv vboxnetadp vboxnetflt"

# You can give modules a different name when they load - the new name
# will also be used to pick arguments below.
#modules="dummy:dummy1"

# Give the modules some arguments if needed, per version if necessary.
#module_ieee1394_args="debug"
#module_ieee1394_args_2_6_23_gentoo_r5="ieee1394 ohci1394"
#module_ieee1394_args_2_6_23="tun ieee1394"
#module_ieee1394_args_2_6="tun"

# You should consult your kernel documentation and configuration
# for a list of modules and their options.
jozefk@Sabayon ~ $


What I have to do now exactly in order to have VirtualBox running?
I need guest additions but they were already installed in my Windows 7 .vdi file. Don't know if that can work like that.
jozefk
Baby Hen
 
Posts: 6
Joined: Tue Mar 30, 2010 6:53

Re: Virtual Box can't insert module [Solved]

Postby jozefk » Tue Mar 30, 2010 19:00

I removed guest-additions and run
depmod -a
After that modules loaded. Added them in /etc/conf.d/modules Reboot
But when I try to start VirtualBox I'm getting this message:
Code: Select all
jozefk@Sabayon ~ $ virtualbox
-bash: virtualbox: command not found
jozefk@Sabayon ~ $ su
Password:
Sabayon jozefk # virtualbox
bash: virtualbox: command not found
Sabayon jozefk # exit


Did I missed something or I did something wrong?
One more thing:
Code: Select all
jozefk@Sabayon ~ $ which virtualbox
which: no virtualbox in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i586-pc-linux-gnu/gcc-bin/4.2.3:/usr/i686-pc-linux-gnu/gcc-bin/4.4.2:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/games/bin)
jozefk
Baby Hen
 
Posts: 6
Joined: Tue Mar 30, 2010 6:53

Re: Virtual Box can't insert module [Solved]

Postby DarkVader » Tue Mar 30, 2010 21:23

try

VirtualBox

notice the capital letters
User avatar
DarkVader
Baby Hen
 
Posts: 12
Joined: Mon Dec 31, 2007 10:11

PreviousNext

Return to Virtual Managers

Who is online

Users browsing this forum: No registered users and 1 guest