You are not logged in.
piie just recently updated AUR package for VirtualBox 1.4.0 (thanks piie! ). You can find it here: http://aur.archlinux.org/packages.php?d … s=0&SeB=nd
Although piie AUR package was only for i686. It can also be used to install VirtualBox on Arch 64 bit with a few modifications. This is the modified PKGBUILD file that I made. I have test it on my system and have not encounter any problem. Noted that this PKGBUILD is for Arch 64 bit only.
# Contributor: piie <peter@piie.net>
pkgname=virtualbox_bin
pkgver=1.4.0
pkgrel=3
pkgdesc="Powerful x86 virtualization - binary version (non GPL - free for personal use and evaluation)"
url="http://www.virtualbox.org"
license="PUEL"
arch=(x86_64)
source=(http://www.virtualbox.org/download/${pkgver}/VirtualBox_${pkgver}_Linux_amd64.run vbox.install vbox_build_module)
md5sums=('17003e95329ea1ee4c8b7c0ff0e2bc04'
'485491f19a1dd6641e510011c5cb1d1a'
'1c61e343aee88ab791f14914457f4832')
install=('vbox.install')
depends=('libidl2' 'libxslt' 'qt' 'e2fsprogs' 'sdl')
provides=('virtualbox')
makedepends=()
build() {
sh VirtualBox_${pkgver}_Linux_amd64.run --target $startdir/src/ &>/dev/null
mkdir -p $startdir/pkg/opt/VirtualBox-${pkgver} $startdir/pkg/etc/vbox $startdir/pkg/usr/bin $startdir/pkg/etc/udev/rules.d/ $startdir/pkg/usr/share/applications/ $startdir/pkg/usr/share/pixmaps/
cd $startdir/pkg/opt/VirtualBox-${pkgver}
tar xfj $startdir/src/VirtualBox.tar.bz2
cp $startdir/vbox_build_module $startdir/pkg/usr/bin/
rm -Rf $startdir/pkg/opt/VirtualBox-${pkgver}/sdk
ln -s /opt/VirtualBox-${pkgver}/VBox.sh $startdir/pkg/usr/bin/VirtualBox
ln -s /opt/VirtualBox-${pkgver}/VBox.sh $startdir/pkg/usr/bin/VBoxManage
ln -s /opt/VirtualBox-${pkgver}/VBox.sh $startdir/pkg/usr/bin/VBoxSDL
ln -s /opt/VirtualBox-${pkgver}/VBox.sh $startdir/pkg/usr/bin/VBoxVRDP
ln -s /opt/VirtualBox-${pkgver}/VBox.png $startdir/pkg/usr/share/pixmaps/VBox.png
ln -s /opt/VirtualBox-${pkgver}/VirtualBox.desktop $startdir/pkg/usr/share/applications/VirtualBox.desktop
sed -i -e 's/sudo \/etc\/init.d\/vboxdrv setup/\/usr\/bin\/vbox_build_module/g' $startdir/pkg/opt/VirtualBox-${pkgver}/VBox.sh
sed -i -e 's/sudo \/etc\/init.d\/virtualbox restart/modprobe vboxdrv/g' $startdir/pkg/opt/VirtualBox-${pkgver}/VBox.sh
echo "KERNEL==\"vboxdrv\", NAME=\"vboxdrv\", OWNER=\"root\", GROUP=\"vboxusers\", MODE=\"0660\"" > $startdir/pkg/etc/udev/rules.d/60-vboxdrv.rules
echo "# VirtualBox installation directory" > $startdir/pkg/etc/vbox/vbox.cfg
echo "INSTALL_DIR="\"/opt/VirtualBox-${pkgver}\" >> $startdir/pkg/etc/vbox/vbox.cfg
}
As you can see, I made only three changes to piie original PKGBUILD file:
1. change i686 in arch field to x86_64
2. change VirtualBox_${pkgver}_Linux_x86.run to VirtualBox_${pkgver}_Linux_amd64.run in both source and build fields
3. change the md5sums for VirtualBox_${pkgver}_Linux_amd64.run file (you might want to check this yourself, just in case. )
Hope this file will be useful. If you have any problem,please leave a comment.
Credits & special thanks goes to piie for maintaining this package and Janax for posting the original PKGBUILD file for VirtualBox 64 bit.
EDIT: This is a generic (can be use on both i686 & x86_64 boxes) PKGBUILD file. I base this PKGBUILD file on Janax's PKGBUILD file with some minor changes, so full credit goes to him. (Thanks Janax. )
# Contributor: piie <peter@piie.net>
pkgname=virtualbox_bin
pkgver=1.4.0
pkgrel=3
pkgdesc="Powerful x86 virtualization - binary version (non GPL - free for personal use and evaluation)"
url="http://www.virtualbox.org"
license="PUEL"
arch=('i686' 'x86_64')
_architect='x86'
[ "$CARCH" = "x86_64" ] && _architect='amd64'
source=(http://www.virtualbox.org/download/${pkgver}/VirtualBox_${pkgver}_Linux_${_architect}.run vbox.install vbox_build_module)
md5sums=('d796ef14caa3e3b3be10c959a14f1634'
'485491f19a1dd6641e510011c5cb1d1a'
'1c61e343aee88ab791f14914457f4832')
[ "$CARCH" = "x86_64" ] && md5sums[0]='17003e95329ea1ee4c8b7c0ff0e2bc04'
install=('vbox.install')
depends=('libidl2' 'libxslt' 'qt' 'e2fsprogs' 'sdl')
provides=('virtualbox')
makedepends=()
build() {
sh VirtualBox_${pkgver}_Linux_${_architect}.run --target $startdir/src/ &>/dev/null
mkdir -p $startdir/pkg/opt/VirtualBox-${pkgver} $startdir/pkg/etc/vbox $startdir/pkg/usr/bin $startdir/pkg/etc/udev/rules.d/ $startdir/pkg/usr/share/applications/ $startdir/pkg/usr/share/pixmaps/
cd $startdir/pkg/opt/VirtualBox-${pkgver}
tar xfj $startdir/src/VirtualBox.tar.bz2
cp $startdir/vbox_build_module $startdir/pkg/usr/bin/
rm -Rf $startdir/pkg/opt/VirtualBox-${pkgver}/sdk
ln -s /opt/VirtualBox-${pkgver}/VBox.sh $startdir/pkg/usr/bin/VirtualBox
ln -s /opt/VirtualBox-${pkgver}/VBox.sh $startdir/pkg/usr/bin/VBoxManage
ln -s /opt/VirtualBox-${pkgver}/VBox.sh $startdir/pkg/usr/bin/VBoxSDL
ln -s /opt/VirtualBox-${pkgver}/VBox.sh $startdir/pkg/usr/bin/VBoxVRDP
ln -s /opt/VirtualBox-${pkgver}/VBox.png $startdir/pkg/usr/share/pixmaps/VBox.png
ln -s /opt/VirtualBox-${pkgver}/VirtualBox.desktop $startdir/pkg/usr/share/applications/VirtualBox.desktop
sed -i -e 's/sudo \/etc\/init.d\/vboxdrv setup/\/usr\/bin\/vbox_build_module/g' $startdir/pkg/opt/VirtualBox-${pkgver}/VBox.sh
sed -i -e 's/sudo \/etc\/init.d\/virtualbox restart/modprobe vboxdrv/g' $startdir/pkg/opt/VirtualBox-${pkgver}/VBox.sh
echo "KERNEL==\"vboxdrv\", NAME=\"vboxdrv\", OWNER=\"root\", GROUP=\"vboxusers\", MODE=\"0660\"" > $startdir/pkg/etc/udev/rules.d/60-vboxdrv.rules
echo "# VirtualBox installation directory" > $startdir/pkg/etc/vbox/vbox.cfg
echo "INSTALL_DIR="\"/opt/VirtualBox-${pkgver}\" >> $startdir/pkg/etc/vbox/vbox.cfg
}
I have tested it and it works on my box (Arch 64 bit). However I've not yet test it on Arch i686, but it should work without any problem. Anyway, feedback would be great.
Last edited by zodmaner (2007-08-07 12:46:41)
Offline