From owner-freebsd-emulation@FreeBSD.ORG Sun Oct 18 20:30:09 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 65F4F1065676 for ; Sun, 18 Oct 2009 20:30:09 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id E5BBD8FC0A for ; Sun, 18 Oct 2009 20:30:08 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id 9so832221eyd.9 for ; Sun, 18 Oct 2009 13:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=DA+/fW3mjN928UefMtGwsgxfLsh/3kcZgrG98SbyMhM=; b=i7Hhgz2DHjUGt95AhRCZ60rPb973L//sHIVxx480VurkcTIUnwhRe//g+rUF1gAzwJ bC9JbFacTPnGSY5R7azLdhD9zOz+97xJDKruawtY8uO8s77UTUb01YBPc/21ALCkoPf/ txkGWmb1NIaXhWoJr/zu7P50lcTTHV6Q+OAIw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; b=qBHxY1c5x44MtVwwTGnliU74l0GYiLIWk2waSZK63UzUOJ7g9XwlaP9ml8R/rA25j/ Z38ixdlFw2bIKTw4VX8ZuYBe00dH8q0aTm+TxVe6wB6/XL+QV+9ojeDU+KVJ+SOXk4pb uszYxubNatRxoJNRdgJX/wu5GtlfgBIpAn1yI= Received: by 10.211.130.19 with SMTP id h19mr4532553ebn.54.1255897807881; Sun, 18 Oct 2009 13:30:07 -0700 (PDT) Received: from dragon.dg ([41.0.54.23]) by mx.google.com with ESMTPS id 10sm395411eyz.19.2009.10.18.13.30.06 (version=SSLv3 cipher=RC4-MD5); Sun, 18 Oct 2009 13:30:07 -0700 (PDT) From: David Naylor To: Fredrik Lindberg Date: Sun, 18 Oct 2009 22:30:05 +0200 User-Agent: KMail/1.12.2 (FreeBSD/8.0-RC1; KDE/4.3.2; i386; ; ) References: <200910151950.26620.naylor.b.david@gmail.com> <4ADB515A.4050309@shapeshifter.se> In-Reply-To: <4ADB515A.4050309@shapeshifter.se> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1994853.9U7Iv6TqMT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200910182230.08620.naylor.b.david@gmail.com> Cc: freebsd-emulation@freebsd.org 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 20:30:09 -0000 --nextPart1994853.9U7Iv6TqMT Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable On Sunday, 18 October 2009 19:33:14 Fredrik Lindberg wrote: > 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] >=20 > 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? I assume you mean kldload after the system boots. Yes it does. =20 > > 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] >=20 > 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? The module fails to register. As per the message I quoted above: module_register_init: MOD_LOAD (ng_vboxnetflt, 0xc0f44fd9, 0xc19bd6a0) erro= r=20 22 This only happens if loader loads the module. I've never had a problem the= =20 kldload loading the module. =20 > vnoxnetflt should load fine even without ng_ether loaded. The above error message occurs irrespective of ng_ether being loaded. =20 > > 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. >=20 > This is because vboxnetflt uses ng_ether and the interaction between > ng_ether/bridge/tap/vboxnetflt doesn't work. Good to know :-). Is there anyway to communicate directly with the host us= ing=20 a bridged connection? This is not much of a concern for me since I need to= =20 bounce my files through a server (to accommodate windows) but it might be a= =20 concern for others. =20 David --nextPart1994853.9U7Iv6TqMT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEABECAAYFAkrbetAACgkQUaaFgP9pFrJgkgCfQ9MT0VaGBICP2xON+MelLC5O QKAAmwcOCPiwanxczD25agC/KTo4cw5p =oGR4 -----END PGP SIGNATURE----- --nextPart1994853.9U7Iv6TqMT--