From owner-freebsd-questions@FreeBSD.ORG Fri Dec 3 03:16:26 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 D7EFD106566B for ; Fri, 3 Dec 2010 03:16:26 +0000 (UTC) (envelope-from xaero@xaerolimit.net) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 512368FC12 for ; Fri, 3 Dec 2010 03:16:25 +0000 (UTC) Received: by eyb7 with SMTP id 7so4974095eyb.13 for ; Thu, 02 Dec 2010 19:16:25 -0800 (PST) Received: by 10.213.22.76 with SMTP id m12mr1934858ebb.25.1291346182865; Thu, 02 Dec 2010 19:16:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.31.209 with HTTP; Thu, 2 Dec 2010 19:16:02 -0800 (PST) In-Reply-To: <43D3F2D2-F9BB-4AA5-B21A-893E548CEEF5@vt.edu> References: <20101122170806.GA58734@dan.emsphone.com> <20101122213155.GC58734@dan.emsphone.com> <47405515-D6EF-4B80-B020-0C93987EBA29@vt.edu> <7F1EA323-F04F-4921-B169-E168E1CB1FC1@vt.edu> <3D14D589-F080-4D4C-93C1-60A896F8D6F3@vt.edu> <3E47732A-E0F6-4E36-869B-2C816ECABD23@vt.edu> <43D3F2D2-F9BB-4AA5-B21A-893E548CEEF5@vt.edu> From: Chris Brennan Date: Thu, 2 Dec 2010 22:16:02 -0500 Message-ID: To: Weihang Wang Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Questions Subject: Re: Got an error: Unknown option "DDB_CTF" 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: Fri, 03 Dec 2010 03:16:26 -0000 > > Hi Chris, > > I use FreeBSD version 8.1, the host OS is Ubuntu 10.10. The host OS could > connect to the Internet correctly. This host uses a private IP address. Yes, > I allowed the VM software to install the bridge adapter now, when booting > there are some msgs "no DHCP offers received". Actually I am a little > confused where the DHCP server is, do I need to install a DHCP server? Also, > do I need to add that line "ifconfig_le0/pcn0="DHCP" in /etc/rc.conf? > I am also don't understand how to set the static IP address since when > setting a static IP address, we should have a router interface address, > right? But now it's only a virtual machine running on a real machine, how > can we do that? > Thank you so much for your help. I am sorry for bring you so much trouble. > > Best, > W.W. > Weihang, It's no trouble, below you will see what I have in my /etc/rc.conf for a static IP. I use this same configuration in FreeBSD7.3 (and old Sony Vaio PIII), FreeBSD8.1-amd64 (My HP Laptop) and in my FreeBSD9 VM. Obviously the device name changes depending on the machine, but otherwise the configuration is the same. If you have a Router that your internet is connected to, that will usually provide DHCP Services, else you would indeed need to set one up on the host and tell the bridge to use it. ifconfig_nfe0="inet 192.168.0.4 netmask 255.255.255.0" defaultrouter="192.168.0.1" A quick search of vBox and Ubuntu revealed this URL: https://help.ubuntu.com/community/VirtualBox/Networking, I suggest giving it a read and see if you missed something. I do believe there are some extra steps necessary to set up a bridging device correctly on a Linux Host. I would also check out the vBox Community wiki as I believe there are some tips there as well for your Host OS. I am purposly vague about instructing you in *Linux* for a reason. Each OS does things differently, just as FreeBSD does things differently then Linux. They all speak a different langauge. The thing with Linux is that they are speak a different dialect of the same root language. The problem here, I don't speak Ubuntu's dialect. So I'll just safely point you to the resources that can help you. Some Links for you *https://wiki.ubuntu.com/VirtualBox https://help.ubuntu.com/community/VirtualBox/Networking http://forums.virtualbox.org/viewtopic.php?t=1787 http://ubuntuforums.org/showthread.php?t=716404 http://www.virtualbox.org/manual/ch06.html - This one will be *endlessly* useful for you ... I would suggest checking out the whole handbook. vBox is actually very well documented*