[ticket opened] Inst. 2.2.0 PUEL fails on opensuse 11.1 x64

Discussions related to using VirtualBox on Linux hosts.
Post Reply
dros
Posts: 16
Joined: 6. Apr 2009, 13:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: SuSE11.1, SLES10, XP, SBS2003, etc. . .

[ticket opened] Inst. 2.2.0 PUEL fails on opensuse 11.1 x64

Post by dros »

Start here http://forums.virtualbox.org/viewtopic. ... 175#p70866




latest OSE Version from svn fails not . . .

Have I missed something ? Or is this a bogus in the installer ?
BTW.: I can't find any newer linux-kernel-headers
this is a opensuse 11.1 x64
Thanks for any help . . .

System:

Code: Select all

linquad 2.6.27.19-3.2-default #1 SMP 2009-02-25 15:40:44 +0100 x86_64 x86_64 x86_64 GNU/Linux
Packages:

Code: Select all

rpm -qa | grep kernel
kernel-syms-2.6.27.19-3.2.1
kernel-default-base-2.6.27.19-3.2.1
kernel-default-2.6.27.19-3.2.1
linux-kernel-headers-2.6.27-2.28
kernel-default-extra-2.6.27.19-3.2.1
kernel-source-2.6.27.19-3.2.1

Code: Select all

rpm -qa | grep dkms
dkms-2.0.16-2
Installation:

Code: Select all

sh VirtualBox-2.1.4-43001-Linux_amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation.......
VirtualBox Version 2.1.4 (2009-02-26T16:08:42Z) installer
Installing VirtualBox to /opt/VirtualBox-2.1.4
insserv: warning: script 'S01dkms_autoinstaller' missing LSB tags and overrides
insserv: warning: script 'dkms_autoinstaller' missing LSB tags and overrides
Building the VirtualBox kernel module
Failed to build the vboxdrv kernel module.
Please check the log file /var/log/vbox-install.log for more information.

VirtualBox has been installed successfully, but the kernel module could not
be built.  When you have fixed the problems preventing this, execute
  /etc/init.d/vboxdrv setup
as administrator to build it.

You will find useful information about using VirtualBox in the user manual
  /opt/VirtualBox-2.1.4/UserManual.pdf
and in the user FAQ
  http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.
Logs:

Code: Select all

VirtualBox 2.1.4 installer, built 2009-02-26T16:08:42Z.

Testing system setup...
System setup appears correct.

Installing VirtualBox to /opt/VirtualBox-2.1.4

Output from the module build process (the Linux kernel build system) follows:

Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxdrv/2.1.4/source ->
                 /usr/src/vboxdrv-2.1.4

DKMS: add Completed.

Preparing kernel 2.6.27.19-3.2-default for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
using presented .config
make oldconfig....
make prepare....(bad exit status: 2)

Building module:
cleaning build area....
make KERNELRELEASE=2.6.27.19-3.2-default -C /lib/modules/2.6.27.19-3.2-default/build M=/var/lib/dkms/vboxdrv/2.1.4/build....(bad exit status: 2)

