HomeFreeBSD

release: Add support for creating ZFS-based VM images

Description

release: Add support for creating ZFS-based VM images

The change extends vmimage.subr to handle a new parameter, VMFS, which
should be equal to either "ufs" or "zfs". When it is set to ZFS, we use
makefs to create a bootable pool populated using the same dataset layout
as bsdinstall and "poudriere image" use. The pool can be grown using
the growfs rc.d script, just as in UFS images.

This will make it easy to provide VM and cloud images with ZFS as the
root filesystem. So far I did not do extensive testing of cloud images;
I merely verified that creation of ZFS-based AWS AMIs works and allows
me to create amd64 and arm64 EC2 instances with ZFS as the root
filesystem.

Reviewed by: emaste, gjb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34426

Details

Provenance
markjAuthored on Oct 28 2022, 8:53 PM
Reviewer
emaste
Differential Revision
D34426: release: Add support for creating ZFS-based images
Parents
rG752ba1004aa9: makefs: Fix handling of inherited mountpoints
Branches
Unknown
Tags
Unknown