Building ZFS-based VM images
tech-lists
tech-lists at zyxst.net
Thu May 6 18:09:19 UTC 2021
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,
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 bhyve):
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
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]
--
J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20210506/7eac46d4/attachment.sig>
More information about the freebsd-current
mailing list