From owner-freebsd-virtualization@freebsd.org Mon Jan 4 23:28:55 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 F008DA6287A for ; Mon, 4 Jan 2016 23:28:55 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id D41E61C3C for ; Mon, 4 Jan 2016 23:28:55 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [192.168.1.1] (unknown [192.168.1.1]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 20646DE49 for ; Mon, 4 Jan 2016 23:28:54 +0000 (UTC) Subject: Re: FreeBSD 11 - Bhyve - Spoof MAC address To: freebsd-virtualization@freebsd.org References: <22C8E0F1-91F1-4836-9CEB-38B2B28B2FAD@jnielsen.net> From: Allan Jude Message-ID: <568B0033.4070001@freebsd.org> Date: Mon, 4 Jan 2016 18:28:51 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <22C8E0F1-91F1-4836-9CEB-38B2B28B2FAD@jnielsen.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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:28:56 -0000 On 2016-01-04 18:21, John Nielsen wrote: > >> On Jan 4, 2016, at 9:32 AM, James Lodge wrote: >> >> Hi All, >> >> >> 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. >> >> >> Bhyve Man Page: https://www.freebsd.org/cgi/man.cgi?query=bhyve&sektion=8 >> >> >> >> 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. >> >> >> -s 2:0,virtio-net,tap0,mac=xx: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 > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org" > That is the most likely scenario try 'ifconfig -a' and see if there is an eth1 with no configuration -- Allan Jude