From owner-freebsd-current@freebsd.org Thu May 6 18:09:19 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 62B2162A080 for ; Thu, 6 May 2021 18:09:19 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 4FbhRd6wfhz4w9D for ; Thu, 6 May 2021 18:09:17 +0000 (UTC) (envelope-from tech-lists@zyxst.net) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 5B88F5C010F for ; Thu, 6 May 2021 14:09:17 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 06 May 2021 14:09:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zyxst.net; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=6WmfRuELXACeyGQtKo/LI6ltYUB 04GNPNQ55thdD7yE=; b=H05kmG9gOlP7XTvf8EnQN9eTgJtTDRFa5Trq5lwjC9h tqj/Ub+OAvYPKwVJDlZwTIaD9kNoN61h9+rEit8hsVzfobuC/+FKdvgy57ggUznm KzlU4tmf8gUH8mvQDIISbQzsTrCKUTfjI2xa2+ttXf/MkUFdCFmN343r+zH/n6wh oS1sBN3VEfUsTgXlEaw072HkYPjHC3KFs4+TbmSd0cFhhpWZMIwsHJXyof5YQr16 1JWYg2I88uIOo74rXLtkFifCLDlQuU5mMffc5reKldcxzlIBfLypRlE4zIMHjoP8 4ObHeXijMHKFiZQqxaEKoNFJOY8Escj6Co7bYebS1zQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=6WmfRu ELXACeyGQtKo/LI6ltYUB04GNPNQ55thdD7yE=; b=B0nFytGxxbv8/jjFiQ2R48 EGhHf39/93+RIwsDgJ72ee7eftK5Ipd6Qmd2dIfswwwtkfSqEOYGf0L886fnBQ7F BeYCD0O0MH3gAMuPS9JqrWHjMcqQ8mjG6h1VHGWhKcGzQPzSf964e4zwBAxlB04G 49IT+oMlUGOFsNmLEgfZGuxix4whk9udL3xJ/k3yrDNWr1GQJhSFJCIYJUWlN4uu f8Cr3c9IqdJkZlwqYXeZ8y+NV6S9y5OC87BFjKvbLjCrr32MmwygC1mpRBC/gYg4 rDQqTTVFuOgzFu0wq9oIwIEgZ6EBZac4i3K+GmQrIxLPY40Wx327R0dTNw93EGvA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdegtddguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehgtd erredttddvnecuhfhrohhmpehtvggthhdqlhhishhtshcuoehtvggthhdqlhhishhtshes iiihgihsthdrnhgvtheqnecuggftrfgrthhtvghrnheptdehiefgvddufeekkedvtdefvd ettddtkeduvdegveelffdtkeffudejvdfhudetnecukfhppeekledrudeghedruddttddr udefleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe htvggthhdqlhhishhtshesiiihgihsthdrnhgvth X-ME-Proxy: Received: from cloud.zyxst.net (v007.zyxst.net [89.145.100.139]) by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 6 May 2021 14:09:16 -0400 (EDT) Date: Thu, 6 May 2021 19:09:15 +0100 From: tech-lists To: freebsd-current@freebsd.org Subject: Re: Building ZFS-based VM images Message-ID: Mail-Followup-To: freebsd-current@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1TVpywHtPl66k54C" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4FbhRd6wfhz4w9D X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=zyxst.net header.s=fm2 header.b=H05kmG9g; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=B0nFytGx; dmarc=none; spf=pass (mx1.freebsd.org: domain of tech-lists@zyxst.net designates 66.111.4.25 as permitted sender) smtp.mailfrom=tech-lists@zyxst.net X-Spamd-Result: default: False [-5.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[66.111.4.25:from]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.25]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DKIM_TRACE(0.00)[zyxst.net:+,messagingengine.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.111.4.25:from]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.25:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[zyxst.net:s=fm2,messagingengine.com:s=fm2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[zyxst.net]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[66.111.4.25:from:127.0.2.255]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2021 18:09:19 -0000 --1TVpywHtPl66k54C Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 06, 2021 at 09:17:30AM -0600, Alan Somers wrote: >It's easy to build a UFS-based VM image just by setting WITH_VMIMAGES in >release.conf and running release.sh. But what about ZFS-based images? >What's the easiest way to build a ZFS-based VM image, using a pool layout >similar to what the interactive installer uses? >-Alan Hi,=20 I don't know of a way with make release Briefly, the way I do zfs on amd64 vm is (given you're already set up on bh= yve): a: truncate -s 64G filename.img b: sh vmrun.sh -c 4 -m 32768M -t tap1 -d filename.img -i -I freebsd-installer.iso vmname c: run through the installer, selecting auto-zfs on the way. d: stop the reboot, run the vmrun.sh again and omit the -i -I=20 freebsd-installer.iso bit (in my context, vmrun.sh is a symlink to /usr/share/examples/bhyve/vmrun.sh in the dir i'm working in) [section 22.7 FreeBSD as a Host with bhyve] --=20 J. --1TVpywHtPl66k54C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAmCUMMIACgkQs8o7QhFz NAWSHg//QX6gBWmp27ChfZm4KmW84rNPqT/lvm2kyESQ9rt2E4NghrwU5mY2dHa2 8ziNFn6zorOVhAP4CUXPxZvcF8P/7QMtITGheG3/qEnFFnh1Mx3sPn8Hcb4FPAjc vrYWkTWqYEaEaP+ktdtxDVgaDBW8cpiSgRI/mrHzszxRk9wodECbafQ288IPchyj ThOu9SHmM2WFh9t/xwRnWMhuS5MEMV9c2Iyw3kF6OdLdRuxpcdd+ao+qw+ZCIRmf ZXXX8VmDbAigwdOj9i5nJb/1Bph/fUTZdp4crGm/HGW/5aoiu05BmO6U9Hpjdlh0 CphqlU9Bt8wphV/6C4cDuszYIxDPj9EX0jtk1ZOMq2xupi/6fFPjKd3+b+plsZPy V7PaVvVXy5Qy8MR1zcr1vhe7otkg4HbVYkJ/x+7oMVaSpBbwmiyh4mGy3nuRacHU 0FqC8Lfv4JtGXMSxUN/NEMJgK7OxwFe3qQSN8/DEM9sFOmSS4yJNqUcBUR1TDEBX PLjjymfJSDhgKFUUqA7XQCN77XmiOwh5mpjxbPMfZuXHSULu8u7HdGhwacXhHIEt jQdGhjMVfKZwNDqE6zwL9ByHVGcCa+X+TLEChSnitohTdvs7B+JCBqwVDTbCONJU /0Wt0IW3jmomw5aVe7LNW6bFpVW0GsibCiuA3UdI6rQTokPBEN8= =GY53 -----END PGP SIGNATURE----- --1TVpywHtPl66k54C--