Re: Building ZFS disk images

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Thu, 05 Aug 2021 14:06:37 UTC
On 05/08/2021 14:01, Juraj Lutter wrote:
> 
>> On 5 Aug 2021, at 14:53, Alan Somers<asomers@freebsd.org>  wrote:
>>
>> I don't know of any way to do it using the official release scripts either.
>> One problem is that every ZFS pool and file system is supposed to have a
>> unique GUID.  So any kind of ZFS release builder would need to re-guid the
>> pool on first boot.
>>
>> On Thu, Aug 5, 2021, 6:41 AM David Chisnall<theraven@freebsd.org>  wrote:
>>
>>> Hi,
>>>
>>> Does anyone know how to build ZFS disk images from any existing tooling?
>>>
>>> I haven't used UFS for over a decade now and the official cloud images
>>> are all UFS, so I end up doing an install from the CD ISO into Hyper-V
>>> locally and then exporting the VHD, but that can't be the most efficient
>>> way of getting a FreeBSD VHD with ZFS.
>>>
>>> I haven't been able to find any documentation and reading the release
>>> scripts they seem to hard-code UFS.
> Would poudriere work for you? man poudriere-image

Wow, there's a lot of stuff I didn't know poudriere could do!  It looks 
as if it can produce a GPT partition table with all of the bootable 
bits, or it can produce a ZFS disk image.  I guess it wouldn't be too 
difficult to teach it to do both?

David