From owner-freebsd-virtualization@freebsd.org Mon Sep 26 10:31:34 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 27298BEA82A for ; Mon, 26 Sep 2016 10:31:34 +0000 (UTC) (envelope-from me@justinholcomb.me) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0072.outbound.protection.outlook.com [104.47.32.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D1CDFFF3 for ; Mon, 26 Sep 2016 10:31:32 +0000 (UTC) (envelope-from me@justinholcomb.me) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NETORG622321.onmicrosoft.com; s=selector1-justinholcomb-me; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=yTKVgNn2ajknVD6HR6zHLu2yWBza+Fq2A3bLWBNlG9g=; b=E5oGfuwXYhBRSjsFXtfrvm2jfwhT3QTY7nO/12MjXCiob2lcvEkwQc8x3xQsZAMioPeiZ1EWMiaJwANF08Q0J6RHjlwal8xFWC0WRwSAAv12uX3T9+Pxq0c2vqdlut677Zu2A8Vyb9tiQtPJjrYPR3XZSfY+lYhUZq3zeJ3s4i4= Received: from CY4PR12MB1447.namprd12.prod.outlook.com (10.172.71.139) by CY4PR12MB1447.namprd12.prod.outlook.com (10.172.71.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Mon, 26 Sep 2016 05:57:00 +0000 Received: from CY4PR12MB1447.namprd12.prod.outlook.com ([10.172.71.139]) by CY4PR12MB1447.namprd12.prod.outlook.com ([10.172.71.139]) with mapi id 15.01.0639.011; Mon, 26 Sep 2016 05:57:00 +0000 From: Justin Holcomb To: Stephan CHEDLIVILI , "freebsd-virtualization@freebsd.org" Subject: Re: UEFI bhyve and EFI shell at boot Thread-Topic: UEFI bhyve and EFI shell at boot Thread-Index: AQHSFjDgn81zyb8n4kGotDGfaDDw56CLPsC6 Date: Mon, 26 Sep 2016 05:56:59 +0000 Message-ID: References: <9276239.oRRSstIAVb@panda.test.me> In-Reply-To: <9276239.oRRSstIAVb@panda.test.me> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=me@justinholcomb.me; x-originating-ip: [25.163.250.4] x-ms-office365-filtering-correlation-id: 35bd95d4-9983-4f89-275e-08d3e5d1ee93 x-microsoft-exchange-diagnostics: 1; CY4PR12MB1447; 6:q9A6O6FmChIDPWnGJq7zwExI5swnWHJkM5FfsFrksil/+kW+2oNvStXhEFuihNys5Cq70pBXp48+hVvFLCeKhlg0lyXrhsccdABQukpdSeqbd4Uv1xBWDqhURQ3eqZUXTkFmO4ZxrAHTshaAykOF+VVB+EgAQqsmwgFKMqc2dEfYA2IYssB+LrCEbel9JsSfrgdJ060od4jH3mD33hBlI5M2PSx/FQz/GX5iF25valKcXWlmyMPYN2j6glZVjkjQ5A9k8HuNcDdYQF3pj8YwDQrbElA4k8kUEING0Sr5aBWla9yIqiyVOaQvZ3zWgVeb; 5:U2j8tyUoYrjpciLrAN7flcffFW5K9cB5X9rr39k3SPiTm+di8bAYVi2eanc012oSqZvOGXArYnxRcajxLy+JspXyQGIb8rZCT8OceImbQUrjhm6qtS12nj8hDOqnOn8df1qD/SLQ0Z7YZOZbTctfZg==; 24:3EUJCPZcder0omCuQJx7wsY0B2m4m/X//nwAHUqs5Y7UCTM6U3vfVus9o95t4eCKU7tw6abLw3uOPbQd4QsGvMsZ1NG+AesNNJaxr0AIdbs=; 7:3xHYofVcbbwU6pq+F8TxqxqUy727aY8nfEggmFc6LGV2XRDipDqPiYbChFxXlgG3zGpWxophphVncctFGVyHyKkPsAaSd0OYeeoXeQgCpjYHjcy6VOnmCcAt+7zHP99M6aaZYjNFtPIA0wjD/C/7qQ3szG52SlgAxIqFKkHrJfnnn2hkQ0SwLWTBFs1BRp3oU7TFzygTv1iGzOQipmt+1o0YvjpFfHDein7pzhRohe1mu3nyJXemPofExv9YlBRHKkTwkf+PxkICu/aVGfAj+Gjgbj6X/ZTJXP0RnHj+RgACDp2kyu1QuKceZDB9wy/D x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY4PR12MB1447; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6042046)(6043046); SRVR:CY4PR12MB1447; BCL:0; PCL:0; RULEID:; SRVR:CY4PR12MB1447; x-forefront-prvs: 00770C4423 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(189002)(377454003)(199003)(2501003)(68736007)(97736004)(66066001)(5890100001)(33656002)(11100500001)(54356999)(189998001)(9686002)(10400500002)(76176999)(106356001)(2950100002)(5001770100001)(105586002)(106116001)(99286002)(50986999)(107886002)(76576001)(92566002)(87936001)(2900100001)(8936002)(8676002)(7846002)(5002640100001)(101416001)(3900700001)(586003)(2906002)(3846002)(102836003)(3280700002)(3660700001)(81166006)(77096005)(15975445007)(6116002)(19580405001)(74482002)(74316002)(19580395003)(5660300001)(86362001)(7696004)(81156014)(305945005)(7736002)(122556002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1447; H:CY4PR12MB1447.namprd12.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: justinholcomb.me does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: justinholcomb.me X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2016 05:56:59.2339 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c7d5abe1-1510-4ced-8e7f-cfc5eb7f6997 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1447 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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, 26 Sep 2016 10:31:34 -0000 > From: owner-freebsd-virtualization@freebsd.org on behalf of Stephan CHEDLIVILI > Sent: Saturday, September 24, 2016 12:50 AM > To: freebsd-virtualization@freebsd.org > Subject: UEFI bhyve and EFI shell at boot > =A0 =20 > Hi gents, >=20 > I was giving a try to the UEFI-GOP on a FreeBSD 11.0-RC3. Launching the=20 > install of, let's say a Debian works fine and I can attach a VNC viewer f= or the=20 > progress. >=20 > All is fine , even rebooting after the installation is finished I can log= in=20 > Debian. >=20 > However, when I do a bhyvectl --destroy --vm=3Dxxxxxxx and I try to reboo= t the=20 > VM and it greets me with the error message "Boot failed, EFI Harddrive" a= t=20 > boot and sends me to the EFI shell.=20 >=20 > I then have to manually use the shell menu to launch the boot via the ad-= hoc=20 > file (/boot/efi/efi/debian/grubx64.efi) and it boot flawlessly. >=20 > And of course, the same error happens after I reboot the FreeBSD host mac= hine >=20 > Is there somethign I am missing here ?=20 >=20 > Thanks for this admirable piece of work ! >=20 > -Stephan Stephan, I have also experienced this as well. My scriptable work around was to star= t the guest with a rEFInd ISO[1] instead a 'null.iso'. rEFInd sees the Debian installation on the image/volume and will boot from it after the 15 seconds timeout elapses. As for the why... my rudimentary understanding is the Debian installation creates and relies on the UEFI boot entry it creates during installation. However that entry is forgotten once the guest's VMM resources are reclaime= d as the UEFI environment is not saved and is reloaded exactly from the UEFI ROM file (not from the previous state). -Justin D Holcomb [1] http://www.rodsbooks.com/refind/getting.html=