From nobody Tue Sep 9 14:49:19 2025 X-Original-To: freebsd-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 4cLmtV6gQ0z672Jl for ; Tue, 09 Sep 2025 14:49:22 +0000 (UTC) (envelope-from ivy@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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cLmtV5wBnz414d for ; Tue, 09 Sep 2025 14:49:22 +0000 (UTC) (envelope-from ivy@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757429362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=y80E2iZ0D4qUmH8eEZ1b9a3y2jAncDif0WarDvl4kqE=; b=Wbm08LbAwRrNisS07Zsoa+P3xrKEeorJfsUlJ84xU5/oCBbqsk2F6SFKzxSmDks6+eBx+A aBaVBYFODNZst/GqhGBrKoLxGtHEfd+FzqS4IXo8tPY/m5gR1RJ2D7WffXMWlH7gu/l/x1 m5GUJDKKyjLilDy8BaCHdwTHXXzgkgm0Fbzgtri8JfcoEiiznrpZZxYyDHCI41blutiD10 GfxeA5Cd6kvULL9o83d+Erppu5z1yK/y0wni8m05kO9ogRniaebRwtLNZIyW9h2PQF6R1o KLe4Ga3DBcTtigd/YqztSYsnRcG8ozpMr0thuofldutd2MjGog62gFBZ+MHfXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757429362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=y80E2iZ0D4qUmH8eEZ1b9a3y2jAncDif0WarDvl4kqE=; b=xGmoikBYl7/ouoiHY3Ac6I4V0vdyEBX5vZ5rvged68R9BH3z6hMAMZS3tb3E82lSgHv1Ur flD0Vh7F9oTA/4rn98q4Mx/yStHnkLpObuVomoI/C4BNj5oDfr2f/S7IEynYkfEJjoi0X3 qU9dyKhfx7bS4j3o6+mXTj1/h7YCzYKaYO5h/okE60/pRMI1bO4GqlLBMUJROq3zy2j/s8 J+TDWSW5g6OxDZ4HUZo2zIW/2rtE9xBHj1Rc8LU8F8PqFMga2ebpa+RZD+YT1g+VR9D+Zl fYagd+Yhjbd7tv600xtqpr1HZUoW+Va8kuwR0O/Oss6OOJmb1zeRqQ1JjS0Nnw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757429362; a=rsa-sha256; cv=none; b=SZfCG7vRsx14NNb8LFqdpcbBq6NQQpblgOpF0tnXz9GqhHLDZxeuUfCCVW7CxEsgW43vqx mV7aRCZB2fZoLRB/ISCqgWrTwALQyigGDeoD8wWvjAHRUgCsa8mLicZmKQv99Z48wcAm/k zpV6VZiPQ0lXv0N/tBt+mWyI1poobjtIoABHp+3mjDG4JGzt7WAS1GkUIXtnk/V7ryxGg+ JzwMT/b/onY5nrVZZ8r0zqEH46fdjhxGJB4a9bdGYVX5/tRJncT9cfnCfogW4zvuxk44TY BHDUBsQMWRwujVBPxrbsG96Tu0xYmBFoYuNE5f+MjrFlGgLMemeRkXNpgfkGBA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from amaryllis.le-fay.org (amaryllis.le-fay.org [IPv6:2a00:1098:6b:400::9]) (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) (Authenticated sender: ivy/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4cLmtV3ST8z19Rw for ; Tue, 09 Sep 2025 14:49:22 +0000 (UTC) (envelope-from ivy@freebsd.org) Date: Tue, 9 Sep 2025 15:49:19 +0100 From: Lexi Winter To: freebsd-virtualization@freebsd.org Subject: Re: bhyve rw access to host filesystem? Message-ID: Mail-Followup-To: freebsd-virtualization@freebsd.org References: 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 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GD4zLZH6t99xmOOC" Content-Disposition: inline In-Reply-To: --GD4zLZH6t99xmOOC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable void: > On Tue, Sep 09, 2025 at 02:48:04PM +0100, Lexi Winter wrote: > > to export the filesystem, add a virtio-9p device to bhyve: > > bhyve [...] -s 5:0,virtio-9p,myshare=3D/some/path,rw > > 'myshare' should be replaced with a descriptive name for the share, > > and change 'rw' to 'ro' to make it read-only. >=20 > I'd like it to be mounted rw - did you mean that ro is the only > correct option or can it be either? either is fine, i showed "rw" as the example since that's what you asked for, but "ro" is also valid. > > note that unlike NFS, this doesn't work automatically for descendent > > mountpoints on the host (e.g., ZFS filesystem hierarchies); instead > > you need to export and mount each child filesystem separately. =20 > so - in a guest poudriere instance, if i make the mount for > /usr/poudriere to be on an imported p9fs, but with respect to the host > this would be on a ufs fs without seperate mountpoints. It'd be able > to make all of its tmp dirs etc below /usr/poudriere on demand, if I > understand correctly. yes, that should work fine. --GD4zLZH6t99xmOOC Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCaMA+bAAKCRD1nT63mIK/ YNDBAP4nQNpWlzZSculOAyW5ViXLTo+8upzavsE9Nx3PaVbCsgEAvxacd2q367Cj OWci9Eqrqjr2r2Z/P1CQDEuzto1SmQ0= =a5ug -----END PGP SIGNATURE----- --GD4zLZH6t99xmOOC--