From nobody Sat May 04 18:18:24 2024 X-Original-To: dev-commits-src-main@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 4VWwsN6bFjz5JKjP; Sat, 4 May 2024 18:18:32 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail2.karels.net (mail2.karels.net [3.19.118.201]) (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 (2048 bits) client-digest SHA256) (Client CN "freebsd", Issuer "freebsd" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VWwsN4tSYz3wxw; Sat, 4 May 2024 18:18:32 +0000 (UTC) (envelope-from mike@karels.net) Authentication-Results: mx1.freebsd.org; none Received: from mail2.karels.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by mail2.karels.net (8.18.1/8.18.1) with ESMTP id 444IIP0C034978; Sat, 4 May 2024 13:18:25 -0500 (CDT) (envelope-from mike@karels.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=karels.net; s=mail2; t=1714846706; bh=IK1ieTsXkFfDGlCQwQcXXHi5ivoZj6zPQx/TC+99if4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=IuHTiIkp3MbN/YwDwkOEtUTp7td1ZkTic2d2JvJTXlBmxDuF4GrOlzMOSmjGDp7uB lFVBL0IXv4UqHCt6LVoACXwOuQ88U2zCddC9llO28QttKjiLIoc5gA1MlWt8VLvpme cI/I2XL4PFKi53iULpwfvyjcNOxNWNfDGxMoO+5lXvOMLWrdWuO2gay472292WXrjZ RYKVLOiSIsYfpaO/+S4jZoHTGuk7VCexX2n85j8SDcbcN/JO3cJz0+jOQFc09ib03t rkiySnJG11ExDb/enTI/3o4+5scDSAWKTT0bUkkHJIFdSZX7WOTFcXM5sDENdTXDIm ZrhuoX7YaxesA== Received: from [10.0.2.130] ([73.62.165.147]) by mail2.karels.net with ESMTPSA id Si8aMPF7NmagiAAAs/W3XQ (envelope-from ); Sat, 04 May 2024 13:18:25 -0500 From: Mike Karels To: John Baldwin Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: aa34b1d20e44 - main - vmrun.sh: Add arm64 support Date: Sat, 04 May 2024 13:18:24 -0500 X-Mailer: MailMate (1.14r6028) Message-ID: <1DEC006F-A041-4AB1-8F61-C38EFD92CD87@karels.net> In-Reply-To: <7f2827dd-2d0a-4fd7-a22a-aab6b00aadb9@FreeBSD.org> References: <202405011301.441D1xEc000624@gitrepo.freebsd.org> <7f2827dd-2d0a-4fd7-a22a-aab6b00aadb9@FreeBSD.org> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.16.0.0/14, country:US] X-Rspamd-Queue-Id: 4VWwsN4tSYz3wxw On 4 May 2024, at 13:02, John Baldwin wrote: > On 5/3/24 11:01 PM, Lexi Winter wrote: >> John Baldwin: >>> On 5/3/24 7:58 AM, Gleb Smirnoff wrote: >>>> The share/examples/bhyve/vmrun.sh is not really an example, but a good >>>> standalone tool. I use it all the time without any modification, and I >>>> guess many other people do, too. >>>> >>>> Maybe time to move it to some path that is in the default $PATH? >>> >>> I really think we should instead be building a tool like vm-bhyve from ports, >>> either by importing that directly, or perhaps rewriting it in lua and having >>> that eventually replace vmrun.sh. >> >> is this what vmstated[0] is supposed to be? this was mentioned in the >> last status report[1] but it's not entirely clear if this is meant to >> replace vm-bhyve, or be something more low level. >> >> [0] https://github.com/christian-moerz/vmstated >> [1] https://www.freebsd.org/status/report-2024-01-2024-03/#_bhyve_improvements > > I'm unaware of vmstated. Checking its manpage it does not yet seem to have > feature parity with vm-bhyve. Many of the things I think you want a VM > manager to do are also perhaps a bit harder to do in C (e.g. forking and > execing tmux to access the serial console) compared to a scripting language. +1 for vm-bhyve. I used an old copy of vmrun.sh for a long time, but vm-bhyve was a big improvement. Mike > Note that jail management today via jails.conf doesn't require a running > daemon, so that seems a bit curious, though perhaps the goal is to handle > auto-restarting if a VM exits unexpectedly? > > -- > John Baldwin