Changeset 4946
- Timestamp:
- 02/05/09 01:38:24 (4 years ago)
- Location:
- pkg/boss/main/virtualbox-ose/trunk/debian
- Files:
-
- 3 added
- 4 deleted
- 19 edited
-
changelog (modified) (2 diffs)
-
control (modified) (2 diffs)
-
lintian/virtualbox-ose (modified) (2 diffs)
-
patches/00list (modified) (1 diff)
-
patches/07-init-fail.dpatch (deleted)
-
patches/08-init-lsb.dpatch (modified) (2 diffs)
-
patches/09-initscript.dpatch (modified) (1 diff)
-
patches/12-make-module.dpatch (modified) (4 diffs)
-
rules (modified) (5 diffs)
-
virtualbox-ose-guest-source.files/control.modules.in (modified) (2 diffs)
-
virtualbox-ose-source.files/Makefile (added)
-
virtualbox-ose-source.files/control.modules.in (modified) (1 diff)
-
virtualbox-ose-source.files/rules (modified) (1 diff)
-
virtualbox-ose-source.install (modified) (1 diff)
-
virtualbox-ose-source.links (modified) (1 diff)
-
virtualbox-ose.README.Debian.xml (deleted)
-
virtualbox-ose.default (modified) (1 diff)
-
virtualbox-ose.docs (modified) (1 diff)
-
virtualbox-ose.files/NEWS.Debian (added)
-
virtualbox-ose.files/README.Debian.xml (added)
-
virtualbox-ose.files/VBox.sh (modified) (1 diff)
-
virtualbox-ose.files/wiki.html (modified) (6 diffs)
-
virtualbox-ose.if-post-down (deleted)
-
virtualbox-ose.if-pre-up (deleted)
-
virtualbox-ose.install (modified) (3 diffs)
-
virtualbox-ose.links (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pkg/boss/main/virtualbox-ose/trunk/debian/changelog
r4764 r4946 1 virtualbox-ose (2.0.6-1) unstable; urgency=low 2 3 [ Michael Meskes ] 1 virtualbox-ose (2.1.2-dfsg-1) unstable; urgency=low 2 3 [ Michael Meskes ] 4 * New upstream version. 5 * Enabled webservice. 6 * Install VBoxSysInfo script. 7 * Removed SUP[Un]install test case. 8 * Removed xpidl and sdk. This might go into a -dev package if it is really 9 useful for anyone not developing virtualbox-ose. 10 * Documented changes in network setup and removed useless scripts and 11 configs. Closes: #512024 12 * Added missing architecture amd64 to guest source package. Closes: #512811 13 14 -- Alan Baghumian <alan@technotux.org> Wed, 04 Feb 2009 16:36:23 -0800 15 16 virtualbox-ose (2.1.0-dfsg-2) experimental; urgency=low 17 18 * Added versioned build dependency for kbuild. Closes: #510736 19 * Added versioned build dependency for qt4. Closes: #510785 20 * Re-created two patches against initscript to make them clearer and to 21 re-add a line lost in the transition. Closes: #474089 22 23 -- Michael Meskes <meskes@debian.org> Sun, 04 Jan 2009 16:58:38 +0100 24 25 virtualbox-ose (2.1.0-dfsg-1) experimental; urgency=low 26 27 * New upstream version 28 This one doesn't use /dev/net/tun anymore. Closes: #509524 29 * Removed obsoleted vditool, VBoxAddIF.sh and VBoxTunctl. 30 31 -- Michael Meskes <meskes@debian.org> Thu, 18 Dec 2008 12:49:34 +0100 32 33 virtualbox-ose (2.0.6-dfsg-1) experimental; urgency=low 34 4 35 * New upstream version. Closes: #497840 5 36 * Do not warn user about losing snapshots anymore, this is supposed to be a … … 9 40 * Documented need for hardware virtualization if running a 64-bit guest. 10 41 11 -- Alan Baghumian <alan@technotux.org> Tue, 23 Dec 2008 21:55:43 -080042 -- Michael Meskes <meskes@debian.org> Thu, 20 Nov 2008 14:09:54 +0100 12 43 13 44 virtualbox-ose (1.6.6-dfsg-3) unstable; urgency=high -
pkg/boss/main/virtualbox-ose/trunk/debian/control
r4744 r4946 15 15 docbook-xsl, 16 16 dpatch, 17 gcc-4.2,18 17 g++-4.2, 19 18 g++-4.2-multilib [amd64], 19 gcc-4.2, 20 gsoap, 20 21 iasl, 21 kbuild ,22 kbuild (>= 1:0.1.5svn2243), 22 23 libacl1-dev, 23 24 libasound-dev, 25 libcap2-dev, 24 26 libhal-dev, 25 27 libidl-dev, 26 28 libpng12-dev, 27 29 libpulse-dev, 28 libqt4-dev ,30 libqt4-dev (>= 4.3.0), 29 31 libsdl1.2-dev, 30 32 libx11-dev, … … 35 37 libxrender-dev, 36 38 libxslt1-dev, 37 lynx ,39 lynx-cur, 38 40 po-debconf (>= 0.5.0), 39 41 python-dev, -
pkg/boss/main/virtualbox-ose/trunk/debian/lintian/virtualbox-ose
r4744 r4946 19 19 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/components/VBoxC.so 20 20 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/components/VBoxSVCM.so 21 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/VBoxREM32.so 22 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/VBoxREM64.so 23 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/VBoxSharedClipboard.so 24 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/VBoxSharedFolders.so 25 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/VBoxSharedOpenGL.so 26 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/VBoxKeyboard.so 21 27 virtualbox-ose: unstripped-binary-or-object ./usr/lib/virtualbox/VBoxDD2GC.gc 22 28 virtualbox-ose: unstripped-binary-or-object ./usr/lib/virtualbox/VBoxDD2R0.r0 … … 29 35 virtualbox-ose: unstripped-binary-or-object ./usr/lib/virtualbox/tstMicroGC.gc 30 36 virtualbox-ose: unstripped-binary-or-object ./usr/lib/virtualbox/VBoxREM2.rel 31 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/VBoxSharedClipboard.so32 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/VBoxSharedFolders.so33 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/VBoxSharedOpenGL.so34 virtualbox-ose: shlib-with-non-pic-code usr/lib/virtualbox/VBoxKeyboard.so35 37 virtualbox-ose: setuid-gid-binary usr/lib/virtualbox/VBoxBFE 6755 root/root 36 38 virtualbox-ose: setuid-gid-binary usr/lib/virtualbox/VBoxHeadless 6755 root/root -
pkg/boss/main/virtualbox-ose/trunk/debian/patches/00list
r4744 r4946 4 4 04-vboxdrv-references.dpatch 5 5 06-xsession.dpatch 6 07-init-fail.dpatch7 6 08-init-lsb.dpatch 8 7 09-initscript.dpatch -
pkg/boss/main/virtualbox-ose/trunk/debian/patches/08-init-lsb.dpatch
r4744 r4946 6 6 @DPATCH@ 7 7 8 diff -Naurp virtualbox-ose- 1.6.0-dfsg.orig/src/VBox/Installer/linux/vboxnet.sh.in virtualbox-ose-1.6.0-dfsg/src/VBox/Installer/linux/vboxnet.sh.in9 --- virtualbox-ose- 1.6.0-dfsg.orig/src/VBox/Installer/linux/vboxnet.sh.in 2008-05-09 09:28:11.000000000 +000010 +++ virtualbox-ose- 1.6.0-dfsg/src/VBox/Installer/linux/vboxnet.sh.in 2008-05-09 09:28:41.000000000 +000011 @@ - 20,10 +20,10@@8 diff -Naurp virtualbox-ose-2.1.0-dfsg.orig/src/VBox/Installer/linux/vboxdrv.sh.in virtualbox-ose-2.1.0-dfsg/src/VBox/Installer/linux/vboxdrv.sh.in 9 --- virtualbox-ose-2.1.0-dfsg.orig/src/VBox/Installer/linux/vboxdrv.sh.in 2008-05-09 09:28:11.000000000 +0000 10 +++ virtualbox-ose-2.1.0-dfsg/src/VBox/Installer/linux/vboxdrv.sh.in 2008-05-09 09:28:41.000000000 +0000 11 @@ -19,8 +19,8 @@ 12 12 # 13 13 ### BEGIN INIT INFO 14 # Provides: vbox net15 -# Required-Start: $ network14 # Provides: vboxdrv 15 -# Required-Start: $syslog 16 16 -# Required-Stop: 17 17 +# Required-Start: $remote_fs $network … … 19 19 # Default-Start: 2 3 4 5 20 20 # Default-Stop: 0 1 6 21 # Description: VirtualBox permanent host networking setup 22 ### END INIT INFO 21 # Short-Description: VirtualBox Linux kernel module 22 @@ -32,7 +32,7 @@ 23 LOG="/var/log/vbox-install.log" 24 NOLSB=%NOLSB% 23 25 24 @@ -50,14 +50,13 @@ if [ -z "$NOLSB" ]; then 26 -[ -f /lib/lsb/init-functions ] || NOLSB=yes 27 +[ -f /lib/lsb/init-functions ] && NOLSB= 28 [ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg 29 30 if [ -n "$INSTALL_DIR" ]; then 31 @@ -60,14 +60,13 @@ 32 if [ -z "$NOLSB" ]; then 25 33 . /lib/lsb/init-functions 26 34 fail_msg() { 27 [ -f "$VARFILE" ] && rm $VARFILE28 35 - echo "" 29 36 - log_failure_msg "$1" -
pkg/boss/main/virtualbox-ose/trunk/debian/patches/09-initscript.dpatch
r4744 r4946 6 6 @DPATCH@ 7 7 8 diff -Naurp virtualbox-ose-2. 0.4-dfsg.orig/src/VBox/Installer/linux/vboxnet.sh.in virtualbox-ose-2.0.4-dfsg/src/VBox/Installer/linux/vboxnet.sh.in9 --- virtualbox-ose-2. 0.4-dfsg.orig/src/VBox/Installer/linux/vboxnet.sh.in 2008-11-21 12:44:47.000000000 +000010 +++ virtualbox-ose-2. 0.4-dfsg/src/VBox/Installer/linux/vboxnet.sh.in 2008-11-21 12:45:40.000000000 +000011 @@ -3 4,7 +34,12@@12 TAPDEV="/dev/net/tun"8 diff -Naurp virtualbox-ose-2.1.0-dfsg.orig/src/VBox/Installer/linux/vboxdrv.sh.in virtualbox-ose-2.1.0-dfsg/src/VBox/Installer/linux/vboxdrv.sh.in 9 --- virtualbox-ose-2.1.0-dfsg.orig/src/VBox/Installer/linux/vboxdrv.sh.in 2008-12-18 16:30:08.000000000 +0100 10 +++ virtualbox-ose-2.1.0-dfsg/src/VBox/Installer/linux/vboxdrv.sh.in 2008-12-18 16:36:51.000000000 +0100 11 @@ -32,6 +32,8 @@ 12 LOG="/var/log/vbox-install.log" 13 13 NOLSB=%NOLSB% 14 14 15 -[ -f /lib/lsb/init-functions ] || NOLSB=yes16 15 +# Include virtualbox-ose defaults if available 17 +if [ -f /etc/default/virtualbox-ose ] ; then 18 + . /etc/default/virtualbox-ose 19 +fi 20 + 21 +[ -f /lib/lsb/init-functions ] && NOLSB= 16 +[ -f /etc/default/virtualbox-ose ] && . /etc/default/virtualbox-ose 17 [ -f /lib/lsb/init-functions ] && NOLSB= 18 [ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg 22 19 23 if [ -n "$NOLSB" ]; then 24 if [ -f /etc/redhat-release ]; then 25 @@ -168,13 +173,6 @@ 26 if ! VBoxTunctl -h 2>&1 | grep VBoxTunctl > /dev/null; then 27 failure "VBoxTunctl not found" 20 @@ -153,8 +155,10 @@ 21 if ! rm -f $DEVICE; then 22 failure "Cannot remove $DEVICE" 23 fi 24 - if ! modprobe vboxdrv > /dev/null 2>&1; then 25 - failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why" 26 + if [ "$LOAD_VBOXDRV_MODULE" = 1 ]; then 27 + if ! modprobe vboxdrv > /dev/null 2>&1; then 28 + failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why" 29 + fi 30 fi 31 sleep .2 28 32 fi 29 - # Fail if we don't have the kernel tun device 30 - # Make sure that the tun module is loaded (Ubuntu 7.10 needs this) 31 - modprobe tun > /dev/null 2>&1 32 - if ! cat /proc/misc 2>/dev/null | grep tun > /dev/null; then 33 - failure "Linux tun/tap subsystem not available" 34 - fi 35 - succ_msg 36 # Read the configuration file entries line by line and create the 37 # interfaces 38 while read line; do 39 @@ -185,6 +183,19 @@ 40 # or two non-comment entries, possibly followed by a comment). 41 if ((! expr match "$2" "#" > /dev/null) && 42 (test -z "$4" || expr match "$4" "#" > /dev/null)); then 43 + if [ "$module_available" != 1 ] 44 + then 45 + # Fail if we don't have the kernel tun device 46 + # Make sure that the tun module is loaded (Ubuntu 7.10 needs this) 47 + # We only test this once, but we have to do it here, because otherwise an empty 48 + # configuration file would trigger the modprobe too. 49 + modprobe tun > /dev/null 2>&1 50 + if ! cat /proc/misc 2>/dev/null | grep tun > /dev/null 51 + then 52 + failure "Linux tun/tap subsystem not available" 53 + fi 54 + module_available=1 55 + fi 56 # Name our parameters, to make this script slightly less unreadable 57 interface=$1 58 user=$2 59 @@ -238,6 +249,7 @@ 60 fi 61 fi 62 done < "$CONFIG" 63 + succ_msg 64 return 0 33 @@ -184,8 +188,10 @@ 34 rmmod vboxdrv 2>/dev/null 35 failure "Cannot change owner $GROUPNAME for device $DEVICE" 36 fi 37 - if ! modprobe vboxnetflt > /dev/null 2>&1; then 38 - failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why" 39 + if [ "$LOAD_VBOXDRV_MODULE" = 1 ]; then 40 + if ! modprobe vboxnetflt > /dev/null 2>&1; then 41 + failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why" 42 + fi 43 fi 44 succ_msg 65 45 } 66 67 @@ -331,10 +343,17 @@68 69 case "$1" in70 start)71 + # try to insert module but do not fail if not possible72 + if [ "$LOAD_VBOXDRV_MODULE" = 1 ]; then73 + /sbin/modprobe -q vboxdrv || true74 + fi75 start_network76 ;;77 stop)78 stop_network79 + if [ "$LOAD_VBOXDRV_MODULE" = 1 ]; then80 + /sbin/modprobe -qr vboxdrv || true81 + fi82 ;;83 restart|reload)84 stop_network && start_network -
pkg/boss/main/virtualbox-ose/trunk/debian/patches/12-make-module.dpatch
r4744 r4946 6 6 @DPATCH@ 7 7 8 diff -Naurp virtualbox-ose-2. 0.6-dfsg.orig/src/VBox/Additions/linux/module/Makefile.module virtualbox-ose-2.0.6-dfsg/src/VBox/Additions/linux/module/Makefile.module9 --- virtualbox-ose-2. 0.6-dfsg.orig/src/VBox/Additions/linux/module/Makefile.module 2008-11-27 14:45:57.000000000 +010010 +++ virtualbox-ose-2. 0.6-dfsg/src/VBox/Additions/linux/module/Makefile.module 2008-11-27 14:50:29.000000000 +01008 diff -Naurp virtualbox-ose-2.1.0-dfsg.orig/src/VBox/Additions/linux/module/Makefile.module virtualbox-ose-2.1.0-dfsg/src/VBox/Additions/linux/module/Makefile.module 9 --- virtualbox-ose-2.1.0-dfsg.orig/src/VBox/Additions/linux/module/Makefile.module 2008-12-13 23:00:20.000000000 +0100 10 +++ virtualbox-ose-2.1.0-dfsg/src/VBox/Additions/linux/module/Makefile.module 2008-12-28 17:23:27.000000000 +0100 11 11 @@ -32,12 +32,24 @@ ifeq ($(BUILD_TARGET_ARCH),) 12 12 BUILD_TARGET_ARCH := amd64 … … 38 38 endif 39 39 endif 40 diff -Naurp virtualbox-ose-2. 0.6-dfsg.orig/src/VBox/Additions/linux/sharedfolders/Makefile.module virtualbox-ose-2.0.6-dfsg/src/VBox/Additions/linux/sharedfolders/Makefile.module41 --- virtualbox-ose-2. 0.6-dfsg.orig/src/VBox/Additions/linux/sharedfolders/Makefile.module 2008-11-27 14:45:57.000000000 +010042 +++ virtualbox-ose-2. 0.6-dfsg/src/VBox/Additions/linux/sharedfolders/Makefile.module 2008-11-27 14:51:08.000000000 +010040 diff -Naurp virtualbox-ose-2.1.0-dfsg.orig/src/VBox/Additions/linux/sharedfolders/Makefile.module virtualbox-ose-2.1.0-dfsg/src/VBox/Additions/linux/sharedfolders/Makefile.module 41 --- virtualbox-ose-2.1.0-dfsg.orig/src/VBox/Additions/linux/sharedfolders/Makefile.module 2008-12-13 23:00:20.000000000 +0100 42 +++ virtualbox-ose-2.1.0-dfsg/src/VBox/Additions/linux/sharedfolders/Makefile.module 2008-12-28 17:23:27.000000000 +0100 43 43 @@ -32,12 +32,24 @@ ifeq ($(BUILD_TARGET_ARCH),) 44 44 BUILD_TARGET_ARCH := amd64 … … 70 70 endif 71 71 endif 72 diff -Naurp virtualbox-ose-2. 0.6-dfsg.orig/src/VBox/HostDrivers/Support/linux/Makefile virtualbox-ose-2.0.6-dfsg/src/VBox/HostDrivers/Support/linux/Makefile73 --- virtualbox-ose-2. 0.6-dfsg.orig/src/VBox/HostDrivers/Support/linux/Makefile 2008-11-27 14:45:45.000000000 +010074 +++ virtualbox-ose-2. 0.6-dfsg/src/VBox/HostDrivers/Support/linux/Makefile 2008-11-27 14:49:00.000000000 +010072 diff -Naurp virtualbox-ose-2.1.0-dfsg.orig/src/VBox/HostDrivers/Support/linux/Makefile virtualbox-ose-2.1.0-dfsg/src/VBox/HostDrivers/Support/linux/Makefile 73 --- virtualbox-ose-2.1.0-dfsg.orig/src/VBox/HostDrivers/Support/linux/Makefile 2008-12-13 23:00:17.000000000 +0100 74 +++ virtualbox-ose-2.1.0-dfsg/src/VBox/HostDrivers/Support/linux/Makefile 2008-12-28 17:23:27.000000000 +0100 75 75 @@ -43,12 +43,24 @@ ifeq ($(BUILD_TARGET_ARCH),) 76 76 BUILD_TARGET_ARCH := amd64 … … 102 102 endif 103 103 endif 104 diff -Naurp virtualbox-ose-2.1.0-dfsg.orig/src/VBox/HostDrivers/VBoxNetFlt/linux/Makefile virtualbox-ose-2.1.0-dfsg/src/VBox/HostDrivers/VBoxNetFlt/linux/Makefile 105 --- virtualbox-ose-2.1.0-dfsg.orig/src/VBox/HostDrivers/VBoxNetFlt/linux/Makefile 2008-12-15 22:21:46.000000000 +0100 106 +++ virtualbox-ose-2.1.0-dfsg/src/VBox/HostDrivers/VBoxNetFlt/linux/Makefile 2008-12-28 17:23:49.000000000 +0100 107 @@ -34,12 +34,24 @@ ifeq ($(BUILD_TARGET_ARCH),) 108 BUILD_TARGET_ARCH := amd64 109 else 110 ifeq ($(ARCH),i386) 111 - BUILD_TARGET_ARCH := x86 112 + ifeq ($(CONFIG_X86_32),y) 113 + BUILD_TARGET_ARCH := x86 114 + else 115 + BUILD_TARGET_ARCH := amd64 116 + endif 117 else 118 - ifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),) 119 - BUILD_TARGET_ARCH := amd64 120 + ifeq ($(ARCH),x86) 121 + ifeq ($(CONFIG_X86_32),y) 122 + BUILD_TARGET_ARCH := x86 123 + else 124 + BUILD_TARGET_ARCH := amd64 125 + endif 126 else 127 - BUILD_TARGET_ARCH := x86 128 + ifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),) 129 + BUILD_TARGET_ARCH := amd64 130 + else 131 + BUILD_TARGET_ARCH := x86 132 + endif 133 endif 134 endif 135 endif -
pkg/boss/main/virtualbox-ose/trunk/debian/rules
r4744 r4946 21 21 22 22 # Generate README.Debian as text/html ... 23 debian/README.Debian.html: debian/virtualbox-ose. README.Debian.xml23 debian/README.Debian.html: debian/virtualbox-ose.files/README.Debian.xml 24 24 xsltproc --nonet --stringparam section.autolabel 1 \ 25 25 -o $@ \ … … 40 40 --disable-qt3 \ 41 41 --with-gcc=/usr/bin/gcc-4.2 \ 42 --with-g++=/usr/bin/g++-4.2 42 --with-g++=/usr/bin/g++-4.2 \ 43 --enable-webservice 43 44 44 45 build: build-stamp … … 49 50 BUILD_TYPE=release \ 50 51 PATH_OUT=$(abspath out) 51 # make sure VBoxAddIF.sh is built, too 52 $(MAKE) -C src/VBox/Installer/linux $(abspath out/bin/VBoxAddIF.sh) \ 53 PATH_OUT=$(abspath out) 54 # and vboxnet.sh 55 $(MAKE) -C src/VBox/Installer/linux $(abspath out/obj/src/VBox/Installer/linux/vboxnet.sh) \ 52 # and vboxdrv.sh 53 $(MAKE) -C src/VBox/Installer/linux $(abspath out/obj/Installer/linux/vboxdrv.sh) \ 56 54 PATH_OUT=$(abspath out) 57 55 touch $@ … … 100 98 dh_installdirs 101 99 # This will get installed into the package by dh_installinit 102 install -m 644 out/obj/ src/VBox/Installer/linux/vboxnet.sh debian/$(sname).init100 install -m 644 out/obj/Installer/linux/vboxdrv.sh debian/$(sname).init 103 101 # Install helper scripts for vbox* interfaces 104 102 dh_installifupdown -p$(sname) … … 117 115 -install -m 755 out/bin/additions/mountvboxsf debian/$(uname)/sbin/mount.vboxsf 118 116 -install -m 755 src/VBox/Additions/x11/installer/VBoxRandR.sh debian/$(uname)/usr/bin/VBoxRandR 119 dh_strip -s --dbg-package=$(sname)-dbg -X/usr/share/virtualbox/sdk/bin/xpidl117 dh_strip -s --dbg-package=$(sname)-dbg 120 118 dh_link -s 121 119 dh_compress -s -
pkg/boss/main/virtualbox-ose/trunk/debian/virtualbox-ose-guest-source.files/control.modules.in
r4744 r4946 5 5 Uploaders: Philipp Hug <debian@hug.cx>, Marvin Stark <marv@der-marv.de>, Michael Meskes <meskes@debian.org>, Patrick Winnertz <winnie@debian.org>, Daniel Baumann <daniel@debian.org>, Hilko Bengen <bengen@debian.org> 6 6 Build-Depends: debhelper (>= 5), dpatch, kbuild 7 Standards-Version: 3. 7.37 Standards-Version: 3.8.0 8 8 Homepage: http://www.virtualbox.org/ 9 9 Vcs-Svn: svn://svn.debian.org/svn/pkg-virtualbox/trunk … … 11 11 12 12 Package: virtualbox-ose-guest-modules-_KVERS_ 13 Architecture: i386 13 Architecture: i386 amd64 14 14 Depends: linux-modules-_KVERS_ | linux-image-_KVERS_ 15 15 Recommends: virtualbox-ose-guest-utils -
pkg/boss/main/virtualbox-ose/trunk/debian/virtualbox-ose-source.files/control.modules.in
r4744 r4946 5 5 Uploaders: Philipp Hug <debian@hug.cx>, Marvin Stark <marv@der-marv.de>, Michael Meskes <meskes@debian.org>, Patrick Winnertz <winnie@debian.org>, Daniel Baumann <daniel@debian.org>, Hilko Bengen <bengen@debian.org> 6 6 Build-Depends: debhelper (>= 5), dpatch, kbuild 7 Standards-Version: 3. 7.37 Standards-Version: 3.8.0 8 8 Homepage: http://www.virtualbox.org/ 9 9 Vcs-Svn: svn://svn.debian.org/svn/pkg-virtualbox/trunk -
pkg/boss/main/virtualbox-ose/trunk/debian/virtualbox-ose-source.files/rules
r4744 r4946 55 55 $(MAKE) -C $(KSRC) M=$(CURDIR) 56 56 # Install the module 57 dh_install vboxdrv.ko /lib/modules/$(KVERS)/misc/ 57 dh_install vboxdrv/vboxdrv.ko /lib/modules/$(KVERS)/misc/ 58 dh_install vboxnetflt/vboxnetflt.ko /lib/modules/$(KVERS)/misc/ 58 59 dh_installdocs 59 60 dh_installchangelogs -
pkg/boss/main/virtualbox-ose/trunk/debian/virtualbox-ose-source.install
r4744 r4946 1 out/bin/src/* /usr/src/modules/virtualbox-ose 1 out/bin/src/vboxdrv/*.* /usr/src/modules/virtualbox-ose/vboxdrv 2 out/bin/src/vboxdrv/build_in_tmp /usr/src/modules/virtualbox-ose/vboxdrv 3 out/bin/src/vboxdrv/linux /usr/src/modules/virtualbox-ose/vboxdrv 4 out/bin/src/vboxdrv/Makefile /usr/src/modules/virtualbox-ose/vboxdrv 5 6 out/bin/src/vboxnetflt/*.* /usr/src/modules/virtualbox-ose/vboxnetflt 7 out/bin/src/vboxnetflt/build_in_tmp /usr/src/modules/virtualbox-ose/vboxnetflt 8 out/bin/src/vboxnetflt/linux /usr/src/modules/virtualbox-ose/vboxnetflt 9 out/bin/src/vboxnetflt/Makefile /usr/src/modules/virtualbox-ose/vboxnetflt 10 11 out/bin/src/vboxdrv/SUPDrvIDC.h /usr/src/modules/virtualbox-ose/include/ 12 out/bin/src/vboxdrv/version-generated.h /usr/src/modules/virtualbox-ose/include/ 13 out/bin/src/vboxdrv/include/iprt/* /usr/src/modules/virtualbox-ose/include/iprt 14 out/bin/src/vboxdrv/include/VBox/* /usr/src/modules/virtualbox-ose/include/VBox 15 out/bin/src/vboxdrv/include/internal/* /usr/src/modules/virtualbox-ose/include/internal 16 17 out/bin/src/vboxnetflt/include/iprt/* /usr/src/modules/virtualbox-ose/include/iprt 18 out/bin/src/vboxnetflt/include/VBox/* /usr/src/modules/virtualbox-ose/include/VBox 19 out/bin/src/vboxnetflt/include/internal/* /usr/src/modules/virtualbox-ose/include/internal 20 21 out/bin/src/vboxdrv/r0drv /usr/src/modules/virtualbox-ose 22 out/bin/src/vboxdrv/alloc /usr/src/modules/virtualbox-ose 23 out/bin/src/vboxnetflt/common /usr/src/modules/virtualbox-ose 24 out/bin/src/vboxnetflt/generic /usr/src/modules/virtualbox-ose 25 out/bin/src/vboxdrv/math /usr/src/modules/virtualbox-ose 26 out/bin/src/vboxdrv/VBox /usr/src/modules/virtualbox-ose 27 28 out/bin/src/vboxnetflt/SUPR0IdcClientInternal.h /usr/src/modules/virtualbox-ose/ 2 29 3 30 debian/control debian/changelog debian/copyright debian/compat /usr/src/modules/virtualbox-ose/debian 4 debian/virtualbox-ose-source.files/* /usr/src/modules/virtualbox-ose/debian 31 debian/virtualbox-ose-source.files/Makefile /usr/src/modules/virtualbox-ose 32 debian/virtualbox-ose-source.files/control.modules.in /usr/src/modules/virtualbox-ose/debian 33 debian/virtualbox-ose-source.files/postinst.modules.in /usr/src/modules/virtualbox-ose/debian 34 debian/virtualbox-ose-source.files/rules /usr/src/modules/virtualbox-ose/debian -
pkg/boss/main/virtualbox-ose/trunk/debian/virtualbox-ose-source.links
r4744 r4946 1 1 /usr/share/modass/packages/default.sh /usr/share/modass/overrides/virtualbox-ose-source 2 /usr/src/modules/virtualbox-ose/r0drv /usr/src/modules/virtualbox-ose/vboxdrv/r0drv 3 /usr/src/modules/virtualbox-ose/r0drv /usr/src/modules/virtualbox-ose/vboxnetflt/r0drv 4 /usr/src/modules/virtualbox-ose/include /usr/src/modules/virtualbox-ose/vboxdrv/include 5 /usr/src/modules/virtualbox-ose/include /usr/src/modules/virtualbox-ose/vboxnetflt/include 6 /usr/src/modules/virtualbox-ose/alloc /usr/src/modules/virtualbox-ose/vboxdrv/alloc 7 /usr/src/modules/virtualbox-ose/alloc /usr/src/modules/virtualbox-ose/vboxnetflt/alloc 8 /usr/src/modules/virtualbox-ose/common /usr/src/modules/virtualbox-ose/vboxdrv/common 9 /usr/src/modules/virtualbox-ose/common /usr/src/modules/virtualbox-ose/vboxnetflt/common 10 /usr/src/modules/virtualbox-ose/generic /usr/src/modules/virtualbox-ose/vboxdrv/generic 11 /usr/src/modules/virtualbox-ose/generic /usr/src/modules/virtualbox-ose/vboxnetflt/generic 12 /usr/src/modules/virtualbox-ose/math /usr/src/modules/virtualbox-ose/vboxdrv/math 13 /usr/src/modules/virtualbox-ose/math /usr/src/modules/virtualbox-ose/vboxnetflt/math 14 /usr/src/modules/virtualbox-ose/VBox /usr/src/modules/virtualbox-ose/vboxdrv/VBox 15 /usr/src/modules/virtualbox-ose/VBox /usr/src/modules/virtualbox-ose/vboxnetflt/VBox -
pkg/boss/main/virtualbox-ose/trunk/debian/virtualbox-ose.default
r4744 r4946 7 7 # 8 8 9 # Set this to 1 if you would like the v boxdrv moduleto be loaded by9 # Set this to 1 if you would like the virtualbox-ose modules to be loaded by 10 10 # the init script. 11 11 LOAD_VBOXDRV_MODULE=0 -
pkg/boss/main/virtualbox-ose/trunk/debian/virtualbox-ose.docs
r4744 r4946 1 1 debian/README.Debian.html 2 2 debian/virtualbox-ose.files/wiki.html 3 debian/virtualbox-ose.files/NEWS.Debian -
pkg/boss/main/virtualbox-ose/trunk/debian/virtualbox-ose.files/VBox.sh
r4744 r4946 73 73 exec "$INSTALL_DIR/vditool" "$@" 74 74 ;; 75 vboxwebserv) 76 exec "$INSTALL_DIR/vboxwebserv" "$@" 77 ;; 75 78 *) 76 79 echo "Unknown application - $APP" -
pkg/boss/main/virtualbox-ose/trunk/debian/virtualbox-ose.files/wiki.html
r4744 r4946 18 18 // Ignore empty or whitespace search term. 19 19 var value = e.value.replace(/\s+/, ''); 20 if (value == '' || searchIsDisabled) { 20 if (value == '' || searchIsDisabled) { 21 21 searchSetDisabled(true); 22 22 } else { … … 192 192 <div id="page" lang="en" dir="ltr"> 193 193 <div dir="ltr" id="content" lang="en"><span class="anchor" id="top"></span> 194 <span class="anchor" id="line- 9"></span><div><table style="width: 100%"><tbody><tr> <td style="border: 0px hidden ;"><p class="line891"><small>Translation(s): <a class="nonexistent" href="/German/VirtualBox">Deutsch</a> - <a class="nonexistent" href="/French/VirtualBox">Français</a> - <a href="/Spanish/VirtualBox">Español</a> - <a class="nonexistent" href="/Dutch/VirtualBox">Nederlands</a> - <a class="nonexistent" href="/Polish/VirtualBox">Polski</a> - <a class="nonexistent" href="/PortugueseBR/VirtualBox">Português - Brasileiro</a> - <a class="nonexistent" href="/Russian/VirtualBox">Ð ÑÑÑкОй</a></small> </td>194 <span class="anchor" id="line-2"></span><div><table style="width: 100%"><tbody><tr> <td style="border: 0px hidden ;"><p class="line891"><small>Translation(s): <a href="/Spanish/VirtualBox">Español</a></small> </td> 195 195 <td style="border: 0px hidden ; text-align: right;"><p class="line862"> <img alt="(!)" height="15" src="/htdocs/rightsidebar/img/idea.png" title="(!)" width="15" /> <a class="nonexistent" href="/VirtualBox/Discussion">/Discussion</a> </td> 196 196 </tr> 197 </tbody></table></div><span class="anchor" id="line- 10"></span><p class="line867"><hr /><p class="line874"> <span class="anchor" id="line-11"></span><span class="anchor" id="line-12"></span><div><table style="width: 100%"><tbody><tr> <td style="border: 0px hidden ;"><p class="line862"> <img src="/VirtualBox?action=AttachFile&do=get&target=logo.png" title="attachment:logo.png" /> </td>198 <td style="border: 0px hidden ;"><p class="line891">VirtualBox is an x86 emulator developed by <a class="http" href="http://www.virtualbox.org/wiki/innotek">innotek</a> <em>(bought by Sun)</em> comparable to <a href="/VMWare">VMWare</a>. It has a version called VirtualBox Open Source Edition (OSE) which is freely available as Open Source Software under the terms of the GNU General Public License (GPL).<br />197 </tbody></table></div><span class="anchor" id="line-3"></span><p class="line867"><hr /><p class="line874"> <span class="anchor" id="line-4"></span><span class="anchor" id="line-5"></span><div><table style="width: 100%"><tbody><tr> <td style="border: 0px hidden ;"><p class="line862"> <img src="/VirtualBox?action=AttachFile&do=get&target=logo.png" title="attachment:logo.png" /> </td> 198 <td style="border: 0px hidden ;"><p class="line891">VirtualBox is an x86 emulator developed by <a class="http" href="http://www.virtualbox.org/wiki/innotek">innotek</a> <em>(bought by Sun)</em> comparable to <a class="nonexistent" href="/VMWare">VMWare</a>. It has a version called VirtualBox Open Source Edition (OSE) which is freely available as Open Source Software under the terms of the GNU General Public License (GPL).<br /> 199 199 <br /> 200 200 Its a relatively new program and still has some minor issues, but in general it is reliable, stable and, above all, very fast. It has been used successfully to do installation tests with Debian Installer.<br /> … … 202 202 This page contains some how-to, tips and tricks that can be useful when setting up and using VirtualBox </td> 203 203 </tr> 204 </tbody></table></div><span class="anchor" id="line-13"></span><span class="anchor" id="line-14"></span><span class="anchor" id="line-15"></span><p class="line867"><span class="anchor" id="line-16"></span><ul><li style="list-style-type:none"><div class="table-of-contents"><p class="table-of-contents-heading">Contents<ol><li><a href="#head-2e316e5674d20c3b1cb2938e6a78983c8188e9b0">Installation</a><ol><li><a href="#head-f280c164d73bd09301342a49b8e3e0b5e183a2f7">Debian/Etch-backports</a></li><li><a href="#head-1bf4613d14d55bffb78a8fcedd89f82b6dc0a21e">Debian/Testing</a></li><li><a href="#head-75ef23fc62a634cb6fc26329de9723cac3bda93e">Experience</a></li></ol><li><a href="#head-7d4e76488d01c13abf8c2a7b9679320db8dc07e8">Errors</a><ol><li><a href="#head-839c5976dc6419b8d47b83547f4d0c379d9a7d71">32-bit userland with x64_64 kernel</a></li><li><a href="#head-cca23c12225b5e5380c0b1b0a7eb970a33366309">-1909 VERR VM DRIVER NOT ACCESSIBLE</a></li></ol><li><a href="#head-478541556b984173f1c6a6291711d2a8cc4532f3">Tips & tricks</a><ol><li><a href="#head-2f3b70cb6bcaf82ecb9c8c1f3d5f42134006dc40">Switching consoles</a></li><li><a href="#head-5cde2ef27c6b1737b257603f51c2e1e8cbeaf09e">Setting up bridged networking for VirtualBox</a></li><li><a href="#head-7878d5314e89905ec3053a9add70589cc016297c">How to remotely start virtual machines using vnc</a></li></ol><li><a href="#head-9dafea02d17272b5de1d9a1d15281d44c508605e">External Links</a></li></ol></div> <span class="anchor" id="line-17"></span></li></ul><p class="line867"><span class="anchor" id="install"></span> <span class="anchor" id="line-18"></span><span class="anchor" id="line-19"></span><p class="line867"> 205 <h1 id="head-2e316e5674d20c3b1cb2938e6a78983c8188e9b0">Installation</h1> 206 <span class="anchor" id="line-20"></span><p class="line862">Currently <em>(2008/01/01)</em>, VirtualBox is not supported natively by <a href="/Etch">Etch</a>, the 4.0 version of Debian. To install it, you can use different methods: <span class="anchor" id="line-21"></span><span class="anchor" id="line-22"></span><ul><li>Using Debian/Etch-backports repository <span class="anchor" id="line-23"></span></li><li>Using Debian/Testing repository <span class="anchor" id="line-24"></span></li></ul><p class="line867"><span class="anchor" id="install-backport"></span> <span class="anchor" id="line-25"></span><span class="anchor" id="line-26"></span><p class="line867"> 207 <h2 id="head-f280c164d73bd09301342a49b8e3e0b5e183a2f7">Debian/Etch-backports</h2> 208 <span class="anchor" id="line-27"></span><ul><li><p class="line862">Configure <a href="/Backports">Debian/Etch-backports</a> <span class="anchor" id="line-28"></span></li><li><p class="line862">Install these packages: <a class="interwiki" href="http://packages.debian.org/virtualbox-ose" title="DebPkg">virtualbox-ose</a> <a class="interwiki" href="http://packages.debian.org/virtualbox-ose-source" title="DebPkg">virtualbox-ose-source</a> <span class="anchor" id="line-29"></span></li><li><p class="line862">Compile virtualbox kernel module <em>(as <a href="/root">root</a>)</em> <span class="anchor" id="line-30"></span></li></ul><p class="line867"><span class="anchor" id="line-31"></span><pre># cd /usr/src 209 <span class="anchor" id="line-32"></span># tar xvjf virtualbox-ose.tar.bz2 210 <span class="anchor" id="line-33"></span># cd modules/virtualbox-ose 211 <span class="anchor" id="line-34"></span># make 212 <span class="anchor" id="line-35"></span># make install 213 <span class="anchor" id="line-36"></span># modprobe vboxdrv 214 <span class="anchor" id="line-37"></span># lsmod | grep vbox 215 <span class="anchor" id="line-38"></span>vboxdrv 55344 0</pre><span class="anchor" id="line-39"></span><ul><li><p class="line862">Or simply use module-assistant <em>(as <a href="/root">root</a>)</em> <span class="anchor" id="line-40"></span></li></ul><p class="line867"><span class="anchor" id="line-41"></span><pre># module-assistant auto-install virtualbox-ose 216 <span class="anchor" id="line-42"></span># modprobe vboxdrv 217 <span class="anchor" id="line-43"></span># lsmod | grep vbox 218 <span class="anchor" id="line-44"></span>vboxdrv 55344 0 219 <span class="anchor" id="line-45"></span></pre><span class="anchor" id="line-46"></span><ul><li><p class="line862">Start VirtualBox: <span class="anchor" id="line-47"></span></li></ul><p class="line867"><span class="anchor" id="line-48"></span><pre>KDE > System > VirtualBox OSE 220 <span class="anchor" id="line-49"></span>Gnome > Applications > System tools > VirtualBox OSE 221 <span class="anchor" id="line-50"></span></pre><span class="anchor" id="line-51"></span><p class="line867"><span class="anchor" id="install-testing"></span> <span class="anchor" id="line-52"></span><span class="anchor" id="line-53"></span><p class="line867"> 222 <h2 id="head-1bf4613d14d55bffb78a8fcedd89f82b6dc0a21e">Debian/Testing</h2> 223 <span class="anchor" id="line-54"></span><p class="line862">Testing repository contains some precompiled kernel module. So you don't need to compile it like previous method. Except that, it's the same mechanism. Be carreful, using testing repository could break your system. Note that virtualbox need to update <a class="interwiki" href="http://packages.debian.org/libc6" title="DebPkg">libc6</a> and <a class="interwiki" href="http://packages.debian.org/linux-image-2.6" title="DebPkg">linux-image-2.6</a> <span class="anchor" id="line-55"></span><span class="anchor" id="line-56"></span><p class="line867"> 204 </tbody></table></div><span class="anchor" id="line-6"></span><span class="anchor" id="line-7"></span><span class="anchor" id="line-8"></span><p class="line867"><span class="anchor" id="line-9"></span><ul><li style="list-style-type:none"><div class="table-of-contents"><p class="table-of-contents-heading">Contents<ol><li><a href="#head-2e316e5674d20c3b1cb2938e6a78983c8188e9b0">Installation</a></li><li><a href="#head-75ef23fc62a634cb6fc26329de9723cac3bda93e">Experience</a></li><li><a href="#head-7d4e76488d01c13abf8c2a7b9679320db8dc07e8">Errors</a></li><li><a href="#head-478541556b984173f1c6a6291711d2a8cc4532f3">Tips & tricks</a></li><li><a href="#head-9dafea02d17272b5de1d9a1d15281d44c508605e">External Links</a></li></ol></div> <span class="anchor" id="line-10"></span></li></ul><p class="line867"><span class="anchor" id="install"></span> <span class="anchor" id="line-11"></span><span class="anchor" id="line-12"></span><p class="line867"> 205 <h2 id="head-2e316e5674d20c3b1cb2938e6a78983c8188e9b0">Installation</h2> 206 <span class="anchor" id="line-13"></span><p class="line862">Currently <em>(2008/01/01)</em>, VirtualBox is not supported natively by <a href="/DebianEtch">DebianEtch</a>, the 4.0 version of Debian. To install it, you can use different methods: <span class="anchor" id="line-14"></span><span class="anchor" id="line-15"></span><ul><li><p class="line862">Using Debian/Etch's <a href="/Backports">Backports</a> repository <span class="anchor" id="line-16"></span></li><li><p class="line862">Using <a href="/DebianTesting">DebianTesting</a> repository <span class="anchor" id="line-17"></span></li></ul><p class="line867"><span class="anchor" id="install-backport"></span> <span class="anchor" id="line-18"></span><span class="anchor" id="line-19"></span><p class="line867"> 207 <h3 id="head-f280c164d73bd09301342a49b8e3e0b5e183a2f7">Debian/Etch-backports</h3> 208 <span class="anchor" id="line-20"></span><ul><li><p class="line862">Configure Debian/Etch <a href="/Backports">backports</a> <span class="anchor" id="line-21"></span></li><li><p class="line862">Install these packages: <a class="interwiki" href="http://packages.debian.org/virtualbox-ose" title="DebPkg">virtualbox-ose</a> <a class="interwiki" href="http://packages.debian.org/virtualbox-ose-source" title="DebPkg">virtualbox-ose-source</a> <a class="interwiki" href="http://packages.debian.org/linux-source" title="DebPkg">linux-source</a> <a class="interwiki" href="http://packages.debian.org/linux-headers" title="DebPkg">linux-headers</a> <span class="anchor" id="line-22"></span></li><li><p class="line862">Compile virtualbox kernel module <em>(as <a href="/root">root</a>)</em> <span class="anchor" id="line-23"></span></li></ul><p class="line867"><span class="anchor" id="line-24"></span><pre># cd /usr/src 209 <span class="anchor" id="line-25"></span># tar xvjf virtualbox-ose.tar.bz2 210 <span class="anchor" id="line-26"></span># cd modules/virtualbox-ose 211 <span class="anchor" id="line-27"></span># make 212 <span class="anchor" id="line-28"></span># make install 213 <span class="anchor" id="line-29"></span># modprobe vboxdrv 214 <span class="anchor" id="line-30"></span># lsmod | grep vbox 215 <span class="anchor" id="line-31"></span>vboxdrv 55344 0</pre><span class="anchor" id="line-32"></span><ul><li><p class="line862">Or simply use module-assistant <em>(as <a href="/root">root</a>)</em> <span class="anchor" id="line-33"></span></li></ul><p class="line867"><span class="anchor" id="line-34"></span><pre># module-assistant auto-install virtualbox-ose 216 <span class="anchor" id="line-35"></span># modprobe vboxdrv 217 <span class="anchor" id="line-36"></span># lsmod | grep vbox 218 <span class="anchor" id="line-37"></span>vboxdrv 55344 0 219 <span class="anchor" id="line-38"></span></pre><span class="anchor" id="line-39"></span><ul><li><p class="line862">Start VirtualBox: <span class="anchor" id="line-40"></span></li></ul><p class="line862">In KDE, go to menu KDE > System > VirtualBox OSE <span class="anchor" id="line-41"></span><span class="anchor" id="line-42"></span><ul><li style="list-style-type:none"><p class="line891"><em>or</em> <span class="anchor" id="line-43"></span></li></ul><p class="line862">In Gnome, goto menu Gnome > Applications > System tools > VirtualBox OSE <span class="anchor" id="line-44"></span><span class="anchor" id="line-45"></span><p class="line867"><span class="anchor" id="install-testing"></span> <span class="anchor" id="line-46"></span><span class="anchor" id="line-47"></span><p class="line867"> 220 <h3 id="head-381d74a63252140dca3a479ab2be9ea9e51768e5">Debian/Testing (lenny)</h3> 221 <span class="anchor" id="line-48"></span><p class="line862">Testing repository contains some precompiled kernel module. So you don't need to compile it like previous method. Except that, it's the same mechanism. Be carreful, using testing repository could break your system. Note that virtualbox need to update <a class="interwiki" href="http://packages.debian.org/libc6" title="DebPkg">libc6</a> and <a class="interwiki" href="http://packages.debian.org/linux-image-2.6" title="DebPkg">linux-image-2.6</a> <span class="anchor" id="line-49"></span><span class="anchor" id="line-50"></span><p class="line867"> 224 222 <h2 id="head-75ef23fc62a634cb6fc26329de9723cac3bda93e">Experience</h2> 225 <span class="anchor" id="line-5 7"></span><p class="line867"><small><strong><span class="u">Legend :</span></strong> </small> <span class="anchor" id="line-58"></span><span class="anchor" id="line-59"></span><ul><li><p class="line891"><small><img alt="{OK}" height="12" src="/htdocs/rightsidebar/img/thumbs-up.png" title="{OK}" width="14" /> = OK </small> <span class="anchor" id="line-60"></span></li><li><p class="line891"><img alt="/!\" height="15" src="/htdocs/rightsidebar/img/alert.png" title="/!\" width="15" /> = Failed <span class="anchor" id="line-61"></span></li></ul><div><table><tbody><tr> <td><p class="line891"><strong>Who</strong> </td>223 <span class="anchor" id="line-51"></span><p class="line867"><small><strong><span class="u">Legend :</span></strong> </small> <span class="anchor" id="line-52"></span><span class="anchor" id="line-53"></span><ul><li><p class="line891"><small><img alt="{OK}" height="12" src="/htdocs/rightsidebar/img/thumbs-up.png" title="{OK}" width="14" /> = OK </small> <span class="anchor" id="line-54"></span></li><li><p class="line891"><img alt="/!\" height="15" src="/htdocs/rightsidebar/img/alert.png" title="/!\" width="15" /> = Failed <span class="anchor" id="line-55"></span></li></ul><div><table><tbody><tr> <td><p class="line891"><strong>Who</strong> </td> 226 224 <td><p class="line891"><strong>Kernel</strong> </td> 227 225 <td><p class="line891"><strong>Disribution</strong> </td> … … 229 227 <td><p class="line891"><strong>Status</strong> </td> 230 228 </tr> 231 <tr> <td><span class="anchor" id="line- 62"></span><p class="line862"> -- <a href="/SalokineTerata">SalokineTerata</a> 2008-01-01 19:52:09 </td>229 <tr> <td><span class="anchor" id="line-56"></span><p class="line862"> -- <a href="/SalokineTerata">SalokineTerata</a> 2008-01-01 19:52:09 </td> 232 230 <td><p class="line862"> 2.6.22-6~bpo40+1 </td> 233 231 <td><p class="line862"> Debian/Etch-backports </td> … … 235 233 <td><p class="line862"> <img alt="{OK}" height="12" src="/htdocs/rightsidebar/img/thumbs-up.png" title="{OK}" width="14" /> </td> 236 234 </tr> 237 </tbody></table></div><span class="anchor" id="line-63"></span><p class="line867"> 238 <h1 id="head-7d4e76488d01c13abf8c2a7b9679320db8dc07e8">Errors</h1> 239 <span class="anchor" id="line-64"></span><p class="line867"> 240 <h2 id="head-839c5976dc6419b8d47b83547f4d0c379d9a7d71">32-bit userland with x64_64 kernel</h2> 241 <span class="anchor" id="line-65"></span><p class="line862">It is know bug that VirtualBox does not work in such scenarios: <a class="http" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456391">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456391</a> <span class="anchor" id="line-66"></span><span class="anchor" id="line-67"></span><p class="line867"> 242 <h2 id="head-cca23c12225b5e5380c0b1b0a7eb970a33366309">-1909 VERR VM DRIVER NOT ACCESSIBLE</h2> 243 <span class="anchor" id="line-68"></span><p class="line867"><img src="/VirtualBox?action=AttachFile&do=get&target=error-1909-VERR_VM_DRIVER_NOT_ACCESSIBLE.png" title="attachment:error-1909-VERR_VM_DRIVER_NOT_ACCESSIBLE.png" /> <span class="anchor" id="line-69"></span><span class="anchor" id="line-70"></span><p class="line867"><span class="u">Solution: </span> Add your current user in the group <strong>vboxusers</strong>. <span class="anchor" id="line-71"></span><span class="anchor" id="line-72"></span><ul><li>Under KDE: <span class="anchor" id="line-73"></span><ul><li><p class="line891"><tt>K > Configuration Center > System Administration > User Management</tt> <span class="anchor" id="line-74"></span></li><li>Select your user and edit it <span class="anchor" id="line-75"></span></li><li><p class="line862">Go to <strong>Groups</strong> page <span class="anchor" id="line-76"></span></li><li><p class="line862">Select <strong>vboxusers</strong> group and validate <span class="anchor" id="line-77"></span></li></ul></li><li>Reconnect your session <span class="anchor" id="line-78"></span></li><li>Under GNOME: <span class="anchor" id="line-79"></span><ul><li><p class="line862">System > Administration > Users and Groups <span class="anchor" id="line-80"></span></li><li><p class="line862">Click on "<strong>Manage groups</strong>" <span class="anchor" id="line-81"></span></li><li><p class="line862">Select the <strong>vboxusers</strong> group and click "<strong>Properties</strong>" <span class="anchor" id="line-82"></span></li><li>Check your username in the list and click "Ok" <span class="anchor" id="line-83"></span></li><li>Logout and login again <span class="anchor" id="line-84"></span></li></ul></li><li>On the commandline <span class="anchor" id="line-85"></span><ul><li><p class="line862">l<strong>og as user root </strong>either by su or sudo (su [return] - <give root password> [return] OR sudo su [return]) <span class="anchor" id="line-86"></span></li><li><p class="line862">Use the following command: <strong>adduser <youruser> vboxusers</strong> <span class="anchor" id="line-87"></span></li><li>Logout and login again <span class="anchor" id="line-88"></span></li></ul></li></ul><p class="line874">You can verify if your are really member of this group with this command line: <span class="anchor" id="line-89"></span><span class="anchor" id="line-90"></span><p class="line867"><span class="anchor" id="line-91"></span><pre># id MY_USER 244 <span class="anchor" id="line-92"></span>uid=1000(MY_USER) gid=1000(MY_USER) groupes=1000(MY_USER),8(mail),...127(vboxusers) 245 <span class="anchor" id="line-93"></span></pre><span class="anchor" id="line-94"></span><p class="line867"><span class="anchor" id="tips"></span> <span class="anchor" id="line-95"></span><span class="anchor" id="line-96"></span><p class="line867"> 246 <h1 id="head-478541556b984173f1c6a6291711d2a8cc4532f3">Tips & tricks</h1> 247 <span class="anchor" id="line-97"></span><p class="line867"> 248 <h2 id="head-2f3b70cb6bcaf82ecb9c8c1f3d5f42134006dc40">Switching consoles</h2> 249 <span class="anchor" id="line-98"></span><p class="line862">The normal way to switch consoles in Linux is to use the <tt>ctrl-alt-Fx</tt> key combination. This does not work for a VirtualBox virtual machine (VM); it will switch consoles for the host system instead. <span class="anchor" id="line-99"></span><span class="anchor" id="line-100"></span><p class="line862">You should use <tt><Host Key>-Fx</tt> instead, where <tt><Host Key></tt> is the key defined in <tt>File->Preferences->Input</tt>. <span class="anchor" id="line-101"></span><span class="anchor" id="line-102"></span><p class="line862">This also works for <tt>ctrl-alt-del</tt> and <tt>ctrl-alt-backspace</tt> <span class="anchor" id="line-103"></span><span class="anchor" id="line-104"></span><p class="line862">This is documented in the <a class="http" href="http://www.virtualbox.org/download/UserManual.pdf">VirtalBox user manual</a> in the section "Keyboard and mouse support in virtual machines", subsection "Typing special characters". <span class="anchor" id="line-105"></span><span class="anchor" id="line-106"></span><p class="line862">(An alternative method to switch between text consoles is to use <tt>alt-left</tt> and <tt>alt-right</tt>, but that does not work for graphical consoles like XOrg or DirectFB.) <span class="anchor" id="line-107"></span><span class="anchor" id="line-108"></span><p class="line867"> 250 <h2 id="head-5cde2ef27c6b1737b257603f51c2e1e8cbeaf09e">Setting up bridged networking for VirtualBox</h2> 251 <span class="anchor" id="line-109"></span><p class="line862">By default VirtualBox uses NAT for the network interfaces of virtual machines and use an internal DHCP server to obtain an IP address. This works well but the disadvantage is that the machine will not have an IP address visible outside the VM and so you cannot connect to it from the host system or from other systems. <span class="anchor" id="line-110"></span><span class="anchor" id="line-111"></span><p class="line874">By attaching the VM's interface to "Host Interface" and creating a bridge on the host system, the VM can be made visible on the local network. This also allows to do fun stuff like netbooting the VM (boot from LAN using PXE). It is comparable to the "bridged networking" option in VMWare. <span class="anchor" id="line-112"></span><span class="anchor" id="line-113"></span><p class="line867"> 252 <h3 id="head-ac96d1959e6023cb07c51bdedd7e8f0b376dc944">Preparation</h3> 253 <span class="anchor" id="line-114"></span><p class="line862">First install the package <tt>bridge-utils</tt>. <span class="anchor" id="line-115"></span><span class="anchor" id="line-116"></span><p class="line874">Next, change the network configuration of the host system so that the network interface becomes part of a bridge. Note that this requires restarting the network, so be careful when doing this on a remote system! <span class="anchor" id="line-117"></span><span class="anchor" id="line-118"></span><p class="line862">Change the file <tt>/etc/network/interfaces</tt> to look something like this: <span class="anchor" id="line-119"></span><span class="anchor" id="line-120"></span><p class="line867"><span class="anchor" id="line-121"></span><pre># The loopback network interface 254 <span class="anchor" id="line-122"></span>auto lo 255 <span class="anchor" id="line-123"></span>iface lo inet loopback 256 <span class="anchor" id="line-124"></span># An entry for eth0 is no longer needed 257 <span class="anchor" id="line-125"></span>#auto eth0 258 <span class="anchor" id="line-126"></span>#iface eth0 inet dhcp 259 <span class="anchor" id="line-127"></span># Create the bridge (with the regular IP address of the host) 260 <span class="anchor" id="line-128"></span>auto br0 261 <span class="anchor" id="line-129"></span>iface br0 inet dhcp 262 <span class="anchor" id="line-130"></span> bridge_ports eth0 263 <span class="anchor" id="line-131"></span> bridge_fd 2.5 264 <span class="anchor" id="line-132"></span></pre><span class="anchor" id="line-133"></span><p class="line862">In this example the bridge gets its IP address and configuration from DHCP. For static configuration see<br /> 265 <tt>/usr/share/doc/bridge-utils/README.Debian.gz</tt> <span class="anchor" id="line-134"></span><span class="anchor" id="line-135"></span><p class="line874">Restart the networking of the host system using: <span class="anchor" id="line-136"></span><span class="anchor" id="line-137"></span><p class="line867"><span class="anchor" id="line-138"></span><pre># /etc/init.d/networking restart</pre><span class="anchor" id="line-139"></span><p class="line862">After this <tt>brctl show</tt> should show the bridge and <tt>ifconfig</tt> should show the bridge has the host's IP address. <span class="anchor" id="line-140"></span><span class="anchor" id="line-141"></span><p class="line867"> 266 <h3 id="head-2533838514373893e1ca2cac71c13586bf086700">Configuring the VirtualBox VM</h3> 267 <span class="anchor" id="line-142"></span><p class="line874">There are different ways the TAP interface for the VM can be created: <span class="anchor" id="line-143"></span><span class="anchor" id="line-144"></span><ul><li><p class="line862">statically (before VirtualBox is even started) <span class="anchor" id="line-145"></span></li><li>on demand (when a VM is being started) <span class="anchor" id="line-146"></span></li></ul><p class="line862">See also the chapter on "Virtual networking" in the <a class="http" href="http://www.virtualbox.org/download/UserManual.pdf">VirtalBox user manual</a>. <span class="anchor" id="line-147"></span><span class="anchor" id="line-148"></span><p class="line867"> 268 <h4 id="head-45ffe54e63a513dbeb24a9be06d2a4eb2ec16928">Static interfaces</h4> 269 <span class="anchor" id="line-149"></span><p class="line862">In this case you only need to "define" an interface for use by a particular user once. All defined interfaces are "remembered" in the file <tt>/etc/vbox/interfaces</tt> and recreated by the VirtualBox init script every time the host system is booted. <span class="anchor" id="line-150"></span><span class="anchor" id="line-151"></span><p class="line874">Example to create an interface for a user: <span class="anchor" id="line-152"></span><span class="anchor" id="line-153"></span><p class="line867"><span class="anchor" id="line-154"></span><pre># VBoxAddIF vbox0 <username> br0 270 <span class="anchor" id="line-155"></span></pre><span class="anchor" id="line-156"></span><p class="line874">You can of course create multiple interfaces per users, but all interfaces should have unique names. <span class="anchor" id="line-157"></span><span class="anchor" id="line-158"></span><p class="line874">To configure the VM to use static bridged networking, go to the "network" page of the VM's settings and change the following fields: <span class="anchor" id="line-159"></span><span class="anchor" id="line-160"></span><ul><li><p class="line862">Attached to: <tt>Host Interface</tt> <span class="anchor" id="line-161"></span></li><li><p class="line862">Interface Name: <tt>vbox0</tt> <span class="anchor" id="line-162"></span></li><li><p class="line862">Setup Application: <empty> <span class="anchor" id="line-163"></span></li><li><p class="line862">Terminate Application: <empty> <span class="anchor" id="line-164"></span></li></ul><p class="line867"> 271 <h4 id="head-1330d340c9d435c41fbd1c04c3d29d61e0a8f195">Dynamic interfaces (on demand)</h4> 272 <span class="anchor" id="line-165"></span><p class="line874">The example below shows the second method. In the example the name of the interface is hardcoded in the script. If you want to be able to create multiple interfaces, you'll have to adapt the script. Note that the script assumes you can execute the needed commands using sudo. <span class="anchor" id="line-166"></span><span class="anchor" id="line-167"></span><p class="line867"><span class="anchor" id="line-168"></span><pre>#! /bin/sh 273 <span class="anchor" id="line-169"></span>set -e 274 <span class="anchor" id="line-170"></span>IF=vbox0 275 <span class="anchor" id="line-171"></span>BRIDGE=br0 276 <span class="anchor" id="line-172"></span>case "$1" in 277 <span class="anchor" id="line-173"></span> up) 278 <span class="anchor" id="line-174"></span> # Create a TAP network device 279 <span class="anchor" id="line-175"></span> sudo VBoxTunctl -u $LOGNAME -t $IF >/dev/null 2>&1 280 <span class="anchor" id="line-176"></span> # Bring it up (without IP address) 281 <span class="anchor" id="line-177"></span> sudo ifconfig $IF up 282 <span class="anchor" id="line-178"></span> # Add it to the bridge 283 <span class="anchor" id="line-179"></span> sudo brctl addif $BRIDGE $IF 284 <span class="anchor" id="line-180"></span> # Tell VirtualBox the name of the interface 285 <span class="anchor" id="line-181"></span> echo $IF 286 <span class="anchor" id="line-182"></span> ;; 287 <span class="anchor" id="line-183"></span> down) 288 <span class="anchor" id="line-184"></span> sudo VBoxTunctl -d $IF >/dev/null 2>&1 289 <span class="anchor" id="line-185"></span> ;; 290 <span class="anchor" id="line-186"></span>esac 291 <span class="anchor" id="line-187"></span></pre><span class="anchor" id="line-188"></span><p class="line862">Save the script, for example as <tt>~/.VirtualBox/bridge_setup</tt>. The script can be tested by running it from the command line. If successful, <tt>brctl show</tt> should show interface <tt>vbox0</tt> added to the bridge. <span class="anchor" id="line-189"></span><span class="anchor" id="line-190"></span><p class="line874">To configure the VM to use dynamic bridged networking, go to the "network" page of the VM's settings and change the following fields: <span class="anchor" id="line-191"></span><span class="anchor" id="line-192"></span><ul><li><p class="line862">Attached to: <tt>Host Interface</tt> <span class="anchor" id="line-193"></span></li><li><p class="line862">Interface Name: <empty> <span class="anchor" id="line-194"></span></li><li><p class="line862">Setup Application: <tt>~/.VirtualBox/bridge_setup</tt> up <span class="anchor" id="line-195"></span></li><li><p class="line862">Terminate Application: <tt>~/.VirtualBox/bridge_setup</tt> down <span class="anchor" id="line-196"></span></li></ul><p class="line874">When the VM is started after that, the interface should be created automatically and the VM can be used just like it was a system connected directly to your local network. <span class="anchor" id="line-197"></span><span class="anchor" id="line-198"></span><p class="line867"> 292 <h2 id="head-7878d5314e89905ec3053a9add70589cc016297c">How to remotely start virtual machines using vnc</h2> 293 <span class="anchor" id="line-199"></span><p class="line874">Remote: <span class="anchor" id="line-200"></span><span class="anchor" id="line-201"></span><ul><li>log onto your remote box <span class="anchor" id="line-202"></span></li><li>install tightvncserver <span class="anchor" id="line-203"></span></li><li>launch it (you don't need a display), pick a password <span class="anchor" id="line-204"></span></li><li>determine which port it is using, a way to do so: <span class="anchor" id="line-205"></span><ul><li>netstat -tap | grep vnc <span class="anchor" id="line-206"></span></li><li>Let's say it's 5901 <span class="anchor" id="line-207"></span></li></ul></li><li>unlog from there since the server forked in the background <span class="anchor" id="line-208"></span></li></ul><p class="line874">Local: <span class="anchor" id="line-209"></span><span class="anchor" id="line-210"></span><ul><li>install xtightvncviewer <span class="anchor" id="line-211"></span></li><li>create a ssh tunnel to your box: <span class="anchor" id="line-212"></span><ul><li>ssh -L 5901:localhost:5901 you@remote <span class="anchor" id="line-213"></span></li></ul></li><li>use it: (note there are two colons) <span class="anchor" id="line-214"></span><ul><li>xtightvncviewer localhost::5901 <span class="anchor" id="line-215"></span></li></ul></li><li><p class="line862">then VBoxManage startvm $yourvm & <span class="anchor" id="line-216"></span></li><li>and start as many virtual machines as wanted. <span class="anchor" id="line-217"></span></li></ul><p class="line867"> 294 <h1 id="head-9dafea02d17272b5de1d9a1d15281d44c508605e">External Links</h1> 295 <span class="anchor" id="line-218"></span><ul><li><p class="line891"><a class="http" href="http://www.virtualbox.org/download/UserManual.pdf">http://www.virtualbox.org/download/UserManual.pdf</a> Official User Manual <span class="anchor" id="line-219"></span></li></ul><p class="line867"><hr /><p class="line874"> <span class="anchor" id="line-220"></span><ul><li style="list-style-type:none"><p class="line891"><a href="/CategorySystemVirtualization">CategorySystemVirtualization</a> <span class="anchor" id="line-221"></span></li></ul><span class="anchor" id="bottom"></span></div><p id="pageinfo" class="info" lang="en" dir="ltr">VirtualBox (last edited 2008-02-14 20:50:35 by <span title="SalokineTerata @ lns-bzn-49f-81-56-213-227.adsl.proxad.net[81.56.213.227]"><a href="/SalokineTerata" title="SalokineTerata @ lns-bzn-49f-81-56-213-227.adsl.proxad.net[81.56.213.227]">SalokineTerata</a></span>)</p> 235 </tbody></table></div><span class="anchor" id="line-57"></span><p class="line867"> 236 <h2 id="head-7d4e76488d01c13abf8c2a7b9679320db8dc07e8">Errors</h2> 237 <span class="anchor" id="line-58"></span><p class="line867"> 238 <h3 id="head-839c5976dc6419b8d47b83547f4d0c379d9a7d71">32-bit userland with x64_64 kernel</h3> 239 <span class="anchor" id="line-59"></span><p class="line862">It is know bug that VirtualBox does not work in such scenarios: <a class="http" href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456391">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456391</a> <span class="anchor" id="line-60"></span><span class="anchor" id="line-61"></span><p class="line862">However VirtualBox version 2.0 promises support for this, but it is not yet packaged in Debian. <span class="anchor" id="line-62"></span><span class="anchor" id="line-63"></span><p class="line867"> 240 <h3 id="head-cca23c12225b5e5380c0b1b0a7eb970a33366309">-1909 VERR VM DRIVER NOT ACCESSIBLE</h3> 241 <span class="anchor" id="line-64"></span><p class="line867"><img src="/VirtualBox?action=AttachFile&do=get&target=error-1909-VERR_VM_DRIVER_NOT_ACCESSIBLE.png" title="attachment:error-1909-VERR_VM_DRIVER_NOT_ACCESSIBLE.png" /> <span class="anchor" id="line-65"></span><span class="anchor" id="line-66"></span><p class="line867"><span class="u">Solution: </span> Add your current user in the group <strong>vboxusers</strong>. <span class="anchor" id="line-67"></span><span class="anchor" id="line-68"></span><ul><li>Under KDE: <span class="anchor" id="line-69"></span><ul><li><p class="line891"><tt>K > Configuration Center > System Administration > User Management</tt> <span class="anchor" id="line-70"></span></li><li>Select your user and edit it <span class="anchor" id="line-71"></span></li><li><p class="line862">Go to <strong>Groups</strong> page <span class="anchor" id="line-72"></span></li><li><p class="line862">Select <strong>vboxusers</strong> group and validate <span class="anchor" id="line-73"></span></li></ul></li><li>Reconnect your session <span class="anchor" id="line-74"></span></li><li>Under GNOME: <span class="anchor" id="line-75"></span><ul><li><p class="line862">System > Administration > Users and Groups <span class="anchor" id="line-76"></span></li><li><p class="line862">Click on "<strong>Manage groups</strong>" <span class="anchor" id="line-77"></span></li><li><p class="line862">Select the <strong>vboxusers</strong> group and click "<strong>Properties</strong>" <span class="anchor" id="line-78"></span></li><li>Check your username in the list and click "Ok" <span class="anchor" id="line-79"></span></li><li>Logout and login again <span class="anchor" id="line-80"></span></li></ul></li><li>On the commandline <span class="anchor" id="line-81"></span><ul><li><p class="line862">l<strong>og as user root </strong>either by su or sudo (su [return] - <give root password> [return] OR sudo su [return]) <span class="anchor" id="line-82"></span></li><li><p class="line862">Use the following command: <strong>adduser <youruser> vboxusers</strong> <span class="anchor" id="line-83"></span></li><li>Logout and login again <span class="anchor" id="line-84"></span></li></ul></li></ul><p class="line874">You can verify if your are really member of this group with this command line: <span class="anchor" id="line-85"></span><span class="anchor" id="line-86"></span><p class="line867"><span class="anchor" id="line-87"></span><pre># id MY_USER 242 <span class="anchor" id="line-88"></span>uid=1000(MY_USER) gid=1000(MY_USER) groupes=1000(MY_USER),8(mail),...127(vboxusers) 243 <span class="anchor" id="line-89"></span></pre><span class="anchor" id="line-90"></span><p class="line867"><span class="anchor" id="tips"></span> <span class="anchor" id="line-91"></span><span class="anchor" id="line-92"></span><p class="line867"> 244 <h2 id="head-478541556b984173f1c6a6291711d2a8cc4532f3">Tips & tricks</h2> 245 <span class="anchor" id="line-93"></span><p class="line867"> 246 <h3 id="head-2f3b70cb6bcaf82ecb9c8c1f3d5f42134006dc40">Switching consoles</h3> 247 <span class="anchor" id="line-94"></span><p class="line862">The normal way to switch consoles in Linux is to use the <tt>ctrl-alt-Fx</tt> key combination. This does not work for a VirtualBox virtual machine (VM); it will switch consoles for the host system instead. <span class="anchor" id="line-95"></span><span class="anchor" id="line-96"></span><p class="line862">You should use <tt><Host Key>-Fx</tt> instead, where <tt><Host Key></tt> is the key defined in <tt>File->Preferences->Input</tt>. <span class="anchor" id="line-97"></span><span class="anchor" id="line-98"></span><p class="line862">This also works for <tt>ctrl-alt-del</tt> and <tt>ctrl-alt-backspace</tt> <span class="anchor" id="line-99"></span><span class="anchor" id="line-100"></span><p class="line862">This is documented in the <a class="http" href="http://www.virtualbox.org/download/UserManual.pdf">VirtualBox user manual</a> in the section "Keyboard and mouse support in virtual machines", subsection "Typing special characters". <span class="anchor" id="line-101"></span><span class="anchor" id="line-102"></span><p class="line862">(An alternative method to switch between text consoles is to use <tt>alt-left</tt> and <tt>alt-right</tt>, but that does not work for graphical consoles like XOrg or DirectFB.) <span class="anchor" id="line-103"></span><span class="anchor" id="line-104"></span><p class="line867"> 248 <h3 id="head-e56da2b7537c9c6463e86cf2e7ff50d0af51cc62">Setting up bridged networking for VirtualBox (VirtualBox < 2.1.0)</h3> 249 <span class="anchor" id="line-105"></span><p class="line862">By default VirtualBox uses NAT for the network interfaces of virtual machines and use an internal DHCP server to obtain an IP address. This works well but the disadvantage is that the machine will not have an IP address visible outside the VM and so you cannot connect to it from the host system or from other systems. <span class="anchor" id="line-106"></span><span class="anchor" id="line-107"></span><p class="line874">By attaching the VM's interface to "Host Interface" and creating a bridge on the host system, the VM can be made visible on the local network. This also allows to do fun stuff like netbooting the VM (boot from LAN using PXE). It is comparable to the "bridged networking" option in VMWare. <span class="anchor" id="line-108"></span><span class="anchor" id="line-109"></span><p class="line867"><strong>NB</strong> To use a wireless host device you need one that has support for Master mode (eg. it can be used as an access point, afaik only the Atheros and Prism drivers has this support) <span class="anchor" id="line-110"></span><span class="anchor" id="line-111"></span><p class="line867"> 250 <h4 id="head-ac96d1959e6023cb07c51bdedd7e8f0b376dc944">Preparation</h4> 251 <span class="anchor" id="line-112"></span><p class="line862">First install the package <tt>bridge-utils</tt>. <span class="anchor" id="line-113"></span><span class="anchor" id="line-114"></span><p class="line874">Next, change the network configuration of the host system so that the network interface becomes part of a bridge. Note that this requires restarting the network, so be careful when doing this on a remote system! <span class="anchor" id="line-115"></span><span class="anchor" id="line-116"></span><p class="line862">Change the file <tt>/etc/network/interfaces</tt> to look something like this: <span class="anchor" id="line-117"></span><span class="anchor" id="line-118"></span><p class="line867"><span class="anchor" id="line-119"></span><pre># The loopback network interface 252 <span class="anchor" id="line-120"></span>auto lo 253 <span class="anchor" id="line-121"></span>iface lo inet loopback 254 <span class="anchor" id="line-122"></span># An entry for eth0 is no longer needed 255 <span class="anchor" id="line-123"></span>#auto eth0 256 <span class="anchor" id="line-124"></span>#iface eth0 inet dhcp 257 <span class="anchor" id="line-125"></span># Create the bridge (with the regular IP address of the host) 258 <span class="anchor" id="line-126"></span>auto br0 259 <span class="anchor" id="line-127"></span>iface br0 inet dhcp 260 <span class="anchor" id="line-128"></span> bridge_ports eth0 261 <span class="anchor" id="line-129"></span> bridge_fd 2.5 262 <span class="anchor" id="line-130"></span></pre><span class="anchor" id="line-131"></span><p class="line862">In this example the bridge gets its IP address and configuration from DHCP. For static configuration see<br /> 263 <tt>/usr/share/doc/bridge-utils/README.Debian.gz</tt> <span class="anchor" id="line-132"></span><span class="anchor" id="line-133"></span><p class="line862">If you don't find the information for static configuration there, try:<br /> 264 <span class="anchor" id="line-134"></span><span class="anchor" id="line-135"></span><p class="line867"><span class="anchor" id="line-136"></span><pre># man bridge-utils-interfaces</pre><span class="anchor" id="line-137"></span><p class="line874">Restart the networking of the host system using: <span class="anchor" id="line-138"></span><span class="anchor" id="line-139"></span><p class="line867"><span class="anchor" id="line-140"></span><pre># /etc/init.d/networking restart</pre><span class="anchor" id="line-141"></span><p class="line862">After this <tt>brctl show</tt> should show the bridge and <tt>ifconfig</tt> should show the bridge has the host's IP address. <span class="anchor" id="line-142"></span><span class="anchor" id="line-143"></span><p class="line862">It is also necessary for your user to own the device <tt>/dev/net/tun </tt> <span class="anchor" id="line-144"></span><span class="anchor" id="line-145"></span><p class="line874">Run the following command to change the owner of that device: <span class="anchor" id="line-146"></span><span class="anchor" id="line-147"></span><p class="line867"><span class="anchor" id="line-148"></span><pre># chown <username> /dev/net/tun</pre><span class="anchor" id="line-149"></span><p class="line867"> 265 <h4 id="head-2533838514373893e1ca2cac71c13586bf086700">Configuring the VirtualBox VM</h4> 266 <span class="anchor" id="line-150"></span><p class="line874">There are different ways the TAP interface for the VM can be created: <span class="anchor" id="line-151"></span><span class="anchor" id="line-152"></span><ul><li><p class="line862">statically (before VirtualBox is even started) <span class="anchor" id="line-153"></span></li><li>on demand (when a VM is being started) <span class="anchor" id="line-154"></span></li></ul><p class="line862">See also the chapter on "Virtual networking" in the <a class="http" href="http://www.virtualbox.org/download/UserManual.pdf">VirtualBox user manual</a>. <span class="anchor" id="line-155"></span><span class="anchor" id="line-156"></span><p class="line867"> 267 <h5 id="head-45ffe54e63a513dbeb24a9be06d2a4eb2ec16928">Static interfaces</h5> 268 <span class="anchor" id="line-157"></span><p class="line862">In this case you only need to "define" an interface for use by a particular user once. All defined interfaces are "remembered" in the file <tt>/etc/vbox/interfaces</tt> and recreated by the VirtualBox init script every time the host system is booted. <span class="anchor" id="line-158"></span><span class="anchor" id="line-159"></span><p class="line874">Example to create an interface for a user: <span class="anchor" id="line-160"></span><span class="anchor" id="line-161"></span><p class="line867"><span class="anchor" id="line-162"></span><pre># VBoxAddIF vbox0 <username> br0 269 <span class="anchor" id="line-163"></span></pre><span class="anchor" id="line-164"></span><p class="line874">You can of course create multiple interfaces per users, but all interfaces should have unique names. <span class="anchor" id="line-165"></span><span class="anchor" id="line-166"></span><p class="line874">To configure the VM to use static bridged networking, go to the "network" page of the VM's settings and change the following fields: <span class="anchor" id="line-167"></span><span class="anchor" id="line-168"></span><ul><li><p class="line862">Attached to: <tt>Host Interface</tt> <span class="anchor" id="line-169"></span></li><li><p class="line862">Interface Name: <tt>vbox0</tt> <span class="anchor" id="line-170"></span></li><li><p class="line862">Setup Application: <empty> <span class="anchor" id="line-171"></span></li><li><p class="line862">Terminate Application: <empty> <span class="anchor" id="line-172"></span></li></ul><p class="line867"> 270 <h5 id="head-1330d340c9d435c41fbd1c04c3d29d61e0a8f195">Dynamic interfaces (on demand)</h5> 271 <span class="anchor" id="line-173"></span><p class="line874">The example below shows the second method. This example will allow you to use multiple VM's, but the script assumes that each interface will be named in the form "vbox*". You may need to adapt the script to match your needs. Note that the script assumes you can execute the needed commands using sudo. A snippet of a sudoers file is included below as an example. <span class="anchor" id="line-174"></span><span class="anchor" id="line-175"></span><p class="line867"><span class="anchor" id="line-176"></span><pre>#!/bin/sh 272 <span class="anchor" id="line-177"></span>set -e 273 <span class="anchor" id="line-178"></span>BRIDGE="br0" 274 <span class="anchor" id="line-179"></span>case "${1}" in 275 <span class="anchor" id="line-180"></span> "up" ) 276 <span class="anchor" id="line-181"></span> # Get the last vbox interface that was created or "" if none 277 <span class="anchor" id="line-182"></span> TAP=$(cat /proc/net/dev | grep vbox | tail -n 1 | cut -d":" -f1 | sed 's/\s*vbox\(\.*\)/\1/') 278 <span class="anchor" id="line-183"></span> # If there was no previous interface then set to -1 (this is so the += works) 279 <span class="anchor" id="line-184"></span> [ "${TAP}" = "" ] && TAP=-1 280 <span class="anchor" id="line-185"></span> # Increment TAP 281 <span class="anchor" id="line-186"></span> let "TAP+=1" 282 <span class="anchor" id="line-187"></span> # prepend vbox onto the TAP no 283 <span class="anchor" id="line-188"></span> TAP="vbox${TAP}" 284 <span class="anchor" id="line-189"></span> # Create the new TAP device 285 <span class="anchor" id="line-190"></span> sudo VBoxTunctl -b -u $(whoami) -t ${TAP} 286 <span class="anchor" id="line-191"></span> # Bring up the TAP (without an ip) 287 <span class="anchor" id="line-192"></span> sudo ifconfig ${TAP} up 288 <span class="anchor" id="line-193"></span> # Add the TAP to the Bridge 289 <span class="anchor" id="line-194"></span> sudo brctl addif ${BRIDGE} ${TAP} 290 <span class="anchor" id="line-195"></span> # Echo the name of the TAP so VirtualBox knows which one to use 291 <span class="anchor" id="line-196"></span> # on lenny the echo must be commented for virtuabox to work correctly 292 <span class="anchor" id="line-197"></span> echo ${TAP} 293 <span class="anchor" id="line-198"></span> ;; 294 <span class="anchor" id="line-199"></span> "down" ) 295 <span class="anchor" id="line-200"></span> # VirtualBox tells us which TAP it used 296 <span class="anchor" id="line-201"></span> TAP=${3} 297 <span class="anchor" id="line-202"></span> # Bring the TAP down 298 <span class="anchor" id="line-203"></span> sudo ifconfig ${TAP} down 299 <span class="anchor" id="line-204"></span> # Remove the TAP 300 <span class="anchor" id="line-205"></span> sudo VBoxTunctl -d ${TAP} > /dev/null 2>&1 301 <span class="anchor" id="line-206"></span> ;; 302 <span class="anchor" id="line-207"></span>esac 303 <span class="anchor" id="line-208"></span></pre><span class="anchor" id="line-209"></span><p class="line862">Save the script, for example as <tt>~/.VirtualBox/bridge_setup</tt>. The script can be tested by running it from the command line. If successful, <tt>brctl show</tt> should show interface <tt>vbox*</tt> (where * will be a number) added to the bridge. <span class="anchor" id="line-210"></span><span class="anchor" id="line-211"></span><p class="line874">Here is a snippet of a sudoers file to help (replace username and hostname with the appropriate values): <span class="anchor" id="line-212"></span><span class="anchor" id="line-213"></span><p class="line867"><span class="anchor" id="line-214"></span><pre>Cmnd_Alias VIRTUALBOX = /usr/bin/VBoxTunctl, /sbin/ifconfig vbox* up, /sbin/ifconfig vbox* down, /usr/sbin/brctl addif br0 vbox* 304 <span class="anchor" id="line-215"></span>username ALL=(ALL) PASSWD: ALL 305 <span class="anchor" id="line-216"></span>username hostname = NOPASSWD: VIRTUALBOX 306 <span class="anchor" id="line-217"></span></pre><span class="anchor" id="line-218"></span><p class="line874">To configure the VM to use dynamic bridged networking, go to the "network" page of the VM's settings and change the following fields: <span class="anchor" id="line-219"></span><span class="anchor" id="line-220"></span><ul><li><p class="line862">Attached to: <tt>Host Interface</tt> <span class="anchor" id="line-221"></span></li><li><p class="line862">Interface Name: <empty> <span class="anchor" id="line-222"></span></li><li><p class="line862">Setup Application: <tt>~/.VirtualBox/bridge_setup up</tt> <span class="anchor" id="line-223"></span></li><li><p class="line862">Terminate Application: <tt>~/.VirtualBox/bridge_setup down</tt> <span class="anchor" id="line-224"></span></li></ul><p class="line874">When the VM is started after that, the interface should be created automatically and the VM can be used just like it was a system connected directly to your local network. <span class="anchor" id="line-225"></span><span class="anchor" id="line-226"></span><p class="line867"> 307 <h3 id="head-7878d5314e89905ec3053a9add70589cc016297c">How to remotely start virtual machines using vnc</h3> 308 <span class="anchor" id="line-227"></span><p class="line874">Remote: <span class="anchor" id="line-228"></span><span class="anchor" id="line-229"></span><ul><li>log onto your remote box <span class="anchor" id="line-230"></span></li><li>install tightvncserver <span class="anchor" id="line-231"></span></li><li>launch it (you don't need a display), pick a password <span class="anchor" id="line-232"></span></li><li>determine which port it is using, a way to do so: <span class="anchor" id="line-233"></span><ul><li>netstat -tap | grep vnc <span class="anchor" id="line-234"></span></li><li>Let's say it's 5901 <span class="anchor" id="line-235"></span></li></ul></li><li>unlog from there since the server forked in the background <span class="anchor" id="line-236"></span></li></ul><p class="line874">Local: <span class="anchor" id="line-237"></span><span class="anchor" id="line-238"></span><ul><li>install xtightvncviewer <span class="anchor" id="line-239"></span></li><li>create a ssh tunnel to your box: <span class="anchor" id="line-240"></span><ul><li>ssh -L 5901:localhost:5901 you@remote <span class="anchor" id="line-241"></span></li></ul></li><li>use it: (note there are two colons) <span class="anchor" id="line-242"></span><ul><li>xtightvncviewer localhost::5901 <span class="anchor" id="line-243"></span></li></ul></li><li><p class="line862">then VBoxManage startvm $yourvm & <span class="anchor" id="line-244"></span></li><li>and start as many virtual machines as wanted. <span class="anchor" id="line-245"></span></li></ul><p class="line867"> 309 <h2 id="head-9dafea02d17272b5de1d9a1d15281d44c508605e">External Links</h2> 310 <span class="anchor" id="line-246"></span><ul><li><p class="line891"><a class="http" href="http://www.virtualbox.org/download/UserManual.pdf">http://www.virtualbox.org/download/UserManual.pdf</a> Official User Manual <span class="anchor" id="line-247"></span></li><li><p class="line862">Alternative <a href="/SystemVirtualization">SystemVirtualization</a> tools. <span class="anchor" id="line-248"></span></li></ul><span class="anchor" id="bottom"></span></div><p id="pageinfo" class="info" lang="en" dir="ltr">VirtualBox (last edited 2008-12-29 13:24:45 by <span title="MichaelMeskes @ exit.credativ.com[87.139.82.80]"><a class="nonexistent" href="/MichaelMeskes" title="MichaelMeskes @ exit.credativ.com[87.139.82.80]">MichaelMeskes</a></span>)</p> 296 311 297 312 <div id="pagebottom"></div> … … 308 323 </body> 309 324 </html> 325 -
pkg/boss/main/virtualbox-ose/trunk/debian/virtualbox-ose.install
r4744 r4946 1 1 debian/virtualbox-ose.files/vbox.cfg /etc/vbox 2 debian/virtualbox-ose.files/interfaces /etc/vbox3 2 debian/virtualbox-ose.files/*.sh /usr/share/virtualbox 4 3 debian/virtualbox-ose.files/virtualbox-ose.desktop /usr/share/applications … … 8 7 9 8 out/bin/components /usr/lib/virtualbox 10 out/bin/SUP* /usr/lib/virtualbox11 9 out/bin/VBoxREM* /usr/lib/virtualbox 12 10 out/bin/VBox*.so /usr/lib/virtualbox … … 18 16 out/bin/VBoxSDL /usr/lib/virtualbox 19 17 out/bin/VBoxSVC /usr/lib/virtualbox 20 out/bin/VBoxTunctl /usr/lib/virtualbox21 18 out/bin/VBoxXPCOM* /usr/lib/virtualbox 22 out/bin/vditool /usr/lib/virtualbox23 19 out/bin/VirtualBox* /usr/lib/virtualbox 24 20 out/bin/VMM* /usr/lib/virtualbox 21 out/bin/vboxwebsrv /usr/lib/virtualbox 22 out/bin/webtest /usr/lib/virtualbox 25 23 26 24 out/bin/nls /usr/share/virtualbox 27 out/bin/sdk /usr/share/virtualbox28 25 out/bin/VBox.png /usr/share/virtualbox 29 out/bin/VBoxAddIF.sh /usr/share/virtualbox 30 31 out/obj/xpidl /usr/lib/virtualbox 26 out/bin/VBoxSysInfo.sh /usr/share/virtualbox -
pkg/boss/main/virtualbox-ose/trunk/debian/virtualbox-ose.links
r4744 r4946 1 /usr/lib/virtualbox/xpidl /usr/share/virtualbox/sdk/bin/xpidl2 3 /usr/share/virtualbox/VBox.sh /usr/bin/vditool4 1 /usr/share/virtualbox/VBox.sh /usr/bin/vboxheadless 5 2 /usr/share/virtualbox/VBox.sh /usr/bin/vboxmanage 6 3 /usr/share/virtualbox/VBox.sh /usr/bin/vboxsdl 4 /usr/share/virtualbox/VBox.sh /usr/bin/vboxwebsrv 7 5 /usr/share/virtualbox/VBox.sh /usr/bin/virtualbox 8 6 /usr/share/virtualbox/VBox.sh /usr/bin/VBoxHeadless … … 11 9 /usr/share/virtualbox/VBox.sh /usr/bin/VirtualBox 12 10 13 /usr/bin/VBoxTAP /usr/bin/VBoxAddIF14 /usr/bin/VBoxTAP /usr/bin/VBoxDeleteIF15 16 11 /usr/share/virtualbox/VBox.png /usr/share/icons/virtualbox.png 17 18 /usr/lib/virtualbox/VBoxTunctl /usr/bin/VBoxTunctl19 /usr/share/virtualbox/VBoxAddIF.sh /usr/bin/VBoxTAP
Note: See TracChangeset
for help on using the changeset viewer.


