From nobody Thu Apr 07 12:26:31 2022 X-Original-To: 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 E54D21A989C0 for ; Thu, 7 Apr 2022 12:26:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZ0x33xs2z3KYL for ; Thu, 7 Apr 2022 12:26:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5E4B879F0 for ; Thu, 7 Apr 2022 12:26:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 237CQV8D002233 for ; Thu, 7 Apr 2022 12:26:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 237CQVNP002232 for virtualization@FreeBSD.org; Thu, 7 Apr 2022 12:26:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 263118] bhyve: "Can't find /boot/entropy" Date: Thu, 07 Apr 2022 12:26:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: benoitc@enki-multimedia.eu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649334391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=K4PB4eCgAKLRmRfVexXUHYqptcb8YqFk7aHY44MMU9c=; b=KJCcdRFcwIvEjHiPAnG+EFwvWboybZNyiSRHRnyEaknbr4n35KzYTWXy0GGFDzMp3ANnRg dWKBKik3QIrrFsOGPPqEbTN6sDClJfJLfcbUE3LHs76Q91oxxNv1vjgDVecd0G4NPHNGCk v0dY8pJR+9WQZnLmiSgluVs6vigyHT+tCwu85iqmJLeaP0OBPPqYMKI57QkxOrhD+nmSsU cV/PCN3NKm+uETljiDjIwaKZj2ZTZB6/BD0ckmU7o7Fz5EYkrTlShLZGL7cdKTRgkYSkaI kobzPhGLtX8ReWTD+frNqntlIhZSzDxA/vP2yXAQAp3R05iY8Xd7Q2z96Rq14A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649334391; a=rsa-sha256; cv=none; b=BIkpUg58Be03xQtMr08OSpHVHdpA8scO+Wa2Vw67H88/w5T3qn5P14xfCipbqoJDSWFaWs E3AoGSg59tAqbt/8yl4AhVRzYfZaetfK9GwWoRn4Dn0AkadzGQUmS4r/j01Jn7kX/Ox5vV 825Wfi82EzzQU31imcjFKaRFQPwjxvAvJ/OlT2Cd2+BX2J0nhXZ3bULUq/6ZINF2/Njgo3 Ni13d8Om571p8EDrbqMIIWot+32s0VnAoz4i474yPTnFhu4d0nUTVIlXNyooJSd1irYkhJ sGPdQUlffJyL1SgN+GwkAwrkiXZhDOTM7Q81MDWIh7Lcmif2ON9hOxlhLDmoQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=