Virtual Box can't insert module [Solved]

Discussion for all VM - Installing, Software, Problems

Moderator: Moderators

Virtual Box can't insert module [Solved]

Postby Vermillion » Wed Mar 10, 2010 23:13

Hi

i tried to get virtual box running on my computer (using sabayon 5.1).
I followed the instructions on the wiki page
but i got following error:
Code: Select all
modprobe vboxnetadp
FATAL: Error inserting vboxnetadp (/lib/modules/2.6.31-sabayon/misc/vboxnetadp.ko): Invalid module format


what am i doing wrong? how can i get my virtual box working?
Vermillion
Baby Hen
 
Posts: 7
Joined: Wed Mar 10, 2010 23:08

Re: Virtual Box can't insert module

Postby mikey0000 » Thu Mar 11, 2010 13:45

it will still go without that driver it just won't have networking :P btw i also get the same error

set network to disabled and it will go fine.
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 Vermillion » Thu Mar 11, 2010 14:46

yes without network it works.

But what if i want to have network on my virtual machine?
Vermillion
Baby Hen
 
Posts: 7
Joined: Wed Mar 10, 2010 23:08

Re: Virtual Box can't insert module

Postby mikey0000 » Thu Mar 11, 2010 22:29

Vermillion wrote:But what if i want to have network on my virtual machine?


last night i tried installing from the sun .run file and I still couldn't get the network vm drivers to load, I'm out of ideas sorry.
I also now need the networking drivers.
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 Vermillion » Mon Mar 15, 2010 15:52

I tried building the OSE from source but it didn't work either...
Vermillion
Baby Hen
 
Posts: 7
Joined: Wed Mar 10, 2010 23:08

Re: Virtual Box can't insert module

Postby Fitzcarraldo » Mon Mar 15, 2010 16:19

What versions of virtualbox and virtualbox modules are you using? I have the following installed (via Portage) and networking is working:

Code: Select all
fitzcarraldo@acertm8215 ~ $ eix -I virtualbox
[I] app-emulation/virtualbox-bin
     Available versions:  3.0.12+i!m (~)3.1.0+i!m (~)3.1.2+i!m (~)3.1.2-r10!m[1] (~)3.1.4+i!m (~)3.1.4-r1+i!m (~)3.1.4-r10+i!m[1] {+additions +chm headless python rdesktop-vrdp sdk +system-qt4 vboxwebsrv}
     Installed versions:  3.1.4-r10+i!m[1](01:05:32 13/03/10)(additions python system-qt4 vboxwebsrv -chm -headless -sdk)
     Homepage:            http://www.virtualbox.org/
     Description:         Family of powerful x86 virtualization products for enterprise as well as home use

[I] app-emulation/virtualbox-modules
     Available versions:  3.0.12 (~)3.1.0 (~)3.1.2 (~)3.1.4 {kernel_linux}
     Installed versions:  3.1.4(01:01:42 13/03/10)(kernel_linux)
     Homepage:            http://www.virtualbox.org/
     Description:         Kernel Modules for Virtualbox

[1] "sabayon" /var/lib/layman/sabayon

Found 2 matches.
fitzcarraldo@acertm8215 ~ $
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Virtual Box can't insert module

Postby _cnfss_ » Mon Mar 15, 2010 17:27

This weekend I made a Fresh install of SL 5.1-r1 KDE, then update, then install virtualbox 3.1.4-bin + virtualbox-modules 3.1.4#2.6.29.33 (I'd updated the linux kernel), all by equo/sulfur. After that, I followed this wiki. And know it's perfectly fine, even the network, 'cause I create an Ubuntu VM and updated it. Everything works perfect for me...

So it works with portage way (like Fitz) or entropy way (me)...

Did you check the modules version? (You need to install 2.6.29.33's modules if you've got the 2.6.29.33 kernel)
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
"Sólo dos cosas son infinitas, el universo y la estupidez humana, y no estoy seguro acerca de la primera."
- Albert Einstein
User avatar
_cnfss_
Growing Hen
 
Posts: 158
Joined: Wed Jan 20, 2010 17:09

Re: Virtual Box can't insert module

Postby mikey0000 » Mon Mar 15, 2010 23:52

i have the 2.6.33 kernel, installed the correct modules even installed from suns own installer, still no luck.
Ill have a shoot at that wiki when i get home
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 rooboy1984 » Tue Mar 16, 2010 4:40

Had the same problem myself today. A bit of googling enlightened me to a fix. Rather using insmod instead of modprobe.

insmod /lib/modules/`uname -r`/misc/vboxnetflt.ko
insmod /lib/modules/`uname -r`/misc/vboxnetadp.ko

.... should get the job done for you. Was able to install and run a Win7 machine and browsing OK.

Not sure yet how to boot these at startup :?
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 5:07

^Strange. The command insmod does not resolve module dependencies. I.e. if a module requires other modules to be loaded then insmod will not load them. The command modprobe, on the other hand, checks if there are any module dependencies by looking in the file /lib/modules/<your kernel version>/modules.dep (generated by the depmod command) and loads the modules using insmod.

For example, as I have installed the kernel 2.6.32-sabayon, the VirtualBox-related modules in my file /lib/modules/2.6.32-sabayon/modules.dep are:

Code: Select all
# cat /lib/modules/2.6.32-sabayon/modules.dep | grep vbox
misc/vboxdrv.ko:
misc/vboxnetflt.ko: misc/vboxdrv.ko
misc/vboxnetadp.ko: misc/vboxdrv.ko
#


Have you guys tried doing a depmod first?
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Next

Return to Virtual Managers

Who is online

Users browsing this forum: No registered users and 0 guests

cron