bhyve FreeBSD bhyve installation = can't find hostid/entropy

Operating System
Code:
OS: FreeBSD-13.2-R2
FreeBSD Crystal 13.2-RELEASE-p2 FreeBSD 13.2-RELEASE-p2 releng/13.2-n254627-4341433a673f GENERIC amd64

Issue:
Any FreeBSD ISO image when attempting to install bHyve from a jail result in the following result.

Original this was within a Jail, but can reproduce the same natively on host.

Code:
jail$ bhyveload -m1G -d /srv/.iso/FreeBSD-13.2-RELEASE-amd64-dvd1.iso test.crystal

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

Files:
/etc/devfs.rules

Code:
[devfsrules_jails=7]
add include $devfsrules_hide_all
add include $devfsrules_unhide_basic
add include $devfsrules_unhide_login
add path 'vmm' unhide
add path 'vmm/*' unhide
add path 'nmdm*' unhide
add path 'bpf*' unhide
add path 'dev' unhide
add path 'zfs' unhide
add path 'vtnet*' unhide
add path 'epair*' unhide
add path 'tun*' unhide
add path 'tap*' unhide

/etc/jail.conf

Code:
bhyve {
   mount.devfs;          #mount devfs
   devfs_ruleset="7";    #devfs ruleset for this jail
   host.hostname = "bhyve";   # hostname
   path = "/forest/fountain/bhyve/main";     # root directory

   exec.clean;
   exec.system_user = "root";
   exec.jail_user = "root";

   # Networking
   vnet;
   vnet.interface = "e0b_bhyve";               # vnet interface(s)
 
    # Executions
    exec.prestart += "jib addm bhyve ix0";
    exec.poststop += "jib destroy bhyve";
    exec.start += "/bin/sh /etc/rc";
    exec.stop = "/bin/sh /etc/rc.shutdown";
    exec.consolelog = "/var/log/jail_bhyve_console.log";

    # Allowances
    allow.raw_sockets;
    allow.set_hostname;
    allow.vmm;
 
    # Security
    securelevel = -1;
}

At this point confused.
 
Last edited by a moderator:
I have the same problem, except when trying to boot FreeBSD-12.4-RELEASE-amd64.raw (from freebsd.org)

Code:
# bhyveload -m 256 -d FreeBSD-12.4-RELEASE-amd64.raw vm0

...

Loading kernel...
/boot/kernel/kernel text=0x183cc0 text=0xf48024 text=0x69c5e4 data=0x140 data=0x764870 syms=[0x8+0x1920c0+0x8+0x1acc6f]
Loading configured modules...
can't find '/etc/hostid'
can't find '/boot/entropy'

Based on some searching, this error seems to have been around for several years, and not just with virtualised machines. This is my first foray into bhyve so it's not the best start, lol.

Feeling a bit overwhelmed with all of the "me too" replies, is there a clear fix for this??

Edit: This also happens with the 14.0-RELEASE image, so definitely not fixed.
 
Back
Top