Error! Bad return status for module build on kernel: 2.6.27.19-3.2-default (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/vboxdrv/2.1.4/build/ for more information.
Failed to install using DKMS, attempting to install without
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.27.19-3.2-default/build SUBDIRS=/tmp/vbox.6 SRCROOT=/tmp/vbox.6 modules
make -C /usr/src/linux-2.6.27.19-3.2 O=/usr/src/linux-2.6.27.19-3.2-obj/x86_64/default/. modules
make -C /usr/src/linux-2.6.27.19-3.2-obj/x86_64/default \
        KBUILD_SRC=/usr/src/linux-2.6.27.19-3.2 \
        KBUILD_EXTMOD="/tmp/vbox.6" -f /usr/src/linux-2.6.27.19-3.2/Makefile \
        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.6/.tmp_versions ; rm -f /tmp/vbox.6/.tmp_versions/*
make -f /usr/src/linux-2.6.27.19-3.2/scripts/Makefile.build obj=/tmp/vbox.6
  gcc -Wp,-MD,/tmp/vbox.6/linux/.SUPDrv-linux.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.3/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.27.19-3.2/include -I/usr/src/linux-2.6.27.19-3.2/arch/x86/include -include include/linux/autoconf.h  -I/tmp/vbox.6 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -I/usr/src/linux-2.6.27.19-3.2/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fno-stack-protector -fomit-frame-pointer -fasynchronous-unwind-tables -g -Wdeclaration-after-statement -Wno-pointer-sign  -I/lib/modules/2.6.27.19-3.2-default/build/include  -I/tmp/vbox.6/  -I/tmp/vbox.6/include  -I/tmp/vbox.6/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -D"DEBUG_HASH=33" -D"DEBUG_HASH2=59" -c -o /tmp/vbox.6/linux/.tmp_SUPDrv-linux.o /tmp/vbox.6/linux/SUPDrv-linux.c
In file included from /usr/src/linux-2.6.27.19-3.2/include/linux/types.h:11,
                 from /tmp/vbox.6/include/iprt/types.h:88,
                 from /tmp/vbox.6/include/VBox/types.h:34,
                 from /tmp/vbox.6/linux/../SUPDrvInternal.h:39,
                 from /tmp/vbox.6/linux/SUPDrv-linux.c:37:
/usr/src/linux-2.6.27.19-3.2/include/linux/posix_types.h:47:29: error: asm/posix_types.h: Datei oder Verzeichnis nicht gefunden
In file included from /tmp/vbox.6/include/iprt/types.h:88,
                 from /tmp/vbox.6/include/VBox/types.h:34,
                 from /tmp/vbox.6/linux/../SUPDrvInternal.h:39,
                 from /tmp/vbox.6/linux/SUPDrv-linux.c:37:
/usr/src/linux-2.6.27.19-3.2/include/linux/types.h:12:23: error: asm/types.h: Datei oder Verzeichnis nicht gefunden
.
.
.
snip
Logs:

Code: Select all

DKMS make.log for vboxdrv-2.1.4 for kernel 2.6.27.19-3.2-default (x86_64)
Di 7. Apr 16:39:55 CEST 2009
make: Entering directory `/usr/src/linux-2.6.27.19-3.2-obj/x86_64/default'
make -C /usr/src/linux-2.6.27.19-3.2 O=/usr/src/linux-2.6.27.19-3.2-obj/x86_64/default/.
  LD      /var/lib/dkms/vboxdrv/2.1.4/build/built-in.o
  CC [M]  /var/lib/dkms/vboxdrv/2.1.4/build/linux/SUPDrv-linux.o
In file included from /usr/src/linux-2.6.27.19-3.2/include/linux/types.h:11,
                 from /var/lib/dkms/vboxdrv/2.1.4/build/include/iprt/types.h:88,
                 from /var/lib/dkms/vboxdrv/2.1.4/build/include/VBox/types.h:34,
                 from /var/lib/dkms/vboxdrv/2.1.4/build/linux/../SUPDrvInternal.h:39,
                 from /var/lib/dkms/vboxdrv/2.1.4/build/linux/SUPDrv-linux.c:37:
/usr/src/linux-2.6.27.19-3.2/include/linux/posix_types.h:47:29: error: asm/posix_types.h: Datei oder Verzeichnis nicht gefunden
In file included from /var/lib/dkms/vboxdrv/2.1.4/build/include/iprt/types.h:88,
                 from /var/lib/dkms/vboxdrv/2.1.4/build/include/VBox/types.h:34,
                 from /var/lib/dkms/vboxdrv/2.1.4/build/linux/../SUPDrvInternal.h:39,
                 from /var/lib/dkms/vboxdrv/2.1.4/build/linux/SUPDrv-linux.c:37:
/usr/src/linux-2.6.27.19-3.2/include/linux/types.h:12:23: error: asm/types.h: Datei oder Verzeichnis nicht gefunden
In file included from /var/lib/dkms/vboxdrv/2.1.4/build/include/iprt/types.h:88,
                 from /var/lib/dkms/vboxdrv/2.1.4/build/include/VBox/types.h:34,
                 from /var/lib/dkms/vboxdrv/2.1.4/build/linux/../SUPDrvInternal.h:39,
                 from /var/lib/dkms/vboxdrv/2.1.4/build/linux/SUPDrv-linux.c:37:
/usr/src/linux-2.6.27.19-3.2/include/linux/types.h:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__kernel_dev_t’
/usr/src/linux-2.6.27.19-3.2/include/linux/types.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dev_t’
/usr/src/linux-2.6.27.19-3.2/include/linux/types.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ino_t’
/usr/src/linux-2.6.27.19-3.2/include/linux/types.h:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mode_t’
/usr/src/linux-2.6.27.19-3.2/include/linux/types.h:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘nlink_t’
/usr/src/linux-2.6.27.19-3.2/include/linux/types.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘off_t’
/usr/src/linux-2.6.27.19-3.2/include/linux/types.h:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘pid_t’
.
.
.
Last edited by dros on 24. Apr 2009, 14:28, edited 5 times in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Installation VirtualBox-2.1.4-43001-Linux_amd64.run fails

Post by Perryg »

Looks to me like your kernel-headers are out of sync with the kernel.

You can tried to update the headers and see if it will complete
dros
Posts: 16
Joined: 6. Apr 2009, 13:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: SuSE11.1, SLES10, XP, SBS2003, etc. . .

Re: Installation VirtualBox-2.1.4-43001-Linux_amd64.run fails

Post by dros »

i can't find any newer . . i'm not sure at all if the headers are really needed on opensuse 11.1 machines . . .
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Installation VirtualBox-2.1.4-43001-Linux_amd64.run fails

Post by Perryg »

They were needed on my install to get it to compile correctly. I added these packages below, ran the install and all worked.
make
gcc
gcc-c++
kernel-source
kernel-syms

Also if the kernel-headers will not update I have had to remove the current headers and then re-install them.
dros
Posts: 16
Joined: 6. Apr 2009, 13:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: SuSE11.1, SLES10, XP, SBS2003, etc. . .

Re: Installation VirtualBox-2.1.4-43001-Linux_amd64.run fails

Post by dros »

all needed packages are installed . . . i could find another version of linux-kernel-headers onhttp://software.opensuse.org/search but they were also not the matching version . . . and in think you are right as the make.log sais "can't find asm/posix_types.h". . . . then i'll have to wait until newer headers are build . . .
dros
Posts: 16
Joined: 6. Apr 2009, 13:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: SuSE11.1, SLES10, XP, SBS2003, etc. . .

Re: Installation VirtualBox-2.1.4-43001-Linux_amd64.run fails

Post by dros »

Today a new Kernel Version was relased, normally the linux-kernel-headers have not to match the running kernel on opensuse it just has to be the last recent version

Code: Select all

uname -r
2.6.27.21-0.1-default

Code: Select all

rpm -qa | grep kernel
kernel-default-base-2.6.27.21-0.1.2
kernel-default-2.6.27.21-0.1.2
kernel-source-2.6.27.21-0.1.1
linux-kernel-headers-2.6.27-3.2
kernel-default-extra-2.6.27.21-0.1.2
kernel-syms-2.6.27.21-0.1.1
the error stays nearly the same

dmesg:

Code: Select all

vboxdrv: Trying to deactivate the NMI watchdog permanently...
vboxdrv: Successfully done.
vboxdrv: Found 4 processor cores.
VBoxDrv: dbg - g_abExecMemory=ffffffffa0f89920
vboxdrv: fAsync=0 offMin=0x171 offMax=0x2448
vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
vboxdrv: Successfully loaded version 2.1.4 (interface 0x000a0009).
[b]vboxnetflt: no symbol version for struct_module[/b]
vbox-install.log [seems to be fine]:

Code: Select all

-----------------------------
Deleting module version: 2.1.4
completely from the DKMS tree.
------------------------------
Done.
  removing old DKMS module vboxnetflt version  2.1.4

Error! There are no instances of module: vboxnetflt
2.1.4 located in the DKMS tree.

Creating symlink /var/lib/dkms/vboxnetflt/2.1.4/source ->
                 /usr/src/vboxnetflt-2.1.4

DKMS: add Completed.

Preparing kernel 2.6.27.21-0.1-default for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
using presented .config
make oldconfig....
make prepare.....

Running the pre_build script:

Building module:
cleaning build area....
make KERNELRELEASE=2.6.27.21-0.1-default -C /lib/modules/2.6.27.21-0.1-default/build M=/var/lib/dkms/vboxnetflt/2.1.4/build......
cleaning build area....
cleaning kernel tree (make mrproper)....

DKMS: build Completed.
Running module version sanity check.

vboxnetflt.ko:
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.27.21-0.1-default/updates/
Adding any weak-modules

depmod....

DKMS: install Completed.
I can't use hostinterface connections without vboxnetflt

manual vboxdrv setup:

Code: Select all

linquad:/ # /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module                                                                                                     done
Removing old VirtualBox netflt kernel module                                                                                          done
Removing old VirtualBox kernel module                                                                                                 done
Recompiling VirtualBox kernel module                                                                                                  done
Starting VirtualBox kernel module                                                                                                     failed
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
linquad:/ # modprobe vboxdrv
FATAL: Error inserting vboxdrv (/lib/modules/2.6.27.21-0.1-default/updates/vboxdrv.ko): Invalid module format
dmesg after manual setup of vboxdrv:

Code: Select all

vboxdrv: Trying to deactivate the NMI watchdog permanently...
vboxdrv: Successfully done.
vboxdrv: Found 4 processor cores.
VBoxDrv: dbg - g_abExecMemory=ffffffffa0f89920
vboxdrv: fAsync=0 offMin=0x171 offMax=0x2448
vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
vboxdrv: Successfully loaded version 2.1.4 (interface 0x000a0009).
vboxnetflt: no symbol version for struct_module
vboxnetflt: no symbol version for struct_module
vboxdrv: no symbol version for struct_module
vboxdrv: no symbol version for struct_module
linquad:/ #
greenpossum
Volunteer
Posts: 98
Joined: 11. Jul 2008, 08:10

Re: Inst. 2.1.4 vboxnetflt fails on opensuse 11.1 x64

Post by greenpossum »

Very odd. I have the same setup as you and I was able to run /etc/init.d/vboxdrv setup correctly after the update yesterday.
$ rpm -qa kernel* linux*
kernel-default-2.6.27.21-0.1.2
kernel-default-base-2.6.27.21-0.1.2
linux-kernel-headers-2.6.27-2.28
kernel-source-2.6.27.21-0.1.1
kernel-default-extra-2.6.27.21-0.1.2
/var/log/vbox-install.log shows no problems in all the make steps.

Sorry, not much help to you except to demonstrate that there is no problem with the update for Vbox.

PS: I just noticed you are trying to use the OSE version. I'm using the PUEL version.
dros
Posts: 16
Joined: 6. Apr 2009, 13:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: SuSE11.1, SLES10, XP, SBS2003, etc. . .

Re: Inst. 2.1.4 vboxnetflt fails on opensuse 11.1 x64

Post by dros »

still having same issue on 2.2 Package

running kernel on opensuse 11.1 x64

Code: Select all

uname -a
Linux linquad 2.6.27.21-0.1-default #1 SMP 2009-03-31 14:50:44 +0200 x86_64 x86_64 x86_64 GNU/Linux
kernel packages

Code: Select all

rpm -qa kernel* linux*
kernel-default-base-2.6.27.21-0.1.2
kernel-default-2.6.27.21-0.1.2
kernel-source-2.6.27.21-0.1.1
linux32-1.0-475.8
linux-kernel-headers-2.6.27-2.28
kernel-default-extra-2.6.27.21-0.1.2
linux-atm-lib-2.5.0-135.14
kernel-syms-2.6.27.21-0.1.1

installation process

Code: Select all

sh VirtualBox-2.2.0-45846-Linux_amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation........
VirtualBox Version 2.2.0 (2009-04-07T19:29:31Z) installer
Removing previous installation of VirtualBox 2.2.0 from /opt/VirtualBox
Installing VirtualBox to /opt/VirtualBox
insserv: warning: script 'S01dkms_autoinstaller' missing LSB tags and overrides
insserv: warning: script 'dkms_autoinstaller' missing LSB tags and overrides
Building the VirtualBox kernel module
Building the VirtualBox netflt kernel module

VirtualBox has been installed successfully.

You will find useful information about using VirtualBox in the user manual
  /opt/VirtualBox/UserManual.pdf
and in the user FAQ
  http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.
but dmesg sais

Code: Select all

vboxdrv: no symbol version for struct_module
and modprobe sais

Code: Select all

modprobe vboxdrv
FATAL: Error inserting vboxdrv (/lib/modules/2.6.27.21-0.1-default/updates/vboxdrv.ko): Invalid module format

after all the error reported in virtualbox itself when starting a machine . . . *just for the integrity of reporting ;-)

Code: Select all

.
.
Kernel driver not installed (rc=-1908)
.
pls execute /etc/init.d/vboxdrv setup  ....bla bka
.
same thing on the rpm packages. . . .
Last edited by dros on 21. Apr 2009, 15:40, edited 1 time in total.
dros
Posts: 16
Joined: 6. Apr 2009, 13:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: SuSE11.1, SLES10, XP, SBS2003, etc. . .

Re: Inst. 2.1.4 and 2.2.0 vboxnetflt fails on opensuse 11.1 x64

Post by dros »

has nobody else this problem ?? . . .
dros
Posts: 16
Joined: 6. Apr 2009, 13:25
Primary OS: openSUSE
VBox Version: PUEL
Guest OSses: SuSE11.1, SLES10, XP, SBS2003, etc. . .

Re: Installation 2.1.4 and 2.2.0 PUEL fails on opensuse 11.1 x64

Post by dros »

i've opened a ticket for that issue that nobody can explain . . . http://www.virtualbox.org/ticket/3831
Post Reply