From nobody Thu Aug 5 14:06:37 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0C4CB7CF6E5 for ; Thu, 5 Aug 2021 14:06:40 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GgVlg6wgcz57bZ; Thu, 5 Aug 2021 14:06:39 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtp.theravensnest.org (smtp.theravensnest.org [45.77.103.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: theraven) by smtp.freebsd.org (Postfix) with ESMTPSA id D01C5CF9; Thu, 5 Aug 2021 14:06:39 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from [192.168.1.202] (host86-165-132-213.range86-165.btcentralplus.com [86.165.132.213]) by smtp.theravensnest.org (Postfix) with ESMTPSA id 1B5372B839; Thu, 5 Aug 2021 15:06:39 +0100 (BST) Subject: Re: Building ZFS disk images To: Juraj Lutter , Alan Somers Cc: freebsd-current References: <16473d5f-1727-233a-7a95-a21c5b48b9ce@FreeBSD.org> From: David Chisnall Message-ID: Date: Thu, 5 Aug 2021 15:06:37 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N On 05/08/2021 14:01, Juraj Lutter wrote: > >> On 5 Aug 2021, at 14:53, Alan Somers 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 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