Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 May 2024 11:02:59 -0700
From:      John Baldwin <jhb@FreeBSD.org>
To:        Lexi Winter <lexi@le-fay.org>
Cc:        Gleb Smirnoff <glebius@freebsd.org>, Mark Johnston <markj@freebsd.org>, 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
Message-ID:  <7f2827dd-2d0a-4fd7-a22a-aab6b00aadb9@FreeBSD.org>
In-Reply-To: <ZjXPIDwhIs5nWvel@ilythia.eden.le-fay.org>
References:  <202405011301.441D1xEc000624@gitrepo.freebsd.org> <ZjT7jvV05MiTtVOv@cell.glebi.us> <f0b0ccde-d4e6-455f-aa81-f04e7314d218@FreeBSD.org> <ZjXPIDwhIs5nWvel@ilythia.eden.le-fay.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7f2827dd-2d0a-4fd7-a22a-aab6b00aadb9>