From nobody Thu May 23 06:16:57 2024 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VlHy24Rffz5KxfF for ; Thu, 23 May 2024 06:16:58 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VlHy22rbKz4V54 for ; Thu, 23 May 2024 06:16:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716445018; a=rsa-sha256; cv=none; b=b4MfmshFdwODmGJS6XJEJIJfyrJ9EB9O5QMTh6102YAffAVQUmA+e3hNPkvc9Gzz0MqIQ4 Z4TYwPhVxLPPH+LTVeD5wj0l6d9XILZF3tV4+4azQhBL3Ord1g00G0sCglzqSCkNcavDZw 2tJzvDPKDddtQW/B1/Ufp+ZC1y2zQQ9GWZVHtPE6QPkG+SJWEXVlBc6gGcVotq9yJJp1yN 9agLL2jyjNOoLGZ8KSlrqJAvgTzED1tuLzvmsUpPE/nmSEss8AKbMcuL34YCWtPYXdco2a fL+XDdLVEzmZNbcyWB8MxSj3n/rvbVynCfjpxioeukOsk5dsBcoXInKzHdXOXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716445018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hTEGBLhNbD4YPG+uFScbY5NF+BRL/Sg+z/CtQc9OIE8=; b=xj407xWJtFZc8S3/Vi19K3HIinqxco6bKOAbapUAy3uEVff1FXPQ22YRuSYspvSA+1E2R6 HWyI8Jgv1LTmLaDuA5itC/LO0nXwjy2HlZHTjp6kJwc8CCG3iukAxm+lcHhdMje9D2A9AS H5yWPNy6Wg8r0HfpZKns+GkExcaxXtfjFUheBwnWMDAPcRYYPmhSqIZfYPRusAW+qEZAhw +M7Th6/GsM95DF048dyxFMXnp2brsLmoIsWx6R2R4BC0gMh8MPbIzSK/JPeEuRataafguc nTivedbTZTpyRtZRXaDOyGSG8k36GE1sqwB+oodqjOyCKsRpXbCLLJZwHkiaXg== 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 4VlHy22M7QzdsJ for ; Thu, 23 May 2024 06:16:58 +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 44N6GwL9039679 for ; Thu, 23 May 2024 06:16:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44N6Gww9039678 for virtualization@FreeBSD.org; Thu, 23 May 2024 06:16:58 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 278984] Debian 12 won't boot in UEFI mode Date: Thu, 23 May 2024 06:16:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: bhyve X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: corvink@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278984 Corvin K=C3=B6hne changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed CC| |corvink@FreeBSD.org Resolution|--- |Not A Bug --- Comment #31 from Corvin K=C3=B6hne --- You have to copy the file /usr/local/share/uefi-firmware/BHYVE_UEFI_VARS.fd= to any location you want. Then you have to pass that copy to bhyve with: -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd,BHYVE_UEFI_VAR= S.fd Replace BHYVE_UEFI_VARS.fd with the full (or correct relative) path to your copy of the VARS file. When installing Debian, more precisely grub, it creates an EFI boot entry pointing to /EFI/debian/grubx64.efi. Boot entries are saved as EFI VARS. If= you haven't passed a VARS file to bhyve when installing Debian, this informatio= n is lost after reboot. For already installed VM's you either have to reinstall = grub or create a new boot entry on your own: efibootmgr --create --disk --part --loader /EFI/debian/grubx64.efi --label Note that your boot partition is commonly mounted at /boot/efi on Debian. Therefore, the path to the loader is just /EFI/debian/grubx64.efi. Btw. Qemu is able to use a seperate EFI CODE and EFI VARS files too. So, if= you want to create your VM image with Qemu, use seperate files for CODE and VAR= S. Then reuse the VARS file when booting bhyve and everything should work as expected. I'm closing this bug report as it's already fixed. --=20 You are receiving this mail because: You are the assignee for the bug.=