From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 21:04:36 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 C2FD0106566B for ; Sun, 18 Oct 2009 21:04:36 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 8371C8FC0A for ; Sun, 18 Oct 2009 21:04:36 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 67F2E1E006F3; Sun, 18 Oct 2009 23:04:35 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id n9IL3C0t054642; Sun, 18 Oct 2009 23:03:12 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id n9IL36HK054641; Sun, 18 Oct 2009 23:03:06 +0200 (CEST) (envelope-from nox) Date: Sun, 18 Oct 2009 23:03:06 +0200 (CEST) From: Juergen Lock Message-Id: <200910182103.n9IL36HK054641@triton8.kn-bremen.de> To: fli@shapeshifter.se X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <4ADB515A.4050309@shapeshifter.se> References: <200910151950.26620.naylor.b.david@gmail.com> Organization: home Cc: freebsd-emulation@freebsd.org, David Naylor Subject: Re: VirtualBox: vboxnetflt related problems 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, 18 Oct 2009 21:04:36 -0000 In article <4ADB515A.4050309@shapeshifter.se> you write: >David Naylor wrote: >> Hi, >> >> Thanks for porting VirtualBox, it has proven most useful (no more slow RDC). >> >> I've found some problems relating to VirtualBox's bridged networking: >> >> 1) loader doesn't pull in all the dependencies for vboxnetflt (kldload >> does) [missing dependencies: ng_ether] > >I couldn't figure out how properly depend on ng_ether, a simple >MODULE_DEPEND does not work. I guess it's because ng_ether doesn't >declare MODULE_VERSION. ng_ether *should* be loaded by the >explicit kern_kldload, does this not happen on your system? > >> >> 2) even with the dependencies specified in loader.conf vboxnetflt fails to >> initialise on boot [module_register_init: MOD_LOAD (ng_vboxnetflt, 0xc0f44fd9, >> 0xc19bd6a0) error 22] > >There is a known issue where the vboxdrv module (and thus VirtualBox) >sometimes fail to see that vboxnetflt is loaded - is this what you're >seeing? or does vboxnetflt simply not load at all? > >vnoxnetflt should load fine even without ng_ether loaded. > >> >> 3) bridging doesn't work when connecting to bridge0 or tap0: >> # netstat -w1 -I tap0 >> input (tap0) output >> packets errs bytes packets errs bytes colls >> 0 0 0 0 0 0 0 >> 0 0 0 0 2 151 0 >> ... >> This happen with and without giving tap0 an IP address. > >This is because vboxnetflt uses ng_ether and the interaction between >ng_ether/bridge/tap/vboxnetflt doesn't work. Hmm, would it make sense to add back the tuntap code as a special case for when someone selects a tap interface for `bridged' networking? I haven't looked if thats even doable easily enough with all the conditional compilation going on tho. (VBOX_WITH_NETFLT...) Cheers, Juergen