From owner-freebsd-virtualization@freebsd.org Fri May 4 12:57:01 2018 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1455EFACF06 for ; Fri, 4 May 2018 12:57:01 +0000 (UTC) (envelope-from mike.gerdts@joyent.com) Received: from mail-pg0-x235.google.com (mail-pg0-x235.google.com [IPv6:2607:f8b0:400e:c05::235]) (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 6D5DC73F7A for ; Fri, 4 May 2018 12:57:00 +0000 (UTC) (envelope-from mike.gerdts@joyent.com) Received: by mail-pg0-x235.google.com with SMTP id g20-v6so8731486pgv.1 for ; Fri, 04 May 2018 05:57:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joyent.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=o8DDBqdY2TVftnrZ0L15vjeqRhsEj9uHqQXcsYaVv88=; b=bPEfZaRY3QP9X+zDI1ah7mwwNSOCd9hOmf8VVEdi/fOWbwJPZKUXhb1e6+E+sP11RY 7OBSl880r9VoniZwd7m0wPAUgkH1vqZoUBo4/PKsDNypxwtU2AIYu+M+I4kcLElcPhvI jPQ+WENxX3rs6dzduxwmHosk9pZrkXpAYmpQQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=o8DDBqdY2TVftnrZ0L15vjeqRhsEj9uHqQXcsYaVv88=; b=VlA5b2APAjk9J0ErHT00ANmwqeMas1Gw7hBMbmQOK3lbqLJUQXPEZvX0MexySU+tGm sI3Ev7HN5ucSAatdS+LZln1zR3OZKKgR50fvrxWjtI5qKSoOwWIJVbz5k7hKUV1nLNHX XHkGkm7WtYPWNXJifHkaHNt2pHjhz3KdLzA2kk2wbBeNjEteRl4AH7vo9NaQEGoobqNs YksBJ39IWqijfRR5g9lIa3obxb24k6kvLe9gs8gTLmPVqVy2TlanjhfmfRkvLwxNW3MQ w8Qo1MEBtvns1Vj2MeStCwVb46gQc7QgVsUq0XRGVvATV20x1iCk8FkxUL8FND6734v6 mFHw== X-Gm-Message-State: ALQs6tDNKnvLeL1nzn3fxGD2DCm5iti/MLXnyaVyheFo2fxlMjA9+8du p5GkotKJdCVx6zxXEewJU/erNvpnnZ82Y4GcTe1urQ== X-Google-Smtp-Source: AB8JxZrkRLlbLTwVaMVYgt3RUeU7ot7ho4k56TtgS52kAveekqLaVYE/n/C55avGt1q+v9/CbG4Q8eRA9RhVzLzkjRw= X-Received: by 2002:a17:902:2702:: with SMTP id c2-v6mr27327777plb.297.1525438619288; Fri, 04 May 2018 05:56:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.163.208 with HTTP; Fri, 4 May 2018 05:56:58 -0700 (PDT) In-Reply-To: <20180504122635.Horde.BLpo7EULCvCbMZLSMErcHAh@app.eeeit.de> References: <20180502095855.Horde.pnF1J3CvBGrJMXFBiwHibZM@app.eeeit.de> <20180504122635.Horde.BLpo7EULCvCbMZLSMErcHAh@app.eeeit.de> From: Mike Gerdts Date: Fri, 4 May 2018 07:56:58 -0500 Message-ID: Subject: Re: Centos7 uefi boot problem with bhyve after update To: Michael Reifenberger Cc: Jason Tubnor , freebsd-virtualization@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.25 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: Fri, 04 May 2018 12:57:01 -0000 On Fri, May 4, 2018 at 7:26 AM, Michael Reifenberger wrote: > The kernel version shouldn't matter that much because the error occures > before the kernel gets loaded. > It's after /EFI/BOOT/BOOTX64.EFI got loaded and before > /EFI/centos/grubx64.efi gets loaded > because of not beeing found... > On SmartOS I've found that fresh installations of CentOS 7 put all of the required files to actually boot the OS in the /EFI/centos directory leaving the /EFI/BOOT directory mostly empty. The image at https://ibb.co/jFwDES matches this symptom. This can be fixed (hacked around) via the EFI shell. The following is pieced together from scrollback (that was kinda wonky due to size issues) from a serial console. Shell> FS0: FS0:\> cd efi FS0:\efi\> cd BOOT FS0:\efi\BOOT\> dir Directory of: FS0:\efi\BOOT\ 05/03/2018 19:29 4,096 . 05/03/2018 19:29 4,096 .. 08/31/2017 21:30 1,296,176 BOOTX64.EFI 08/31/2017 21:30 79,048 fbx64.efi 2 File(s) 1,375,224 bytes 2 Dir(s) FS0:\efi\BOOT\> cd ..\centos FS0:\efi\centos\> dir Directory of: FS0:\efi\centos\ 05/03/2018 19:27 4,096 . 05/03/2018 19:27 4,096 .. 05/03/2018 19:29 4,096 fonts 08/31/2017 21:30 1,297,120 shimx64-centos.efi 08/17/2017 18:00 1,052,032 grubx64.efi 08/31/2017 21:30 134 BOOT.CSV 08/31/2017 21:30 134 BOOTX64.CSV 08/31/2017 21:30 1,262,816 mmx64.efi 08/31/2017 21:30 1,296,176 shim.efi 05/03/2018 19:33 1,024 grubenv 08/31/2017 21:30 1,296,176 shimx64.efi 05/03/2018 19:33 4,231 grub.cfg 9 File(s) 6,209,843 bytes 3 Dir(s) FS0:\efi\centos\> cp -r * ..\boot Copying FS0:\EFI\centos\fonts -> FS0:\EFI\BOOT\fonts ... Copying FS0:\EFI\centos\grub.cfg -> FS0:\EFI\BOOT\grub.cfg - [ok] FS0:\efi\centos\> reset I've not curled up with the EFI spec for a while and forget how it is supposed to choose which directory to read the various files from. That is, the fault here could be that of bootrom not reading the files it should or the guest OS not putting the right thing in \EFI\BOOT to get it to look in \EFI\centos. Mike