From nobody Tue Sep 9 14:33:06 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 4cLmWq14bwz670t1 for ; Tue, 09 Sep 2025 14:33:11 +0000 (UTC) (envelope-from void@f-m.fm) Received: from fhigh-b1-smtp.messagingengine.com (fhigh-b1-smtp.messagingengine.com [202.12.124.152]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4cLmWp2dPZz3yDk for ; Tue, 09 Sep 2025 14:33:10 +0000 (UTC) (envelope-from void@f-m.fm) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=f-m.fm header.s=fm1 header.b=hQFYuN5g; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=QFCXie4z; dmarc=pass (policy=none) header.from=f-m.fm; spf=pass (mx1.freebsd.org: domain of void@f-m.fm designates 202.12.124.152 as permitted sender) smtp.mailfrom=void@f-m.fm Received: from phl-compute-08.internal (phl-compute-08.internal [10.202.2.48]) by mailfhigh.stl.internal (Postfix) with ESMTP id C384B7A0082 for ; Tue, 9 Sep 2025 10:33:08 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Tue, 09 Sep 2025 10:33:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f-m.fm; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1757428388; x=1757514788; bh=7x4vkiU77V wIIClJbcyaVCaXwqDlIcib3Xe1er0h9iU=; b=hQFYuN5gj3m5j1d6t1oNhfUWYR VONXhLrUs42FUGowxEmS/0BTojnsFoynNwxbfelVZaF7IKdwRxhD42tulRxzERNs LRdwF1VXw7L3tgfjYcbCAkG6IBdQu36/wBt3VgM+mwVvW6lRG1yp7xrTbIfpF8a5 DN/qq45spbfqBIuTsHA+e289Va4ode7aaGTodYJ+ckmjYuIfSnaymvZkwFIy5U6D gc5UZOZ4V7JnLIlAinZiYVDMiLCjLhV28xsunprNSL2AmD706yenvBLGGTWtJ3D/ 7oVBN5YROWEoHjgZpyoMkWedKySaBBSvDntHlqrhmUaYFsQbD2Dn1Ce8IkHg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1757428388; x=1757514788; bh=7x4vkiU77VwIIClJbcyaVCaXwqDlIcib3Xe 1er0h9iU=; b=QFCXie4zoioAP9Tnzi/P+5Wjx84oHNjFAxLiZh7Fv0U6nGSn33K 2EVMQ5T0AOvOlgap/xCsMiDn1uyjvX9MBpj7zIydBa2GnI/ZFcE/OJC92wObh0Ck ASZlqDfgFjTpdl7Sbg8iOjmmURWg28Tpp6D7Y20K/0L2/8FNwSqYFsZsgYx8a0rb 6doUG3rsGWu6vBcFwe7jiH5ZiyY1nuqw97t/Szo4mVCchgExHfSDYsdSB4zOr/a9 hFQDsJMpulVSpEUznXDe24xLI6SZRlJWnU/DXk+xELa2rk9PlVvGI5o+DMdVAerl IebKlAmQ5ZICjE7Kih3tsRNWkZV29+2PbZQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvtdeiiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttdertddttd dvnecuhfhrohhmpehvohhiugcuoehvohhiugesfhdqmhdrfhhmqeenucggtffrrghtthgv rhhnpeekleduvdelhfeileefgffghfffkedtheellefgudfgvdegkeejjedutdehhefgue enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehvohhi ugesfhdqmhdrfhhmpdhnsggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehfrhgvvggsshguqdhvihhrthhurghlihiirghtihhonhesfhhrvggvsghs ugdrohhrgh X-ME-Proxy: Feedback-ID: i2541463c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 9 Sep 2025 10:33:08 -0400 (EDT) Date: Tue, 9 Sep 2025 15:33:06 +0100 From: void 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: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.38 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.78)[-0.783]; DMARC_POLICY_ALLOW(-0.50)[f-m.fm,none]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:202.12.124.128/27]; R_DKIM_ALLOW(-0.20)[f-m.fm:s=fm1,messagingengine.com:s=fm1]; RCVD_IN_DNSWL_LOW(-0.10)[202.12.124.152:from]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_FROM(0.00)[f-m.fm]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[f-m.fm]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[f-m.fm:+,messagingengine.com:+]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; ASN(0.00)[asn:151847, ipnet:202.12.124.0/24, country:AU]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim] X-Rspamd-Queue-Id: 4cLmWp2dPZz3yDk Hello, thanks for replying On Tue, Sep 09, 2025 at 02:48:04PM +0100, Lexi Winter wrote: >this is what p9fs(4) is for. I thought it was something like this I saw somewhere :D >to export the filesystem, add a virtio-9p device to bhyve: > bhyve [...] -s 5:0,virtio-9p,myshare=/some/path,rw > 'myshare' should be replaced with a descriptive name for the share, > and change 'rw' to 'ro' to make it read-only. I'd like it to be mounted rw - did you mean that ro is the only correct option or can it be either? >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. 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. --