From nobody Sat May 4 18:02:59 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 4VWwWV32HZz5JJN5; Sat, 4 May 2024 18:03:02 +0000 (UTC) (envelope-from jhb@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 4VWwWV2W5Bz4tkk; Sat, 4 May 2024 18:03:02 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714845782; 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=tdojVfnfX4yFtIh8e1d1K0T8XXKAsdJiJhzqPrDe3K0=; b=WlpYm5Qyt/dHXjEG1KYsZvmAPiuY17PiHh4eIXpp5fUyFFuBldS8PfgPTicEhgjYvgwXsu 2GlEYJNMw77gWWl7MZe29tfhNi7BF6/yDTfi3J3mfLRzHPhzV/jeNkjXhQkWcCYQwp8ZTx M7a6QC8JM9xyrPWXutjoFg9kY3DPRDNlKiUx+FwAas7Q7B7HZUZIZrsPXcR3B5YZruas89 E7hjMVR/e8a4cMEnG288/GghEiAWr2wjAbTbGsLtCUINp7DWQUsXFw6rrFI4DH6ci7picY CO0vVs+GWynS3PFUMdHy8MXSEoBx7TWJUd7DdKoZNNEvMWfYTOpW5PYe3wsxIA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714845782; a=rsa-sha256; cv=none; b=LCTcIkYpJjiFQoWaPVIJo4gNuATBkmoycOaYP7m3m3lhlSpjGJD6Tuw52mR5fvtEB6yAgh cnpYo1c8dQjavSOHruYQfU1WDt5x1IC003ZznH56mXkDXX7k3QrO7Hr2Wu7d3Yk4jN0SFL IUpPznFaZ3oA9UnlKQgIY5EZ5kqypJJQeL0kfiIADeVdPlhNO/B+ydqQN/EOl/BavEKVR2 1snLTFoOd+4fyY5ucaoNx7ZSp8jBzwTaMxpj3FXnYR3oli3iqlf6zFSx21h3MOR8GySsbR e60TQVLY0Kdk4cvDnZwdCW6MiEVZg2LVw6ClsE5VuVzYV152bsQQkfFS6G4LoQ== 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=1714845782; 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=tdojVfnfX4yFtIh8e1d1K0T8XXKAsdJiJhzqPrDe3K0=; b=Z8NLnxgVaVIKZknjLUnJc84XBp5Jts8X/0vNpSRz+tjiq4iIZ64Wnkye9eBZb/MCgrCMn1 XNJdgxRd8J/WPu/5I0+y/VoSu8/cvUS8dgNPP/BEAWDkHcagRSwVBXjiobaW3/RLu3Fl3c /7oYjfwFiFv6SodXT4jQAE3RK68W5tQPj0NjZM18m5tZanvOMEcRtDePkx73HgfSqMNMhD Qf+R3MORPCCBX74+cDhNcNwVtOmca3SB+8FDz1Qpqtulb1/xKKC9MXqvQkctowIJdl8p8K d05MW5NOjiFO/7zZlBBlN9wrP4ux0xOdTSYReXQ1u0J4ftstwoEga0TcZuKJSQ== Received: from [IPV6:2601:644:937f:4c50:4138:1dc9:f3d0:edc1] (unknown [IPv6:2601:644:937f:4c50:4138:1dc9:f3d0:edc1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VWwWT57Twz1LMC; Sat, 4 May 2024 18:03:01 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <7f2827dd-2d0a-4fd7-a22a-aab6b00aadb9@FreeBSD.org> Date: Sat, 4 May 2024 11:02:59 -0700 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 User-Agent: Mozilla Thunderbird Subject: Re: git: aa34b1d20e44 - main - vmrun.sh: Add arm64 support Content-Language: en-US To: Lexi Winter Cc: Gleb Smirnoff , Mark Johnston , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org References: <202405011301.441D1xEc000624@gitrepo.freebsd.org> From: John Baldwin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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