[Pkg-virtualbox-devel] Bug#475193: virtualbox-ose init script overwrites values in $VARFILE
Pascal Volk
user at localhost.localdomain.org
Wed Apr 9 16:02:32 UTC 2008
Package: virtualbox-ose
Version: 1.5.6-dfsg-3
Severity: normal
Tags: patch
The virtualbox-ose init script overwrites values in /var/run/VirtualBox/vboxnet
when starting/restarting.
el-presidente ~ # /etc/init.d/virtualbox-ose start
Starting VirtualBox host networking ...done.
Warning - failed to add interface vbox0 to the bridge br0
Warning - failed to add interface vbox1 to the bridge br0
Warning - failed to add interface vbox2 to the bridge br0
So only the last interface is listed in the $VARFILE:
el-presidente ~ # cat /var/run/VirtualBox/vboxnet
vbox3 pvo br0
When stopping the vboxnet, only the last interface is deleted from the bridge:
el-presidente ~ # /etc/init.d/virtualbox-ose stop
Shutting down VirtualBox host networking ...done.
el-presidente ~ # brctl show
bridge name bridge id STP enabled interfaces
br0 8000.001d7d04deee no eth0
vbox0
vbox1
vbox2
The attached patch solves the problem for me.
Regards,
Pascal
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages virtualbox-ose depends on:
ii adduser 3.107 add and remove users and groups
ii debconf [debconf-2.0] 1.5.20 Debian configuration management sy
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libgcc1 1:4.3.0-1 GCC support library
ii libgl1-mesa-glx [libgl1] 7.0.3~rc2-1 A free implementation of the OpenG
ii libglib2.0-0 2.16.1-2 The GLib library of C routines
ii libidl0 0.8.10-0.1 library for parsing CORBA IDL file
ii libqt3-mt 3:3.3.8b-5 Qt GUI Library (Threaded runtime v
ii libsdl1.2debian 1.2.13-2 Simple DirectMedia Layer
ii libstdc++6 4.3.0-1 The GNU Standard C++ Library v3
ii libx11-6 2:1.0.3-7 X11 client-side library
ii libxalan110 1.10-3.1 Provides XSLT support for applicat
ii libxcursor1 1:1.1.9-1 X cursor management library
ii libxerces27 2.7.0-5 validating XML parser library for
ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar
ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library
Versions of packages virtualbox-ose recommends:
ii virtualbox-ose-mod 1.5.6-dfsg-3+2.6.24-4 VirtualBox modules for Linux (kern
-- debconf information:
virtualbox-ose/upstream_version_change: false
-------------- next part --------------
--- /etc/init.d/virtualbox-ose.org 2008-03-18 20:26:09.000000000 +0100
+++ /etc/init.d/virtualbox-ose 2008-04-02 23:11:13.000000000 +0200
@@ -226,13 +226,13 @@
then
if brctl addif "$3" "$1" 2> /dev/null
then
- echo "$1 $2 $3" > "$VARFILE"
+ echo "$1 $2 $3" >> "$VARFILE"
else
- echo "$1 $2" > "$VARFILE"
+ echo "$1 $2" >> "$VARFILE"
echo "Warning - failed to add interface $1 to the bridge $3"
fi
else
- echo "$1 $2" > $VARFILE
+ echo "$1 $2" >> $VARFILE
fi
i=20
else
More information about the Pkg-virtualbox-devel
mailing list