From owner-freebsd-virtualization@freebsd.org Mon Jan 4 23:21:19 2016 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34558A6255C for ; Mon, 4 Jan 2016 23:21:19 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from webmail2.jnielsen.NET (webmail2.jnielsen.net [50.114.224.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "webmail2.jnielsen.net", Issuer "freebsdsolutions.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 155741A4C for ; Mon, 4 Jan 2016 23:21:18 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from jnielse-ml.domo.com (50-207-241-62-static.hfc.comcastbusiness.net [50.207.241.62]) (authenticated bits=0) by webmail2.jnielsen.NET (8.15.2/8.15.1) with ESMTPSA id u04NLC7O001016 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 Jan 2016 16:21:16 -0700 (MST) (envelope-from lists@jnielsen.net) X-Authentication-Warning: webmail2.jnielsen.NET: Host 50-207-241-62-static.hfc.comcastbusiness.net [50.207.241.62] claimed to be jnielse-ml.domo.com Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: FreeBSD 11 - Bhyve - Spoof MAC address From: John Nielsen In-Reply-To: Date: Mon, 4 Jan 2016 16:21:11 -0700 Cc: "freebsd-virtualization@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <22C8E0F1-91F1-4836-9CEB-38B2B28B2FAD@jnielsen.net> References: To: James Lodge X-Mailer: Apple Mail (2.3112) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2016 23:21:19 -0000 > On Jan 4, 2016, at 9:32 AM, James Lodge wrote: >=20 > Hi All, >=20 >=20 > I'm just getting started with Bhyve. So far everything is working as = expected. My original goal was to be running Ubuntu 12.04 i386 as I need = it for a particular project. One issue I'm having is MAC address = spoofing. I'm aware I can change the MAC address within Ubuntu but I'd = like to configure the tap interface from the host which should be = possible according to man pages. >=20 >=20 > Bhyve Man Page: = https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&sektion=3D8 >=20 >=20 >=20 > The issue I have is that by setting the below, the vm boots, I can = console via null modem, but there is no eth0 interface, only the = loopback. Removing the static MAC, reboot and everything is present and = correct. >=20 >=20 > -s 2:0,virtio-net,tap0,mac=3Dxx:xx:xx:xx:xx:xx It looks like you are setting the MAC correctly on your bhyve command = line and bhyve is running; so far so good. Is it possible that Ubuntu = has a different MAC saved for its idea of eth0 and is therefore not = doing what you expect? (Perhaps udev is renaming the device?) Can you run these two commands within the VM and post the output? ip link show lspci JN