From owner-freebsd-virtualization@freebsd.org Mon Jun 29 13:52:14 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4F64534A680 for ; Mon, 29 Jun 2020 13:52:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49wTSZ1S6xz3Z7k for ; Mon, 29 Jun 2020 13:52:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 31E13349FFF; Mon, 29 Jun 2020 13:52:14 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 31A68349FFE for ; Mon, 29 Jun 2020 13:52:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49wTSZ0Xrbz3ZDF for ; Mon, 29 Jun 2020 13:52:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D211585C2 for ; Mon, 29 Jun 2020 13:52:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 05TDqDkH005468 for ; Mon, 29 Jun 2020 13:52:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 05TDqDe0005467 for virtualization@FreeBSD.org; Mon, 29 Jun 2020 13:52:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 247636] Ubuntu 18.04 & 20.04 guest kernel panic on boot with 12.1 bhyve + graphical UEFI Date: Mon, 29 Jun 2020 13:52:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: drum@graphica.com.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.33 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, 29 Jun 2020 13:52:14 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247636 Bug ID: 247636 Summary: Ubuntu 18.04 & 20.04 guest kernel panic on boot with 12.1 bhyve + graphical UEFI Product: Base System Version: 12.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: drum@graphica.com.au Created attachment 216037 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D216037&action= =3Dedit Screen shot of kernel panic BUG: Setup: Nested virtualisation with: Layer 0 - Ubuntu 20.0 KVM, Layer 1 - Fre= eBSD 12.1 with bhyve and UEFI, Layer 2 - Ubuntu 18.04 & 20.04 Guest VM Observered Behaviour: Starting both Ubuntu 20.04 & 18.04 (Server & Desktop CD-ROMs) VM with bhyve= on FreeBSD 12.1 results in VM crashing with kernel panic. (see attachment for UEFI VNC screen shot) Expected Behaviour: Ubuntu CD Install Boot to allow installation onto HD image. DIAGNOSTICS: I have done extensive testing of nested virtualisation: Layer 0 - Ubuntu 20.04 with QEMU / KVM / libvirt Layer 1 - FreeBSD 12.1 with OVMF Guest running bhyve hypervisor Layer 2 - Guest Testing: Layer 2 - FreeBSD 12.1 with UEFI rom + serial console - WORKS Layer 2 - FreeBSD 12.1 with UEFI rom + graphical boot - WORKS Layer 2 - Ubuntu 20.04 Server & Desktop with UEFI rom + graphical boot - FA= ILS Layer 2 - Ubuntu 18.04 Server & Desktop with UEFI rom + graphical boot =3D = FAILS Bhyve command line: # bhyve -c2 -m 2048 -H -A -s 0:0,hostbridge -s 1:0,lpc -s 2:0,e1000,tap0 -s 3:0,ahci-hd,./VM_DSK.img -s 4:0,ahci-cd,./ubuntu-18.04.4-live-server-amd64.= iso -s 29,fbuf,tcp=3D0.0.0.0:5900,w=3D1024,h=3D768,wait -s 30,xhci,tablet -l co= m1,stdio -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd VM_NAME I have documented my testing extensively here: https://tips.graphica.com.au/freebsd-virtualisation-with-bhyve/ My configuration included work around to disable "virtual interrupt deliver= y" as this was required to get FreeBSD nested guest to boot successfully. See bug report here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D24= 6168 Happy to do other testing as required. Thank you for any tips/advise/help/ Regards, John Hartley. --=20 You are receiving this mail because: You are the assignee for the bug.=