Can't install Virtualbox 1.5.0 SO Mandriva spring 2007.1

Discussions related to using VirtualBox on Linux hosts.
Post Reply
skid
Posts: 19
Joined: 19. Sep 2007, 16:33

Can't install Virtualbox 1.5.0 SO Mandriva spring 2007.1

Post by skid »

Hi all, I'm quite new about linux SO, absolutely new to this forum.
I have some problems trying to run Virtualbox on my machines.
I downloaded the rpm package from VB web site, installed but:
during rpm installation I have an error:


Code: Select all

[root@localhost Download]# rpm -i VirtualBox-1.5.0_24069_mdv2007.1-2.i586.rpm

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Success!

FATAL: Error inserting vboxdrv (/lib/modules/2.6.17-15mdv/misc/vboxdrv.ko): Invalid module format
[root@localhost Download]#    
Then I try to start virtual machine and the error message is thet VB does not find any Virtualbox-kernel compiled, and to do the following:

Code: Select all

cd /etc/init.d
./vboxdrv setup
And this is what happens:

Code: Select all

[root@localhost init.d]# ./vboxdrv setup
Stopping VirtualBox kernel module                               [   OK   ]
Recompiling VirtualBox kernel module                            [   OK   ]
Starting VirtualBox kernel module FATAL: Error inserting vboxdrv (/lib/modules/2.6.17-15mdv/misc/vboxdrv.ko): Invalid module format
                                                                [FALLITO ]
(modprobe vboxdrv failed)
[root@localhost init.d]#  
Any idea how to solve the problem?
The old 1.3.8 version was running good...
skid
Posts: 19
Joined: 19. Sep 2007, 16:33

Post by skid »

You can also take a look to the log file made by the install prcedure....

here

www.jokabsafety.191.it/VBOX_log.doc
skid
Posts: 19
Joined: 19. Sep 2007, 16:33

Post by skid »

skid wrote:You can also take a look to the log file made by the install prcedure....

here

www.jokabsafety.191.it/VBOX_log.doc
<better this one...

www.jokabsafety.191.it/vbox-install.log.txt
Ingo
Volunteer
Posts: 731
Joined: 22. Aug 2007, 10:13
Location: Germany

Post by Ingo »

It seems that your kernel does not support the module format . There is also a warning in your log
WARNING: Symbol version dump /usr/src/linux-2.6.17-13mdv/Module.symvers
is missing; modules will have no dependencies and modversions.
For a successful compiling of vboxdrv on my Debian etch system I needed at least a compiled bare kernel with default options. I use kernel 2.6.21 and did this:

Code: Select all

$ sudo adduser ingo src #use your name instead of ingo then logoff and logon
$ sudo aptitude install linux-source-2.6.21 #use your method to get the source package
$ cd /usr/src
$ tar -xvjf linux-source-2.6.21.tar.bz2
$ ln -s linux-source-2.6.21 linux
$ cp /boot/config-$(uname -r) linux/.config
$ cd linux
$ make oldconfig
$ make vmlinux
$ sudo /etc/init.d/vboxdrv setup
Of course you have to adapt this to your needs.
I don't know why they can't setup the Makefile for vboxdrv to compile without a precompiled default bare kernel. It was also so in VBox Version 1.4.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Post by Technologov »

Try the oficial multi-distro VirtualBox installer. It's the most stable one.
Ingo
Volunteer
Posts: 731
Joined: 22. Aug 2007, 10:13
Location: Germany

Post by Ingo »

Technologov wrote:Try the oficial multi-distro VirtualBox installer. It's the most stable one.
Hi Alexey,
I'm using the package manager from Debian so the installer will be invoked automatically and try to compile vboxdrv.
How can I invoke the official multi-distro VirtualBox installer?
Have I overseen something?
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Post by Technologov »

Ingo
Volunteer
Posts: 731
Joined: 22. Aug 2007, 10:13
Location: Germany

Post by Ingo »

Phfff...
I understand what you mean :-}
skid
Posts: 19
Joined: 19. Sep 2007, 16:33

Post by skid »

Hi all,
I indeed have installed the RPM package downloaded from the link.
The result is the one shown above.
I have the some problem with older version, that was in the repositories of Mandriva distribution.

Any other suggestion?
skid
Posts: 19
Joined: 19. Sep 2007, 16:33

Post by skid »

I uninstalled everything, and retry from the beginning.

First of all, during installation of RPM happens this:

Code: Select all

[root@lutr Download]# rpm -i VirtualBox-1.5.0_24069_mdv2007.1-2.i586.rpm

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Success!

FATAL: Error inserting vboxdrv (/lib/modules/2.6.17-15mdv/misc/vboxdrv.ko): Invalid module format
[root@lutr Download]# 
Then I have two problems for a rookie like me:
Ho to compile a kernel module for my kernel ?
Why the error message invelid module format in vboxdrv.ko? I guess it's related to the first problem....

Could anyone help me?
Ingo
Volunteer
Posts: 731
Joined: 22. Aug 2007, 10:13
Location: Germany

Post by Ingo »

Hi skid,
skid wrote:Ho to compile a kernel module for my kernel ?
I'm afraid the other guys here in the VirtualBox Forum will flame us if I explain how to do it ... :-\
But here some further hints. There are some options in the kernel to handle modules and its format. I don't know what kernel do you use. Maybe it is a non standard kernel or an older one. Modern distros should always use the right module format. Compiling a kernel may not direct solve your problem but it is a very good check to your machine if everything works well. For compiling a kernel with modules look at google ;-)
Ingo
Volunteer
Posts: 731
Joined: 22. Aug 2007, 10:13
Location: Germany

Post by Ingo »

HEY skid,
I've just found this !
http://forums.virtualbox.org/viewtopic.php?t=2168
skid
Posts: 19
Joined: 19. Sep 2007, 16:33

Post by skid »

Thank you so much!
But does not work for me...(on 2007.1 spring)...
the result is the following:

Code: Select all

[root@lutr init.d]# ./vboxdrv setup
Stopping VirtualBox kernel module                               [   OK   ]
Recompiling VirtualBox kernel module                            [   OK   ]
Starting VirtualBox kernel module FATAL: Error inserting vboxdrv (/lib/modules/2                                                          .6.17-15mdv/misc/vboxdrv.ko): Invalid module format
                                                                [FALLITO ]
(modprobe vboxdrv failed)
[root@lutr init.d]#
Still problems with vboxdrv.ko module.... :(
skid
Posts: 19
Joined: 19. Sep 2007, 16:33

Post by skid »

Problem solved!
It was a mismatch between the mdv version and the kernel source installed.
Now it's working!!!! :D
Post Reply