From owner-freebsd-emulation@FreeBSD.ORG Sun Aug 23 09:16:30 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 AD635106568D; Sun, 23 Aug 2009 09:16:30 +0000 (UTC) (envelope-from Alexander.Eichner@Sun.COM) Received: from gmp-eb-inf-1.sun.com (gmp-eb-inf-1.sun.com [192.18.6.21]) by mx1.freebsd.org (Postfix) with ESMTP id 50ED38FC12; Sun, 23 Aug 2009 09:16:30 +0000 (UTC) Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n7N9GTPk000380; Sun, 23 Aug 2009 09:16:29 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KOT00C00OBFJ400@fe-emea-09.sun.com>; Sun, 23 Aug 2009 10:16:08 +0100 (BST) Received: from [192.168.2.100] ([unknown] [87.187.205.183]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KOT00IXUOEUPA60@fe-emea-09.sun.com>; Sun, 23 Aug 2009 10:16:07 +0100 (BST) Date: Sun, 23 Aug 2009 11:16:04 +0200 From: Alexander Eichner In-reply-to: <20090822123611.GA8594@triton8.kn-bremen.de> Sender: Alexander.Eichner@Sun.COM To: Juergen Lock Message-id: <1251018964.4475.10.camel@Hatak> X-Mailer: Evolution 2.26.1 References: <20090819185448.GA8386@triton8.kn-bremen.de> <20090822123611.GA8594@triton8.kn-bremen.de> Cc: vbox-dev@virtualbox.org, freebsd-emulation@FreeBSD.org, "Sean C. Farley" , Juergen Lock Subject: Re: [vbox-dev] tuntap hacks for FreeBSD vbox hosts (bandaid till vbox-net driver...) 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: Sun, 23 Aug 2009 09:16:30 -0000 Hi Juergen, thank for you very much for the tuntap patch. I would like to integrate it in the in the main VirtualBox repository but you didn't specified the license the patch is under. To integrate it you either need to sign the SCA or put it under the MIT license. More information regarding the SCA is here http://www.virtualbox.org/wiki/ICA . The above is valid for the vboxnetflt driver too :) Regards, Alexander Eichner Am Samstag, den 22.08.2009, 14:36 +0200 schrieb Juergen Lock: > On Thu, Aug 20, 2009 at 03:19:36PM -0500, Sean C. Farley wrote: > > On Wed, 19 Aug 2009, Juergen Lock wrote: > > > > > Hi! > > > > > > After inquiring on the #vbox-dev channel whether the tuntap code could > > > be resurrected for hosts that don't have vbox net/bridge drivers yet > > > (like FreeBSD :) I now got it working - except the config gui and > > > ifup/down scripts, the code for at least the latter seems to have been > > > ripped out for good indeed... So for now you have to use VBoxManage > > > something like this, > > > VBoxManage modifyvm --nic1 bridged --bridgeadapter1 tap0 > > > and manually configure your tap interface and (optionally) add it to a > > > bridge before the VM starts. If you already have setup your host > > > system to use tuntap networking with qemu you probably can just > > > chown/chmod /dev/tap0 (or whichever one you use) to 660 root:vboxusers > > > and then run your /usr/local/etc/qemu-ifup script with the same tap > > > interface as arg, otherwise do something like... > > > kldload if_tap if_bridge > > > sysctl net.link.tap.user_open=1 > > > chown root:vboxusers /dev/tap0 > > > chmod 660 /dev/tap0 > > > ifconfig bridge0 create > > > ifconfig bridge0 addm > > > ifconfig tap0 netmask > > > ifconfig bridge0 addm tap0 > > > and then start the guest. (You'll have to rerun the `ifconfig tap0 > > > ...' each time before you start the guest again.) > > > > Thank you! I had started looking at the code to try to figure out why I > > could not force the use of a tap device via VBoxManage. This patch > > works for me with FreeBSD 7-STABLE. > > > > BTW, you should not need the ifconfig tap0 line above since the VM is > > getting or setting its own IP. Is there a reason to do it? > > > I was about to explain how I needed it for the guest to be able > to talk to the host here, but - turns out this was just due to me > using pf on this box and the rules were a little broken. So yes it is > not really necessary... > > > If you want it to have it look even more authenticate, you can always > > rename the tap device to vboxnet0 with ifconfig. :) > > > Haha! :) > > Btw, seems my patch has reached its ultimate goal much more quickly > than I expected: Motivating someone to implement `proper' FreeBSD vbox > net drivers: > http://lists.freebsd.org/pipermail/freebsd-emulation/2009-August/006701.html > > Thank you Fredrik!! :) > > Juergen > > _______________________________________________ > vbox-dev mailing list > vbox-dev@virtualbox.org > http://vbox.innotek.de/mailman/listinfo/vbox-dev