From nobody Thu Nov 21 13:29:39 2024 X-Original-To: bugs@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 4XvJxJ048rz5d2Xp for ; Thu, 21 Nov 2024 13:29:40 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XvJxH4qQXz4JyD for ; Thu, 21 Nov 2024 13:29:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732195779; 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; bh=tFqG/QSopMPNUSWzohjoZ9fvkRSYc2gosGe9t+4dj4g=; b=nK1uct7+TXDdxwdm3InBzeZ5VjFGQgQ/U3lejL2kIt5DNpO8TW/brFjSstZv4swsniCRLW UaDVq5W1GgSi50x/HpuR+cW+K1k15mHeH5JT/TRWfNzab3dMPMk3NZ7uQSeDsoToZ0VWX2 c1pLVBPhE1e3BOJpYbUDc+XjXi5TpANpW0+ighXjY358wYbPwVBw3KZ4EfmbJxLAKFGZDu VmOx2NUpZgME+J4l1KC6m3yz0IYZBdoGQMcVxC20jI+4liwgHIa9P+Lh4Nvkw15ig/mmI2 xFeQeN+G1wmT0A7muSliJWO6sp0/OJ5qDbJwfuq+UM+aviHUPbFT3l3/kimpFA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732195779; a=rsa-sha256; cv=none; b=QhoVd1cxHbwuwint0TtagAJ/eZE3qXrSLxtYeqjWKg0LIUK9dSeUCgj8fgrJM+9u8nBpuS BJTK4pjR/zLIiLRuorHkl9tpk15x8labNMeWpGb7VarmUKNYTjXcRzPcz9zmuHH+MJdT4E HSAChtp5uf8xqn3LIJlFHDe3/PcpgKHGlmy5lRMh5KV/81JSsBGdVBsSH22l5//BWIp4fl YIA5MXGZX3+Kcl4x/zIkr+IvWpJKofEXqYDPkgOcF4vgmJyGdCC8cmdgRglXpqxOeTnewG W4gRf2E/9rOxKn5zAMIYTW68mlj2TkllY3oh8icbEEFA0jJI2u3pwJl7U44Khg== 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 4XvJxH4RFVzgrH for ; Thu, 21 Nov 2024 13:29:39 +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 4ALDTd1C052742 for ; Thu, 21 Nov 2024 13:29:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4ALDTdjR052741 for bugs@FreeBSD.org; Thu, 21 Nov 2024 13:29:39 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: bugs@FreeBSD.org Subject: [Bug 282891] gptboot and loader.efi can't work with geli encrypted virtio_block devices Date: Thu, 21 Nov 2024 13:29:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ant_mail@inbox.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282891 Bug ID: 282891 Summary: gptboot and loader.efi can't work with geli encrypted virtio_block devices Product: Base System Version: 14.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: ant_mail@inbox.ru After series of experiments I came to conclusion that gptboot and loader.efi can't detect and work with geli encrypted virtio_block devices (vtbdX). Steps to reproduce.=20 Run QEMU VM machine as: .. -drive file=3D"freebsd-guest.qcow2",if=3Dvirtio,index=3D0,media=3Ddisk \ -drive media=3Dcdrom,file=3Ddvdboot.iso \ ... Create geli-encrypted system according to https://forums.freebsd.org/threads/is-full-disk-encryption-with-ufs-possibl= e.92399/#post-643920 Try to boot VM without DVD and you'll get: --- Booting from Hard Disk... gptboot: No /boot/loader on 0:ad(0p3) gptboot: No /boot/kernel/kernel on 0:ad(0p3) FreeBSD/x86 boot Default: 0:ad(0p3)/boot/kernel/kernel boot: --- Then try to boot via UEFI using=20 ... -drive if=3Dpflash,format=3Draw,unit=3D0,file=3Dedk2-x86_64-code.fd,readon= ly=3Don \ -drive if=3Dpflash,format=3Draw,unit=3D1,file=3Dfbsdguest-vars.fd \ -drive file=3D"freebsd-guest.qcow2",if=3Dvirtio,index=3D0,media=3Ddisk \ ... You'll get: --- Setting currdev to disk0p2: FreeBSD/amd64 EFI loader, Revision 3.0 Command line arguments: loader.efi Image base: 0x1dd33000 EFI version: 2.70 EFI Firmware: EDK II (rev 1.00) Console: efi (0x1000) Load Path: \BOOT\BOOTX64.EFI Load Device: PciRoot(0x0)/Pci(0x2,0x0)/HD(2,GPT,96DDAD28-A7EA-11EF-88EF-B388856C1CCC,0x4= 28,0x82000) BootCurrent: 0008 BootOrder: 0007 0001 0002 0003 0004 0005 0006 0000 BootInfo Path: PciRoot(0x0)/Pci(0x2,0x0)/HD(2,GPT,96DDAD28-A7EA-11EF-88EF-B388856C1CCC,0x4= 28,0x82000)/\BOOT\BOOTX64.EFI Ignoring Boot0008: Only one DP found Trying ESP: PciRoot(0x0)/Pci(0x2,0x0)/HD(2,GPT,96DDAD28-A7EA-11EF-88EF-B388856C1CCC,0x4= 28,0x82000) Setting currdev to disk0p2: Trying: PciRoot(0x0)/Pci(0x2,0x0)/HD(1,GPT,42FF997F-A7EA-11EF-88EF-B388856C1CCC,0x2= 8,0x400) Setting currdev to disk0p1: Trying: PciRoot(0x0)/Pci(0x2,0x0)/HD(3,GPT,CAB6C2BE-A7EA-11EF-88EF-B388856C1CCC,0x8= 2428,0x1C00000) Setting currdev to disk0p3: Trying: PciRoot(0x0)/Pci(0x2,0x0)/HD(4,GPT,D2D4B5C3-A7EA-11EF-88EF-B388856C1CCC,0x1= C82428,0x17DBB0) Setting currdev to disk0p4: Failed to find bootable partition ERROR: cannot open /boot/lua/loader.lua: no such file or directory. --- Repeat the steps replacing 'virtio' to 'ide': -drive file=3D"freebsd-guest.qcow2",if=3Dide,index=3D0,media=3Ddisk=20 and things will work. QEMU is v9.0.0-12054. --=20 You are receiving this mail because: You are the assignee for the bug.=