Re: Building ZFS disk images

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Thu, 5 Aug 2021 15:06:37 +0100
On 05/08/2021 14:01, Juraj Lutter wrote:
> 
>> On 5 Aug 2021, at 14:53, Alan Somers<asomers_at_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_at_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
Received on Thu Aug 05 2021 - 14:06:37 UTC

Original text of this message