• ALPHA-3 diskless + bhyve issues

    From Daniel Braniss@danny@cs.huji.ac.il to muc.lists.freebsd.stable on Tue Sep 23 10:14:02 2025
    From Newsgroup: muc.lists.freebsd.stable

    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?
    Cheers,
    Danny
    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Bjoern A. Zeeb@bzeeb-lists@lists.zabbadoz.net to muc.lists.freebsd.stable on Thu Oct 9 21:33:04 2025
    From Newsgroup: muc.lists.freebsd.stable

    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 r15:7


    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Rick Macklem@rick.macklem@gmail.com to muc.lists.freebsd.stable on Fri Oct 10 05:44:44 2025
    From Newsgroup: muc.lists.freebsd.stable

    On Thu, Oct 9, 2025 at 11:15rC>PM Daniel Braniss <danny@cs.huji.ac.il> wrote:



    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 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)
    Can you try the case where there is a non-bootable ZFS partition?
    When I have a non-bootable ZFS partition with a zpool in it, bhyve decides that is the root and fails to boot the UFS root fs. I need to:
    currdev=disk0s1
    boot
    to get it to boot.
    I don't know if this is what you might be seeing? rick

    thanks,
    danny
    ps: i guess i forgot to mention that the host is running in bhyve (14.3) pass: itrCOs now alpha-5

    --
    Posted automagically by a mail2news gateway at muc.de e.V.
    Please direct questions, flames, donations, etc. to news-admin@muc.de
    --- Synchronet 3.21a-Linux NewsLink 1.2