From owner-freebsd-questions@FreeBSD.ORG Sun Nov 16 02:19:15 2008 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 2579C1065691 for ; Sun, 16 Nov 2008 02:19:15 +0000 (UTC) (envelope-from jester@panix.com) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mx1.freebsd.org (Postfix) with ESMTP id C3AEB8FC13 for ; Sun, 16 Nov 2008 02:19:14 +0000 (UTC) (envelope-from jester@panix.com) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mail1.panix.com (Postfix) with ESMTP id AD4F429409; Sat, 15 Nov 2008 21:19:13 -0500 (EST) Received: by panix2.panix.com (Postfix, from userid 834) id CEB1E1A403; Sat, 15 Nov 2008 21:19:14 -0500 (EST) Date: Sat, 15 Nov 2008 21:19:14 -0500 From: Jesse Sheidlower To: Steven Susbauer Message-ID: <20081116021914.GA22615@panix.com> References: <20081115221725.GA16317@panix.com> <20081116022831.9b9ce368.freebsd@edvax.de> <491F7CD2.3050403@hotmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <491F7CD2.3050403@hotmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Polytropon , freebsd-questions@freebsd.org Subject: Re: Creating network interface in VM? 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: Sun, 16 Nov 2008 02:19:15 -0000 On Sat, Nov 15, 2008 at 07:52:18PM -0600, Steven Susbauer wrote: > Polytropon wrote: > > On Sat, 15 Nov 2008 17:17:25 -0500, Jesse Sheidlower wrote: > >> I'm running FreeBSD 7.1-BETA2 in a virtual machine in > >> VirtualBox, running on a Linux (Debian) host. > >> [...] > >> I tried to set this up on the FreeBSD side, but I am unable to > >> even create the vbox0 interface: > >> > >> --- > >> # ifconfig vbox0 create > >> ifconfig: SIOCIFCREATE2: Invalid argument > >> --- > >> > > > > I'm not sure, but I think what you're searching for would be to > > have VB "create" a NIC substitute for the FreeBSD guest OS. When > > you said, you could reach network from out of the FreeBSD VB, > > a virtual network adapter. Which interface did you use from > > within FreeBSD? > > > > As far as I know, there's no vbox (pseudo)interface driver in > > FreeBSD, that's why the ifconfig create command returned an error. > > > > > > > The guest machine is always going to use the virtual driver provided by > virtualbox, which is configured through the virtualbox gui control > before you start the machine. I suggest trying to configure that > interface, not vbox0. vbox0 is an interface on the host OS. Ah, of course. That makes total sense, sorry I didn't grok this before. One of the virtual network cards worked fine, using the le0 driver, so I set up the le0 driver to use NAT to reach the outside, and then configured VB to use the same kind of virtual network card to run HIF networking, and set up the le1 driver in my FreeBSD machine at the appropriate addresses. Now everything works: I can reach the outside via the le0 driver and I can reach to and from my host with the le1 driver. Thanks! Jesse Sheidlower