From owner-freebsd-virtualization@freebsd.org Sun Jan 3 21:00:31 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 C3E55A5FDA0 for ; Sun, 3 Jan 2016 21:00:31 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A1BC11AF5 for ; Sun, 3 Jan 2016 21:00:31 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u03L01k2078656 for ; Sun, 3 Jan 2016 21:00:31 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201601032100.u03L01k2078656@kenobi.freebsd.org> From: bugzilla-noreply@FreeBSD.org To: freebsd-virtualization@FreeBSD.org Subject: Problem reports for freebsd-virtualization@FreeBSD.org that need special attention Date: Sun, 03 Jan 2016 21:00:31 +0000 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: Sun, 03 Jan 2016 21:00:31 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 202321 | [bhyve,patch] More verbose error reporting in bhy New | 202322 | [bhyve,patch] add option to have bhyve write its 2 problems total for which you should take action. From owner-freebsd-virtualization@freebsd.org Sun Jan 3 23:35:53 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 A0ECDA61BD9 for ; Sun, 3 Jan 2016 23:35:53 +0000 (UTC) (envelope-from paul.chakravarti@gmail.com) Received: from mail-wm0-x229.google.com (mail-wm0-x229.google.com [IPv6:2a00:1450:400c:c09::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 414D21C43 for ; Sun, 3 Jan 2016 23:35:53 +0000 (UTC) (envelope-from paul.chakravarti@gmail.com) Received: by mail-wm0-x229.google.com with SMTP id u188so129292238wmu.1 for ; Sun, 03 Jan 2016 15:35:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=wNmpQtfkHs2TuCjtuuYykQTyqrjXlt4cJFeTNw/LEdg=; b=QSOtm7vl73GkANlsvHXmkNkf3ryW+Ir8S5wAVYIzCKYi7iLAVsBzw20mh3BF3QNpTY ver0uhlUZFesX/qvPh4UNIpd7zZlryaoxJp5tsWMsoCc7jNzpofU4WgDtF7t0VHBQ3y4 mcQ3ZHJ8TcAUNVIaug6yfkM54pyakszPxSXFCNxSngwwg/cnl0pO0j9m4ZSsFe9/dFnd cUs+e36lUqHyWTzpD/lvaTWOLy3S23QWnQ4hauOTGofRVupkRm8s1k1LftVqK1q47OdC g4HockGLfc+zpq7jbSzuiAjwWxUfPADdtMHxY/Z6WOXjtbB7Y5Xhj7VvKvTxVI5o7nLF SY7A== X-Received: by 10.194.79.201 with SMTP id l9mr103633307wjx.151.1451864151587; Sun, 03 Jan 2016 15:35:51 -0800 (PST) Received: from [10.0.1.101] (cpc77371-stav19-2-0-cust113.17-3.cable.virginm.net. [82.38.48.114]) by smtp.gmail.com with ESMTPSA id av8sm8550902wjc.13.2016.01.03.15.35.50 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Jan 2016 15:35:51 -0800 (PST) From: Paul Chakravarti Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: [jail] Killing login process in jail causes BEL stream in host terminal Message-Id: <5E910E9A-2228-4553-8D83-8CF7118B3D2A@gmail.com> Date: Sun, 3 Jan 2016 23:35:50 +0000 To: freebsd-virtualization@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) 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: Sun, 03 Jan 2016 23:35:53 -0000 Hello, I am having a slightly strange problem trying to kill a login process in = a jail.=20 I have a jail running (10.2 host/jail) and am logging on from the host = system using: # jexec login -f root If however I then try to kill that login process from another session on = the host using: # jexec pkill login the login process is killed but I end up getting a continuous stream of = BEL characters on the host terminal (about every 0.5s) and the terminal = session becomes unresponsive and needs to be killed.=20 I dont get this problem if I just run =E2=80=98sh -=E2=80=98 (or =E2=80=98= tcsh -l=E2=80=99) directly rather than login. Any ideas? Thanks, Paul =20= From owner-freebsd-virtualization@freebsd.org Mon Jan 4 09:59:10 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 093D3A6038B for ; Mon, 4 Jan 2016 09:59:10 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: from phabric-backend.rbsd.freebsd.org (unknown [IPv6:2607:fc50:2000:101::1bb:73]) by mx1.freebsd.org (Postfix) with ESMTP id E99D71236 for ; Mon, 4 Jan 2016 09:59:09 +0000 (UTC) (envelope-from daemon-user@freebsd.org) Received: by phabric-backend.rbsd.freebsd.org (Postfix, from userid 1346) id E6751331E2DA; Mon, 4 Jan 2016 09:59:09 +0000 (UTC) Date: Mon, 4 Jan 2016 09:59:09 +0000 To: freebsd-virtualization@freebsd.org From: "nvass-gmx.com (Nikos Vassiliadis)" Reply-to: D1944+333+b09c6235d993877b@reviews.freebsd.org Subject: [Differential] [Commented On] D1944: PF and VIMAGE fixes Message-ID: <756c4a0761a7cfe017c86fede640601a@localhost.localdomain> X-Priority: 3 X-Phabricator-Sent-This-Message: Yes X-Mail-Transport-Agent: MetaMTA X-Auto-Response-Suppress: All X-Phabricator-Mail-Tags: Thread-Topic: D1944: PF and VIMAGE fixes X-Herald-Rules: none X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-To: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: X-Phabricator-Cc: Precedence: bulk In-Reply-To: <568A4231.2040405@gmx.com> References: <568A4231.2040405@gmx.com> Thread-Index: NDc2NzM0MzY4OTdiYThiNTU1MjY2ZDZmMTJiIFaKQm0= MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 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 09:59:10 -0000 nvass-gmx.com added a comment. Sure, I will take a look REVISION DETAIL https://reviews.freebsd.org/D1944 EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: nvass-gmx.com, bz, trociny, kristof, gnn, zec, rodrigc, glebius, eri Cc: mmoll, javier_ovi_yahoo.com, farrokhi, julian, robak, freebsd-virtualization-list, freebsd-pf-list, freebsd-net-list From owner-freebsd-virtualization@freebsd.org Mon Jan 4 19:08:48 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 DECAFA60EEA for ; Mon, 4 Jan 2016 19:08:47 +0000 (UTC) (envelope-from James@Lodge.me.uk) Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0127.outbound.protection.outlook.com [157.55.234.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EAC31C19 for ; Mon, 4 Jan 2016 19:08:46 +0000 (UTC) (envelope-from James@Lodge.me.uk) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gavinlodge.onmicrosoft.com; s=selector1-Lodge-me-uk; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BFji4yxodMCYVff0bYGYKruUWcaM7F8o5b77rV2yEjs=; b=oSLSxgIWcsTnkFxyXa3AujFxAb6G3gMVmnn90Ppagm2J3eyf9RTR1Ja1pXofhwwkCZf+TvcZqaP5KVb7F9qDy9jJ3kWNxoPxAQDPFrNUNdncdxKrWKX1i68vphfEUQq+gzIIvJiunw1DD2XBXtH9+ns8k735FdCwlutsXjVw3Qw= Received: from VI1PR06MB1037.eurprd06.prod.outlook.com (10.162.123.156) by VI1PR06MB1040.eurprd06.prod.outlook.com (10.162.123.16) with Microsoft SMTP Server (TLS) id 15.1.361.13; Mon, 4 Jan 2016 16:32:26 +0000 Received: from VI1PR06MB1037.eurprd06.prod.outlook.com ([10.162.123.156]) by VI1PR06MB1037.eurprd06.prod.outlook.com ([10.162.123.156]) with mapi id 15.01.0361.006; Mon, 4 Jan 2016 16:32:26 +0000 From: James Lodge To: "freebsd-virtualization@freebsd.org" Subject: FreeBSD 11 - Bhyve - Spoof MAC address Thread-Topic: FreeBSD 11 - Bhyve - Spoof MAC address Thread-Index: AQHRRwjMe93/rK1N2kG2OqL4dfo1uA== Date: Mon, 4 Jan 2016 16:32:25 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=James@Lodge.me.uk; x-originating-ip: [132.245.35.101] x-microsoft-exchange-diagnostics: 1; VI1PR06MB1040; 5:N5v6IIrsOV5Fft6YsGXSFcw4Papih0LTdmL9+qyqJvOWhpGznu+b3/7Eotzrysic3Qre/Ur3cC4GFKMKPEbOsGlSMuxTC/m/TnWF4CZmjgOcTXtFLctjqe/ShozQY6qlnFuMUlMJdXpzZ/6BDtibmw==; 24:J5ei6pNVe1DSi2gF2oRPt7ETh3AmdiVja+wdiuk0Ee1X/aeCsMTPgQGZLBiUjcbgSAYtS523xls4VWXmew5EZl9ihsRrIhn5V5mHj6xi5zE= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR06MB1040; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(10201501046)(3002001); SRVR:VI1PR06MB1040; BCL:0; PCL:0; RULEID:; SRVR:VI1PR06MB1040; x-forefront-prvs: 08118EFC2B x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(53754006)(189002)(199003)(74316001)(450100001)(189998001)(19625215002)(15975445007)(33656002)(105586002)(2351001)(74482002)(229853001)(5004730100002)(5003600100002)(76576001)(66066001)(11100500001)(19627405001)(77096005)(19617315012)(80792005)(106356001)(92566002)(5001960100002)(1220700001)(87936001)(122556002)(106116001)(6116002)(101416001)(5002640100001)(81156007)(2900100001)(97736004)(102836003)(5008740100001)(19580395003)(40100003)(54356999)(16236675004)(3846002)(10400500002)(110136002)(586003)(50986999)(107886002)(86362001)(2501003)(1096002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR06MB1040; H:VI1PR06MB1037.eurprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: Lodge.me.uk does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: Lodge.me.uk X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jan 2016 16:32:25.9225 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ded56ae9-7c77-4cf6-bbfd-39e6a505742d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR06MB1040 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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 19:08:48 -0000 Hi All, I'm just getting started with Bhyve. So far everything is working as expect= ed. 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 awar= e 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=3Dbhyve&sektion= =3D8 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=3Dxx:xx:xx:xx:xx:xx I've gone through dmesg in Ubuntu, but see nothing obvious. Any guidance gratefully received. Regards James 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 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 From owner-freebsd-virtualization@freebsd.org Tue Jan 5 14:19:37 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 4F7E4A620FE for ; Tue, 5 Jan 2016 14:19:37 +0000 (UTC) (envelope-from James@Lodge.me.uk) Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0143.outbound.protection.outlook.com [157.55.234.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C17181DBC for ; Tue, 5 Jan 2016 14:19:35 +0000 (UTC) (envelope-from James@Lodge.me.uk) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gavinlodge.onmicrosoft.com; s=selector1-Lodge-me-uk; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=aOFrkgAvJgkm2dbRUFE+zL7OarmzXfxHF/3msA7xfY0=; b=A3ZILFwP9ebLvQHSVe7geT7eZUp/eZaQOIQK5QzjO3OSLH72BtXz7bQ/7LJbg//SLOg/IqoOMH1ZdFVWFlDF7ebxhTU2+URzqi+ROiVYptyHKf7rdrL7FIFxmZUm7AoSAsqlDhQikqw8frf/vyEGOehA1B7TVNnnoCs/VLh1wZo= Received: from VI1PR06MB1037.eurprd06.prod.outlook.com (10.162.123.156) by VI1PR06MB1038.eurprd06.prod.outlook.com (10.162.123.157) with Microsoft SMTP Server (TLS) id 15.1.361.13; Mon, 4 Jan 2016 23:42:24 +0000 Received: from VI1PR06MB1037.eurprd06.prod.outlook.com ([10.162.123.156]) by VI1PR06MB1037.eurprd06.prod.outlook.com ([10.162.123.156]) with mapi id 15.01.0361.006; Mon, 4 Jan 2016 23:42:24 +0000 From: James Lodge To: "freebsd-virtualization@freebsd.org" Subject: Re: FreeBSD 11 - Bhyve - Spoof MAC address Thread-Topic: FreeBSD 11 - Bhyve - Spoof MAC address Thread-Index: AQHRRwjMe93/rK1N2kG2OqL4dfo1uJ7r/yCAgAACJICAAAElkA== Date: Mon, 4 Jan 2016 23:42:23 +0000 Message-ID: References: <22C8E0F1-91F1-4836-9CEB-38B2B28B2FAD@jnielsen.net>, <568B0033.4070001@freebsd.org> In-Reply-To: <568B0033.4070001@freebsd.org> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=James@Lodge.me.uk; x-originating-ip: [132.245.35.101] x-microsoft-exchange-diagnostics: 1; VI1PR06MB1038; 5:ZmI4yfZFDmgyWGwheLL2Ae34JeUE7P9gX3a8bE4MrQY4P2h76eDQflkvsZxu8JoMwxQLdbSAYkelTaZitMpkjbhzMbYikBMWq95s8lxXm3RQOZotpcZl35CpyWIjGCVE7wQKFZ/nH0XvChzRYlfnCA==; 24:iGyjX+IFsCSCppu8EZ4+1E8e9wa0au/MXUZre9P2R30tcdmRNe9XtDqCtMvdjt5Xtww65aiJMMberrMOYXtRvujFZOHPrCr3TfL21J4hT3s= x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(42134001)(42139001); SRVR:VI1PR06MB1038; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(520078)(10201501046)(3002001); SRVR:VI1PR06MB1038; BCL:0; PCL:0; RULEID:; SRVR:VI1PR06MB1038; x-forefront-prvs: 08118EFC2B x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(53754006)(199003)(189002)(24454002)(377454003)(87936001)(5003600100002)(5001960100002)(92566002)(86362001)(5002640100001)(19580395003)(122556002)(105586002)(102836003)(19580405001)(50986999)(2501003)(77096005)(586003)(74482002)(54356999)(74316001)(450100001)(6116002)(1220700001)(40100003)(1096002)(3846002)(81156007)(5008740100001)(11100500001)(5004730100002)(2900100001)(80792005)(2351001)(76176999)(189998001)(76576001)(110136002)(101416001)(106116001)(66066001)(10400500002)(97736004)(2950100001)(107886002)(106356001)(15975445007)(33656002)(473944003)(414714003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR06MB1038; H:VI1PR06MB1037.eurprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: Lodge.me.uk does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Lodge.me.uk X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jan 2016 23:42:23.7575 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: ded56ae9-7c77-4cf6-bbfd-39e6a505742d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR06MB1038 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: Tue, 05 Jan 2016 14:19:37 -0000 > >> 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 exp= ected. My original goal was to be running Ubuntu 12.04 i386 as I need it fo= r a particular project. One issue I'm having is MAC address spoofing. I'm a= ware I can change the MAC address within Ubuntu but I'd like to configure t= he tap interface from the host which should be possible according to man pa= ges. >> >> >> Bhyve Man Page: https://www.freebsd.org/cgi/man.cgi?query=3Dbhyve&sektio= n=3D8 >> >> >> >> The issue I have is that by setting the below, the vm boots, I can conso= le via null modem, but there is no eth0 interface, only the loopback. Remov= ing the static MAC, reboot and everything is present and correct. >> >> >> -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 lin= e and bhyve is running; so far so good. Is it possible that Ubuntu has a di= fferent 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@free= bsd.org" > > >That is the most likely scenario > >try 'ifconfig -a' and see if there is an eth1 with no configuration > >-- >Allan Jude >_______________________________________________ >freebsd-virtualization@freebsd.org mailing list >https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freeb= sd.org" Thanks Guys Exactly that. By spoofing the MAC Ubuntu populated another interface 'eth1'= hidden (surprisingly to myself) as it had no L3 config in /etc/network/int= erface and administratively down, only for eth0. Thanks also to pr1ntf in t= he Bhyve channel. Regards James =20 From owner-freebsd-virtualization@freebsd.org Sat Jan 9 19:54:03 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 0C054A6A78C for ; Sat, 9 Jan 2016 19:54:03 +0000 (UTC) (envelope-from barasingha@crossedbar.com) Received: from p3plsmtpa06-02.prod.phx3.secureserver.net (p3plsmtpa06-02.prod.phx3.secureserver.net [173.201.192.103]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EAAF91F8C for ; Sat, 9 Jan 2016 19:54:02 +0000 (UTC) (envelope-from barasingha@crossedbar.com) Received: from TITAN ([209.94.253.146]) by p3plsmtpa06-02.prod.phx3.secureserver.net with id 3vsR1s00B3AH1mx01vsRjw; Sat, 09 Jan 2016 12:52:26 -0700 From: "barasingha" To: Subject: bhyve won't let go Date: Sat, 9 Jan 2016 13:52:31 -0600 Message-ID: <000001d14b17$478b0840$d6a118c0$@com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdFKgkAhcPja99WTRq6ci/XvLdCSUA== Content-Language: en-us Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Sat, 09 Jan 2016 19:54:03 -0000 I am running 10.2 Release. I am running pfsense as a guest of bhyve. Using passthru, pfsense is given 2 nics. I wish to run the vm headless. I have written a rc script and can use the script to manually control the vm or enable it to run at bootup. The problem is that I can't get both the guest and host to run at boot. If vm is enabled, bootup hangs once bhyve is called. In this scenario I can ssh into pfsense but not into the host. If I halt the vm the host will finally continue to boot. When controlled manually the same thing happens, however I can then open another shell to provide host control. sample: bhyveload -m 4G -c /dev/nmdm0A -d /directory/to/boot/disk name bhyve -c 2 -m 4G -A -H -P \ -s 0,hostbridge \ -s 1,lpc \ -s n,others \ -l com1, /dev/nmdm0A \ name Any ideas? I think I have a problem in /etc/ttys on either the host or vm. Thanks, Barasingha From owner-freebsd-virtualization@freebsd.org Sat Jan 9 19:57: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 29EFBA6A895 for ; Sat, 9 Jan 2016 19:57:19 +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 0CD53109B for ; Sat, 9 Jan 2016 19:57:18 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id A0DF3D3F2 for ; Sat, 9 Jan 2016 19:57:17 +0000 (UTC) Subject: Re: bhyve won't let go To: freebsd-virtualization@freebsd.org References: <000001d14b17$478b0840$d6a118c0$@com> From: Allan Jude Message-ID: <5691662B.30006@freebsd.org> Date: Sat, 9 Jan 2016 14:57:31 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <000001d14b17$478b0840$d6a118c0$@com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0XBNXIgHKCafsIXloqiWNvHWvV19Ktuk2" 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: Sat, 09 Jan 2016 19:57:19 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0XBNXIgHKCafsIXloqiWNvHWvV19Ktuk2 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016-01-09 14:52, barasingha wrote: > I am running 10.2 Release. >=20 > =20 >=20 > I am running pfsense as a guest of bhyve. Using passthru, pfsense is g= iven > 2 nics. I wish to run the vm headless. >=20 > =20 >=20 > I have written a rc script and can use the script to manually control t= he vm > or enable it to run at bootup. >=20 > =20 >=20 > The problem is that I can't get both the guest and host to run at boot.= If > vm is enabled, bootup hangs once bhyve is called. In this scenario I c= an > ssh into pfsense but not into the host. If I halt the vm the host will= > finally continue to boot. >=20 > =20 >=20 > When controlled manually the same thing happens, however I can then ope= n > another shell to provide host control.=20 >=20 > =20 >=20 > sample: >=20 > bhyveload -m 4G -c /dev/nmdm0A -d /directory/to/boot/disk name >=20 > bhyve -c 2 -m 4G -A -H -P \ >=20 > -s 0,hostbridge \ >=20 > -s 1,lpc \ >=20 > -s n,others \ >=20 > -l com1, /dev/nmdm0A \ >=20 > name >=20 > =20 >=20 > Any ideas? I think I have a problem in /etc/ttys on either the host or= vm. >=20 > =20 >=20 > Thanks, >=20 > Barasingha >=20 > =20 >=20 > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@fr= eebsd.org" >=20 The bhyve command doesn't exit until the VM shuts down. Have your rc script that runs at startup, run vmrun or whatever you are doing via 'daemon' or something, so it goes into the background. --=20 Allan Jude --0XBNXIgHKCafsIXloqiWNvHWvV19Ktuk2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJWkWYuAAoJEBmVNT4SmAt+QOMP/1X3BLh3tcbVeyquylnhxXsM cskxaRh2P1WZUTyfkwm2gEhyJcyfncCvX9zCBYkgVJHdKyTvFl/lkf2JYKXR9ezF PAVkDsmB3p/d/USaRmeQywvaOlfFcJU0mwiNk60SuoU/c57K2WuRuYyfyn7mp3ZC FRUzpnO3ObRknUI1tV6Ot7yAqBEQbaYcVhnfueuXHkSjV8fE5o9e4RnsijhgXRv2 JN28DNV+cdSSatbAjZ2EDlcW94dKIAIXhnD+ggWJrmijY+VzoHWnoKXhU9Nea2KI QvvJIMtniLxE4iDPcCjy6WAmDJjn5wF60L27JJSvGR/6l0l3PEzrlXrETBO216Zg 3++TW+xWRgrM1TyoAbyPf0kWlioQRQcdCZff3MSGogimDwEqgTyowcMRYiykgKnr wziMI1WMmlAyplegz4V23DVYL3+DX+Y4AfeVNsyKZR24110q4oLDYwhrLtGOiVpe zf8ZGHaQd9YFSHqZWq/jiNi56SoUHUqFoh5/XxO6M3ultNDAqLAXav7AuInftfYV bYxjseX6ptZbvdDI19rREqn4KD+4yTl19inpNbsBKaNpmAHI10Bw2DnDQ9e0txZU y8X29ZCrTcR9dwLl1+fdIz6QOxhq5nvvUQfnycFoya2CPbg9EkncxbfklWB2Ri9b NK2Y0SEDfshP5DJwO5KQ =lXzE -----END PGP SIGNATURE----- --0XBNXIgHKCafsIXloqiWNvHWvV19Ktuk2--