Re: Building ZFS-based VM images

From: David Chisnall <>
Date: Fri, 7 May 2021 14:37:55 +0100
On 06/05/2021 16:17, Alan Somers wrote:
> It's easy to build a UFS-based VM image just by setting WITH_VMIMAGES in
> release.conf and running  But what about ZFS-based images?
> What's the easiest way to build a ZFS-based VM image, using a pool layout
> similar to what the interactive installer uses?

The only way that I've deployed FreeBSD VMs in Azure has been to run the 
installer in Hyper-V locally and then upload it as a template.

You need to be *really* careful with this mode though, because ZFS gets 
really confused if two pools or two VDEVs have the same UUIDs.  This 
means that you can't just attach one VM's disk to another for recovery 
(I also have a UFS image that I use for recovery).  It would be great if 
it were possible to set a flag somewhere telling the storage subsystem 
to regenerate the UUIDs of everything (including GPT partitions) on 
first boot.

Received on Fri May 07 2021 - 11:37:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:28 UTC