<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>images on Barn</title><link>https://barn.pgsty.com/v1.5/tags/images/</link><description>Recent content in images on Barn</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 03 Dec 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://barn.pgsty.com/v1.5/tags/images/index.xml" rel="self" type="application/rss+xml"/><item><title>Rebuilding and testing the Debian 12 and 13 cloud images</title><link>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261203/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261203/</guid><description>&lt;p&gt;On December 3, 2026, Barn rebuilt the amd64 and arm64 images for &lt;code&gt;d12&lt;/code&gt; and &lt;code&gt;d13&lt;/code&gt; from Debian&amp;rsquo;s official build &lt;code&gt;20261130-2678&lt;/code&gt;. After acceptance, the local repository and m0 marked all four artifacts as &lt;code&gt;supported&lt;/code&gt; in signed catalog &lt;code&gt;2026120302&lt;/code&gt;. Both &lt;code&gt;d12:stable&lt;/code&gt; and the default &lt;code&gt;d13:stable&lt;/code&gt; resolve to &lt;code&gt;20261130.2678.1&lt;/code&gt;. Both public Barn mirrors promoted the same catalog later that day. &lt;a href="https://cdimage.debian.org/cdimage/cloud/bookworm/20261130-2678/"&gt;Debian 12 build&lt;/a&gt; · &lt;a href="https://cdimage.debian.org/cdimage/cloud/trixie/20261130-2678/"&gt;Debian 13 build&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="upstream"&gt;What the source disks contain&#10;&lt;/h2&gt;&#10;&lt;p&gt;Each &lt;code&gt;generic&lt;/code&gt; qcow2 passed Debian&amp;rsquo;s &lt;code&gt;SHA512SUMS&lt;/code&gt; check before read-only inspection. Debian 12.15 and 13.8 gave the same results on both architectures.&lt;/p&gt;</description></item><item><title>Barn 1.5.0</title><link>https://barn.pgsty.com/v1.5/release/1.5.0/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/1.5.0/</guid><description>&lt;p&gt;Barn 1.5.0 is available for macOS and Linux on amd64 and arm64. &lt;a href="https://github.com/pgsty/barn/releases/tag/v1.5.0"&gt;GitHub release and downloads&lt;/a&gt; · &lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/"&gt;Installation&lt;/a&gt; · &lt;a href="https://barn.pgsty.com/v1.5/blog/design/release-1-5-0-readiness/"&gt;Acceptance record&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="linux-labs"&gt;Linux labs and upgrades&#10;&lt;/h2&gt;&#10;&lt;p&gt;New labs and all four inventory templates default to Debian 13 (&lt;code&gt;d13:stable&lt;/code&gt;) on the host architecture. To create an Ubuntu 24.04 inventory, run &lt;code&gt;barn init -I u24&lt;/code&gt;. Existing deployments keep their saved image default, including for a new node that omits &lt;code&gt;vm_image&lt;/code&gt;. Updating the catalog preserves existing VM backing disks. &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/configuration/#image-and-architecture"&gt;Configuration precedence&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Barn 1.4.0 pre-release review</title><link>https://barn.pgsty.com/v1.5/blog/design/release-1-4-0-readiness/</link><pubDate>Fri, 27 Nov 2026 16:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/release-1-4-0-readiness/</guid><description>&lt;p&gt;On November 27, 2026, the 1.4.0 candidate passed local source checks, package verification and guest lifecycle tests. The reviewed source was &lt;code&gt;22f6a28&lt;/code&gt; plus the fixes below, identified by Git tree &lt;code&gt;5ab76a8a5325dcd899d4909abec56c1890e6f4fb&lt;/code&gt;. The published release was still 1.3.0. The public catalog check remained open pending the coordinated switch of both mirrors. &lt;a href="https://github.com/pgsty/barn/releases/tag/v1.3.0"&gt;Barn 1.3.0 release&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="fixes"&gt;Fixes verified in the candidate&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Linux packages.&lt;/strong&gt; Building under a symlinked checkout on macOS could omit the hosts helper&amp;rsquo;s SHA-256 from the CLI. The Go overlay in &lt;code&gt;packaging/goreleaser-companion.sh&lt;/code&gt; now names its virtual source relative to the module. The same checkout path produced matching CLI/helper pairs on all four targets.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Concurrent image updates.&lt;/strong&gt; An update that finished downloading after another update activated a newer catalog could prune an image from the newer revision. Prune now protects both catalogs and holds a shared manifest lock through deletion. The race regression is &lt;code&gt;TestImageUpdatePruneProtectsConcurrentRefresh&lt;/code&gt; in &lt;code&gt;internal/image/update_test.go&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Backing files.&lt;/strong&gt; Prune now protects each deployed node&amp;rsquo;s backing filename as well as its recorded digest. A valid qcow2 with unexpected bytes at a referenced path survived both preview and &lt;code&gt;--yes&lt;/code&gt;. Both commands reported an integrity error. The regression is in &lt;code&gt;internal/image/prune_test.go&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Read-only previews.&lt;/strong&gt; A read-only file with the expected length but the wrong SHA-256 now shows a planned download. Running &lt;code&gt;image update --dry-run --prune&lt;/code&gt; against an empty &lt;code&gt;0750&lt;/code&gt; home preserved its mode and created no files. &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/image/#barn-image-update"&gt;Image update command&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="acceptance"&gt;Packages and guests&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;make check&lt;/code&gt;, &lt;code&gt;make mac-native-test&lt;/code&gt; and &lt;code&gt;make release-snapshot&lt;/code&gt; passed. The snapshot covered macOS and Linux on amd64 and arm64, including Linux DEB and RPM packages and the Apple Silicon native app. Release assembly verified all 19 files in &lt;code&gt;checksums.txt&lt;/code&gt;, including the SPDX documents and installers. GoReleaser named this snapshot &lt;code&gt;1.3.1-next&lt;/code&gt; from the preceding tag. It used ad-hoc Mac signing. &lt;a href="https://github.com/pgsty/barn/blob/v1.3.0/packaging/assemble-release.sh"&gt;Release assembly script&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Self-hosted image repositories: one command to build, usable unsigned</title><link>https://barn.pgsty.com/v1.5/blog/design/self-hosted-repository/</link><pubDate>Fri, 27 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/self-hosted-repository/</guid><description>&lt;p&gt;Self-hosted image repositories are one of Barn&amp;rsquo;s core workflows: a user puts customized &lt;code&gt;qcow2&lt;/code&gt; images into a static directory, and teammates or other hosts reference them directly. This design reduces building a repository to one command, reduces using one to a single inventory field, and lets any repository the user explicitly selects work without a signature, like &lt;code&gt;gpgcheck=0&lt;/code&gt; in yum or &lt;code&gt;[trusted=yes]&lt;/code&gt; in apt.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Status (2026-11-27)&lt;/strong&gt;: implemented in commit &lt;code&gt;57a46ed&lt;/code&gt; on branch &lt;code&gt;claude/user-repo-design-review-1ae7c1&lt;/code&gt;, passing &lt;code&gt;make check&lt;/code&gt; and the end-to-end acceptance below; not yet merged into &lt;code&gt;main&lt;/code&gt; and not released. &lt;a href="https://barn.pgsty.com/v1.5/blog/design/self-hosted-repository/#current-state"&gt;Current state before the change&lt;/a&gt; is based on Barn &lt;code&gt;1.3.0&lt;/code&gt; and the &lt;code&gt;main&lt;/code&gt; of that time (&lt;code&gt;39befbe&lt;/code&gt;); &lt;a href="https://barn.pgsty.com/v1.5/blog/design/self-hosted-repository/#future-work"&gt;future work&lt;/a&gt; lists what this change leaves out.&lt;/p&gt;</description></item><item><title>Barn 1.4.0 updates cached Linux images</title><link>https://barn.pgsty.com/v1.5/release/1.4.0/</link><pubDate>Fri, 27 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/1.4.0/</guid><description>&lt;p&gt;Barn 1.4.0 adds &lt;code&gt;barn image update&lt;/code&gt;. Its bundled image catalog selects Debian 13.8 for both amd64 and arm64. Upgrade the CLI before refreshing the official catalog. The new executable trusts the Minisign key that signs revision &lt;code&gt;2026112601&lt;/code&gt;. &lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/#release-downloads"&gt;Downloads and installation&lt;/a&gt; · &lt;a href="https://github.com/pgsty/barn/releases/tag/v1.4.0"&gt;GitHub release&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="upgrade"&gt;Upgrade from 1.3.0&#10;&lt;/h2&gt;&#10;&lt;p&gt;Update Barn through the same channel you used to install it. On macOS, run &lt;code&gt;brew update&lt;/code&gt; followed by &lt;code&gt;brew upgrade pgsty/infra/barn&lt;/code&gt;. On Linux, rerun the download installer or install the new DEB or RPM. Check &lt;code&gt;barn version&lt;/code&gt; before running &lt;code&gt;barn update&lt;/code&gt;. Barn 1.3.0 rejects the new signature and keeps its previously active catalog. &lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/#upgrade-barn"&gt;Upgrade instructions&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Debian 13.8 image acceptance</title><link>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261126/</link><pubDate>Thu, 26 Nov 2026 22:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261126/</guid><description>&lt;p&gt;On November 26, 2026, Barn built and tested &lt;code&gt;d13@20261123.2671.1&lt;/code&gt; on both guest architectures for 1.4.0. Candidate catalog &lt;code&gt;2026112601&lt;/code&gt; passed &lt;code&gt;barn repo build&lt;/code&gt; and &lt;code&gt;barn repo verify&lt;/code&gt;. Its Minisign signature verifies with the new active public key &lt;code&gt;B848292042883667&lt;/code&gt;. Both official stores returned the SHA-256 digests listed below for the versioned images. At the time of testing, both public catalogs still served revision &lt;code&gt;2026112101&lt;/code&gt; for Barn 1.3.0.&lt;/p&gt;&#10;&lt;h2 id="build"&gt;Builds and digests&#10;&lt;/h2&gt;&#10;&lt;p&gt;Both builds use the Debian 13.8 &lt;code&gt;generic&lt;/code&gt; cloud image, build &lt;code&gt;20261123-2671&lt;/code&gt;. Each source file was checked against Debian&amp;rsquo;s SHA-512 list and pinned by SHA-256. The Barn &lt;code&gt;d13&lt;/code&gt; recipe installs &lt;code&gt;xfsprogs 6.13.0-2+deb13u1&lt;/code&gt; and its locked dependencies offline, assigns UID and GID 88 to &lt;code&gt;dba:admin&lt;/code&gt;, disables password and root SSH login, and removes source credentials and instance identity. It sets the default locale to &lt;code&gt;C.UTF-8&lt;/code&gt; and generates &lt;code&gt;en_US.UTF-8&lt;/code&gt;. &lt;a href="https://cloud.debian.org/images/cloud/trixie/20261123-2671/"&gt;Debian upstream build&lt;/a&gt; · &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/image-pipeline/"&gt;Barn image pipeline&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Barn 1.3.0: guest clocks, short image aliases, and catalog 2026112101</title><link>https://barn.pgsty.com/v1.5/release/1.3.0/</link><pubDate>Mon, 23 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/1.3.0/</guid><description>&lt;p&gt;&lt;a href="https://github.com/pgsty/barn/releases/tag/v1.3.0"&gt;Barn 1.3.0&lt;/a&gt; adds Linux guest clock synchronization, shorthand image family and architecture selectors, and a fix for macOS network installation and repair under Internet Sharing. It embeds signed Linux image catalog &lt;code&gt;2026112101&lt;/code&gt; and selects macOS 27.2.1 (&lt;code&gt;26B131&lt;/code&gt;) for a new Mac base. The 1.3.0 CLI has 62 operational commands and 176 visible command-specific options. The &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/#versions"&gt;command reference&lt;/a&gt; identifies the versions that support each option.&lt;/p&gt;&#10;&lt;h2 id="upgrade-from-120"&gt;Upgrade from 1.2.0&#10;&lt;/h2&gt;&#10;&lt;p&gt;If your inventory uses &lt;code&gt;vm_image: rocky&lt;/code&gt; or &lt;code&gt;vm_image: ubuntu&lt;/code&gt;, those names now select Rocky Linux 10 (&lt;code&gt;el10&lt;/code&gt;) and Ubuntu 26.04 (&lt;code&gt;u26&lt;/code&gt;). Set &lt;code&gt;vm_image&lt;/code&gt; to &lt;code&gt;el9&lt;/code&gt; or &lt;code&gt;u24&lt;/code&gt; to keep the 1.2.0 targets. An omitted image still selects Ubuntu 24.04 (&lt;code&gt;u24:stable&lt;/code&gt;) on the host&amp;rsquo;s native architecture. Run &lt;code&gt;barn plan&lt;/code&gt; to review any change to an existing deployment; replacing a guest&amp;rsquo;s image requires &lt;code&gt;barn recreate&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>November 2026 Image Refresh</title><link>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261121/</link><pubDate>Sat, 21 Nov 2026 22:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/image-refresh-20261121/</guid><description>&lt;p&gt;This record follows the 2026-11-21 refresh of Barn&amp;rsquo;s Linux image repository. Published catalog &lt;code&gt;2026112101&lt;/code&gt; updates six families on both &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt;; all twelve artifacts passed native acceptance. The embedded catalog on &lt;code&gt;main&lt;/code&gt; is synchronized. Barn 1.2.0 still embeds &lt;code&gt;2026110502&lt;/code&gt;; run &lt;code&gt;barn update&lt;/code&gt; to activate the new catalog.&lt;/p&gt;&#10;&lt;h2 id="upstream-comparison"&gt;Upstream comparison&#10;&lt;/h2&gt;&#10;&lt;p&gt;The comparison uses the same cloud image class and architecture as the existing catalog. The upstream directories and checksum files were checked on 2026-11-21; source downloads were verified before customization.&lt;/p&gt;</description></item><item><title>Barn 1.1.0: image selection and live progress</title><link>https://barn.pgsty.com/v1.5/release/1.1.0/</link><pubDate>Mon, 09 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/1.1.0/</guid><description>&lt;p&gt;&lt;strong&gt;Released on 2026-11-09.&lt;/strong&gt; Barn 1.1.0 adds image and guest-architecture overrides, live progress tables, and more reliable CPU/memory resizing. It embeds signed image catalog revision &lt;code&gt;2026110502&lt;/code&gt;, with 9 distribution releases and 17 architecture-specific artifacts. The default remains Ubuntu 24.04 on the host&amp;rsquo;s native architecture.&lt;/p&gt;&#10;&lt;h2 id="image-and-architecture"&gt;Image and architecture selection&#10;&lt;/h2&gt;&#10;&lt;p&gt;Use &lt;code&gt;--image/-I&lt;/code&gt; and &lt;code&gt;--arch/-A&lt;/code&gt; with &lt;code&gt;plan&lt;/code&gt;, &lt;code&gt;up&lt;/code&gt;, &lt;code&gt;reload&lt;/code&gt;, &lt;code&gt;recreate&lt;/code&gt;, and &lt;code&gt;resize&lt;/code&gt; to override the inventory for one command. Image overrides apply to selected nodes, and suggested follow-up commands retain the selections, overrides, and repository. Existing VMs require &lt;code&gt;recreate&lt;/code&gt; to change their image or architecture.&lt;/p&gt;</description></item><item><title>Beyond amd64 and arm64</title><link>https://barn.pgsty.com/v1.5/blog/design/multi-architecture-boundary/</link><pubDate>Sun, 08 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/multi-architecture-boundary/</guid><description>&lt;p&gt;Barn currently supports &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt; Linux guests. QEMU can emulate more architectures, but each additional Barn target needs an image and a complete boot-and-operation contract. This design assessment, reviewed on &lt;strong&gt;2026-11-08&lt;/strong&gt;, separates the existing runtime policy from possible future targets.&lt;/p&gt;&#10;&lt;h2 id="acceleration"&gt;Hardware acceleration follows the host ISA&#10;&lt;/h2&gt;&#10;&lt;p&gt;For Barn&amp;rsquo;s current 64-bit guest targets, native virtualization uses the host&amp;rsquo;s instruction set: HVF on macOS and KVM on Linux. QEMU TCG translates instructions for a foreign guest architecture. Rosetta can translate Intel Linux applications inside an Arm Linux VM; it does not provide an Intel Linux VM on Apple Silicon. See &lt;a href="https://www.qemu.org/docs/master/about/emulation.html"&gt;QEMU&amp;rsquo;s emulation overview&lt;/a&gt; and &lt;a href="https://developer.apple.com/documentation/virtualization/running-intel-binaries-in-linux-vms"&gt;Apple&amp;rsquo;s Linux binary translation guide&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>From Upstream Images to a Signed Catalog</title><link>https://barn.pgsty.com/v1.5/blog/design/image-update-evidence/</link><pubDate>Sun, 08 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/image-update-evidence/</guid><description>&lt;p&gt;An image audit answers a narrower question than an image release. It can find a newer upstream file, but Barn may add that file to its signed catalog only after the artifact, runtime profile, and boot path have all been verified. The &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/images/"&gt;image reference&lt;/a&gt; describes the user-facing catalog; this essay records the reasoning that keeps catalog updates reproducible.&lt;/p&gt;&#10;&lt;h2 id="four-meanings"&gt;Four meanings of “new”&#10;&lt;/h2&gt;&#10;&lt;p&gt;Image work becomes error-prone when four independent version values are treated as one:&lt;/p&gt;</description></item><item><title>Barn 1.0.0: the first stable release</title><link>https://barn.pgsty.com/v1.5/release/1.0.0/</link><pubDate>Thu, 05 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/1.0.0/</guid><description>&lt;p&gt;&lt;strong&gt;Released on 2026-11-05.&lt;/strong&gt; Barn 1.0.0 is the first stable release.&lt;/p&gt;&#10;&lt;p&gt;Barn 1.0.0 completes a pre-release audit of destructive operations, data-disk recovery, catalog integrity, and process cancellation. It embeds signed image catalog revision &lt;code&gt;2026110502&lt;/code&gt;, including Debian 13 image &lt;code&gt;20261103.2651.1&lt;/code&gt; for amd64 and arm64.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/"&gt;Install Barn&lt;/a&gt; · &lt;a href="https://github.com/pgsty/barn/releases/tag/v1.0.0"&gt;GitHub release and assets&lt;/a&gt; · &lt;a href="https://github.com/pgsty/barn/blob/v1.0.0/CHANGELOG.md"&gt;Changelog&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="changes"&gt;Changes&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Whole-deployment recreate keeps omitted nodes.&lt;/strong&gt; &lt;code&gt;barn recreate&lt;/code&gt; without node selectors refuses an inventory that no longer lists an existing node (&lt;code&gt;conflict&lt;/code&gt;, reason &lt;code&gt;nodes_removed&lt;/code&gt;, exit 4) before any VM stops. Earlier releases destroyed the omitted node without recreating it. Run &lt;code&gt;barn destroy NODE&lt;/code&gt; to remove it, or add it back to the inventory. The confirmation lists every node that will be replaced, and the scope is checked again under the destruction lock (&lt;code&gt;deployment_changed&lt;/code&gt; when the applied state changed during preflight).&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Destroying the control node keeps the lab usable.&lt;/strong&gt; The first remaining node becomes the control node, so &lt;code&gt;ssh-config&lt;/code&gt;, &lt;code&gt;hosts&lt;/code&gt;, &lt;code&gt;exec&lt;/code&gt;, and &lt;code&gt;provision&lt;/code&gt; keep working. Update the inventory&amp;rsquo;s control role, then run &lt;code&gt;barn up&lt;/code&gt; to install its control SSH access. Barn refuses to destroy the control node, before deleting anything, when the successor has an unfinished prepare record that cannot be completed; the error names the successor.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Data disks are reset only on recognized corruption.&lt;/strong&gt; Blank disks are initialized. An ext4 or XFS filesystem is reset only when the checker reports recognized corruption, including on a persistent disk. Partition tables, signatures without a UUID, unsupported filesystem features, and unknown checker failures keep their data and produce a warning. Existing guests receive the updated helper on their next &lt;code&gt;barn up&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;One confirmation before host changes.&lt;/strong&gt; On a terminal, &lt;code&gt;up&lt;/code&gt;, &lt;code&gt;start&lt;/code&gt;, &lt;code&gt;restart&lt;/code&gt;, and &lt;code&gt;reload&lt;/code&gt; show the host-preparation plan and ask once before installing packages or the Barn network. Without a terminal they report what is missing; run &lt;code&gt;barn setup --yes&lt;/code&gt; for unattended preparation.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;&lt;code&gt;--yes&lt;/code&gt; for destruction.&lt;/strong&gt; &lt;code&gt;destroy&lt;/code&gt;, &lt;code&gt;recreate&lt;/code&gt;, &lt;code&gt;mac destroy&lt;/code&gt;, and &lt;code&gt;mac recreate&lt;/code&gt; accept &lt;code&gt;--yes&lt;/code&gt;. &lt;code&gt;--force&lt;/code&gt; keeps working, and &lt;code&gt;mac stop --force&lt;/code&gt; still powers the VM off.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Catalog failures exit 7.&lt;/strong&gt; A catalog signature or signed revision that does not verify exits 7 (&lt;code&gt;integrity&lt;/code&gt;, reason &lt;code&gt;catalog_signature&lt;/code&gt; or &lt;code&gt;catalog_equivocation&lt;/code&gt;). Permission and I/O errors on a cached signature remain runtime failures (exit 1). Both official repositories share the embedded upgrade baseline, and a new trusted signature over identical catalog bytes is accepted.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Cancellation reaches &lt;code&gt;sudo&lt;/code&gt;.&lt;/strong&gt; Cancelled commands receive SIGTERM, which &lt;code&gt;sudo&lt;/code&gt; forwards, and Barn waits at most 10 seconds for the process and its inherited pipes.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Host networking and Mac images.&lt;/strong&gt; &lt;code&gt;barn network uninstall&lt;/code&gt; keeps global networkd unit state when other host links exist (&lt;code&gt;preserve_networkd&lt;/code&gt;, &lt;code&gt;checks.networkd&lt;/code&gt;). Mac image pruning keeps bases that interrupted recreates still reference.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;CLI.&lt;/strong&gt; &lt;code&gt;barn&lt;/code&gt; without a command prints the complete help; &lt;code&gt;--json&lt;/code&gt; and &lt;code&gt;--yaml&lt;/code&gt; keep the &lt;code&gt;actions[]&lt;/code&gt; document. Explicit &lt;code&gt;--json&lt;/code&gt;, &lt;code&gt;--yaml&lt;/code&gt;, and &lt;code&gt;--verbose&lt;/code&gt; override &lt;code&gt;BARN_OUTPUT&lt;/code&gt; and &lt;code&gt;BARN_VERBOSE&lt;/code&gt;, and help stays available when those variables are invalid.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Dependencies.&lt;/strong&gt; Go 1.27.3, &lt;code&gt;golang.org/x/net&lt;/code&gt; 0.62.0, and &lt;code&gt;go.yaml.in/yaml/v3&lt;/code&gt; 3.0.6.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="upgrade"&gt;Upgrade&#10;&lt;/h2&gt;&#10;&lt;p&gt;Upgrade through the channel you installed with. The installer selects the latest stable release, verifies the archive against the release&amp;rsquo;s &lt;code&gt;checksums.txt&lt;/code&gt;, and installs into &lt;code&gt;~/.local/bin&lt;/code&gt; without sudo; set &lt;code&gt;BARN_VERSION=1.0.0&lt;/code&gt; to pin &lt;code&gt;1.0.0&lt;/code&gt;. DEB and RPM packages are attached to the GitHub release.&lt;/p&gt;</description></item><item><title>Barn 0.9.3: safer resizing, selected nodes, and recovery</title><link>https://barn.pgsty.com/v1.5/release/0.9.3/</link><pubDate>Sun, 01 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.9.3/</guid><description>&lt;p&gt;&lt;strong&gt;Published on GitHub on 2026-11-01 (UTC+8).&lt;/strong&gt; The release tag is dated October 31. GitHub marks 0.9.3 as a pre-release.&lt;/p&gt;&#10;&lt;p&gt;Barn 0.9.3 focuses on safer changes to local labs. It adds resource-only VM resize, lets selected nodes converge independently, accepts ordinary user path forms for inventories and shares, and recovers interrupted lifecycle operations.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/"&gt;Install Barn&lt;/a&gt; · &lt;a href="https://github.com/pgsty/barn/releases/tag/v0.9.3"&gt;Download 0.9.3&lt;/a&gt; · &lt;a href="https://github.com/pgsty/barn/blob/v0.9.3/.github/releases/0.9.3.md"&gt;Source release notes&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="changes"&gt;Changes&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Edit &lt;code&gt;vm_cpu&lt;/code&gt; or &lt;code&gt;vm_mem&lt;/code&gt; and run &lt;code&gt;barn resize [node...]&lt;/code&gt;. Supported increases are hot-plugged when QEMU has reserved capacity; decreases and unsupported cases use an automatic stop/start while preserving the VM identity, disks, and SSH keys. Use &lt;code&gt;barn recreate&lt;/code&gt; for image, disk, network, or share changes.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;plan&lt;/code&gt;, &lt;code&gt;up&lt;/code&gt;, &lt;code&gt;reload&lt;/code&gt;, &lt;code&gt;recreate&lt;/code&gt;, and &lt;code&gt;resize&lt;/code&gt; with selectors retain the applied definitions of unselected peers. Conflicts in addresses, aliases, control-node roles, and deployment-wide settings are checked before a node stops or is deleted.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;barn init [template] --image&lt;/code&gt; and &lt;code&gt;barn setup [template] --image&lt;/code&gt; select an image alias, channel, or version in generated templates without downloading it or rewriting an existing inventory.&lt;/li&gt;&#10;&lt;li&gt;Relative paths, &lt;code&gt;~/&lt;/code&gt;, and directory symlinks work for &lt;code&gt;BARN_HOME&lt;/code&gt;, local repositories, catalog export, inventories, imported images, and share sources where applicable. Inventory-relative shares resolve beside the inventory&amp;rsquo;s real file; spaces, Unicode, overlapping sources, and readable directories owned by another user are supported.&lt;/li&gt;&#10;&lt;li&gt;Provisioning accepts any positive &lt;code&gt;--parallel&lt;/code&gt; and &lt;code&gt;--timeout&lt;/code&gt;. Local images and catalog artifacts with declared sizes can exceed 8 GiB; digest-indexed imports, bounded reads, registry size checks, and cache verification protect the image store. &lt;code&gt;barn mac logs --lines&lt;/code&gt; accepts any positive line count.&lt;/li&gt;&#10;&lt;li&gt;The embedded signed catalog is revision &lt;code&gt;2026102802&lt;/code&gt;, with 9 distribution families and 17 architecture-specific artifacts. The default remains &lt;code&gt;u24:stable&lt;/code&gt; on the host architecture.&lt;/li&gt;&#10;&lt;li&gt;Interrupted Linux and macOS lifecycle, persistent-disk, and replacement operations leave journaled state for safe recovery. Signals produce the structured &lt;code&gt;cancelled&lt;/code&gt; result. &lt;code&gt;barn mac up --no-wait&lt;/code&gt; returns when the VM process starts; run &lt;code&gt;barn mac up NAME&lt;/code&gt; again before using SSH or exec on a machine whose first boot is still provisioning.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="upgrade"&gt;Upgrade&#10;&lt;/h2&gt;&#10;&lt;p&gt;Select &lt;strong&gt;0.9.3&lt;/strong&gt; explicitly with the download installer, or upgrade the Homebrew formula / Linux package. Existing VM disks and configuration remain under &lt;code&gt;~/.barn&lt;/code&gt;; no VM recreation is required.&lt;/p&gt;</description></item><item><title>Farrow 0.8.0: clearer recovery and refreshed images</title><link>https://barn.pgsty.com/v1.5/release/0.8.0/</link><pubDate>Mon, 21 Sep 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.8.0/</guid><description>&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;This version shipped as Farrow. Its download assets have been retired. See the &lt;a href="https://github.com/pgsty/barn/blob/v0.8.0/.github/releases/0.8.0.md"&gt;original tagged release notes&lt;/a&gt; or &lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/"&gt;install the current Barn release&lt;/a&gt;.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;Farrow 0.8.0 cuts down on manual cleanup after interrupted host setup or partial VM starts, and refreshes the Debian and Ubuntu images while preserving previous catalog artifacts and existing VM identities.&lt;/p&gt;&#10;&lt;h2 id="what-changed"&gt;What changed&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Host preparation follows the command.&lt;/strong&gt; Interactive &lt;code&gt;start&lt;/code&gt;, &lt;code&gt;restart&lt;/code&gt;, and &lt;code&gt;reload&lt;/code&gt; can install missing host tools and bring an inactive Farrow network back online. On macOS, first-time network installation locates or installs Homebrew (or downloads and verifies the pinned archive) before prompting for administrator credentials, preventing Homebrew from invalidating an earlier &lt;code&gt;sudo&lt;/code&gt; token.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Failed nodes do not block independent peers.&lt;/strong&gt; During &lt;code&gt;up&lt;/code&gt; or &lt;code&gt;start&lt;/code&gt;, a missing host share fails only the affected node while healthy stopped peers continue to start. Errors report both the missing host source path and guest mount point without creating empty placeholder directories, and &lt;code&gt;restart&lt;/code&gt;, &lt;code&gt;reload&lt;/code&gt;, and &lt;code&gt;recreate&lt;/code&gt; verify share paths before stopping running VMs.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Recovery preserves identity.&lt;/strong&gt; If a deployment public key is missing, Farrow derives it from the existing private key; if the private key is lost, Farrow prints backup recovery steps rather than generating a replacement keypair that existing guests would reject. macOS &lt;code&gt;socket_vmnet&lt;/code&gt; log-directory recovery preserves network ownership markers to avoid false subnet-conflict errors.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Failures keep their context.&lt;/strong&gt; Scoped retry hints preserve custom &lt;code&gt;-f&lt;/code&gt; inventory paths, &lt;code&gt;--repo&lt;/code&gt; overrides, and command names (a failed &lt;code&gt;start&lt;/code&gt; suggests &lt;code&gt;start&lt;/code&gt;). Initial setup and its retry share a single operation ID, bounded event logs can be written and read before deployment state exists, and inspecting uncached image metadata no longer requires &lt;code&gt;qemu-img&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Accurate cleanup summaries.&lt;/strong&gt; Deleting persistent disks or running &lt;code&gt;purge&lt;/code&gt; reports the final deleted state without listing the same disks as both retained and removed. Orphaned disks from previously removed nodes no longer block &lt;code&gt;destroy&lt;/code&gt; of the remaining lab.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="september-images"&gt;September images&#10;&lt;/h2&gt;&#10;&lt;p&gt;Embedded catalog &lt;code&gt;2026092001&lt;/code&gt; contains 37 artifacts across 9 families, retaining all 27 previous artifacts and adding new &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt; stable builds:&lt;/p&gt;</description></item><item><title>Farrow 0.5.0: explicit disposal, explicit repositories, reproducible images</title><link>https://barn.pgsty.com/v1.5/release/0.5.0/</link><pubDate>Thu, 03 Sep 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.5.0/</guid><description>&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;This version shipped as Farrow. Its download assets have been retired. See the &lt;a href="https://github.com/pgsty/barn/blob/v0.5.0/.github/releases/0.5.0.md"&gt;original tagged release notes&lt;/a&gt; or &lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/"&gt;install the current Barn release&lt;/a&gt;. Official mirror failover arrived in 0.7.0. Version 0.9.0 removed the &lt;code&gt;rm&lt;/code&gt; alias.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;Farrow 0.5.0 adds an explicit command to dispose of an entire lab at once, lets operators choose between the global and China Mainland image repositories, and introduces a reproducible build pipeline for normalized official guest images while keeping the Pigsty inventory contract, deployment state format, and embedded catalog revision &lt;code&gt;2026082903&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>repo.yaml Is Intent; catalog.json Is Evidence</title><link>https://barn.pgsty.com/v1.5/blog/design/repo-yaml-catalog-json/</link><pubDate>Sat, 29 Aug 2026 19:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/repo-yaml-catalog-json/</guid><description>&lt;p&gt;This essay explains the Linux image repository contract in Barn &lt;code&gt;1.1.0&lt;/code&gt; (&lt;a href="https://barn.pgsty.com/v1.5/docs/start/macos/"&gt;macOS guests&lt;/a&gt; manage Apple &lt;code&gt;.ipsw&lt;/code&gt; restore images and APFS base images separately via &lt;code&gt;barn mac&lt;/code&gt;).&lt;/p&gt;&#10;&lt;p&gt;A static VM image repository needs two kinds of metadata: human policy decisions (which version is &lt;code&gt;:stable&lt;/code&gt;, which old releases are &lt;code&gt;deprecated&lt;/code&gt;, what aliases map to each family) and physical file facts (exact byte size, SHA-256 digest, &lt;code&gt;qcow2&lt;/code&gt; virtual disk size). Maintaining both in a single hand-edited JSON file invites copy-paste checksum errors and buries policy changes inside noisy diffs.&lt;/p&gt;</description></item></channel></rss>