VirtualBox 2.1.0 on mandriva 2009.0

Discussions related to using VirtualBox on Linux hosts.
Post Reply
giovannotti69
Posts: 1
Joined: 2. Jan 2009, 07:15

VirtualBox 2.1.0 on mandriva 2009.0

Post by giovannotti69 »

after installing VirtualBox 2.1.0 on my mandriva 2009.0 Free I got the following:

Code: Select all

urpmi VirtualBox-2.1.0_41146_mdv2008.0-1.i586.rpm

installing VirtualBox-2.1.0_41146_mdv2008.0-1.i586.rpm
Preparing...                     ################################################################
      1/1: VirtualBox            ################################################################
/var/tmp/rpm-tmp.12906: line 26: [: : integer expression expected

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.

Compilation of the kernel module FAILED! VirtualBox will not start until this
problem is fixed. Please consult /var/log/vbox-install.log to find out why the
kernel module does not compile. Most probably the kernel sources are not found.
Install them and execute

  /etc/init.d/vboxdrv setup

as root.
The log has the following:

Code: Select all

[root@localhost Desktop]# cat /var/log/vbox-install.log
** Compiling vboxdrv
make KBUILD_VERBOSE= -C /lib/modules/2.6.27.7-desktop-1mnb/build SUBDIRS=/tmp/vbox.7 SRCROOT=/tmp/vbox.7 modules

  ERROR: Kernel configuration is invalid.
         include/linux/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


  WARNING: Symbol version dump /usr/src/linux-2.6.27.7-1mnb/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /tmp/vbox.7/linux/SUPDrv-linux.o
/tmp/vbox.7/linux/SUPDrv-linux.c:1: error: code model ‘kernel’ not supported in the 32 bit mode
/tmp/vbox.7/linux/SUPDrv-linux.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[2]: *** [/tmp/vbox.7/linux/SUPDrv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.7] Error 2
make: *** [vboxdrv] Error 2
[root@localhost Desktop]#

How do I solve this?

Regards..

Modedit: Other topic post added below.

after appliying the sentence "make oldconfig && make prepare" staying on /usr/src/linux, I got the following:

Code: Select all

[root@localhost linux]# make oldconfig && make prepare                                         
  HOSTCC  scripts/basic/fixdep                                                                 
  HOSTCC  scripts/basic/docproc                                                                
  HOSTCC  scripts/kconfig/conf.o                                                               
  HOSTCC  scripts/kconfig/kxgettext.o                                                          
  SHIPPED scripts/kconfig/zconf.tab.c                                                          
  SHIPPED scripts/kconfig/lex.zconf.c                                                          
  SHIPPED scripts/kconfig/zconf.hash.c                                                         
  HOSTCC  scripts/kconfig/zconf.tab.o                                                          
  HOSTLD  scripts/kconfig/conf                                                                 
scripts/kconfig/conf -o arch/x86/Kconfig                                                       
#                                                                                              
# using defaults found in /boot/config-2.6.27.7-desktop-1mnb                                   
#                                                                                              
#                                                                                              
# configuration written to .config                                                             
#                                                                                              
scripts/kconfig/conf -s arch/x86/Kconfig                                                       
  CHK     include/linux/version.h                                                              
  UPD     include/linux/version.h                                                              
  CHK     include/linux/utsrelease.h                                                           
  UPD     include/linux/utsrelease.h                                                           
  SYMLINK include/asm -> include/asm-x86                                                       
  CC      kernel/bounds.s                                                                      
  GEN     include/linux/bounds.h                                                               
  CC      arch/x86/kernel/asm-offsets.s                                                        
  GEN     include/asm/asm-offsets.h                                                            
  CALL    scripts/checksyscalls.sh                                                             
[root@localhost linux]# 

then I try again to run the command "/etc/init.d/vboxdrv setup"; the result is the following:

Code: Select all

[root@localhost linux]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module                               [  OK  ]
Recompiling VirtualBox kernel module                            [FAILED]
  (Look at /var/log/vbox-install.log to find out what went wrong)       
[root@localhost linux]# clear                                           
[root@localhost linux]# cat /var/log/vbox-install.log
Makefile:154: *** Error: /usr/src/linux (version 2.6.27.7-1mnbcustom) does not match the current kernel (version 2.6.27.7-desktop-1mnb).  Stop.
[root@localhost linux]#
How can I solve this?

Regards

Modedit: Please hit the Post REPLY instead of Post TOPIC. And use code blocks next time.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

See the error message. The configuration of the kernel source is not the same as the kernel you are running. Please install the proper kernel and it's source. They have to be the same version.
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.
jerry1091
Posts: 15
Joined: 16. Dec 2008, 04:08

kernel-desktop-devel

Post by jerry1091 »

Sasquatch is correct.

You need the kernel source.

As root run:
urpmi kernel-desktop-devel-latest


This should do it.

;-)
Post Reply