From nobody Fri Oct 10 06:14:57 2025 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 4cjc0v3KDdz6BPvT; Fri, 10 Oct 2025 06:15:11 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4cjc0v0WZZz3NXC; Fri, 10 Oct 2025 06:15:10 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=uARhpCL1s/OWhddBZD0rlSknZnqT+ZHhJr6JqWf6ZXk=; b=piTxaUJ5zj3IgpF/uUArHLLDG/e8IcBU6Qbl4kV/Z6/RAKPVXxW69Y8VVSdXyKNsghvZn8PkYu0yy6z1EA4sUOHTRSlcWTK99xynhsDu1N04VjPEL6HiIWGP5X4VxYTkZkftdnS243O3gG+6E3sps/RqKVM+vyztOLSB5KoBOZ/o2zWD7ePTJVTWNxj3hZNigLd2GhQKs2+xVnsad7aPFNAV3yYO71TIg9U0CswQv8rEDHQqG4c++NdydIBF/DWKITo0ycHDuergHRObaimaKMpWTs8Nh8PDRgks/bUtVH2D/Q3lZkgzlSRlB3k/ve5PrPQ7GfNq8sM/SzaDTVEfLA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cse.huji.ac.il; s=57791128; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=uARhpCL1s/OWhddBZD0rlSknZnqT+ZHhJr6JqWf6ZXk=; b=tkNG6VgmUPpY1Ms44qDoBfUZnq1m2N00CZ9I73Enod6sDgl5HV3xK/m4Z295yUFxSg2VowL7z82gWwKbqNYZl4pCdC9Qw2tFsDBqEnVyhiaVif4PcCOcxDTGbfaSpzQrgr9xD/42OsNFUL9i54ziOJPgyb1Oi/MOUoV0ytXpSzOICqrmHy39w2EiepAQwZ5wY1HENhm+43/XTjJ+XzDYwGZFe56IS8WHMmKmXe7rrYao0XCs5OXhBUAhApdsVW6x2UBOzUoM9ETB3akM8Slb1wQ+IKyQnyVB2lIA9ddtT9E7Og2uW8WNrQmPo5l3uFMZ59/qzFa+5G0U81u2d33CKg==; Received: from bach.cs.huji.ac.il ([132.65.80.20] helo=smtpclient.apple) by kabab.cs.huji.ac.il with esmtp id 1v76P5-000Gfm-U4; Fri, 10 Oct 2025 09:14:59 +0300 From: Daniel Braniss Message-Id: <639210F6-87B6-4B34-AB9B-8EAB46682B80@cs.huji.ac.il> Content-Type: multipart/alternative; boundary="Apple-Mail=_959EB672-4718-4BD3-BD69-ABFBF3834D0C" 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 (Mac OS X Mail 16.0 \(3696.120.41.1.10\)) Subject: Re: ALPHA-3 diskless + bhyve issues Date: Fri, 10 Oct 2025 09:14:57 +0300 In-Reply-To: Cc: Freebsd-stable List , virtualization@freebsd.org To: "Bjoern A. Zeeb" References: <342F2780-9C83-4CEE-BE3E-AE72C9AE12BA@cs.huji.ac.il> X-Mailer: Apple Mail (2.3696.120.41.1.10) X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cjc0v0WZZz3NXC --Apple-Mail=_959EB672-4718-4BD3-BD69-ABFBF3834D0C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 10 Oct 2025, at 00:33, Bjoern A. Zeeb = wrote: >=20 > On Tue, 23 Sep 2025, Daniel Braniss wrote: >=20 >> So after many years, I tried to install instead of upgrading, >> and after much fiddling (if anyone is interested I can write how I = did i) I got it to >> install, now here is my problem: >> when the the local disk was empty, loader.efi is called (this via = dhcp) and it boots diskless, >> but now that the disk is populated, it boots from it. >>=20 >> Q: how can I have it boot diskless again? >=20 > I haven't seen an answer. Have you tried the freebsd-virtualization = list? >=20 > I assume you could interrupt the boot process if fast enough (but it's = the blink of an eye); > so you'll most likely be more successful putting a startup.nsh and = possibly an EFI shell in the EFI System Partition (ESP) and script it? = Could be the bhyve firmware brings the efi shell along already? >=20 > /bz >=20 > --=20 > Bjoern A. Zeeb = r15:7 hi, no answer yet, but after some experimenting: boots diskless: if no local disk - dah if local disk and no EFI partition if local disk has the above but no valid root partition and finally if root partition and efi but no bootx64.efi ( i just move = it to bootx64.efix) thanks, danny ps: i guess i forgot to mention that the host is running in bhyve (14.3) pass: it=E2=80=99s now alpha-5 --Apple-Mail=_959EB672-4718-4BD3-BD69-ABFBF3834D0C Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 10 Oct 2025, at 00:33, Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net> wrote:

On = Tue, 23 Sep 2025, Daniel Braniss wrote:

So after many years, I = tried to install instead of upgrading,
and after much = fiddling (if anyone is interested I can write how I did i) I got it = to
install, now here is my problem:
when the = the local disk was empty, loader.efi is called (this via dhcp) and it = boots diskless,
but now that the disk is populated, it = boots from it.

Q: how can I have it boot = diskless again?

I haven't seen = an answer.  Have you tried the freebsd-virtualization list?

I assume you could interrupt the boot process = if fast enough (but it's the blink of an eye);
so you'll = most likely be more successful putting a startup.nsh and possibly an EFI = shell in the EFI System Partition (ESP) and script it?  Could be = the bhyve firmware brings the efi shell along already?

/bz

--
Bjoern A. = Zeeb =             &n= bsp;           &nbs= p;            =             &n= bsp;  r15:7

hi,
no = answer yet, but after some experimenting:
boots = diskless:
if no local disk - dah
= if local disk and no EFI partition
if local = disk has the above but no valid root partition
and = finally if root partition and efi but no bootx64.efi ( i just move it = to bootx64.efix)

thanks,
danny
ps: = i guess i forgot to mention that the host is running in bhyve = (14.3)
pass: it=E2=80=99s now alpha-5

= --Apple-Mail=_959EB672-4718-4BD3-BD69-ABFBF3834D0C--