From owner-freebsd-questions@FreeBSD.ORG Sat Nov 15 22:36:43 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 1C199106568C for ; Sat, 15 Nov 2008 22:36:43 +0000 (UTC) (envelope-from jester@panix.com) Received: from l2mail1.panix.com (l2mail1.panix.com [166.84.1.75]) by mx1.freebsd.org (Postfix) with ESMTP id E7CA78FC0C for ; Sat, 15 Nov 2008 22:36:42 +0000 (UTC) (envelope-from jester@panix.com) Received: from mail2.panix.com (mail2.panix.com [166.84.1.73]) by l2mail1.panix.com (Postfix) with ESMTP id A42B25C0D2 for ; Sat, 15 Nov 2008 17:17:24 -0500 (EST) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mail2.panix.com (Postfix) with ESMTP id B76723480B for ; Sat, 15 Nov 2008 17:17:23 -0500 (EST) Received: by panix2.panix.com (Postfix, from userid 834) id 2B4EF1A403; Sat, 15 Nov 2008 17:17:25 -0500 (EST) Date: Sat, 15 Nov 2008 17:17:25 -0500 From: Jesse Sheidlower To: freebsd-questions@freebsd.org Message-ID: <20081115221725.GA16317@panix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Subject: 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: Sat, 15 Nov 2008 22:36:43 -0000 I'm running FreeBSD 7.1-BETA2 in a virtual machine in VirtualBox, running on a Linux (Debian) host. I was able to set up everything quite easily, and originally set up networking over NAT. But after some questions on the VB mailing list about accessing the guest from the host (so I can use the FreeBSD VM as a test server from my host), I decided to set up Host Interface Networking (without bridging, as I only want the VM visible to the host, not the rest of the network). The instructions I was following were pretty straightforward, though they were for a Linux guest: --- auto vbox0 iface vbox0 inet static address 192.168.5.1 netmask 255.255.255.0 --- is the setup for the Linux host, and the guest is supposed to be the same thing with a different IP address. Using this alone, I was already able to reach the Linux host from my FreeBSD VM. 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 --- Googling hasn't been much help. How do I get this done? Thanks. Jesse Sheidlower