Building ZFS disk images
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. David
Re: Building ZFS disk images
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. > > David > >
AMD Ryzen 5 3400G with Radeon Vega Graphics
Hi, I was lucky to get the hands on a mini-ITX containing a "AMD Ryzen 5 3400G with Radeon Vega Graphics". FreeBSD-13 installed just fine and 4K HDMI output works too with AMDGPU. However I noticed some problems with a webcamd DVB-T receiver, that it had lots of dropouts I couldn't understand. When I looked closer at this it turns out that something was blocking the threads for longer amounts of time, up to 100 ms at random. After some debugging I eventually found: sysctl machdep.idle machdep.idle: acpi machdep.idle_available: spin, mwait, hlt, acpi And when I set it to: sysctl machdep.idle=spin The problems I saw vanished. Anyone else having such experiences with Ryzen? --HPS
Re: Building ZFS disk images
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
Re: Building ZFS disk images
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
Re: Building ZFS disk images
There's this: https://openzfs.github.io/openzfs-docs/man/8/zpool-reguid.8.html . I haven't used it myself. On Thu, Aug 5, 2021, 9:29 AM David Chisnall wrote: > 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