From nobody Tue Apr 22 17:48:04 2025 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 4ZhqTK1FBfz5sxjr for ; Tue, 22 Apr 2025 17:48:05 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZhqTJ6DpTz3TgN for ; Tue, 22 Apr 2025 17:48:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1745344084; 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=9fLTyccYAZFo2czQBw/Wdm3LrWVZ253hBme/TtOawhc=; b=TOXaBcPXtLEYMe68mWBEiC1JPbWVXa7EqS8TJB1rQu8mpuluhWrUfMcuxfrdm/Muop1Hx8 jNTaxb772O1KgciwmGSiMAEVTZEORFCSOhJTMn+4O/0BjrmBKRSC6x8gICVJJE3V30eiMc exmdkoM1WM54J0bXhI2d5p/Xv24MEBhI+r9XxCDcBedJ8/ECjcuA7xelxcplzfYZcdtk19 9EgRfmq8nPKToXmSpWaOpi8Jr61ihTXji/KWN/31HFXgimXh3QrLDxAwoPCGBsv7Ws6zEm L/EI/xYGU6jdfcDltyq4KWR2MoEmEXBDR8iSgjzwfEBkH/ynEvnYtilWyiOW+g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1745344084; a=rsa-sha256; cv=none; b=SXwkMYpk8W2Xo0+ireTj/zzHa8sZDfSdeiuEnuR3xwYu4T/UE6fGSzspjmZuiIp+Yl56jh X0UVfYODu+lLCDko65VmJSP8Bah8Zr7VvUG27MgcjKhMQmbjJ9UqXTXi0kdYySdS0x5aKn IxLa04JovUXWi4/vdW5yN2mfXFb4PZTA6hlKE26+lYtSK9Mrq1W6ySZtDRyhvljGx5z0Ng zuj2ByGdIX2URcejANMYV1Onrf74mwDW9IjtZSaSFobdIfgGWuCVhp4OF8zQ/pojIXJ0f8 IcjevubrRsMiLvpCPoeZgVAhNVutHAjGm1ZWD8h9D/1ZW40xco2JERHRRlcSvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1745344084; 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=9fLTyccYAZFo2czQBw/Wdm3LrWVZ253hBme/TtOawhc=; b=YJo517124GdmKaDlUCQ6nhYrlsXQ425QYHo9KHHH8J9Y6bRLfKL2YZSHWeGcB8y4ZCqJIO 3RcTR/RMAb1vUPVQEeG7sBDvx8xlJXC0nJsj2HbqOLoQHjUxo6uL1pYIY5Wp5VD8KTkOVs ga7Nf7J9XQvSsvGQLWH1/Hdl1BwwrAJKV8RUo1CQFj7pqx2nJsoBvdq+ds2qKmtTGgCcjw 5IgmS7HTeXrS5f+X2GdcSiU3v+L2av8thkwBB2v6nPaNDvrlGv8LvTpWmwIDrTYwUXre5W QC351H2RUmP6/3brJc1DCDUReeUI3zaGnLHyRBQq98Eru/N8BofXCFzykKka8w== 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 4ZhqTJ5h6QzD76 for ; Tue, 22 Apr 2025 17:48:04 +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 53MHm4AU041063 for ; Tue, 22 Apr 2025 17:48:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 53MHm4cX041062 for virtualization@FreeBSD.org; Tue, 22 Apr 2025 17:48:04 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 286289] bhyveload(8): lack of non-interactive mode Date: Tue, 22 Apr 2025 17:48:04 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: novel@FreeBSD.org 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D286289 Bug ID: 286289 Summary: bhyveload(8): lack of non-interactive mode Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: novel@FreeBSD.org When attempting to run bhyveload(8) on a non-valid FreeBSD image, it return= s to a loader prompt, e.g.: $ sudo /usr/sbin/bhyveload -m 1024 -d /path/to/disk.img myvm Consoles: userboot=20=20 FreeBSD/amd64 User boot lua, Revision 3.0 ERROR: cannot open /boot/lua/loader.lua: no such file or directory. Type '?' for a list of commands, 'help' for more detailed help. OK=20 I need to type in "quit" to exit. If I run the same, but with "-c /dev/null", i.e.: $ sudo /usr/sbin/bhyveload -c /dev/null -m 1024 -d /path/to/disk.img myvm It doesn't really help, because bhyveload(8) keeps hanging. This behavior is not very convenient, esp. when bhyveload(8) is used by scripts or other external automation. It would be nice to have a way to instruct bhyveload(8) to exit immediately when the loader fails, instead of dropping into the loader prompt. --=20 You are receiving this mail because: You are the assignee for the bug.=