From owner-freebsd-questions@FreeBSD.ORG Sat Dec 4 13:32:20 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2384C1065672 for ; Sat, 4 Dec 2010 13:32:20 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 86A088FC17 for ; Sat, 4 Dec 2010 13:32:19 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id oB4DWE7V003043 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sat, 4 Dec 2010 13:32:14 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk oB4DWE7V003043 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1291469535; bh=1thqKuaYbsCsM5f+6TlXKU+jKyGaRv1GsnmDURiJy+s=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4CFA42D8.5010605@infracaninophile.co.uk>|Date:=20S at,=2004=20Dec=202010=2013:32:08=20+0000|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20U=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20en-US=3B=20r v:1.9.2.12)=20Gecko/20101027=20Thunderbird/3.1.6|MIME-Version:=201 .0|To:=20freebsd-questions@freebsd.org|Subject:=20Re:=20FreeBSD=20 on=20Virtualbox:=20No=20network=20access|References:=20=09<4CF87854.1030103@mgwiggleswo rth.net>=09=20<129136 8354.2905.19.camel@SHR-42-002>|In-Reply-To:=20<1291368354.2905.19. camel@SHR-42-002>|X-Enigmail-Version:=201.1.1|OpenPGP:=20id=3D60AE 908C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha1=3B=0D =0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary=3 D"------------enigE307ED768DDC6963A41CB6D7"; b=UuoszcVgT7xA6ROGj5Ajn/V7aWtHlJEbGetG4YYbbjzJk3RXTs6//ToD/eij9jCMb Rcdce60c49GqniGFjgfRNEOn3GqKv0JyMrvgj3/F4s1sw+La5l5NMKhw5PiQLGz5ul QCwlH5ZemWGtd6FTaMEVtdITX8A4FBZchTG9jixo= Message-ID: <4CFA42D8.5010605@infracaninophile.co.uk> Date: Sat, 04 Dec 2010 13:32:08 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4CF87854.1030103@mgwigglesworth.net> <1291368354.2905.19.camel@SHR-42-002> In-Reply-To: <1291368354.2905.19.camel@SHR-42-002> X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE307ED768DDC6963A41CB6D7" X-Virus-Scanned: clamav-milter 0.96.5 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Subject: Re: FreeBSD on Virtualbox: No network access X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2010 13:32:20 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE307ED768DDC6963A41CB6D7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03/12/2010 09:25, Timm Wimmers wrote: > Am Freitag, den 03.12.2010, 00:33 -0500 schrieb Weihang Wang: >> Hi Martes, >> >> I have tried the first two interfaces which are said to be supported b= y FreeBSD, they do not work. Surprisingly, now I choose the option "Intel= PRO/1000 T Server" and in NAT mode, it works now!!!! >> Thank you so much, you do me a great favor!! Hope this also works for = Chris! >=20 > In most cases it is better to use bridge mode. In NAT mode your VM get = a > private subnet and other devices in your network can't find your VM, > because the VM is behind (or encapsulated in) your HOST (as like as you= r > HOST is behind your router to the internet). This can work if you defin= e > routes, but bridging is mostly easier. >=20 > In Bridge mode your VM acts like any other machine in your network and > will get an IP-Adress from your DHCP server (if you use DHCP). >=20 Hmmm.... I don't know about bridge mode being appropriate in "most" cases. NAT and bridge modes are useful in different circumstances * NAT mode means that your VMs are not exposed to incoming connections on the net. * Bridge mode means that the VMs can run network services for users on other machines. Which one of those you prefer depends very much on how you're using the VMs. Eg. for a dev playground and for local testing, NAT looks like a better idea. Now, I run VirtualBox on my Mac with FreeBSD (inter alia) as a guest OS. Your setup may differ, but I find NAT mode to be the best choice. In addition to the considerations above, I also see: * In NAT mode, the FreeBSD guest is insulated from how the Mac connects to the network. Switching between wired or wireless networking, or even using a 3G dongle "just works" as far as the FreeBSD guest is concerned. * Similarly if the MAC gets a new IP when switching between different networks and DHCP servers, the guest OS just doesn't care. You don't need to worry about configuring routing and so forth in the guests: just use DHCP for the i/f, and it all works automagically. Actually, I generally enable two network interfaces for unixoid guests (ie. capable of running sshd) -- set to NAT and vboxnet0. This means I can ssh into local guest OSes from a Terminal.app session, which I find more convenient than logging in via the console. Again, it's all configured effortlessly with DHCP. My only complaint is that IPv6 doesn't work in these modes, but I can live with that. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigE307ED768DDC6963A41CB6D7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkz6Qt4ACgkQ8Mjk52CukIxNfQCdFsQpTAn/5UJaNzKmj4mXKUaT GgwAn2Kkzx3iEwFiJ2jeJDTWxtHFJCDI =tKoX -----END PGP SIGNATURE----- --------------enigE307ED768DDC6963A41CB6D7--