From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 9 10:35:10 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E03491065670 for ; Wed, 9 Sep 2009 10:35:10 +0000 (UTC) (envelope-from fli@shapeshifter.se) Received: from mx1.h3q.net (mx1.h3q.net [IPv6:2001:16d8:ffe5:1::f1]) by mx1.freebsd.org (Postfix) with ESMTP id A69568FC08 for ; Wed, 9 Sep 2009 10:35:10 +0000 (UTC) Received: from smtp-auth.h3q.net (smtp-auth.h3q.net [127.0.0.1]) (Authenticated sender: hidden) by mx1.h3q.net (Postfix) with ESMTPSA id DAE7633D9E ; Wed, 9 Sep 2009 12:35:08 +0200 (CEST) Message-ID: <4AA784D9.80405@shapeshifter.se> Date: Wed, 09 Sep 2009 12:35:05 +0200 From: Fredrik Lindberg User-Agent: Thunderbird 2.0.0.22 (X11/20090801) MIME-Version: 1.0 To: freebsd-emulation@freebsd.org, vbox-dev@virtualbox.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: VirtualBox network patches for FreeBSD (vboxnetflt + vboxnetadp) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2009 10:35:11 -0000 Hi These patches implement bridge and host only networking on FreeBSD, they have been tested on FreeBSD 7 and 8 by a few different people. The only known issue is that they might not work with wireless cards. At least it didn't work on my iwi-backed wlan0 interface on FreeBSD 8. The patches are split into different files for easier overview http://www.shapeshifter.se/pub/patches/virtualbox/vbox-freebsd-netif-20090908.patch http://www.shapeshifter.se/pub/patches/virtualbox/vbox-freebsd-vboxnetadp-20090908.patch http://www.shapeshifter.se/pub/patches/virtualbox/vbox-freebsd-vboxnetflt-20090908.patch http://www.shapeshifter.se/pub/patches/virtualbox/Config.kmk-20090908.patch http://www.shapeshifter.se/pub/patches/virtualbox/src-VBox-HostDrivers-Makefile.kmk-20090908.patch Original code is under the MIT license, patches to Makefiles, etc are under whatever license you want (I don't claim any copyright over these). People running FreeBSD and want to test this with the vbox version 3.0.51.r22226 that currently is in the ports tree needs the following additional patches. http://www.shapeshifter.se/pub/patches/virtualbox/Config.kmk-r22226-20090908.patch http://www.shapeshifter.se/pub/patches/virtualbox/virtualbox-port-20090907.patch http://www.shapeshifter.se/pub/patches/virtualbox/ConsoleImpl2.cpp.patch Apply/compile with cd /usr/ports/emulators/virtualbox make clean patch mkdir work/virtualbox-3.0.51r22226/src/VBox/HostDrivers/VBoxNetFlt/freebsd mkdir work/virtualbox-3.0.51r22226/src/VBox/HostDrivers/VBoxNetAdp/freebsd patch < virtualbox-port-20090907.patch patch -d work/virtualbox-3.0.51r22226/Config.kmk-r22226-20090908.patch patch -d work/virtualbox-3.0.51r22226/ConsoleImpl2.cpp.patch patch -d work/virtualbox-3.0.51r22226/src-VBox-HostDrivers-Makefile.kmk-20090908.patch patch -d work/virtualbox-3.0.51r22226/vbox-freebsd-netif-20090908.patch patch -d work/virtualbox-3.0.51r22226/vbox-freebsd-vboxnetadp-20090908.patch patch -d work/virtualbox-3.0.51r22226/vbox-freebsd-vboxnetflt-20090908.patch make install Fredrik