From nobody Thu Aug 5 14:29:32 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 A94DB10F98D0 for ; Thu, 5 Aug 2021 14:29:39 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4GgWGC4PK1z3C20; Thu, 5 Aug 2021 14:29: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 78BCE14DE; Thu, 5 Aug 2021 14:29: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 E05CD2B83A; Thu, 5 Aug 2021 15:29:38 +0100 (BST) Subject: Re: Building ZFS disk images To: Alan Somers Cc: freebsd-current References: <16473d5f-1727-233a-7a95-a21c5b48b9ce@FreeBSD.org> From: David Chisnall Message-ID: <8ab3d440-889e-25d4-71f9-e7ae2386daeb@FreeBSD.org> Date: Thu, 5 Aug 2021 15:29:32 +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: 8bit X-ThisMailContainsUnwantedMimeParts: N On 05/08/2021 13: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. Is there a tool / command to do this? I've hit this problem in the past: I have multiple FreeBSD VMs that are all created from the same template and if one dies I can't import its zpool into another because they have the same UUID. It doesn't matter for modern deployments where the VM is stateless and reimaged periodically but it's annoying for classic deployments where I have things I care about on the VM. David