From nobody Thu Apr 7 14:56:09 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 78DFE1A86CE3 for ; Thu, 7 Apr 2022 14:56:22 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZ4Fy2Y0tz3C65 for ; Thu, 7 Apr 2022 14:56:22 +0000 (UTC) (envelope-from kevans@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649343382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KU6S75g9DFWG+F8itXwLeWf9UA0uBQqX6RI6+1PoyZQ=; b=mxqv2RgB+E02xRCTSVCqLTX/Jjv8P7vm1WDXJLitbW4j6fSBuRxSKDzubo7scxzFd0qo9Z SUnW1QtgcLZF3hHL1+vLDEWEXhBQO1I6HAMnumL9TNeP0UUhi7pNrqALNjOyK93BAzrqSg mLJgx1nkmcXk/Lc9mQnGsPS+ebup81LrRvA9vw8e8tmk0pGsgpi21D1WcreyF/tX8YHyWO uCDOuBxvUzUgCfC/kDriLpqYj6SOCrzWjBV9zs/HVO0l5w9psjUaPNWG8BNnrcQJv5cYM3 QfzGlVev2d8rJ8Cq4JmwCqgzLv1Vne//ikFr5ywTcLKC7EtlYMzUF5V6iNmXMQ== Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 3282BEB52 for ; Thu, 7 Apr 2022 14:56:22 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-lj1-f171.google.com with SMTP id bx37so7791047ljb.4 for ; Thu, 07 Apr 2022 07:56:22 -0700 (PDT) X-Gm-Message-State: AOAM533WdfBsqU3JcmKS6v+Y2xZQl9aPSfx4ICopeRyl3SnNRXoWOdQm qpYvmogOZwpRLsHoKgllpnaulNrDQBnOZthnqYo= X-Google-Smtp-Source: ABdhPJz0xVHtzphirn5xZ4p1ae8ET7yCXSw34qENYh1Y+1PVYo5PUJ6/d3RCTwNa8zi06BKD67P0tZroJe8IJfW1NjI= X-Received: by 2002:a2e:84cc:0:b0:247:e395:7948 with SMTP id q12-20020a2e84cc000000b00247e3957948mr8730656ljh.499.1649343380674; Thu, 07 Apr 2022 07:56:20 -0700 (PDT) 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 References: In-Reply-To: From: Kyle Evans Date: Thu, 7 Apr 2022 09:56:09 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: bhyve: can't find /boot/entropy To: Benoit Chesneau Cc: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649343382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KU6S75g9DFWG+F8itXwLeWf9UA0uBQqX6RI6+1PoyZQ=; b=ehAiavXdYbOGGMmHzy2eU3jXexj/x9JObtMezMBHX9GEpizj4Vd2paCXnD3VYpcl+dmMWM /Xncn4nexQJEIv6u+yY6EGyNPcFM4xl0Pdp0kgaLFIq7Z6e/n2OKPf4wsC8Vr3F9I+/uz+ aqU1u1mENWGBJZpan3hpBgCgBXMTATjH1NNNph14G4biEC9XBiLYBncII6g5Mdf82j4q4U u4xIi9ZSRx3Yu/HDSuLQKQYvopMp6foWGhaMqW7DiK/QoiD51VtI/sHpoL2RmFlIE0+BeJ SnXZwjbqPFIghmpLgbWdNKnF2VFB6McLDYNFRke1rJG6foKC028i6qJAX2zttg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649343382; a=rsa-sha256; cv=none; b=U4GvtWuV4Yy/Kgp8S7cFHdLAnmXnPJ0qu34oZcA5UOHtRKtUZ0OWC7OofEIloWQzSbF6zW NDpQJM2jYMvKtGKgZkbSSA2I3Q6bHXBn+AUSGlN4YNb0eKOw/N3bN9V+QRykTJMSDHWbwS 9S5Qp7JQmWbIkcyVMFOBeYt4vB+Uibnl2ZtvNtuLWwkqNsjPAapTFwrCZAiajcbWCWXpl/ xtLoHChkALR2ZGk7mkSB0HB4igJf86KLTKyYMbHQp074xk0HEO7Fyfx4mAA3V/Nl3Yr779 rC4hC9O176R2L8dq0hdakVXxY3lxfPTWuZHRfpdRAylZyPikfWOrTsIA5zMobg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On Thu, Apr 7, 2022 at 8:07 AM Benoit Chesneau wrote: > > I am trying to install a firewall appliance from stormshield [1] using b= hyve and vm-bhyve. They only support KVM so I had to first convert their qc= ow2 image to a raw image (vm-bhyve take care of it). They don't have n UEF= I boot so I'm using the default bhyve loader. But After the boot (started m= anually I get stuck to the message "can't find '/boot/entropy'". > > > ``` > Loading kernel... > /boot/kernel/kernel text=3D0x6de318 data=3D0x95f20+0x95a430 syms=3D[0x8+0= xbdc18+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 're= strictInteractive'). > Noted in the PR, but you are overlooking the real error, here ^. > > 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+0= xbdc18+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 :) > Ah, that explains it. We can't really debug custom loader scripts, you'll need to find someone closer to the downstream you're working with to help out with this one.