virtualbox-modules 3.0.2-1
http://www.virtualbox.org
Kernel modules for VirtualBox (vboxdrv)
community :: modules
Maintainer: None
Votes: 278
License: GPL
Last Updated: Sat, 11 Jul 2009 21:01:20 +0000
First Submitted: Fri, 16 Mar 2007 08:23:35 +0000
This package has been flagged out of date.
Dependencies kernel26<2.6.31 kernel26>=2.6.30
Required byvirtualbox-ose
First steps to compile this on x64:
--------------------
1: Modify lib32-glibc
--- /var/abs/community/lib32-glibc/PKGBUILD 2009-09-06 06:16:39.000000000 +0200
+++ lib32-glibc/PKGBUILD 2009-09-07 00:06:57.540839268 +0200
@@ -20,10 +20,12 @@
mkdir -p $pkgdir/opt/lib32/lib
mkdir -p $pkgdir/opt/lib32/usr/lib/gconv
+ mkdir -p $pkgdir/usr/include/gnu
cp -dp lib/*.so* $pkgdir/opt/lib32/lib
cp -dp usr/lib/*.so* $pkgdir/opt/lib32/usr/lib
cp -dp usr/lib/gconv/* $pkgdir/opt/lib32/usr/lib/gconv
+ cp usr/include/gnu/stubs-32.h $pkgdir/usr/include/gnu/stubs-32.h
cat /usr/bin/ldd | sed 's/\/lib\/ld-linux-x86-64.so.2/\/lib\/ld-linux-x86-32.so.2/' > $srcdir/ldd32
--------------------
2 : Find a way to get a 32bit libgcc.a
Possible ways: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/libgcc.a is owned by gcc 4.4.1-1
and lib32-gcc-libs
Maybe tomorrow.
Why not to use the vbox_build_modules instead of this package? It will be great. No more needs to update VirtualBox when kernel does, just run "sudo vbox_build_modules". The virtualbox_bin[1] package does it that way.
See you
[1] http://aur.archlinux.org/packages.php?ID=9753
when is it going to be updated official pls?
I successfully compiled this with the PKGBUILD from flowcontrol on kernel 2.6.29, but had to add the --disable-opengl configure option, or else I got the same error as herve. This is on i686 with regular nvidia drivers. The old PKGBUILD does not seem to include this option, but I can live without opengl-support for now.
Seems virtualbox_bin runs fine under x86_64, I didn't understand before that it already includes the vboxdrv module and I don't need this package at all.
For x86_64:
Seems with the configure option --nofatal one can get around this, although it fails in compiling
later because stubs-32.h is not found.
I found a german forum entry at http://forum.archlinux.de/?page=Postings;id=20;thread=9218
that suggests that virtualbox-ose (and thus the vbox module) can't be compiled on an 64 bit system
at all because of that, but I wonder why it worked with 2.1.2 then.
Same here (also x86_64) on exactly same hardware where 2.1.2-1 worked.
I have the same error with your changes that I had when trying myself:
Checking for Mesa / GLU: ./configure: line 251: 10307 Segmentation fault $ODIR.tmp_out > $ODIR.test_execute.log
PKGBUILD: line 35: ./env.sh: No such file or directory
I thought it was because of the "nouveau" driver with lacks 3D, but I use "nvidia" at this moment.
The more strange is that I grabbed the test, compiled it with the same arguments, and it worked fine. Maybe it's related to my x86_64 architecture. The PKGBUILD is i686-only.
@flowcontrol:
This must be added to:
install -D -m644 vboxnetflt.ko "$pkgdir/lib/modules/${_kernver}/misc/vboxnetflt.ko"
PKGBUILD:
# Maintainer: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
# Contributor: Andrea Scarpino <bash.lnx@gmail.com>
# Contributor: Roman Kyrylych <roman@archlinux.org>
# Contributor: Michal Krenek <mikos@sg1.cz>
# Contributor: niQo
# Contributor: Ingmar Steen
# Contributor: flowcontrol
pkgname=virtualbox-ose-modules
_kernver=2.6.29-ARCH
pkgver=2.2.0
pkgrel=1
pkgdesc="Kernel modules for VirtualBox (vboxdrv)"
arch=('i686')
url="http://www.virtualbox.org"
license=('GPL')
depends=('kernel26>=2.6.29' 'kernel26<2.6.30')
makedepends=('bin86' 'dev86' 'iasl' 'libstdc++5' 'qt3' 'sdl_ttf' 'libxt'
'libgl' 'alsa-lib' 'pulseaudio' 'gcc34' 'libxcursor' 'libidl2' 'libxslt'
'xalan-c' 'pth' 'libxml2' 'libidl2' 'libpng' 'qt')
install=virtualbox-modules.install
source=(http://download.virtualbox.org/virtualbox/$pkgver/VirtualBox-$pkgver-OSE.tar.bz2)
build() {
cd "$srcdir/VirtualBox-${pkgver}_OSE"
. /etc/profile.d/qt3.sh
export PATH=$QTDIR/bin:$PATH
export QMAKESPEC=$QTDIR/mkspecs/linux-g++
sed -i 's/python2.5/python2.6/g' configure
./configure --with-gcc=/usr/bin/gcc-3.4 \
--with-g++=/usr/bin/g++-3.4 \
--disable-hardening
sed -i 's/-DVBOX_WITH_HARDENING//' src/VBox/HostDrivers/Support/linux/Makefile
source ./env.sh
kmk all || return 1
cd out/linux.x86/release/bin/src
make || return 1
install -D -m644 vboxdrv.ko "$pkgdir/lib/modules/${_kernver}/misc/vboxdrv.ko"
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" "$startdir/virtualbox-modules.install"
}
md5sums=('37bd7d58cf7b6c46998cfd82c1b70573')
virtualbox-modules.install:
KERNEL_VERSION='2.6.29-ARCH'
post_install() {
cat << EOM
===> virtualbox-modules post-install message:
===>
===> You must load vboxdrv module before starting VirtualBox:
===> # modprobe vboxdrv
===>
===> To load it automatically, add vboxdrv module
===> to the MODULES array in /etc/rc.conf.
EOM
if [ "$CARCH" = "x86_64" ]; then
cat << EOM
===> If you use kernel 2.6.19 or higher, you must disable
===> the NMI watchdog by specifying 'nmi_watchdog=0'
===> at kernel command line (add this option to your
===> /boot/grub/menu.lst).
EOM
fi
groupadd -g 108 vboxusers >/dev/null 2>&1 || true
depmod -v $KERNEL_VERSION >/dev/null 2>&1
}
post_remove() {
groupdel vboxusers >/dev/null 2>&1 || true
depmod -v $KERNEL_VERSION >/dev/null 2>&1
}
post_upgrade() {
depmod -v $KERNEL_VERSION >/dev/null 2>&1
}
Any chances to get an updated pkgbuild ?
test0@bulky> sudo pacman -Syu ~
Password:
:: Starting full system upgrade...
warning: cracklib: local (2.8.13-2) is newer than core (2.8.13-1)
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: virtualbox-modules: requires kernel26<2.6.29
[1] test0@bulky>
[musikolo@myhost ~]$ sudo pacman -Syu
... etc ...
error: failed to prepare transaction (could not satisfy dependencies)
:: virtualbox-modules: requires kernel26<2.6.28
Same problem here... :_(
Is the maintainer dead ?
Rename this package to: virtualbox-ose-modules
Please patch the pkgbuild to include this line:
install -D -m644 vboxnetflt.ko "$pkgdir/lib/modules/${_kernver}/misc/vboxnetflt.ko"
This package needs to be updated to properly support VirtualBox 2.1.x. Specifically, the new vboxnetflt module MUST be installed in order for host networking to work. Please see the following posts for more information:
http://bugs.archlinux.org/task/12965
http://bbs.archlinux.org/viewtopic.php?pid=486464#p486464
Please, update this package as I cannot upgrade to the new kernel package (2.8.x):
[musikolo@myhost ~]$ sudo pacman -Syu
... etc ...
error: failed to prepare transaction (could not satisfy dependencies)
:: virtualbox-modules: requires kernel26<2.6.28
I hope you find a gap to do this soon.
Thanks a lot for your time and effort.
why there is nothing like this? http://wiki.archlinux.org/index.php/VirtualBox#Rebuild_the_vboxdrv_Module
It prevents me from upgrading kernel few days...
you can simply add script for recompiling vboxdrv module like others distributions do... then you can remove kernel version from dependencies... thanks...
New kernel is in core. You should update this package!
Just install virtualbox-ose with dependancies:
No vboxdrv
No vbox_build_module
No vboxusers group
You need to change _kernver=2.6.26-ARCH to 2.6.27-arch.
Please update the package for kernel 2.6.27
Here is a updated PKGBUILD which solves the errors mentioned in the following forum thread:
http://bbs.archlinux.org/viewtopic.php?id=55406&p=3
# Maintainer: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
# Contributor: Andrea Scarpino <bash.lnx@gmail.com>
# Contributor: Roman Kyrylych <roman@archlinux.org>
# Contributor: Michal Krenek <mikos@sg1.cz>
# Contributor: niQo
# Contributor: Ingmar Steen
pkgname=virtualbox-modules
_kernver=2.6.26-ARCH
pkgver=2.0.2
pkgrel=2
pkgdesc="Kernel modules for VirtualBox (vboxdrv)"
arch=('i686')
url="http://www.virtualbox.org"
license=('GPL')
depends=('kernel26>=2.6.26' 'kernel26<2.6.27')
makedepends=('bin86' 'dev86' 'iasl' 'libstdc++5' 'qt3' 'sdl_ttf' 'libxt'
'libgl' 'alsa-lib' 'pulseaudio' 'gcc34' 'libxcursor' 'libidl2' 'libxslt'
'xalan-c' 'pth' 'libxml2' 'libidl2' 'libpng')
install=virtualbox-modules.install
source=(http://download.virtualbox.org/virtualbox/$pkgver/VirtualBox-$pkgver-OSE.tar.bz2)
build() {
cd "$srcdir/VirtualBox-$pkgver"
. /etc/profile.d/qt3.sh
export PATH=$QTDIR/bin:$PATH
export QMAKESPEC=$QTDIR/mkspecs/linux-g++
./configure --with-qt-dir=/opt/qt \
--with-gcc=/usr/bin/gcc-3.4 \
--with-g++=/usr/bin/g++-3.4 \
--disable-hardening
source ./env.sh
sed -i 's/-DVBOX_WITH_HARDENING//' src/VBox/HostDrivers/Support/linux/Makefile
kmk all || return 1
cd out/linux.x86/release/bin/src
make || return 1
install -D -m644 vboxdrv.ko "$pkgdir/lib/modules/${_kernver}/misc/vboxdrv.ko"
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" "$startdir/virtualbox-modules.install"
}
md5sums=('f7b48ec55ac1ca17c575bf9dda80c301')
sorry my mistake. I was using my archiso-live cd and thought i added the new virtualbox-modules.
Sorry about that.
from my dmesg:
vboxdrv: Trying to deactivate the NMI watchdog permanently...
vboxdrv: Successfully done.
vboxdrv: Found 2 processor cores.
vboxdrv: fAsync=0 u64DiffCores=3556.
vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
vboxdrv: Successfully loaded version 1.6.4_OSE (interface 0x00080000).
the new virtualbox-modules package thinks its 1.6.2_OSE version. I can't use virtualbox cause i think virtualbox-ose is on the right version.
here is the text from my dmesg:
Aug 25 16:56:18 arch-live vboxdrv: Trying to deactivate the NMI watchdog permanently...
Aug 25 16:56:18 arch-live vboxdrv: Successfully done.
Aug 25 16:56:18 arch-live vboxdrv: Found 1 processor cores.
Aug 25 16:56:18 arch-live vboxdrv: fAsync=0 u64DiffCores=1.
Aug 25 16:56:18 arch-live vboxdrv: TSC mode is 'synchronous', kernel timer mode is 'normal'.
Aug 25 16:56:18 arch-live vboxdrv: Successfully loaded version 1.6.2_OSE (interface 0x00070002).
Can you rebuild it to say 1.6.4_OSE?
I checked the gcc.gnu.org archives and the answer seems to be "You just need to install the 32 bit glibc-dev package from your distro. Every one has one, but they call them different names."
The closest hits I could find were dev86 and lib32-glibc. dev86 is already included in the dependencies and I already had lib32-glibc. I went ahead and reinstalled it just in case, but I still don't have the stubs-32 header.
I'd like to try out vbox, but qemu seems to be the only VM I can get up and running :/
Hmmm .... still no way to build for x86_64. Build fails on missing file /usr/include/gnu/stubs-32.h
Anyone know how/if it's possible to successfully build this package for 64 bit?
Thanks for the update to the 2.6.26 kernel but why no update to version 1.6.4 of virtualbox? Version 1.6.4 should even compile with the 2.6.27 kernel.
Regards
André
Re-built to kernel 2.6.26
please rebuild against 2.6.26 as it is now in core.
Fails to build on x86_64. I get numerous messages, including:
In file included from /var/abs/local/virtualbox-modules/src/vboxdrv-1.3.8/include/iprt/types.h:55,
from /var/abs/local/virtualbox-modules/src/vboxdrv-1.3.8/include/VBox/types.h:25,
from /var/abs/local/virtualbox-modules/src/vboxdrv-1.3.8/SUPDRV.h:31,
from /var/abs/local/virtualbox-modules/src/vboxdrv-1.3.8/linux/SUPDrv-linux.c:24:
include/linux/types.h:40: error: redefinition of typedef ‘uintptr_t’
Anyone know fix/workaround?
@ furester
Yes, it'll be fixed with AUR 1.5.2
you can get PKGBUILDs here: http://repos.archlinux.org/viewvc.cgi/community/modules/virtualbox-modules/?root=community
How could I read the PKGBUILD and other files to compile it myself?I get an error page anytime I click on CVS-view in aur pages for community packages!
updated, sorry for delay
Please make x86_64 package.
Why no update to version 1.6.0?
Regards
André
* rebuilt
@ furester
http://repos.archlinux.org/viewvc.cgi/community/modules/virtualbox-modules/?root=community&pathrev=CURRENT
How to get the PKGBUILD and compile it ourselves?
Needs update for kernel 2.6.25
v1.6.0