Building ZFS-based VM images
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?
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
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
(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]
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the freebsd-current