Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 May 2021 19:09:15 +0100
From:      tech-lists <tech-lists@zyxst.net>
To:        freebsd-current@freebsd.org
Subject:   Re: Building ZFS-based VM images
Message-ID:  <YJQwy/%2ByBdUv2FY/@cloud.zyxst.net>
In-Reply-To: <CAOtMX2jttMg=XGewsdA=yyRxu9px-PcXzBBJNaqA62F5D8zK6A@mail.gmail.com>
References:  <CAOtMX2jttMg=XGewsdA=yyRxu9px-PcXzBBJNaqA62F5D8zK6A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YJQwy/%2ByBdUv2FY/>