Bug 274051 - FreeBSD bhyve installation = can't find hostid/entropy
Summary: FreeBSD bhyve installation = can't find hostid/entropy
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bhyve (show other bugs)
Version: 13.2-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2023-09-23 17:08 UTC by unspam
Modified: 2023-11-16 17:17 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description unspam 2023-09-23 17:08:13 UTC
Operating System: FreeBSD-13.2-R2
Server: Cisco UCS 220 M5

Kernel:
FreeBSD Crystal 13.2-RELEASE-p2 FreeBSD 13.2-RELEASE-p2 releng/13.2-n254627-4341433a673f GENERIC amd64

Issue:
Original this was within a Jail, but can reproduce the same natively on host.
But occurs with any FreeBSD ISO image when attempting to install via bHyve. in can't 
find /boot/entro or /etc/hostid


host:/ # bhyveload -m1G -d /srv/.iso/FreeBSD-13.2-RELEASE-amd64-dvd1.iso test

    Loading kernel...
    /boot/kernel/kernel text=0x18aa98 text=0xdfd150 text=0x675154 data=0x140 data=0x1c38e8+0x43b718 0x8+0x18fe70+0x8+0x1ae449-
    Loading configured modules...
    can't find '/boot/entropy'
    can't find '/etc/hostid'

ISO Versions Attempted:

    FreeBSD-12.4-RELEASE-amd64-bootonly.iso
    FreeBSD-13.2-RELEASE-amd64-bootonly.iso
    FreeBSD-13.2-RELEASE-amd64-disc1.iso
    FreeBSD-13.2-RELEASE-amd64-dvd1.iso
    FreeBSD-14.0-BETA3-amd64-bootonly.iso

Non-UEFI
Comment 1 unspam 2023-09-23 18:59:45 UTC
Rebuilt the world, kernel to 14-BETA3 on UEFI

14.0-BETA3 FreeBSD 14.0-BETA3 #6 n265116-95321fff46ec: Sat Sep 23 19:24:51 BST 2023

Loading kernel...
/boot/kernel/kernel text=0x18aa98 text=0xdfd150 text=0x675154 data=0x140 data=0x1c38e8+0x43b718 0x8+0x18fe70+0x8+0x1ae449-
Loading configured modules...
can't find '/etc/hostid'
can't find '/boot/entropy

Same issue.
Comment 2 unspam 2023-09-24 00:20:52 UTC
This may be a weird Cisco UCS 220 M5 issue?

12.4-Release
On fresh install server boots & installs but has the same messages
After fresh install of 12.4-Release, and first reboot it displays can't find hostid at loader, continues to boot but same issue.

# After attempting to run bHyve

root@crystal:/tmp # bhyveload -m1G -d FreeBSD-13.2-RELEASE-amd64-bootonly.iso  Loading kernel...
/boot/kernel/kernel text=0x18aa98 text=0xdfd150 text=0x675154 data=0x140 data=0x1c38e8+0x43b718 syms=[0x8+0x18fe70+0x8+0x1ae449]
Loading configured modules...
can't find '/etc/hostid'
can't find '/boot/entropy'
Comment 3 unspam 2023-09-24 14:26:28 UTC
Fresh reinstall of FreeBSD 13.2

Natively 
bHyve now starts

Within jail
Loading kernel...
/boot/kernel/kernel text=0x18aa98 text=0xdfd150 text=0x675154 data=0x140 data=0x1c38e8+0x43b718 0x8+0x18fe70+0x8+0x1ae449-
Loading configured modules...
can't find '/boot/entropy'
can't find '/etc/hostid'
bhyve: init_bootrom: vm_create_devmem: No such file or directory
And then exits.
Comment 4 Kyle Evans freebsd_committer freebsd_triage 2023-11-12 06:28:12 UTC
(In reply to unspam from comment #3)

The messages about /boot/entropy and /etc/hostid are just noise rather than anything fatal; was this present on the earlier attempts but omitted by accident?

> bhyve: init_bootrom: vm_create_devmem: No such file or directory
Comment 5 unspam 2023-11-16 12:51:05 UTC
Hi Kyle,

Previous version's didn't have that message, only /boot/entropy and /etc/hostid and then exit.

However, that was the proper error message I had received regarding to the issue on that version.

Cheers
David
Comment 6 unspam 2023-11-16 17:17:55 UTC
After using 15.0 current ISO, 

FreeBSD bhyve 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-n266315-b2b381d365fc: Thu Nov  9 03:55:20 UTC 2023     root@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

I can now create virtual machines within jails with network activity. Not sure why, or how. But it works.