From owner-freebsd-current@freebsd.org Fri Sep 14 18:32:41 2018 Return-Path: Delivered-To: freebsd-current@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 E6C6E1090683 for ; Fri, 14 Sep 2018 18:32:40 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 448938D093 for ; Fri, 14 Sep 2018 18:32:40 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: by mail-lj1-x22d.google.com with SMTP id f1-v6so8282999ljc.9 for ; Fri, 14 Sep 2018 11:32:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=CVGlDSE/EZOJH1vGCtKwgjAF81rSF4A3nBnKf6cfXNc=; b=Ql8/aOlriOoq4cpSaOydulBoHeEl5iq42Sy5gJ+mqSbFpbVpmd/5a4q6Q/5LnapM3C aKQ9T0BiggHIoqoNubBGlzSjXnALb9O2eHZlJeinJ/0U6eYAGdAZw9G3iqaNoof4Qby4 u7AsWlxFrWSRiZrWNGKU0bKDlAZrICXByj0BL5xzJn2rjgLL0ykTxd3IBdlxb9N8ZBzi 0vsZs1EmZlK04QgP15p/TJ/SlT2Dq4KEG02dMhBHOBPQY6X0u2zq6cF5PTJAU/I1Fy5a MuRR8KLqsKdYzWucYwEqhCFePxU+rb2ZbfmeTVsmUmSHGNESUglwclb+ZiSQNRYKJgXI RTZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CVGlDSE/EZOJH1vGCtKwgjAF81rSF4A3nBnKf6cfXNc=; b=lQjbCOk8YAAd/er1UMKiVF61z32+3ToOLUldEZmcmO5cDlvS01GRkt3NAWfMU9JRnk cVSarb7uLkIsVHF0M0Ws+u6swTuWEhQhqK0h7WTj+uPwL4fRwVN9j1pqFKjnectBSYN0 Tt1jJ1CQ/sXDSb4mdlEadhBjjFwNE90QJGZenqheuNpDNH9tjas3SxMwcGCVeoNkXSwv INQcRAj1sRp7cWnIP5vNmV2CAgEQ/wSpCXooDQbuJaX+Rw1AW/YLFeK3A/gaDLqaCuZU pD9lKt8KnnmCzFwzA5Qjr4LSYDlh7DkZu+3MVcLlQ1yDd12L42qXD79SLLtqTCVpJ0Rh yE4Q== X-Gm-Message-State: APzg51D8FCA5kuLBoNUeOVxiS93kWQus6lJ/sgkClCr0UC04UQUPbIOx d+8OQoBCybbXV6ostPZWmHHRjlt/c2u6nR3EO77f9vo+ X-Google-Smtp-Source: ANB0VdbKFqzk2c+m3CUUIRP/jw/JgklQh3cMW/+rrp4rQDBnKbYG52W/Zmpn67KwELFxP85csQS7rCd4ox7I3/NENro= X-Received: by 2002:a2e:534e:: with SMTP id t14-v6mr2727223ljd.26.1536949958516; Fri, 14 Sep 2018 11:32:38 -0700 (PDT) MIME-Version: 1.0 From: Subbsd Date: Fri, 14 Sep 2018 21:32:53 +0300 Message-ID: Subject: FreeBSD 12 regression: unable to boot in UEFI/bhyve: blank screen after loader To: freebsd-current Current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2018 18:32:41 -0000 The problem started before FreeBSD 12 ALPHA1 but still exist in ALPHA6. If you try to run FreeBSD 12 (e.g. FreeBSD-12.0-ALPHA6-amd64-20180914-r338675-disc1.iso from ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/amd64/amd64/ISO-IMAGES/12.0/ ) in bhyve UEFI mode with command from handbook (https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/virtualization-host-bhyve.html) in chapter "21.7.5. Graphical UEFI Framebuffer for bhyve Guests" you will see a black screen after loader: https://pasteboard.co/HDSVqEE.png Apparently, this is due to recent changes in the [lua]loader. How to reproduce: 1) fetch -o /tmp/FreeBSD-12.0-ALPHA6-amd64-20180914-r338675-disc1.iso ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/amd64/amd64/ISO-IMAGES/12.0/FreeBSD-12.0-ALPHA6-amd64-20180914-r338675-disc1.iso 2) truncate -s1g /tmp/guest.img 3) ifconfig tap1 create 4) kldload vmm 5) pkg install -y uefi-edk2-bhyve 6) bhyve -AHP -s 0:0,hostbridge -s 31:0,lpc \ -s 2:0,virtio-net,tap1 -s 3:0,virtio-blk,/tmp/guest.img \ -s 4:0,ahci-cd,/tmp/FreeBSD-12.0-ALPHA6-amd64-20180914-r338675-disc1.iso -c 4 -m 1024M \ -s 29,fbuf,tcp=0.0.0.0:5900,w=800,h=600,wait \ -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \ 7) vncviewer :5900