Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Apr 2022 12:26:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 263118] bhyve: "Can't find /boot/entropy"
Message-ID:  <bug-263118-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263118

            Bug ID: 263118
           Summary: bhyve: "Can't find /boot/entropy"
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: benoitc@enki-multimedia.eu

I am trying to use an raw image (originally provided as qcow2) to install t=
he
stormishield appliance. This works and boot perfectly wellunder KVM and sea=
bios
but using bhyve it is stuck at the error "Can't find /boot/entropy". It also
have to be started manually.=20


There is no uefi boot on this raw image:

```
 # mdconfig -a -t vnode -f /home/benoitc/utm-SNS-EVA-4.3.6-kvm.img
md0
 # file -s /dev/md0
/dev/md0: DOS/MBR boot sector; partition 1 : ID=3D0xa5, active, start-CHS
(0x3ff,255,63), end-CHS (0x3ff,255,63), startsector 1, 20971536 sectors
```

This is why I tried with the default loader. I have the following displayed=
 in
the console:

```
Loading kernel...
/boot/kernel/kernel text=3D0x6de318 data=3D0x95f20+0x95a430
syms=3D[0x8+0xbdc18+0x8+0xbbc32]
Loading configured modules...
can't find '/boot/entropy'
Consoles: userboot

FreeBSD/amd64 User boot lua, Revision 1.2
Loading /boot/defaults/loader.conf
Loading /boot/loader.whitelist
Loading /boot/device.hints
Loading /boot/device.hints.sns
Loading /boot/loader.conf
Loading /boot/loader.conf.local
ERROR: /boot/lua/password.lua:127: attempt to call a nil value (field
'restrictInteractive').


Type '?' for a list of commands, 'help' for more detailed help.
OK ls
/
 d  .snap
 d  data
 d  boot
 d  libexec
    COPYRIGHT
 d  bin
 d  dev
 d  etc
 d  lib
 d  sbin
 d  tmp
 d  usr
 d  var
OK ls boot
boot
 d  kernel
    boot1.efi
    gptboot
    mbr
    loader.efi
    pmbr
    userboot.so
    loader
    boot
 d  lua
 d  defaults
    loader.whitelist
    device.hints
    manifest
    manifest.rcerts
    manifest.rsig
    pass_manifest
    pass_manifest.rcerts
    pass_manifest.rsig
OK boot
unknown command
OK boot
Loading kernel...
/boot/kernel/kernel text=3D0x6de318 data=3D0x95f20+0x95a430
syms=3D[0x8+0xbdc18+0x8+0xbbc32]
Loading configured modules...
can't find '/boot/entropy'
```


I am trying to start it using the default bhyve loader firmware using the
following configuration with vm-bhyve:

```
loader=3D"bhyveload"
cpu=3D1
memory=3D2G
network0_type=3D"virtio-net"
network0_switch=3D"public"
disk0_type=3D"virtio-blk"
disk0_name=3D"disk0"
disk0_dev=3D"sparse-zvol"
uuid=3D"7aa0cad4-b4fc-11ec-898b-1402ec690a80"
network0_mac=3D"58:9c:fc:04:33:de"
```

The vm image itself is stored on the disk as a spare zvolume instead of usi=
ng
the img file.

vm-bhyve log:

```
Apr 07 14:19:33: initialising
Apr 07 14:19:33:  [loader: bhyveload]
Apr 07 14:19:33:  [cpu: 1]
Apr 07 14:19:33:  [memory: 2G]
Apr 07 14:19:33:  [hostbridge: standard]
Apr 07 14:19:33:  [com ports: com1]
Apr 07 14:19:33:  [uuid: 7aa0cad4-b4fc-11ec-898b-1402ec690a80]
Apr 07 14:19:33:  [utctime: yes]
Apr 07 14:19:33:  [debug mode: no]
Apr 07 14:19:33:  [primary disk: disk0]
Apr 07 14:19:33:  [primary disk dev: sparse-zvol]
Apr 07 14:19:33: initialising network device tap1
Apr 07 14:19:33: adding tap1 -> bridge0 (public addm)
Apr 07 14:19:33: bring up tap1 -> bridge0 (public addm)
Apr 07 14:19:33: booting
Apr 07 14:19:33: bhyveload -c /dev/nmdm-utm.1A -m 2G -e autoboot_delay=3D3 =
-d
/dev/zvol/zroot/pollen1.my.domain.tld/vm/utm/disk0 utm
Apr 07 14:19:52:  [bhyve options: -c 1 -m 2G -AHP -U
7aa0cad4-b4fc-11ec-898b-1402ec690a80 -u]
Apr 07 14:19:52:  [bhyve devices: -s 0,hostbridge -s 31,lpc -s
4:0,virtio-blk,/dev/zvol/zroot/pollen1.my.domain.tld/vm/utm/disk0 -s
5:0,virtio-net,tap1,mac=3D58:9c:fc:04:33:de]
Apr 07 14:19:52:  [bhyve console: -l com1,/dev/nmdm-utm.1A]
Apr 07 14:19:52: starting bhyve (run 1)
root@pollen1:~ #
```

What could I test to help to debug this issue? Let me know :)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263118-27103>