From nobody Thu Apr 7 13:07:28 2022 X-Original-To: freebsd-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 DA7E51AA6927 for ; Thu, 7 Apr 2022 13:07:41 +0000 (UTC) (envelope-from bchesneau@mac.com) Received: from ci74p00im-qukt09082701.me.com (ci74p00im-qukt09082701.me.com [17.57.156.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZ1rY1wgrz3msL for ; Thu, 7 Apr 2022 13:07:41 +0000 (UTC) (envelope-from bchesneau@mac.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1649336854; bh=8urZsiCLb5Wy2+5KjJ1bn9GvNcA0LY2GO61zJEwxLiI=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=I03Hfyy63WIlflwn6gMl4t3ghw2VfJOXtAifx+C2rBgpIjXjUDGnaOdl7xeBqunme CA6xvVDIJ+1WuviD/rsaqt8VnNP0RX+fkcB0pEAKQBzdL8a9DkP1jV2JThDMZdI/ZY d0QctSida393XMQ81Z6z8GtMXIEMGIYvIUKwbLXDU1HzlZJax3P8cpJHXPjok5a0T2 h9i2r4x6ilo+OywcnSOv6/122ncpDJdnLFl40+ENp09KM1jVbsAowSEKnSUpxcshWL aY6wzmG01z8OjrDpyUaqLMDIu7MLgVPcZUtbnZzxSphcLOZmEaJ26nVxXTHvI8/9Wa YVvEJbXgpKqNA== Received: from smtpclient.apple (ci77p00im-dlb-asmtp-mailmevip.me.com [17.57.156.26]) by ci74p00im-qukt09082701.me.com (Postfix) with ESMTPSA id E6CB34A0058F for ; Thu, 7 Apr 2022 13:07:32 +0000 (UTC) From: Benoit Chesneau Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Subject: bhyve: can't find /boot/entropy Message-Id: Date: Thu, 7 Apr 2022 15:07:28 +0200 To: "freebsd-virtualization@freebsd.org" X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2020-02-14=5F11:2020-02-14=5F02,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 spamscore=0 malwarescore=0 mlxscore=0 phishscore=0 clxscore=1011 bulkscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2204070064 X-Rspamd-Queue-Id: 4KZ1rY1wgrz3msL X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mac.com header.s=1a1hai header.b=I03Hfyy6; dmarc=pass (policy=quarantine) header.from=mac.com; spf=pass (mx1.freebsd.org: domain of bchesneau@mac.com designates 17.57.156.16 as permitted sender) smtp.mailfrom=bchesneau@mac.com X-Spamd-Result: default: False [-3.44 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[mac.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:17.57.156.0/24]; RWL_MAILSPIKE_EXCELLENT(0.00)[17.57.156.16:from]; DKIM_TRACE(0.00)[mac.com:+]; DMARC_POLICY_ALLOW(-0.50)[mac.com,quarantine]; NEURAL_HAM_SHORT(-0.93)[-0.934]; RCVD_IN_DNSWL_LOW(-0.10)[17.57.156.16:from]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[mac.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:714, ipnet:17.57.156.0/24, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.90)[-0.905]; R_DKIM_ALLOW(-0.20)[mac.com:s=1a1hai]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[mac.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-virtualization]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N I am trying to install a firewall appliance from stormshield [1] using = bhyve and vm-bhyve. They only support KVM so I had to first convert = their qcow2 image to a raw image (vm-bhyve take care of it). They don't = have n UEFI boot so I'm using the default bhyve loader. But After the = boot (started manually I get stuck to the message "can't find = '/boot/entropy'". ``` 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' ``` The vm-bhyve configuration is the following: ``` 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" ``` They are using a custom version of hardened bsd (freebsd 12.3 I think). = Any ide how this can be fixed? Using proxmox and latest KVM + seabios, = the image boot with succcess. Any hint is welcome :) Beno=C3=AEt