<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Barn — Linux and macOS virtual machines on Barn</title><link>https://barn.pgsty.com/v1.5/</link><description>Recent content in Barn — Linux and macOS virtual machines 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/index.xml" rel="self" type="application/rss+xml"/><item><title>Build from Source</title><link>https://barn.pgsty.com/v1.5/docs/start/source-build/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/start/source-build/</guid><description>&lt;p&gt;Build Barn yourself to try changes on &lt;code&gt;main&lt;/code&gt; before they are released, or to rebuild a release from its tag. To simply use Barn, &lt;a href="../installation/"&gt;install a release&lt;/a&gt; instead: it needs neither Go nor Xcode, and the Apple Silicon release already includes a signed &lt;code&gt;Barn.app&lt;/code&gt;.&lt;/p&gt;&#10;&lt;h2 id="check-out-the-source"&gt;Check out the source&#10;&lt;/h2&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-c601bd70-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="2"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-c601bd70-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git clone --branch v1.5.0 https://github.com/pgsty/barn.git&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; barn&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;This checks out the source for Barn 1.5.0. Omit &lt;code&gt;--branch v1.5.0&lt;/code&gt; to follow development on &lt;code&gt;main&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Use Barn with an AI Agent</title><link>https://barn.pgsty.com/v1.5/docs/start/agent/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/start/agent/</guid><description>&lt;p&gt;Barn publishes an agent skill, &lt;strong&gt;Barn VMs&lt;/strong&gt; (&lt;code&gt;barn&lt;/code&gt;): one Markdown file that teaches a coding agent to create, use, change, and clean up Barn VMs. It gives the agent Barn&amp;rsquo;s mental model, an index of this documentation, starting points for common scenarios (one Debian machine, a multi-node lab, a Pigsty sandbox, replacing Vagrant, distribution matrices, CI, macOS VMs), and the boundaries it must respect. For command details, it sends the agent back to these pages.&lt;/p&gt;</description></item><item><title>Automation and Guest Scripts</title><link>https://barn.pgsty.com/v1.5/docs/start/automation/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/start/automation/</guid><description>&lt;p&gt;Barn commands print JSON with &lt;code&gt;--json&lt;/code&gt; and return documented exit codes, so CI jobs and AI agents can drive a lab without a terminal. This page starts with a complete unattended run, then covers what a script needs to check and how to run commands inside guests. Run every command as the Unix user who owns the deployment, with the same &lt;code&gt;BARN_HOME&lt;/code&gt; and &lt;code&gt;-f &amp;lt;inventory&amp;gt;&lt;/code&gt; each time.&lt;/p&gt;&#10;&lt;h2 id="run-a-lab-end-to-end"&gt;Run a lab end to end&#10;&lt;/h2&gt;&#10;&lt;p&gt;Run this example under a dedicated CI account with one lab job at a time on the host. &lt;code&gt;BARN_HOME&lt;/code&gt; isolates VM state. Jobs on the same host share the lab network, and jobs under the same account share its SSH aliases.&lt;/p&gt;</description></item><item><title>Barn 1.5.0 release acceptance</title><link>https://barn.pgsty.com/v1.5/blog/design/release-1-5-0-readiness/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/release-1-5-0-readiness/</guid><description>&lt;p&gt;On December 3, 2026, the local acceptance run used source commit &lt;code&gt;258b7e5&lt;/code&gt; plus the pending catalog, image-recipe and dependency changes. The CLI used for the Linux lifecycle test reported &lt;code&gt;1.5.0-rc.1&lt;/code&gt;. The published GitHub release and tag were still &lt;code&gt;v1.4.0&lt;/code&gt;. &lt;a href="https://barn.pgsty.com/v1.5/release/1.5.0/"&gt;Candidate changes&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="checks"&gt;Software, catalogs and guests&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Check&lt;/th&gt;&#10; &lt;th scope="col"&gt;Result&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Source&lt;/td&gt;&#10; &lt;td&gt;The pinned Go 1.27.4 toolchain passed &lt;code&gt;make check&lt;/code&gt;, including race tests, four-target builds, installer and image-pipeline tests. &lt;code&gt;govulncheck&lt;/code&gt; reported no findings. The image and catalog-check packages also passed with the Go test cache disabled.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Global and China repositories&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;make catalog-check&lt;/code&gt; verified ML-DSA-87 and the 1.4.0 Minisign sidecar, matched the embedded bytes and checked the sizes of all 17 stable artifacts on each mirror. The candidate and installed 1.4.0 each activated revision &lt;code&gt;2026120302&lt;/code&gt; on both mirrors using fresh data directories.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Local lab repository&lt;/td&gt;&#10; &lt;td&gt;A directory containing only &lt;code&gt;images/lab-1-arm64.qcow2&lt;/code&gt; passed scan, build and verify. A second build preserved the catalog bytes. The CLI read the local catalog before an explicit refresh, then updated just that repository and pulled its image.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;New Linux deployment&lt;/td&gt;&#10; &lt;td&gt;On Apple Silicon HVF, &lt;code&gt;barn init&lt;/code&gt; selected Debian 13. The candidate booted Debian 13.8 arm64 and reached SSH as UID 88. Both locales returned UTF-8. The XFS marker and machine ID survived stop/start, the boot ID changed, and purge removed the test node. The guest also executed the CLI extracted from the Linux arm64 snapshot DEB.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Upgrade from 1.4.0&lt;/td&gt;&#10; &lt;td&gt;The published CLI created an Ubuntu 24.04 guest from an inventory with no &lt;code&gt;vm_image&lt;/code&gt;. The candidate reopened the running guest with its existing QEMU PID, backing image, machine ID and XFS marker. Both &lt;code&gt;validate&lt;/code&gt; and &lt;code&gt;plan&lt;/code&gt; selected &lt;code&gt;u24&lt;/code&gt; for a new peer in the same lab.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Packaging&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;make release-snapshot&lt;/code&gt; verified four platform archives, Linux amd64/arm64 DEBs and RPMs, the embedded helper digests, SPDX files and the ad-hoc native payload. GoReleaser derived the internal snapshot name &lt;code&gt;1.4.1-next&lt;/code&gt; from the preceding tag. A clean, isolated rehearsal commit also passed snapshot assembly and all 19 draft manifest digests.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Native macOS&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;make mac-native-test&lt;/code&gt; passed the bridge, image, runtime and menu component checks. The live test stopped at network preflight because host routes covered all three RFC 1918 ranges. The release owner excluded further macOS guest boot and SSH testing from this acceptance run.&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;The catalog SHA-256 was &lt;code&gt;43c01556d2f7939bb1c4e80e864057561aad42ce5430a381395fc08bc2c1f8c4&lt;/code&gt;, with default &lt;code&gt;d13:stable/native&lt;/code&gt;. The earlier December 3 image run recorded full SHA-256 reads on both mirrors and native Debian amd64/KVM and arm64/HVF boot tests. &lt;a href="../image-refresh-20261203/"&gt;Image acceptance&lt;/a&gt;&lt;/p&gt;</description></item><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>Image Repositories</title><link>https://barn.pgsty.com/v1.5/docs/start/images/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/start/images/</guid><description>&lt;p&gt;On first use of an official Linux image, Barn downloads the selected base image and verifies it against the signed catalog. New labs in 1.5.0 use &lt;code&gt;d13:stable&lt;/code&gt; (Debian 13) for your host architecture. On Barn 1.4.0, use &lt;code&gt;barn init -I d13&lt;/code&gt; to start with Debian 13. Use this page to pick another distribution, download from the China mirror, bring your own &lt;code&gt;qcow2&lt;/code&gt;, host a repository, or reclaim disk space.&lt;/p&gt;&#10;&lt;h2 id="choose-an-image"&gt;Choose an image&#10;&lt;/h2&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-12c97935-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="2"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-12c97935-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn image list&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn image info&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table class="wide expand td-table--wide"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Family&lt;/th&gt;&#10; &lt;th scope="col"&gt;Distribution&lt;/th&gt;&#10; &lt;th scope="col"&gt;Short aliases&lt;/th&gt;&#10; &lt;th scope="col"&gt;Notes&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;d13&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Debian 13&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;d&lt;/code&gt;, &lt;code&gt;debian&lt;/code&gt;, &lt;code&gt;trixie&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Default for new labs in 1.5.0&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;d12&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Debian 12&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;bookworm&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;u24&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Ubuntu 24.04 LTS&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;noble&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;u26&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Ubuntu 26.04 LTS&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;u&lt;/code&gt;, &lt;code&gt;ubuntu&lt;/code&gt;, &lt;code&gt;resolute&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;u22&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Ubuntu 22.04 LTS&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;jammy&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;deprecated&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;el10&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Rocky Linux 10&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;e&lt;/code&gt;, &lt;code&gt;el&lt;/code&gt;, &lt;code&gt;rocky&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;el9&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Rocky Linux 9&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;rocky9&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;el8&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Rocky Linux 8&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;rocky8&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;deprecated&lt;/code&gt;; &lt;code&gt;arm64&lt;/code&gt; runs under TCG on Apple Silicon&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;el7&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;CentOS Linux 7.9&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;c7&lt;/code&gt;, &lt;code&gt;centos7&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;deprecated&lt;/code&gt; (EOL); &lt;code&gt;amd64&lt;/code&gt; only, native &lt;code&gt;linux/amd64&lt;/code&gt; hosts only&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;Append &lt;code&gt;a&lt;/code&gt; to a family name (or to &lt;code&gt;e&lt;/code&gt;, &lt;code&gt;el&lt;/code&gt;, &lt;code&gt;d&lt;/code&gt;, &lt;code&gt;u&lt;/code&gt;) for &lt;code&gt;arm64&lt;/code&gt;, or &lt;code&gt;x&lt;/code&gt;/&lt;code&gt;i&lt;/code&gt; for &lt;code&gt;amd64&lt;/code&gt;: &lt;code&gt;d13x&lt;/code&gt;, &lt;code&gt;el10a&lt;/code&gt;, &lt;code&gt;da&lt;/code&gt;. Deprecated images still boot and print a status warning. If you upgraded from Barn 1.2.0, note that &lt;code&gt;rocky&lt;/code&gt; and &lt;code&gt;ubuntu&lt;/code&gt; now point to &lt;code&gt;el10&lt;/code&gt; and &lt;code&gt;u26&lt;/code&gt;; see &lt;a href="../installation/#upgrade-barn"&gt;Upgrade Barn&lt;/a&gt;. The full alias list is in the &lt;a href="../../reference/images/#aliases-and-pull-order"&gt;image reference&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Storage, Files, and Service Access</title><link>https://barn.pgsty.com/v1.5/docs/start/storage/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/start/storage/</guid><description>&lt;p&gt;Each Linux node has a disposable root disk and separate data disks. The root disk is a copy-on-write layer over the base image, and &lt;code&gt;recreate&lt;/code&gt; replaces it whenever the image or node definition changes. Data disks keep test data on their own devices, so the system can be rebuilt underneath them; with &lt;code&gt;persistent: true&lt;/code&gt;, a data disk also survives &lt;code&gt;recreate&lt;/code&gt; and &lt;code&gt;destroy&lt;/code&gt;. This page covers disk layout and retention, then file transfer and service access, using the &lt;code&gt;meta&lt;/code&gt; node at &lt;code&gt;10.10.10.10&lt;/code&gt; from the &lt;a href="../tutorial/"&gt;Linux Quick Start&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Image Pipeline</title><link>https://barn.pgsty.com/v1.5/docs/reference/image-pipeline/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/image-pipeline/</guid><description>&lt;p&gt;This page is for contributors who build Barn&amp;rsquo;s official Linux images; if you only use images, skip it. To share images of your own, &lt;a href="../../start/images/#build-a-static-repository"&gt;build a static repository&lt;/a&gt; instead.&lt;/p&gt;&#10;&lt;p&gt;The tools live under &lt;code&gt;packaging/image-pipeline/&lt;/code&gt; in the Barn source checkout. &lt;code&gt;build.sh&lt;/code&gt; turns one downloaded &lt;code&gt;qcow2&lt;/code&gt; with a known SHA-256 into a &lt;code&gt;testing&lt;/code&gt; candidate bundle, either validated as it is or normalized offline; &lt;code&gt;build-official.py&lt;/code&gt; runs it over the official matrix and assembles a candidate repository. The builder needs no network access or signing keys and leaves Barn&amp;rsquo;s runtime state alone. Its output then goes through live smoke tests and release review.&lt;/p&gt;</description></item><item><title>Shipping the Mac Component</title><link>https://barn.pgsty.com/v1.5/docs/about/mac-release/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/about/mac-release/</guid><description>&lt;p&gt;Only maintainers cutting a Barn release need this page: it builds, signs, notarizes, and verifies the native macOS payload (the CLI, &lt;code&gt;barn-hosts-helper&lt;/code&gt;, and &lt;code&gt;Barn.app&lt;/code&gt;) inside &lt;code&gt;barn_VERSION_darwin_arm64.tar.gz&lt;/code&gt;. To build &lt;code&gt;Barn.app&lt;/code&gt; for your own use, see &lt;a href="../../start/source-build/#mac-component"&gt;Build from Source&lt;/a&gt;; for the overall release order, see &lt;a href="../engineering/#release-outputs-and-gates"&gt;release gates&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="release-identity"&gt;Payload and signing order&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;packaging/mac-release.py build&lt;/code&gt; produces the payload: &lt;code&gt;MACOS.md&lt;/code&gt;, &lt;code&gt;MACOS.json&lt;/code&gt;, &lt;code&gt;bin/barn&lt;/code&gt;, &lt;code&gt;bin/barn-hosts-helper&lt;/code&gt;, and &lt;code&gt;bin/Barn.app&lt;/code&gt;. &lt;code&gt;MACOS.json&lt;/code&gt; records the version, source commit, file modes, digests, and signing state; the version and commit must match the GoReleaser archives the payload joins.&lt;/p&gt;</description></item><item><title>Self-hosted repositories and official signatures</title><link>https://barn.pgsty.com/v1.5/docs/reference/repository-signing/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/repository-signing/</guid><description>&lt;p&gt;Share a lab repository by distributing its images and catalog. Barn 1.5.0 supports filename-based builds and ML-DSA-87 verification. Barn 1.4.0 uses &lt;code&gt;repo.yaml&lt;/code&gt; for builds and Minisign for official catalogs.&lt;/p&gt;&#10;&lt;h2 id="user-repository"&gt;Create and use a lab repository&#10;&lt;/h2&gt;&#10;&lt;p&gt;Place your images under &lt;code&gt;repo/images/&lt;/code&gt;, for example &lt;code&gt;lab-pg-1-arm64.qcow2&lt;/code&gt;. Run these commands on a host with &lt;code&gt;qemu-img&lt;/code&gt;:&lt;/p&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-c4505e0b-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="2"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-c4505e0b-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn repo build ./repo&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn up --repo ./repo -I lab-pg&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;The first command writes &lt;code&gt;catalog.json&lt;/code&gt;. Barn takes the image name, version and architecture from each filename and defaults to UEFI. An existing &lt;code&gt;repo.yaml&lt;/code&gt; still selects the repository contents. A local repository can be unsigned and use your original image files.&lt;/p&gt;</description></item><item><title>Images</title><link>https://barn.pgsty.com/v1.5/docs/reference/images/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/images/</guid><description>&lt;p&gt;Barn resolves Linux guest images from a static catalog and immutable &lt;code&gt;qcow2&lt;/code&gt; artifacts. Official and HTTP repositories require ML-DSA-87 catalog signatures, while explicitly selected local directory and HTTPS repositories may be unsigned. You can activate newer image catalogs with &lt;code&gt;barn update&lt;/code&gt; without replacing the &lt;code&gt;barn&lt;/code&gt; binary; the binary defines the trusted signing public keys and &lt;code&gt;qcow2&lt;/code&gt; safety rules.&lt;/p&gt;&#10;&lt;div class="td-callout td-callout--warning" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-triangle-exclamation" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Warning&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;&lt;code&gt;el7&lt;/code&gt; (CentOS Linux 7.9) is an EOL &lt;code&gt;deprecated&lt;/code&gt; compatibility image. The catalog also marks &lt;code&gt;el8&lt;/code&gt; (Rocky Linux 8) and &lt;code&gt;u22&lt;/code&gt; (Ubuntu 22.04 LTS) as &lt;code&gt;deprecated&lt;/code&gt; as support is phased out. Prefer &lt;code&gt;el9&lt;/code&gt;, &lt;code&gt;el10&lt;/code&gt;, &lt;code&gt;d12&lt;/code&gt;, &lt;code&gt;d13&lt;/code&gt;, &lt;code&gt;u24&lt;/code&gt;, or &lt;code&gt;u26&lt;/code&gt; for new labs.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;</description></item><item><title>Contributing</title><link>https://barn.pgsty.com/v1.5/docs/about/engineering/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/about/engineering/</guid><description>&lt;p&gt;Start here to change Barn: find the code, run the checks a pull request must pass, and edit these docs. The last two sections are for maintainers cutting a release or refreshing the image catalog. Barn is Apache-2.0; for a large change, open an issue first to agree on the design.&lt;/p&gt;&#10;&lt;h2 id="choose-a-repository"&gt;Choose a repository&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table class="wide expand td-table--wide"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;What you want to change&lt;/th&gt;&#10; &lt;th scope="col"&gt;Where to work&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;CLI behavior, VM lifecycle, native macOS component (&lt;code&gt;Barn.app&lt;/code&gt;), installer, and packages&lt;/td&gt;&#10; &lt;td&gt;&lt;a href="https://github.com/pgsty/barn"&gt;&lt;code&gt;pgsty/barn&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Documentation site, guides, command reference, and translations&lt;/td&gt;&#10; &lt;td&gt;&lt;a href="https://github.com/pgsty/barn.pgsty.com"&gt;&lt;code&gt;pgsty/barn.pgsty.com&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Official Linux image definitions or offline normalization rules&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;packaging/image-repository/&lt;/code&gt; and &lt;code&gt;packaging/image-pipeline/&lt;/code&gt; in &lt;a href="https://github.com/pgsty/barn"&gt;&lt;code&gt;pgsty/barn&lt;/code&gt;&lt;/a&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;A useful bug report has &lt;code&gt;barn version&lt;/code&gt;, the host OS and architecture, the exact command, and the error output with private keys and passwords removed. Report security problems &lt;a href="../security/#report-a-vulnerability"&gt;privately&lt;/a&gt;. Coding style, error-message rules, and commit conventions are in &lt;a href="https://github.com/pgsty/barn/blob/main/CONTRIBUTING.md"&gt;&lt;code&gt;CONTRIBUTING.md&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Security and Trust</title><link>https://barn.pgsty.com/v1.5/docs/about/security/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/about/security/</guid><description>&lt;p&gt;Read this before letting Barn run VMs on your workstation: what it does as root, what it does with your SSH setup and files, and how to check that a download is genuine.&lt;/p&gt;&#10;&lt;p&gt;Barn assumes a single-user development machine. Its ownership and process-identity checks keep it from damaging unrelated files and processes by mistake; they are not a barrier against another hostile user on the same host. Inside a Linux lab the nodes trust each other: they share a private subnet, and the control node holds a key to every peer.&lt;/p&gt;</description></item><item><title>Design</title><link>https://barn.pgsty.com/v1.5/docs/about/design/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/about/design/</guid><description>&lt;p&gt;Barn&amp;rsquo;s behavior follows from a handful of decisions. Each one answers a concrete problem that comes up when you run multi-node labs on a workstation. Knowing them makes the rest of the documentation predictable: why &lt;code&gt;barn up&lt;/code&gt; never deletes anything, why every node has two network interfaces, why there is no &amp;ldquo;project&amp;rdquo; to switch between.&lt;/p&gt;&#10;&lt;p&gt;Barn has two workflows that share a CLI and nothing else:&lt;/p&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table class="wide expand td-table--wide"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;&lt;/th&gt;&#10; &lt;th scope="col"&gt;Linux labs (&lt;code&gt;barn …&lt;/code&gt;)&lt;/th&gt;&#10; &lt;th scope="col"&gt;macOS VMs (&lt;code&gt;barn mac …&lt;/code&gt;)&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Hypervisor&lt;/td&gt;&#10; &lt;td&gt;QEMU with HVF or KVM; TCG emulation for a foreign architecture&lt;/td&gt;&#10; &lt;td&gt;Apple &lt;code&gt;Virtualization.framework&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Configuration&lt;/td&gt;&#10; &lt;td&gt;One Ansible inventory (&lt;code&gt;barn.yml&lt;/code&gt; or &lt;code&gt;pigsty.yml&lt;/code&gt;)&lt;/td&gt;&#10; &lt;td&gt;Named VMs set up with command-line flags&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;State&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;$BARN_HOME&lt;/code&gt; (default &lt;code&gt;~/.barn&lt;/code&gt;)&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;$BARN_HOME/mac&lt;/code&gt; (default &lt;code&gt;~/.barn/mac&lt;/code&gt;)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Network&lt;/td&gt;&#10; &lt;td&gt;NAT management interface plus a shared fixed-IP &lt;code&gt;/24&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;One private &lt;code&gt;/24&lt;/code&gt; NAT subnet per VM, guest at &lt;code&gt;.10&lt;/code&gt;&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Typical use&lt;/td&gt;&#10; &lt;td&gt;Database clusters, Ansible playbooks, multi-node testing&lt;/td&gt;&#10; &lt;td&gt;macOS builds, GUI testing, a clean desktop to reproduce bugs&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;The rest of this page covers Linux labs. The macOS side is explained in &lt;a href="https://barn.pgsty.com/v1.5/blog/design/native-mac-lifecycle/"&gt;native Mac lifecycle&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Platforms and Limits</title><link>https://barn.pgsty.com/v1.5/docs/about/status/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/about/status/</guid><description>&lt;p&gt;Check here whether Barn runs on your machine, which guest systems it can boot, and which limits might matter for your lab. Barn is built for local development and testing, not for hosting production services.&lt;/p&gt;&#10;&lt;h2 id="documentation-baseline"&gt;Version covered&#10;&lt;/h2&gt;&#10;&lt;p&gt;The platform tables below apply to &lt;strong&gt;Barn 1.5.0&lt;/strong&gt;. Run &lt;code&gt;barn version&lt;/code&gt; to check your installation. The Linux image catalog can change independently through &lt;code&gt;barn update&lt;/code&gt;. See the &lt;a href="https://barn.pgsty.com/v1.5/release/1.5.0/"&gt;1.5.0 release notes&lt;/a&gt; and &lt;a href="../../reference/commands/#versions"&gt;version history of CLI options&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Linux Quick Start</title><link>https://barn.pgsty.com/v1.5/docs/start/tutorial/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/start/tutorial/</guid><description>&lt;p&gt;You will boot a Debian 13 VM, log in to it, then grow it into a four-node lab by editing one YAML file. Every command runs on your host as your normal user. For macOS guests, see &lt;a href="../macos/"&gt;macOS VMs&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="install"&gt;Before you start&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="../installation/"&gt;Install Barn&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;Keep about 2 GiB of free memory per VM; each node defaults to 1 vCPU and 2 GiB.&lt;/li&gt;&#10;&lt;li&gt;Use an interactive terminal. The first run prepares the host and asks once before changing anything; &lt;code&gt;sudo&lt;/code&gt; may then ask for your password. For CI and other unattended runs, see &lt;a href="../automation/"&gt;Automation&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;In mainland China, add &lt;code&gt;--mirror&lt;/code&gt; to the first &lt;code&gt;barn up&lt;/code&gt; to download images from &lt;code&gt;repo.pigsty.cc&lt;/code&gt;.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="start"&gt;Start a VM&#10;&lt;/h2&gt;&#10;&lt;p&gt;In 1.5.0, &lt;code&gt;barn up&lt;/code&gt; selects Debian 13 for a new lab. With Barn 1.4.0, use &lt;code&gt;barn up -I d13&lt;/code&gt; on the first run to follow this tutorial.&lt;/p&gt;</description></item><item><title>Configuration</title><link>https://barn.pgsty.com/v1.5/docs/reference/configuration/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/configuration/</guid><description>&lt;p id="a-complete-inventory"&gt;A Linux lab is one YAML file that lists each node under its fixed IPv4 address. This page defines the file&amp;rsquo;s shape, every variable Barn reads with its default, and how command-line flags and environment variables override them.&lt;/p&gt;&#10;&lt;div class="td-code td-code--titled" id="td-code-18050be9-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="yaml" data-td-line-count="12" role="group" aria-labelledby="td-code-18050be9-fence-0-title"&gt;&#10; &lt;div class="td-code__header"&gt;&#10; &lt;span class="td-code__filename" id="td-code-18050be9-fence-0-title" title="barn.yml"&gt;barn.yml&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-code__viewport" id="td-code-18050be9-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-yaml" data-lang="yaml"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nt"&gt;all&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;vars&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# applies to every host below&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;admin_ip&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;10.10.10.10&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# the control node&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;vm_image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;d13 &lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# Debian 13&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;children&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# ordinary Ansible groups; they may nest&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;lab&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;vars&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;vm_mem&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;4GiB &lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# group default, overrides all.vars&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;hosts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;10.10.10.10&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;{&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;nodename&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;meta } &lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# key = the node&amp;#39;s address on the lab /24&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;10.10.10.11&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;{&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;nodename&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="l"&gt;node-1 }&lt;/span&gt;&lt;span class="w"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;10.10.10.12&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;{&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;nodename&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;node-2, vm_cpu&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;}&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="c"&gt;# host value wins over groups&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;This is an ordinary Ansible inventory. Barn reads the &lt;code&gt;vm_*&lt;/code&gt; variables and a few Pigsty fields and ignores everything else, so the same file can also drive Pigsty or Ansible: add &lt;code&gt;vm_*&lt;/code&gt; variables to a Pigsty &lt;code&gt;pigsty.yml&lt;/code&gt;, and Barn creates exactly the nodes its playbooks target.&lt;/p&gt;</description></item><item><title>Download and Install Barn</title><link>https://barn.pgsty.com/v1.5/docs/start/installation/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/start/installation/</guid><description>&lt;p&gt;Barn is one command-line tool, &lt;code&gt;barn&lt;/code&gt;, with a small companion binary for editing &lt;code&gt;/etc/hosts&lt;/code&gt;. On Apple Silicon it also ships &lt;code&gt;Barn.app&lt;/code&gt;, the native component that runs macOS guests. Install it as your normal user: Barn asks for &lt;code&gt;sudo&lt;/code&gt; itself when a host setup step needs it.&lt;/p&gt;&#10;&lt;p&gt;Install &lt;strong&gt;Barn 1.5.0&lt;/strong&gt; with Homebrew or the installer, or choose an archive or package below. Run &lt;code&gt;barn version&lt;/code&gt; to verify the installed version. &lt;a href="../source-build/"&gt;Build from source&lt;/a&gt;&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>Troubleshooting</title><link>https://barn.pgsty.com/v1.5/docs/start/troubleshooting/</link><pubDate>Wed, 02 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/start/troubleshooting/</guid><description>&lt;p&gt;Linux lab problems in the order you are likely to hit them. Each entry gives the &lt;strong&gt;Symptom&lt;/strong&gt;, a &lt;strong&gt;Check&lt;/strong&gt; to confirm it, and the &lt;strong&gt;Fix&lt;/strong&gt;. For macOS VMs, see &lt;a href="../macos/#troubleshooting"&gt;macOS troubleshooting&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="run-barn-doctor-first"&gt;Run &lt;code&gt;barn doctor&lt;/code&gt; first&#10;&lt;/h2&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-7977490a-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="3"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-7977490a-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn doctor&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn network status&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn status&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;&lt;code&gt;barn doctor&lt;/code&gt; probes the host without changing it: platform, QEMU and &lt;code&gt;qemu-img&lt;/code&gt;, required QEMU devices, a short HVF or KVM boot, UEFI firmware, &lt;code&gt;/dev/kvm&lt;/code&gt; on Linux, the OpenSSH client, deployment state and free space under &lt;code&gt;BARN_HOME&lt;/code&gt;, and the host network. Each problem prints a &lt;code&gt;detail:&lt;/code&gt; line and, when Barn knows one, a &lt;code&gt;fix:&lt;/code&gt; line.&lt;/p&gt;</description></item><item><title>Daily Operations</title><link>https://barn.pgsty.com/v1.5/docs/start/operations/</link><pubDate>Wed, 02 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/start/operations/</guid><description>&lt;p&gt;Once a lab is running, day-to-day work comes down to a few commands: check it, log in, stop it overnight, apply an inventory edit, and tear it down. This page covers them for the Linux lab; macOS VMs have their own &lt;a href="../macos/#everyday-lifecycle"&gt;lifecycle&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="inspect-and-access"&gt;Inspect and access&#10;&lt;/h2&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-27541f03-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="4"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-27541f03-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn status&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn ssh meta&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn &lt;span class="nb"&gt;exec&lt;/span&gt; node-1 -- hostname&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn logs meta --source serial&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;These commands read the deployment stored in &lt;code&gt;BARN_HOME&lt;/code&gt; (default &lt;code&gt;~/.barn&lt;/code&gt;), so they work from any directory; if you set &lt;code&gt;BARN_HOME&lt;/code&gt; yourself, use an absolute path. &lt;code&gt;barn status&lt;/code&gt; shows each node&amp;rsquo;s image and resources and flags software emulation (&lt;code&gt;tcg&lt;/code&gt;); &lt;code&gt;barn status --verbose&lt;/code&gt; adds guest architecture, accelerator, loopback SSH port, and QEMU PID.&lt;/p&gt;</description></item><item><title>macOS Virtual Machines</title><link>https://barn.pgsty.com/v1.5/docs/start/macos/</link><pubDate>Wed, 02 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/start/macos/</guid><description>&lt;p&gt;Use &lt;code&gt;barn mac&lt;/code&gt; when you need a clean macOS machine to build, test, or reproduce a macOS-specific bug, and want to throw it away afterwards. Each VM gets an administrator account with passwordless &lt;code&gt;sudo&lt;/code&gt;, SSH with pinned keys, a desktop window, shared host folders, and clipboard sharing. VMs run under your own user account through Apple&amp;rsquo;s Virtualization framework, so nothing needs &lt;code&gt;sudo&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;Mac VMs are separate from the Linux lab: they don&amp;rsquo;t read &lt;code&gt;barn.yml&lt;/code&gt;, their state lives in &lt;code&gt;$BARN_HOME/mac&lt;/code&gt; (default &lt;code&gt;~/.barn/mac&lt;/code&gt;), and Linux &lt;code&gt;barn destroy&lt;/code&gt; or &lt;code&gt;barn purge&lt;/code&gt; never touches them.&lt;/p&gt;</description></item><item><title>CLI Contracts</title><link>https://barn.pgsty.com/v1.5/docs/reference/cli/</link><pubDate>Wed, 02 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/cli/</guid><description>&lt;p id="commands"&gt;Every &lt;code&gt;barn&lt;/code&gt; command follows the same output, prompt, and exit-code rules, so a script can handle all of them the same way. This page defines those rules; per-command syntax and flags are in the &lt;a href="../commands/"&gt;Command Reference&lt;/a&gt;, and native Mac VM contracts in &lt;a href="../mac/"&gt;Mac Reference&lt;/a&gt;.&lt;/p&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-3f2d26d6-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="text" data-td-line-count="1"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-3f2d26d6-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn [--json|--yaml] [-v|--verbose] &amp;lt;command&amp;gt; [flags] [node...]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;Each command page lists its short aliases (&lt;code&gt;barn st&lt;/code&gt; is &lt;code&gt;barn status&lt;/code&gt;); the &lt;code&gt;network&lt;/code&gt; group also answers to &lt;code&gt;n&lt;/code&gt; and &lt;code&gt;net&lt;/code&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>Uninstall and Clean Up</title><link>https://barn.pgsty.com/v1.5/docs/start/uninstall/</link><pubDate>Fri, 27 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/start/uninstall/</guid><description>&lt;p&gt;Use this page to remove part of what Barn created, or all of it. Linux labs and macOS VMs are managed separately, so &lt;code&gt;barn purge&lt;/code&gt; never touches Mac VMs. Keep the &lt;code&gt;barn&lt;/code&gt; CLI installed until the last step, because the cleanup commands need it.&lt;/p&gt;&#10;&lt;h2 id="choose-what-to-remove"&gt;Choose what to remove&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table class="wide expand td-table--wide"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Remove&lt;/th&gt;&#10; &lt;th scope="col"&gt;Run&lt;/th&gt;&#10; &lt;th scope="col"&gt;What is kept&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Nothing yet, just stop the VMs&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;barn stop&lt;/code&gt;; &lt;code&gt;barn mac stop --all&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Everything, disks included&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;One Linux node&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;barn destroy &amp;lt;node&amp;gt;&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;The other nodes, that node&amp;rsquo;s persistent disks, keys, images, host network&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;The Linux lab&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;barn destroy&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Persistent disks, deployment keys, cached images, host network&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;The Linux lab, its persistent disks, and keys&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;barn purge&lt;/code&gt; (deletes immediately; &lt;code&gt;--ask&lt;/code&gt; to confirm first)&lt;/td&gt;&#10; &lt;td&gt;Cached images, host network&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Named Mac VMs&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;barn mac destroy &amp;lt;name...&amp;gt;&lt;/code&gt; (asks you to confirm)&lt;/td&gt;&#10; &lt;td&gt;Other Mac VMs, cached macOS images&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Barn&amp;rsquo;s SSH, &lt;code&gt;/etc/hosts&lt;/code&gt;, and clock-sync integrations&lt;/td&gt;&#10; &lt;td&gt;&lt;a href="https://barn.pgsty.com/v1.5/docs/start/uninstall/#full-teardown-steps"&gt;Step 2&lt;/a&gt;&lt;/td&gt;&#10; &lt;td&gt;Your own &lt;code&gt;~/.ssh/config&lt;/code&gt; and &lt;code&gt;/etc/hosts&lt;/code&gt; entries&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Cached images&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;barn image prune --yes&lt;/code&gt;; &lt;code&gt;barn mac image prune --installers --yes&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Images a VM still uses, and the default macOS base&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;The Linux host network&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;barn network uninstall --yes&lt;/code&gt; (after all Linux VMs are gone)&lt;/td&gt;&#10; &lt;td&gt;—&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Barn itself&lt;/td&gt;&#10; &lt;td&gt;&lt;a href="https://barn.pgsty.com/v1.5/docs/start/uninstall/#full-teardown-steps"&gt;Step 5&lt;/a&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;~/.barn&lt;/code&gt;, until you delete it&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;Before destroying anything, check names with &lt;code&gt;barn status&lt;/code&gt; (Linux) and &lt;code&gt;barn mac ls&lt;/code&gt; (Mac), and copy files you want to keep to the host. &lt;a href="../storage/#what-survives-each-operation"&gt;What survives each operation&lt;/a&gt; has the per-command detail for data disks.&lt;/p&gt;</description></item><item><title>Replacing Vagrant in Pigsty: what Barn still needs</title><link>https://barn.pgsty.com/v1.5/blog/design/vagrant-replacement-gaps/</link><pubDate>Fri, 27 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/vagrant-replacement-gaps/</guid><description>&lt;p&gt;Pigsty&amp;rsquo;s &lt;code&gt;vagrant/&lt;/code&gt; directory, Makefile, and public tutorials define the behavior Barn has to take over. The &lt;a href="https://barn.pgsty.com/v1.5/blog/design/pigsty-barn-migration/"&gt;sandbox migration plan&lt;/a&gt; already covers resource scaling, local host names, and the entry-point switch, and &lt;a href="https://barn.pgsty.com/v1.5/blog/design/vagrant-workflow-boundary/"&gt;Vagrant and the development loop&lt;/a&gt; lists candidates such as provisioning steps, file transfer, and snapshots. This page adds the remaining layer: it checks the Vagrant behavior Pigsty actually relies on, sets out what Barn must add before Vagrant can be retired, and then lists capabilities Vagrant never offered but that Pigsty&amp;rsquo;s high-availability tutorials need.&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>Mac Runtime Reference</title><link>https://barn.pgsty.com/v1.5/docs/reference/mac/</link><pubDate>Fri, 27 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/mac/</guid><description>&lt;p id="commands"&gt;&lt;code&gt;barn mac&lt;/code&gt; runs named macOS virtual machines on an Apple Silicon Mac, alongside the Linux lab but separate from it. This page defines what scripts and agents depend on: what each machine owns, how it is networked, what the commands return, how they fail, and where state lives.&lt;/p&gt;&#10;&lt;p id="flags-by-command"&gt;Per-command syntax and options are in the &lt;a href="../commands/mac/"&gt;macOS Command Reference&lt;/a&gt;; the walkthrough is &lt;a href="../../start/macos/"&gt;macOS Virtual Machines&lt;/a&gt;.&lt;/p&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-bb7d1ff4-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="text" data-td-line-count="1"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-bb7d1ff4-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn [--json|--yaml] [-v|--verbose] mac &amp;lt;command&amp;gt; [flags] [name...]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;h2 id="runner"&gt;Host and runner&#10;&lt;/h2&gt;&#10;&lt;p&gt;Barn drives Apple&amp;rsquo;s Virtualization framework through &lt;code&gt;Barn.app&lt;/code&gt;, the native macOS app bundle that ships with the Apple Silicon release and the Homebrew formula (&lt;a href="../../start/macos/#install"&gt;install&lt;/a&gt;). The CLI and the app must come from the same build: before any VM operation the CLI checks that the app&amp;rsquo;s runner speaks protocol &lt;code&gt;2&lt;/code&gt;, and &lt;code&gt;barn mac doctor&lt;/code&gt; also verifies the runner&amp;rsquo;s local code signature.&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>Guest time synchronization validation</title><link>https://barn.pgsty.com/v1.5/blog/design/guest-time-sync-validation/</link><pubDate>Thu, 19 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/guest-time-sync-validation/</guid><description>&lt;p&gt;The unreleased implementation on &lt;code&gt;main&lt;/code&gt; following Barn 1.2.0 provides manual host-relative clock correction, startup checks, and optional OS-scheduled checks. Validation covered seven Linux distributions, the four-node EL10 offline lab, and an additional clean EL8 guest. &lt;strong&gt;Real host sleep/resume remains unverified.&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;The &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/time/"&gt;command reference&lt;/a&gt; describes the resulting interface.&lt;/p&gt;&#10;&lt;h2 id="implementation"&gt;Implementation&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;barn time status&lt;/code&gt; measures host-relative offsets and reports guest NTP state. &lt;code&gt;barn time sync&lt;/code&gt; forces and verifies a correction on selected running guests, defaulting to all applied nodes, after converging exited VM runtimes under the deployment lock. Startup commands check selected ready nodes and report time failures separately from management SSH readiness.&lt;/p&gt;</description></item><item><title>Guest Time Synchronization</title><link>https://barn.pgsty.com/v1.5/docs/reference/commands/time/</link><pubDate>Thu, 19 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/commands/time/</guid><description>&lt;p&gt;While the host sleeps or a VM is paused, the guest does not run, so its clock falls behind the host&amp;rsquo;s; in an offline lab, guest NTP has no source to correct it. &lt;code&gt;barn time&lt;/code&gt; measures each Linux guest against the host clock and sets it over management SSH, so it works without guest Internet access. Barn checks clocks on demand with &lt;code&gt;barn time sync&lt;/code&gt;, when &lt;code&gt;up&lt;/code&gt;, &lt;code&gt;start&lt;/code&gt;, &lt;code&gt;restart&lt;/code&gt;, &lt;code&gt;reload&lt;/code&gt;, or &lt;code&gt;recreate&lt;/code&gt; brings guests to ready, and, if you opt in, every minute from an OS timer.&lt;/p&gt;</description></item><item><title>Barn 1.2.0 release readiness and acceptance</title><link>https://barn.pgsty.com/v1.5/blog/design/release-1-2-0-readiness/</link><pubDate>Thu, 12 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/release-1-2-0-readiness/</guid><description>&lt;p&gt;&lt;strong&gt;Status, 2026-11-12:&lt;/strong&gt; &lt;a href="https://github.com/pgsty/barn/releases/tag/v1.2.0"&gt;Barn 1.2.0&lt;/a&gt; is published as stable/latest. Its final acceptance is recorded below; the candidate sections preserve the earlier review and its original scope.&lt;/p&gt;&#10;&lt;h2 id="final-release"&gt;Final release&#10;&lt;/h2&gt;&#10;&lt;p&gt;Tag &lt;code&gt;v1.2.0&lt;/code&gt; points to &lt;code&gt;90f615804b823b4eb491101e642073dcd37a9700&lt;/code&gt;. &lt;a href="https://github.com/pgsty/barn/actions/runs/43121333312"&gt;Source/Mac CI&lt;/a&gt; and &lt;a href="https://github.com/pgsty/barn/actions/runs/43121333418"&gt;complete packaging CI&lt;/a&gt; passed that exact commit before tagging. All 437 reviewed build inputs match the candidate manifest. The signed catalog gate passed again before formal packaging.&lt;/p&gt;&#10;&lt;p&gt;The release used the documented local signing path because GitHub signing secrets remain unconfigured. Apple accepted notarization &lt;code&gt;165b486b-5055-4eca-a595-54bed6bdd6c1&lt;/code&gt;. &lt;code&gt;make release-local&lt;/code&gt; passed archive, DEB/RPM, SPDX, helper-pairing, timestamp, and package/archive checks. Downloaded CLI/helper/app bytes passed Developer ID, staple, and Gatekeeper checks. All 20 draft attachments and all 20 anonymous public downloads match the verified sizes and SHA-256 digests.&lt;/p&gt;</description></item><item><title>Barn 1.2.0: resources, root growth, and host names</title><link>https://barn.pgsty.com/v1.5/release/1.2.0/</link><pubDate>Thu, 12 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/1.2.0/</guid><description>&lt;p&gt;&lt;a href="https://github.com/pgsty/barn/releases/tag/v1.2.0"&gt;Barn 1.2.0&lt;/a&gt; was released on &lt;strong&gt;2026-11-12&lt;/strong&gt; from commit &lt;a href="https://github.com/pgsty/barn/commit/90f615804b823b4eb491101e642073dcd37a9700"&gt;&lt;code&gt;90f6158&lt;/code&gt;&lt;/a&gt;. It adds resource overrides, recoverable root-disk growth, configurable lifecycle concurrency, and inventory-based host names. The 1.2.0 CLI has 57 operational commands and 174 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-110"&gt;Upgrade from 1.1.0&#10;&lt;/h2&gt;&#10;&lt;p&gt;Omitted Linux CPU/memory values now resolve to &lt;strong&gt;1 vCPU / 2 GiB&lt;/strong&gt;, down from 2 vCPUs / 4 GiB. This also affects existing inventories that omit these fields. To preserve the earlier defaults, set &lt;code&gt;vm_cpu: 2&lt;/code&gt; and &lt;code&gt;vm_mem: 4GiB&lt;/code&gt; under &lt;code&gt;all.vars&lt;/code&gt;, retain any per-host overrides, and inspect &lt;code&gt;barn plan&lt;/code&gt; before applying changes. Existing applied VMs keep their resources until a resource-changing operation is requested. Root and data-disk defaults remain 64 GiB and 128 GiB.&lt;/p&gt;</description></item><item><title>In-place root growth: recovery and native acceptance</title><link>https://barn.pgsty.com/v1.5/blog/design/root-disk-growth/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/root-disk-growth/</guid><description>&lt;p&gt;&lt;strong&gt;Status (2026-11-11):&lt;/strong&gt; The unreleased development build implements &lt;code&gt;barn resize -D&lt;/code&gt;, with ext4 and XFS acceptance on macOS/arm64 using QEMU/HVF guests. Released 1.1.0 still limits resize to CPU/memory. See &lt;a href="../vm-resource-overrides/"&gt;VM specification design&lt;/a&gt; for input precedence and &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/cli/#root-disk-growth"&gt;root growth&lt;/a&gt; for the command contract.&lt;/p&gt;&#10;&lt;h2 id="scope"&gt;Supported scope&#10;&lt;/h2&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-9bf3f4b0-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="2"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-9bf3f4b0-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn resize -D 128GiB meta&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nv"&gt;BARN_DISK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;128GiB barn resize meta&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;The target is an absolute root capacity. Growth is supported; shrinking is rejected. Repeating a completed target neither changes the image nor restarts the VM. CPU/memory changes may accompany growth; scale does not multiply disk size. Changes to images, architecture, data disks, networking, and shares still require explicit recreation.&lt;/p&gt;</description></item><item><title>VM specification parameters: commands, short flags, environment, and root disks</title><link>https://barn.pgsty.com/v1.5/blog/design/vm-resource-overrides/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/vm-resource-overrides/</guid><description>&lt;p&gt;Image, architecture, CPU, memory, scale, and root disk size form one set of &lt;strong&gt;VM specification inputs&lt;/strong&gt;, with consistent names, value rules, and source tracking. Each command declares which fields it accepts and which changes it can apply; the resolution process has one implementation.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Status (2026-11-11):&lt;/strong&gt; This approved design is implemented: six CLI/environment inputs, command integration, inventory generation, source tracking, &lt;code&gt;SPEC&lt;/code&gt; display, and in-place root growth. These changes remain unreleased. Working-tree inventories default to 1 vCPU / 2 GiB; released Barn 1.1.0 still defaults to 2 vCPU / 4 GiB.&lt;/p&gt;</description></item><item><title>Pigsty host setup: fixed names and CA trust</title><link>https://barn.pgsty.com/v1.5/blog/design/pigsty-host-setup/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/pigsty-host-setup/</guid><description>&lt;p&gt;&lt;strong&gt;Recommend one optional host setup operation: install a fixed set of Pigsty names and trust the lab&amp;rsquo;s public root CA certificate.&lt;/strong&gt; Keep one entry address, defaulting to &lt;code&gt;10.10.10.10&lt;/code&gt;, and reuse the same CA across ordinary lab rebuilds. With unchanged names, address and CA trust, setup is a no-op and needs no elevation. This gives the common lab a mostly one-time host integration step.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Status — 2026-11-11: proposal, not implemented.&lt;/strong&gt; This narrows the first delivery from the earlier &lt;a href="https://barn.pgsty.com/v1.5/blog/design/pigsty-host-dns/"&gt;full host-DNS design&lt;/a&gt;. General inventory extraction, dynamic node/PG/VIP publication, split DNS and a resident DNS service remain optional future work. Their implementation is not a prerequisite for this fixed profile. This review changed documentation only; it did not read a CA private key, install trust, modify system hosts or operate VMs.&lt;/p&gt;</description></item><item><title>macOS Commands</title><link>https://barn.pgsty.com/v1.5/docs/reference/commands/mac/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/commands/mac/</guid><description>&lt;p&gt;Syntax, options, and examples for every &lt;code&gt;barn mac&lt;/code&gt; subcommand. The machine model, networks, JSON results, and failure reasons these commands share are defined in the &lt;a href="../../mac/"&gt;Mac Runtime Reference&lt;/a&gt;; a guided first run is in &lt;a href="../../../start/macos/"&gt;macOS Virtual Machines&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="common-rules"&gt;Common rules&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Host.&lt;/strong&gt; The commands need an Apple Silicon Mac on macOS 27 or later with the matching &lt;code&gt;Barn.app&lt;/code&gt;, run as the logged-in desktop user (&lt;a href="../../../start/macos/#requirements"&gt;requirements&lt;/a&gt;). At most two macOS VMs run at a time per Mac; starting a third fails with &lt;code&gt;mac_vm_limit&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Machine names.&lt;/strong&gt; A command with an optional &lt;code&gt;[name]&lt;/code&gt; uses the only existing machine, or &lt;code&gt;mac1&lt;/code&gt;. With several machines and none named &lt;code&gt;mac1&lt;/code&gt;, pass a name. &lt;code&gt;configure&lt;/code&gt;, &lt;code&gt;recreate&lt;/code&gt;, and &lt;code&gt;destroy&lt;/code&gt; always need one. &lt;code&gt;start&lt;/code&gt; and &lt;code&gt;stop&lt;/code&gt; take several names or &lt;code&gt;--all&lt;/code&gt;, not both.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Sizes.&lt;/strong&gt; &lt;code&gt;--memory&lt;/code&gt; and &lt;code&gt;--disk&lt;/code&gt; are binary even when written &lt;code&gt;GB&lt;/code&gt;: &lt;code&gt;16G&lt;/code&gt;, &lt;code&gt;16GiB&lt;/code&gt;, and &lt;code&gt;16GB&lt;/code&gt; all mean 16 GiB, and a bare number is bytes. Linux inventory &lt;code&gt;GB&lt;/code&gt; is decimal.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Confirmation.&lt;/strong&gt; &lt;code&gt;recreate&lt;/code&gt; and &lt;code&gt;destroy&lt;/code&gt; print what they will delete and ask you to type the command name. &lt;code&gt;--yes&lt;/code&gt; or &lt;code&gt;--force&lt;/code&gt; skips the question and is required without a terminal; neither command has a &lt;code&gt;-y&lt;/code&gt; shorthand. Commands that download macOS from Apple (&lt;code&gt;up&lt;/code&gt;, &lt;code&gt;setup&lt;/code&gt;, &lt;code&gt;image update&lt;/code&gt;) ask first; &lt;code&gt;-y&lt;/code&gt;/&lt;code&gt;--yes&lt;/code&gt; skips that question and is required without a terminal.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;State.&lt;/strong&gt; Machines live under &lt;code&gt;$BARN_HOME/mac&lt;/code&gt;, separate from the Linux inventory. These commands ignore the Linux &lt;code&gt;BARN_IMAGE/BARN_ARCH/BARN_CPU/BARN_MEM/BARN_SCALE/BARN_DISK&lt;/code&gt; overrides.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Every option below has been available since 1.1.0.&lt;/p&gt;</description></item><item><title>Host Network Commands</title><link>https://barn.pgsty.com/v1.5/docs/reference/commands/network/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/commands/network/</guid><description>&lt;p&gt;Every Linux node gets two NICs: one reaches the Internet through QEMU&amp;rsquo;s built-in NAT, and one sits on a fixed &lt;code&gt;/24&lt;/code&gt; where the host and the other nodes reach it at the address your inventory names (&lt;a href="https://barn.pgsty.com/v1.5/blog/design/fixed-ip-two-nics/"&gt;why two NICs&lt;/a&gt;). These commands manage the host side of that second network, &lt;code&gt;socket_vmnet&lt;/code&gt; on macOS and the &lt;code&gt;barn0&lt;/code&gt; bridge on Linux. &lt;code&gt;barn setup&lt;/code&gt; and the first interactive &lt;code&gt;barn up&lt;/code&gt; install it for you (&lt;a href="../setup/#barn-setup"&gt;host preparation&lt;/a&gt;); use these commands to check, repair, reconfigure, or remove it.&lt;/p&gt;</description></item><item><title>Repository Commands</title><link>https://barn.pgsty.com/v1.5/docs/reference/commands/repo/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/commands/repo/</guid><description>&lt;p&gt;A static repository has a flat &lt;code&gt;images/&lt;/code&gt; directory and a generated &lt;code&gt;catalog.json&lt;/code&gt;. In 1.5.0, &lt;code&gt;barn repo build&lt;/code&gt; reads names, versions and architectures from filenames. Add &lt;code&gt;repo.yaml&lt;/code&gt; for aliases, channels, nonstandard names or different boot settings. &lt;a href="../../../start/images/#build-a-static-repository"&gt;Build a static repository&lt;/a&gt; · &lt;a href="../../images/#static-repository-format"&gt;Repository format&lt;/a&gt;&lt;/p&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-813a5959-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="3"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-813a5959-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn repo scan /srv/barn &lt;span class="c1"&gt;# inspect the files under images/&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn repo build /srv/barn &lt;span class="c1"&gt;# write catalog.json&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn repo verify /srv/barn &lt;span class="c1"&gt;# compare the catalog with the images and optional metadata&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;All three have been available since 1.1.0. Each takes one repository root and has no options beyond the &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/#global-options"&gt;global options&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Image Commands</title><link>https://barn.pgsty.com/v1.5/docs/reference/commands/image/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/commands/image/</guid><description>&lt;p&gt;Refresh signed catalogs, inspect or download images, import local files, and prune caches.&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;barn image update&lt;/code&gt; is available from 1.4.0. &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/#versions"&gt;Version baseline&lt;/a&gt; · &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/#global-options"&gt;Global options&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Official repositories and HTTP sources require a trusted detached signature. An explicitly selected custom HTTPS repository or local directory can be unsigned, provided the source is exactly that repository&amp;rsquo;s &lt;code&gt;catalog.json&lt;/code&gt;. Any supplied signature must verify. See &lt;a href="../../images/#trust-and-verification"&gt;catalog trust&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="barn-update"&gt;&lt;code&gt;barn update&lt;/code&gt;&#10;&lt;/h2&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-7f25fe65-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="text" data-td-line-count="1"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-7f25fe65-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn update [flags]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;Fetch &lt;code&gt;catalog.json&lt;/code&gt; and its signature when required by repository policy, verify trust and revision rules, then atomically activate the catalog. Ordinary commands read local metadata. A newly built local repository can be read directly before its first explicit update. Remote catalogs require an explicit refresh. This updates image metadata, not the Barn executable. Repository precedence is &lt;code&gt;--repo&lt;/code&gt; &amp;gt; &lt;code&gt;--mirror&lt;/code&gt; &amp;gt; &lt;code&gt;BARN_REPO&lt;/code&gt; &amp;gt; the global official repository. See &lt;a href="../../images/#runtime-policy"&gt;repository selection and trust&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Guest Access and Hosts</title><link>https://barn.pgsty.com/v1.5/docs/reference/commands/access/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/commands/access/</guid><description>&lt;p&gt;These commands reach running Linux guests from the host: &lt;code&gt;ssh&lt;/code&gt; and &lt;code&gt;exec&lt;/code&gt; run a shell or one command, &lt;code&gt;provision&lt;/code&gt; streams a script to several nodes, and &lt;code&gt;logs&lt;/code&gt; shows what a node printed. &lt;code&gt;ssh-config&lt;/code&gt; and &lt;code&gt;hosts&lt;/code&gt; publish node names so other host tools can reach the nodes too. Every command accepts the &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/#global-options"&gt;global options&lt;/a&gt;; &lt;strong&gt;Available in&lt;/strong&gt; shows availability from the 1.1.0 baseline onward (&lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/#versions"&gt;version baseline&lt;/a&gt;).&lt;/p&gt;&#10;&lt;h2 id="remote-commands"&gt;Remote commands and &lt;code&gt;--&lt;/code&gt;&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;barn ssh&lt;/code&gt; and &lt;code&gt;barn exec&lt;/code&gt; share one argument rule: Barn flags and at most one node name, then &lt;code&gt;--&lt;/code&gt;, then the remote command. They differ in what the guest receives:&lt;/p&gt;</description></item><item><title>Linux Lifecycle</title><link>https://barn.pgsty.com/v1.5/docs/reference/commands/lifecycle/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/commands/lifecycle/</guid><description>&lt;p&gt;These commands take a Linux lab from an inventory to running VMs, change it, and tear it down. The &lt;strong&gt;Available in&lt;/strong&gt; column of each option table names the release that introduced the option (&lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/#versions"&gt;version baseline&lt;/a&gt;).&lt;/p&gt;&#10;&lt;h2 id="choosing-a-command"&gt;Choosing a command&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table class="wide expand td-table--wide"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;You want to&lt;/th&gt;&#10; &lt;th scope="col"&gt;Run&lt;/th&gt;&#10; &lt;th scope="col"&gt;What happens to disks&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;See what a change would do&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;plan&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Nothing; read-only&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Create the lab, or bring it back after a stop or reboot&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;up&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Kept&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Boot, shut down, or reboot existing nodes as they are&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;start&lt;/code&gt;, &lt;code&gt;stop&lt;/code&gt;, &lt;code&gt;restart&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Kept&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Restart nodes and re-apply the inventory (stop, then &lt;code&gt;up&lt;/code&gt;)&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;reload&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Kept; nodes new in the inventory are created&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Change CPU or memory, or grow the root disk&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;resize&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Kept&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Change image, architecture, data disks, network, or shares&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;recreate&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Root and non-persistent data disks replaced&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Remove some nodes, or the whole lab but keep persistent data&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;destroy&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Deleted, except persistent data disks&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Start over from nothing&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;purge&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Everything deleted, persistent data disks included&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;The full retention rules are in &lt;a href="../../../start/storage/#what-survives-each-operation"&gt;What survives each operation&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Preparation and Utilities</title><link>https://barn.pgsty.com/v1.5/docs/reference/commands/setup/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/reference/commands/setup/</guid><description>&lt;p&gt;&lt;code&gt;barn setup&lt;/code&gt; prepares a host to run Linux VMs: it installs QEMU and UEFI firmware, creates the fixed-IP network the nodes share, and writes an inventory if you have none. This page also covers &lt;code&gt;init&lt;/code&gt;, &lt;code&gt;validate&lt;/code&gt;, &lt;code&gt;doctor&lt;/code&gt;, &lt;code&gt;version&lt;/code&gt;, and &lt;code&gt;completion&lt;/code&gt;. Every command accepts the &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/#global-options"&gt;global options&lt;/a&gt;; &lt;strong&gt;Available in&lt;/strong&gt; shows availability from the 1.1.0 baseline onward (&lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/#versions"&gt;version baseline&lt;/a&gt;).&lt;/p&gt;&#10;&lt;h2 id="barn-setup"&gt;&lt;code&gt;barn setup&lt;/code&gt;&#10;&lt;/h2&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-2fb81c00-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="text" data-td-line-count="1"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-2fb81c00-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn setup [meta|dual|trio|full] [flags]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;On a terminal, the first &lt;code&gt;barn up&lt;/code&gt; runs this preparation itself and asks once. Run &lt;code&gt;barn setup&lt;/code&gt; directly to preview the changes, to prepare a host from a script or CI job, or to get ready before the first &lt;code&gt;up&lt;/code&gt;. It creates no VMs and downloads no base images; &lt;a href="../lifecycle/#barn-up"&gt;&lt;code&gt;barn up&lt;/code&gt;&lt;/a&gt; does that.&lt;/p&gt;</description></item><item><title>Main and command reference review</title><link>https://barn.pgsty.com/v1.5/blog/design/main-reference-review/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/main-reference-review/</guid><description>&lt;p&gt;&lt;strong&gt;Reviewed on 2026-11-11.&lt;/strong&gt; Both repositories were on &lt;code&gt;main&lt;/code&gt;, but neither had a clean working tree or matched its fetched remote head. The source checks passed on the reviewed working tree. The documentation now has a &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/commands/"&gt;complete command reference&lt;/a&gt; with explicit stable, local-main, and uncommitted-feature labels.&lt;/p&gt;&#10;&lt;h2 id="git-state"&gt;Git and release state&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table class="wide expand td-table--wide"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Repository&lt;/th&gt;&#10; &lt;th scope="col"&gt;Local main&lt;/th&gt;&#10; &lt;th scope="col"&gt;Fetched origin/main&lt;/th&gt;&#10; &lt;th scope="col"&gt;State at review entry&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;pgsty/barn&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;6ab0cd5&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;b2cc8da&lt;/code&gt; (&lt;code&gt;v1.1.0&lt;/code&gt;)&lt;/td&gt;&#10; &lt;td&gt;Ahead 3; 11 tracked paths changed, plus &lt;code&gt;.idea/&lt;/code&gt;, &lt;code&gt;barn.yml&lt;/code&gt;, and &lt;code&gt;cmd/barn/hosts_inventory_test.go&lt;/code&gt; untracked&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;pgsty/barn.pgsty.com&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;bc7968a&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;d392cd5&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Ahead 3; four reference files modified and six design-article files untracked&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;GitHub&amp;rsquo;s latest regular release was &lt;a href="https://github.com/pgsty/barn/releases/tag/v1.1.0"&gt;v1.1.0&lt;/a&gt;, published on 2026-11-09. No v1.2.0 tag was present on the remote. The local 1.2.0 notes were marked as a draft.&lt;/p&gt;</description></item><item><title>Host DNS and domain resolution for Pigsty on Barn</title><link>https://barn.pgsty.com/v1.5/blog/design/pigsty-host-dns/</link><pubDate>Tue, 10 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/pigsty-host-dns/</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;&lt;strong&gt;Scope narrowed on 2026-11-11:&lt;/strong&gt; the first delivery is now &lt;a href="https://barn.pgsty.com/v1.5/blog/design/pigsty-host-setup/"&gt;fixed core names and Pigsty CA trust&lt;/a&gt;. This page retains the broader exporter and resolver research; its general inventory and split-DNS work is optional expansion, not a prerequisite for the fixed profile.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Recommend explicit, opt-in managed hosts publication first.&lt;/strong&gt; Pigsty computes the names and service targets; Barn previews and installs one neutral address/name snapshot through its existing helper. This is worthwhile for opening portals, addressing nodes and connecting to database or VIP names in a static Linux lab. Fixed addresses make repeated synchronization cheap: unchanged records need no privileged operation. &lt;strong&gt;Root is still required for every actual system hosts change, including removal.&lt;/strong&gt; Setup does not grant perpetual update permission, and a cached or passwordless sudo authorization eliminates a password prompt, not privilege. Keep per-command authorization; consider suffix forwarding when a stable guest DNS endpoint and a complete namespace exist. A host daemon needs demonstrated demand beyond these two options.&lt;/p&gt;</description></item><item><title>Replacing Vagrant with Barn in Pigsty: resources, names, and migration work</title><link>https://barn.pgsty.com/v1.5/blog/design/pigsty-barn-migration/</link><pubDate>Tue, 10 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/pigsty-barn-migration/</guid><description>&lt;p&gt;Pigsty can use one inventory for Barn and Ansible. The migration needs to preserve topology selection, image matrices, resource scaling, fixed addresses, and SSH workflows while replacing the old scripts&amp;rsquo; implicit addressing, naming, and destruction behavior.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Status (2026-11-10):&lt;/strong&gt; &lt;code&gt;vm_scale&lt;/code&gt;, the 1-vCPU / 2-GiB defaults, &lt;code&gt;vm_hosts&lt;/code&gt;, &lt;code&gt;barn hosts install -f&lt;/code&gt;, and Pigsty&amp;rsquo;s &lt;code&gt;bin/sandbox-dns&lt;/code&gt; are implemented in the local working trees and have passed the offline checks below. They are unreleased. Pigsty&amp;rsquo;s Makefile still uses Vagrant; the second half of this article describes the remaining work. Released Barn 1.1.0 actually defaults to 2 vCPU / 4 GiB when parsing an inventory and does not support these additions.&lt;/p&gt;</description></item><item><title>Barn 1.1.0 Local Acceptance</title><link>https://barn.pgsty.com/v1.5/docs/about/local-acceptance-1.1.0/</link><pubDate>Mon, 09 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/docs/about/local-acceptance-1.1.0/</guid><description>&lt;p&gt;This run starts with the installed Barn 1.0.0, installs the public 1.1.0 Homebrew formula, checks upgrade and everyday workflows, then rebuilds the test environment. &lt;strong&gt;The script was written before execution. This run has ended: core checks passed, one recovery gap was found, and clipboard/privileged-host checks remain incomplete.&lt;/strong&gt; The owner authorized deletion of existing local Barn VMs.&lt;/p&gt;&#10;&lt;h2 id="environment"&gt;Environment and evidence&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Host: macOS 27.0.1, Apple Silicon, 18 logical CPUs, 128 GiB RAM; QEMU 11.1.3.&lt;/li&gt;&#10;&lt;li&gt;Initial state: eight running Linux VMs and one running macOS VM named &lt;code&gt;mac1&lt;/code&gt;; the normal executable is &lt;code&gt;/opt/homebrew/bin/barn&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;Upgrade target: public tag &lt;code&gt;v1.1.0&lt;/code&gt;, commit &lt;code&gt;b2cc8da8983e710255d504bf26bf5d7b3f182790&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;Recordings, raw output, assertions, and executable scripts live in a separate acceptance directory outside Git. Each stage produces an asciicast v2 recording with original timing and a viewing copy with shortened waits.&lt;/li&gt;&#10;&lt;li&gt;Linux checks use the actual user&amp;rsquo;s &lt;code&gt;~/.barn&lt;/code&gt;. Detailed native Mac checks reuse &lt;code&gt;tests/mac-live-acceptance.py&lt;/code&gt; with a dedicated test root and an APFS clone of the prepared base; final checks cover the normal user path.&lt;/li&gt;&#10;&lt;li&gt;Terminal recordings capture output without keyboard input, passwords, or private SSH keys. Desktop checks use native application controls; the screenshot is in the acceptance chat. Clipboard status is recorded below.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="sequence"&gt;Execution order&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table class="wide expand td-table--wide"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Stage&lt;/th&gt;&#10; &lt;th scope="col"&gt;Operations&lt;/th&gt;&#10; &lt;th scope="col"&gt;Pass condition&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;U01 Upgrade baseline&lt;/td&gt;&#10; &lt;td&gt;Record the old version, node identities, public SSH fingerprints, and data sentinels; stop Linux and Mac VMs&lt;/td&gt;&#10; &lt;td&gt;Reviewable baseline; every target stops cleanly&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;U02 Local installation&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;brew upgrade pgsty/infra/barn&lt;/code&gt;; check version, helper, signatures, notarization, and &lt;code&gt;brew test&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Normal PATH resolves to public 1.1.0; CLI, helper, and App match&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;U03 Upgrade recovery&lt;/td&gt;&#10; &lt;td&gt;Start existing VMs and compare identities, data, and SSH; then remove old VMs&lt;/td&gt;&#10; &lt;td&gt;Upgrade preserves identities and data; explicit disposal succeeds&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;L01 First run&lt;/td&gt;&#10; &lt;td&gt;Run &lt;code&gt;barn up&lt;/code&gt; from an empty directory; check generated inventory, confirmation, progress, and SSH&lt;/td&gt;&#10; &lt;td&gt;Default native Ubuntu 24.04 guest becomes ready&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;L02 Inventory and catalog&lt;/td&gt;&#10; &lt;td&gt;Four templates; valid/invalid YAML; &lt;code&gt;-I/-A&lt;/code&gt; and aliases; both signed official repositories; metadata and cache&lt;/td&gt;&#10; &lt;td&gt;Valid input resolves consistently; failures have correct classification and exit codes; overrides leave inventory unchanged&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;L03 Two nodes and storage&lt;/td&gt;&#10; &lt;td&gt;Ubuntu/Debian pair; persistent ext4, temporary data, XFS, space/Unicode paths, read-only and writable 9p shares&lt;/td&gt;&#10; &lt;td&gt;Filesystem types, permissions, and bidirectional reads/writes match the inventory&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;L04 Network and access&lt;/td&gt;&#10; &lt;td&gt;Fixed IPs, control-node SSH to its peer, DNS/HTTPS, SSH config, exec argument boundaries and remote exit codes&lt;/td&gt;&#10; &lt;td&gt;Correct addresses, targets, output streams, and exits&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;L05 Lifecycle&lt;/td&gt;&#10; &lt;td&gt;Repeated up, selected stop/start/restart, CPU/memory increase/decrease, reload, selected recreation&lt;/td&gt;&#10; &lt;td&gt;Idempotent calls retain PIDs; resources change in the guest; peers and persistent data remain intact&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;L06 Failures and deletion&lt;/td&gt;&#10; &lt;td&gt;Omitted nodes, missing share paths, interrupted guest process recovery, provision success/failure/timeout, purge cancellation&lt;/td&gt;&#10; &lt;td&gt;No implicit deletion; actionable failures; retries recover; cancellation preserves state&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;L07 Retention&lt;/td&gt;&#10; &lt;td&gt;Recreate, selected and whole destroy, create again, purge&lt;/td&gt;&#10; &lt;td&gt;Root/temporary data resets; persistent data follows each command&amp;rsquo;s retention rules&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;L08 Image matrix&lt;/td&gt;&#10; &lt;td&gt;Eight supported arm64 image families and Debian amd64 under TCG&lt;/td&gt;&#10; &lt;td&gt;SSH, architecture, OS identity, and data disk work; el8 arm64 uses expected TCG&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;M01 Multiple Macs and identity&lt;/td&gt;&#10; &lt;td&gt;Automated two-VM checks, independent identities and disks, immutable shared base&lt;/td&gt;&#10; &lt;td&gt;Identities differ; cloning and lifecycle operations preserve the base&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;M02 Mac networks and shares&lt;/td&gt;&#10; &lt;td&gt;Separate subnets, host access, guest isolation, DNS/HTTPS, VirtioFS, remote arguments&lt;/td&gt;&#10; &lt;td&gt;Network and sharing behavior matches the reference&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;M03 Mac lifecycle&lt;/td&gt;&#10; &lt;td&gt;Stop/start, resource configuration, third-running-VM limit, recreate identity rotation, selected destruction&lt;/td&gt;&#10; &lt;td&gt;Identity retention/rotation matches the operation; the peer remains intact&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;M04 Desktop and clipboard&lt;/td&gt;&#10; &lt;td&gt;Open desktop, verify login, copy text both ways, close the window, check SSH&lt;/td&gt;&#10; &lt;td&gt;Usable desktop; exact text transfer; window closure keeps the VM running&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;F01 Final state&lt;/td&gt;&#10; &lt;td&gt;Remove dedicated test VMs; check normal installation, state, diagnostics, and SSH config; index recordings&lt;/td&gt;&#10; &lt;td&gt;No leftover test processes; every result has output or visual evidence&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;h2 id="criteria"&gt;Assertions and retries&#10;&lt;/h2&gt;&#10;&lt;p&gt;Every command records arguments, exit status, duration, and raw output. Failed assertions preserve the environment. Script corrections create separate retry records; product defects are recorded independently. Failed footage remains available. Only viewing copies shorten waits.&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>Running Barn from Windows</title><link>https://barn.pgsty.com/v1.5/blog/design/windows-host-boundary/</link><pubDate>Sun, 08 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/windows-host-boundary/</guid><description>&lt;p&gt;Barn&amp;rsquo;s current host profiles and release binaries cover macOS and Linux on &lt;code&gt;amd64&lt;/code&gt; and &lt;code&gt;arm64&lt;/code&gt;. There is no native Windows Barn release. A Windows user can operate Barn through a Linux host; WSL2 and a nested Linux VM are candidates for bringing that host onto the Windows machine.&lt;/p&gt;&#10;&lt;p&gt;This assessment was reviewed on &lt;strong&gt;2026-11-08&lt;/strong&gt;. The WSL2 and Hyper-V paths below still require a complete Barn lifecycle test before they can become supported installation guides. The current platform contract is in &lt;a href="https://barn.pgsty.com/v1.5/docs/about/status/"&gt;platforms and limits&lt;/a&gt; and &lt;a href="https://github.com/pgsty/barn/blob/main/internal/platform/platform.go"&gt;&lt;code&gt;internal/platform&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>What Barn Can Learn from Vagrant</title><link>https://barn.pgsty.com/v1.5/blog/design/vagrant-workflow-boundary/</link><pubDate>Sun, 08 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/vagrant-workflow-boundary/</guid><description>&lt;p&gt;Barn already creates multi-node Linux labs from Pigsty-compatible inventories, manages their lifecycle, and exposes SSH and structured output. The useful lessons from Vagrant concern what happens between creating a VM and repeating an experiment: run setup steps, move source and build artifacts, record the environment, and return to a known state.&lt;/p&gt;&#10;&lt;p&gt;This is a design proposal based on the Barn source reviewed on &lt;strong&gt;2026-11-08&lt;/strong&gt;. The priorities below are candidates for implementation, with no assigned release or delivery date. Current commands are documented in the &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/cli/"&gt;CLI reference&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>Evolving the CLI Without Breaking Its Contracts</title><link>https://barn.pgsty.com/v1.5/blog/design/cli-contracts/</link><pubDate>Wed, 04 Nov 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/cli-contracts/</guid><description>&lt;p&gt;Barn already uses Cobra. The useful part of the 2026-11-04 CLI proposal is its separation of command syntax, application orchestration, and observable behavior. This essay retains that design, checked against &lt;code&gt;v1.1.0&lt;/code&gt; on 2026-11-09. The package split and broader command reorganization remain proposals; current usage belongs in the &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/cli/"&gt;CLI reference&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="existing-boundaries"&gt;Keep the existing boundaries&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;cmd/barn/command_*.go&lt;/code&gt; defines the command families. Each execution constructs a fresh Cobra tree, avoiding flag values leaking between calls. Command handlers collect a &lt;code&gt;commandOutcome&lt;/code&gt;; a shared renderer handles text or structured results, while typed failures retain their exit code, reason, recovery hint, and any partial result. Linux lifecycle, image verification, and native Mac behavior remain in their domain packages.&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>Barn 0.9.2: signed Barn.app and explicit SSH/exec arguments</title><link>https://barn.pgsty.com/v1.5/release/0.9.2/</link><pubDate>Fri, 30 Oct 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.9.2/</guid><description>&lt;p&gt;&lt;strong&gt;Released on 2026-10-30.&lt;/strong&gt; GitHub marks 0.9.2 as a pre-release.&lt;/p&gt;&#10;&lt;p&gt;Barn 0.9.2 includes the complete native macOS guest runtime in the Apple Silicon download and Homebrew installation. You can create Linux and macOS VMs after installing a single package, without installing Go or Xcode.&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.2"&gt;Download 0.9.2&lt;/a&gt; · &lt;a href="https://github.com/pgsty/barn/blob/v0.9.2/.github/releases/0.9.2.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;The Darwin arm64 archive contains &lt;code&gt;barn&lt;/code&gt;, &lt;code&gt;barn-hosts-helper&lt;/code&gt;, and &lt;code&gt;Barn.app&lt;/code&gt; from the same source commit. All three executables use Developer ID signatures and are submitted together for Apple notarization; the app carries a stapled ticket and passes Gatekeeper assessment.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;brew install pgsty/infra/barn&lt;/code&gt; installs the CLI, QEMU, helper, and native app. The CLI discovers the app under Homebrew&amp;rsquo;s &lt;code&gt;libexec&lt;/code&gt;. macOS guests require Apple Silicon, macOS 27+, and a logged-in desktop session.&lt;/li&gt;&#10;&lt;li&gt;The helper is signed before its final SHA-256 is embedded in the CLI. Packaging checks the pair again after attaching the native payload to the release archive.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;ssh&lt;/code&gt;, &lt;code&gt;exec&lt;/code&gt;, &lt;code&gt;mac ssh&lt;/code&gt;, and &lt;code&gt;mac exec&lt;/code&gt; require &lt;code&gt;--&lt;/code&gt; before remote commands. SSH passes a command line to the guest shell; exec preserves individual arguments. Use &lt;code&gt;sh -c&lt;/code&gt; with exec for pipelines or redirection.&lt;/li&gt;&#10;&lt;li&gt;Linux arm64/amd64 and Intel macOS continue to ship the CLI and helper for QEMU Linux guests.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="install-and-use"&gt;Install and use&#10;&lt;/h2&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-33a963aa-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="13"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-33a963aa-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;brew install pgsty/infra/barn&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn version&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# Linux guest&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn up&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn ssh&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn &lt;span class="nb"&gt;exec&lt;/span&gt; meta -- uname -a&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;# macOS guest on Apple Silicon / macOS 27+&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn mac doctor&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn mac up mac1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn mac open mac1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;barn mac ssh mac1&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;The first macOS VM downloads Apple&amp;rsquo;s restore image and prepares a reusable base installation. Supply an existing compatible IPSW with &lt;code&gt;barn mac setup --ipsw PATH&lt;/code&gt; to use a local restore image.&lt;/p&gt;</description></item><item><title>Barn 0.9.1: Go 1.27.3 toolchain and Barn.app rename</title><link>https://barn.pgsty.com/v1.5/release/0.9.1/</link><pubDate>Thu, 22 Oct 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.9.1/</guid><description>&lt;p&gt;&lt;strong&gt;Released on 2026-10-22.&lt;/strong&gt; GitHub marks 0.9.1 as a pre-release. The signed and notarized &lt;code&gt;Barn.app&lt;/code&gt; first shipped in the Apple Silicon archive and Homebrew installation in &lt;a href="../0.9.2/"&gt;0.9.2&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Barn 0.9.1 updates the Go toolchain and dependencies and completes the native Mac app rename to &lt;strong&gt;Barn.app&lt;/strong&gt;. CLI commands, inventory format, image catalog, and existing VM state paths remain compatible with 0.9.0.&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.1"&gt;Download 0.9.1&lt;/a&gt; · &lt;a href="https://barn.pgsty.com/v1.5/docs/about/history/#release-0-9-1"&gt;Validation history&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;Go 1.27.3&lt;/strong&gt; is the baseline for source builds, CI, and release artifacts. All modules required by &lt;code&gt;go.mod&lt;/code&gt;—including indirect and dependency-test modules—are updated to their latest stable versions as of 2026-10-22, including &lt;code&gt;golang.org/x/crypto&lt;/code&gt; v0.58.0, &lt;code&gt;x/net&lt;/code&gt; v0.61.0, &lt;code&gt;x/sys&lt;/code&gt; v0.49.0, &lt;code&gt;x/term&lt;/code&gt; v0.47.0, and &lt;code&gt;x/text&lt;/code&gt; v0.43.0.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Barn.app&lt;/strong&gt; replaces the &lt;code&gt;Barn Mac.app&lt;/code&gt; bundle name, using bundle identifier &lt;code&gt;com.pgsty.barn&lt;/code&gt; and updated Barn menu labels. The 0.9.1 CLI continues to discover older &lt;code&gt;Barn Mac.app&lt;/code&gt; bundles if present. Native protocol version 2 and &lt;code&gt;~/.barn/mac&lt;/code&gt; are unchanged.&lt;/li&gt;&#10;&lt;li&gt;The standalone Mac runner uses hardened-runtime signing and requests a secure timestamp when signing with a Developer ID certificate. Payload validation checks the app bundle name, identifier, and executable alongside its version, commit, and content digests. Both the installer and Homebrew template use the new app path.&lt;/li&gt;&#10;&lt;li&gt;Build and verification tools are updated to GoReleaser 2.18.3 (with bundled nFPM 2.47.0), standalone nFPM 2.48.0, Syft 1.55.0, Staticcheck 2026.2.2, deadcode 0.52.0, golangci-lint 2.15.0, and govulncheck 1.9.0. GitHub Actions remain pinned by commit, and dependency-license inventories match the updated modules and toolchain.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="upgrade"&gt;Upgrade&#10;&lt;/h2&gt;&#10;&lt;p&gt;Pin &lt;strong&gt;0.9.1&lt;/strong&gt; explicitly when running the download installer, or upgrade via the Homebrew formula or Linux package manager (see the &lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/"&gt;installation guide&lt;/a&gt;).&lt;/p&gt;</description></item><item><title>Barn 0.9.0: native macOS guests and smoother Linux recovery</title><link>https://barn.pgsty.com/v1.5/release/0.9.0/</link><pubDate>Wed, 30 Sep 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.9.0/</guid><description>&lt;p&gt;&lt;strong&gt;Released on 2026-09-30.&lt;/strong&gt; Barn 0.9.0 manages both Linux labs and native macOS machines from a single CLI, while improving diagnostics and recovery after interrupted 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.0"&gt;Download 0.9.0 assets&lt;/a&gt; · &lt;a href="https://github.com/pgsty/barn/blob/v0.9.0/CHANGELOG.md"&gt;Full changelog&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="macos-machines-on-apple-silicon"&gt;macOS machines on Apple Silicon&#10;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;barn mac&lt;/code&gt; creates named macOS 27 virtual machines with a native desktop window, SSH, shared folders, and text clipboard sharing. The first machine installs a shared golden base from Apple&amp;rsquo;s verified restore image, and subsequent machines clone that base with APFS copy-on-write—each getting its own writable disks, credentials, and private subnet.&lt;/p&gt;</description></item><item><title>The Lifetime of a Native Mac VM</title><link>https://barn.pgsty.com/v1.5/blog/design/native-mac-lifecycle/</link><pubDate>Tue, 29 Sep 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/native-mac-lifecycle/</guid><description>&lt;p&gt;&lt;code&gt;barn mac&lt;/code&gt; manages named macOS VMs through Apple&amp;rsquo;s &lt;code&gt;Virtualization.framework&lt;/code&gt;, independently of the Linux inventory. Introduced in &lt;code&gt;0.9.0&lt;/code&gt;, it uses the native host app &lt;code&gt;Barn.app&lt;/code&gt;, included in Apple Silicon release archives since &lt;code&gt;0.9.2&lt;/code&gt;. This essay distills the named-machine implementation record and earlier Mac reviews, with the current implementation checked on 2026-11-08. Dated evidence is summarized in the &lt;a href="https://barn.pgsty.com/v1.5/docs/about/history/#mac-native-record"&gt;validation history&lt;/a&gt;; commands and defaults are in the &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/mac/"&gt;Mac reference&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="network-ownership"&gt;A machine owns its network&#10;&lt;/h2&gt;&#10;&lt;p&gt;The early design had two fixed slots and a privileged network helper. The 2026-09-29 redesign replaced that model with named machines and a private &lt;code&gt;/24&lt;/code&gt; NAT network created inside each runner process. The guest receives &lt;code&gt;.10&lt;/code&gt; on its own subnet. Two is the simultaneous-running limit, shared with other macOS virtualization tools and restore installation; stored machines are not restricted to two fixed names.&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.7.0: simpler test labs and automatic recovery</title><link>https://barn.pgsty.com/v1.5/release/0.7.0/</link><pubDate>Thu, 17 Sep 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.7.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.7.0/.github/releases/0.7.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.7.0 streamlines first-run startup and recovery for local test labs: re-running &lt;code&gt;farrow up&lt;/code&gt; finishes interrupted work, retries guest bootstrap stages, and updates guest helper scripts in place without restarting running VMs.&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;Shorter first run.&lt;/strong&gt; Interactive &lt;code&gt;up&lt;/code&gt; can generate the default inventory, install missing host tools, and bring an intact inactive Farrow network back online. Fast checks stay quiet while longer tasks display progress and a compact summary.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Independent guest stages.&lt;/strong&gt; Data disks, host shares, guest hostnames, node-to-node SSH, and private networking initialize independently. If an optional stage fails, Farrow reports the specific limitation while keeping management SSH available, and subsequent &lt;code&gt;up&lt;/code&gt; runs skip stages that are already healthy.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Automatic test-disk recovery.&lt;/strong&gt; Healthy filesystems are mounted as-is; unrecognized or confirmed-corrupt filesystems on test data disks are reformatted and remounted with an explicit data-loss notice. Transient probe failures, missing devices, busy mounts, and host I/O errors never trigger formatting.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Fewer manual fixes.&lt;/strong&gt; Unwritable host shares fall back to read-only and recover on the next &lt;code&gt;up&lt;/code&gt; once permissions are fixed. Occupied automatic SSH forward ports are reassigned for stopped guests. Interrupted image downloads resume automatically and fail over across official repositories while enforcing SHA-256 digest verification.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Clean output and backward-compatible state.&lt;/strong&gt; Guest warnings are stored in a disposable cache outside the schema-2 VM documents and node directories, so older Farrow binaries can still inspect and manage the deployment.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="upgrade-notes"&gt;Upgrade notes&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Re-running &lt;code&gt;up&lt;/code&gt; performs guest recovery (there is no separate &lt;code&gt;repair&lt;/code&gt; command), whereas &lt;code&gt;start&lt;/code&gt; powers on existing nodes without applying inventory changes. Passing &lt;code&gt;--no-wait&lt;/code&gt; skips readiness and recovery checks. See the &lt;a href="https://barn.pgsty.com/v1.5/docs/start/storage/"&gt;storage guide&lt;/a&gt; for data-disk recovery rules.&lt;/li&gt;&#10;&lt;li&gt;A guest with working management SSH and optional stage warnings returns exit code &lt;code&gt;0&lt;/code&gt;. Automation that requires every optional feature should inspect &lt;code&gt;nodes[].warnings&lt;/code&gt; and &lt;code&gt;nodes[].repairs&lt;/code&gt; in &lt;code&gt;--json&lt;/code&gt; or &lt;code&gt;--yaml&lt;/code&gt; output.&lt;/li&gt;&#10;&lt;li&gt;If an earlier 0.6.0 bootstrap failed after deleting the staged control-node private key, &lt;code&gt;up&lt;/code&gt; restores management SSH and reports a &lt;code&gt;control-ssh&lt;/code&gt; warning; run &lt;code&gt;farrow plan&lt;/code&gt; and &lt;code&gt;farrow recreate&lt;/code&gt; on the control node if it needs peer-to-peer SSH.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="install-or-upgrade"&gt;Upgrades and historical packages&#10;&lt;/h2&gt;&#10;&lt;p&gt;The release shipped macOS and Linux (&lt;code&gt;amd64&lt;/code&gt;/&lt;code&gt;arm64&lt;/code&gt;) archives, Linux DEB/RPM packages, the installer script, checksums, SBOMs, and a Homebrew formula.&lt;/p&gt;</description></item><item><title>Farrow 0.6.0: Ubuntu 24.04 and smoother local labs</title><link>https://barn.pgsty.com/v1.5/release/0.6.0/</link><pubDate>Sat, 05 Sep 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.6.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.6.0/.github/releases/0.6.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.6.0 makes Ubuntu 24.04 the default guest image and improves planning, startup, scale-out, and node recreation for local Pigsty labs.&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;Ubuntu 24.04 by default.&lt;/strong&gt; New inventories and the embedded catalog default to &lt;code&gt;u24:stable&lt;/code&gt;. Catalog revision &lt;code&gt;2026090501&lt;/code&gt; also bundles the normalized Debian 12/13 and Rocky Linux 8/9 image updates published in the official repositories.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Run &lt;code&gt;plan&lt;/code&gt; before host setup.&lt;/strong&gt; &lt;code&gt;farrow plan&lt;/code&gt; resolves catalog images without requiring QEMU or host networking to be installed first (registered &lt;code&gt;local-*&lt;/code&gt; images still use &lt;code&gt;qemu-img&lt;/code&gt; cache inspection). Plans display exact image versions, aggregate CPU/memory/disk totals, pending node starts, modified fields, and disk actions, while preserving custom &lt;code&gt;-f&lt;/code&gt; inventory paths in suggested next commands.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Clearer status and error reporting.&lt;/strong&gt; &lt;code&gt;farrow status&lt;/code&gt; includes image, CPU, and memory columns, and a damaged state file on one node no longer hides healthy peers—corrupt state errors name the exact file and cause. Image digest mismatches return exit code &lt;code&gt;7&lt;/code&gt;, SSH exit code &lt;code&gt;255&lt;/code&gt; passes through unchanged, and &lt;code&gt;--no-wait&lt;/code&gt; explicitly notes that readiness checks were skipped.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Preflight checks before disruption.&lt;/strong&gt; Targeted &lt;code&gt;recreate&lt;/code&gt; detects conflicting peer changes before deleting any disks, and &lt;code&gt;reload&lt;/code&gt; validates startup dependencies before stopping running guests. &lt;code&gt;stop&lt;/code&gt;, &lt;code&gt;destroy&lt;/code&gt;, and runtime cleanup update deployment state consistently under the deployment lock.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Automatic guest &lt;code&gt;/etc/hosts&lt;/code&gt; and SSH updates.&lt;/strong&gt; Starting or removing nodes refreshes Farrow-managed &lt;code&gt;/etc/hosts&lt;/code&gt; blocks and control-node SSH configuration inside running guests, so recreated peers remain reachable without manually pruning guest &lt;code&gt;known_hosts&lt;/code&gt;. User-authored SSH config entries and global option scopes remain intact.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Cleaner CLI parsing.&lt;/strong&gt; Custom &lt;code&gt;init&lt;/code&gt; output paths print matching follow-up commands, output flags no longer swallow adjacent option values, malformed integer sizes and multi-document YAML files are rejected rather than truncated, and &lt;code&gt;ALL_PROXY&lt;/code&gt;/&lt;code&gt;all_proxy&lt;/code&gt; acts as a fallback behind scheme-specific proxy variables and &lt;code&gt;NO_PROXY&lt;/code&gt;.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="upgrade-notes"&gt;Upgrade notes&#10;&lt;/h2&gt;&#10;&lt;p&gt;Upgrading Farrow leaves existing VM disks and explicit &lt;code&gt;vm_image&lt;/code&gt; settings untouched. If an older inventory relied on the implicit Debian 13 default, add &lt;code&gt;vm_image: d13&lt;/code&gt; under &lt;code&gt;all.vars&lt;/code&gt; before running &lt;code&gt;farrow up&lt;/code&gt; with 0.6.0. Always inspect &lt;code&gt;farrow plan&lt;/code&gt; before applying changes.&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>Farrow 0.3.0: explicit catalogs and actionable readiness</title><link>https://barn.pgsty.com/v1.5/release/0.3.0/</link><pubDate>Wed, 02 Sep 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.3.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.3.0/.github/releases/0.3.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.3.0 replaces implicit catalog refreshes with explicit update commands, reports guest bootstrap failures per node, and streamlines the CLI surface while keeping the Pigsty inventory and fixed-IP deployment model.&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;Explicit catalog updates.&lt;/strong&gt; &lt;code&gt;up&lt;/code&gt;, &lt;code&gt;plan&lt;/code&gt;, and standard &lt;code&gt;image&lt;/code&gt; commands read the active local catalog snapshot without fetching remote metadata behind the scenes. Run &lt;code&gt;farrow update&lt;/code&gt; to fetch the latest signed catalog from the configured repository, or &lt;code&gt;farrow image sync&lt;/code&gt; to activate a specific URL or local file.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Per-node bootstrap diagnostics.&lt;/strong&gt; Guest initialization records the active bootstrap stage atomically. Partial failures list each failed node, stage, and error message, and readiness timeouts point directly to &lt;code&gt;farrow logs &amp;lt;node&amp;gt;&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;In-place readiness rechecks.&lt;/strong&gt; Running guests can re-run readiness verification without restarting QEMU, and partial lifecycle runs still regenerate the host SSH client config for all committed nodes.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Native guest interface names.&lt;/strong&gt; Netplan matches NICs by deterministic MAC address without renaming guest network interfaces, and &lt;code&gt;vm_disks[].fs: auto&lt;/code&gt; prefers XFS with automatic fallback to ext4.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Streamlined CLI.&lt;/strong&gt; The redundant &lt;code&gt;ss&lt;/code&gt; command and ambiguous root/flag shorthands are removed, and &lt;code&gt;farrow image reset&lt;/code&gt; replaces &lt;code&gt;reset-manifest&lt;/code&gt; (kept as an alias).&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="validation"&gt;Validation&#10;&lt;/h2&gt;&#10;&lt;p&gt;Source commit &lt;code&gt;da6d02426da93c677c94c67fec4eb4fcecf4766a&lt;/code&gt; passed the full local source gate and a complete GoReleaser snapshot—covering unit and race tests, &lt;code&gt;go vet&lt;/code&gt;, Staticcheck, &lt;code&gt;govulncheck&lt;/code&gt;, four-target cross-builds, image-pipeline and installer checks, archive/package parity, dependency licenses, SBOMs, and Linux package verification—and the tag workflow repeated these gates before publication. Dated macOS &lt;code&gt;arm64&lt;/code&gt;/HVF and Ubuntu &lt;code&gt;amd64&lt;/code&gt;/KVM acceptance records are listed in the &lt;a href="https://barn.pgsty.com/v1.5/docs/about/history/"&gt;validation history&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Farrow 0.4.0: one command, working data disks, one voice</title><link>https://barn.pgsty.com/v1.5/release/0.4.0/</link><pubDate>Wed, 02 Sep 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.4.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.4.0/.github/releases/0.4.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.4.0 turns the first run into a single command, makes default data disks work out of the box on Debian and Ubuntu images, and unifies output formatting across all CLI commands while keeping the Pigsty inventory format, fixed-IP deployment model, state layout, and embedded catalog revision &lt;code&gt;2026082903&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Farrow 0.2.0: selected convergence and release integrity</title><link>https://barn.pgsty.com/v1.5/release/0.2.0/</link><pubDate>Tue, 01 Sep 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.2.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.2.0/.github/releases/0.2.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.2.0 keeps the Pigsty inventory and on-disk deployment format introduced in 0.1.0 while fixing VPN route preflight false positives and selected-node convergence issues uncovered during native host testing.&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;VPN-aware route preflight.&lt;/strong&gt; Broad VPN exclusion routes such as &lt;code&gt;10.0.0.0/8&lt;/code&gt; no longer block Farrow&amp;rsquo;s more specific &lt;code&gt;10.10.10.0/24&lt;/code&gt; lab subnet. Equal or more-specific foreign routes, overlapping interfaces, occupied IP addresses, or a missing Farrow route still fail preflight before any VM starts.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;True selected-node scale-out.&lt;/strong&gt; &lt;code&gt;farrow up &amp;lt;node&amp;gt;&lt;/code&gt; downloads images and prepares disks only for the targeted node. Uncreated inventory peers appear as &lt;code&gt;absent&lt;/code&gt;, and SSH config, &lt;code&gt;/etc/hosts&lt;/code&gt;, guest provisioning, UUID/port allocation, lifecycle commands, and persistent-disk checks operate strictly on the committed node set while leaving the full inventory intact for later expansion.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Updated &lt;code&gt;/etc/hosts&lt;/code&gt; ownership markers.&lt;/strong&gt; Newly provisioned guests write &lt;code&gt;# farrow-deployment-host&lt;/code&gt; and clean up both that marker and the 0.1.0 &lt;code&gt;# farrow-project-host&lt;/code&gt; marker when refreshing host entries.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Operational polish.&lt;/strong&gt; Includes graceful command cancellation, structured JSON/YAML output, interactive confirmations, &lt;code&gt;farrow reload&lt;/code&gt;, diagnostic redaction, and a trimmed Go dependency graph.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="native-and-release-evidence"&gt;Native and release evidence&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;macOS &lt;code&gt;arm64&lt;/code&gt;/HVF (with MonoProxy active)&lt;/strong&gt;: verified selected &lt;code&gt;u24-1&lt;/code&gt; creation, SSH, &lt;code&gt;stop&lt;/code&gt;/&lt;code&gt;start&lt;/code&gt;, incremental cached &lt;code&gt;el9-1&lt;/code&gt; scale-out, two-node lateral SSH alongside five &lt;code&gt;absent&lt;/code&gt; peers, and full deployment &lt;code&gt;destroy&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Ubuntu 26.04 &lt;code&gt;amd64&lt;/code&gt;/KVM&lt;/strong&gt;: verified read-only inspection and control-node SSH against an existing four-node deployment.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;CI and packaging&lt;/strong&gt;: passed local &lt;code&gt;make check&lt;/code&gt;, source CI, and the release packaging workflow, producing four platform archives, &lt;code&gt;amd64&lt;/code&gt;/&lt;code&gt;arm64&lt;/code&gt; DEB and RPM packages, SPDX SBOMs, a Homebrew formula, &lt;code&gt;install.sh&lt;/code&gt;, SHA-256 checksums, and release metadata.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Image catalog&lt;/strong&gt;: embeds signed catalog revision &lt;code&gt;2026082903&lt;/code&gt; (9 families, 27 architecture artifacts), with &lt;code&gt;https://repo.pigsty.cc/farrow&lt;/code&gt; as the default repository in 0.2.0 and &lt;code&gt;https://repo.pgsty.com/farrow&lt;/code&gt; verified as an alternate endpoint.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="install-or-upgrade"&gt;Upgrades and historical packages&#10;&lt;/h2&gt;&#10;&lt;p&gt;0.1.0 deployment state remains directly readable; running &lt;code&gt;farrow status&lt;/code&gt; while existing VMs are up records any missing process birth timestamps, and existing guests adopt the new &lt;code&gt;/etc/hosts&lt;/code&gt; marker the next time they are recreated.&lt;/p&gt;</description></item><item><title>Farrow 0.1.0</title><link>https://barn.pgsty.com/v1.5/release/0.1.0/</link><pubDate>Sun, 30 Aug 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.1.0/</guid><description>&lt;p&gt;The first public prerelease was tagged &lt;code&gt;v0.1.0&lt;/code&gt; on August 30, 2026, under the name Farrow. The executable was &lt;code&gt;farrow&lt;/code&gt; and the default data directory was &lt;code&gt;~/.farrow&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;One Pigsty-compatible inventory defined the Linux deployment, including fixed addresses, incremental scale-out and explicit recreation. Farrow checked QMP and process identity and used a journal to recover interrupted starts. Its embedded schema-3 catalog, revision &lt;code&gt;2026082903&lt;/code&gt;, contained 27 architecture-specific artifacts across nine families.&lt;/p&gt;&#10;&lt;p&gt;The release workflow produced Sigstore signature and provenance bundles for the checksum manifest. The historic downloads have been retired. The original notes and source are available at the tag. &lt;a href="https://github.com/pgsty/barn/blob/v0.1.0/.github/releases/0.1.0.md"&gt;Tagged release notes&lt;/a&gt; · &lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/"&gt;Install Barn today&lt;/a&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><item><title>A PID Is Not a Virtual Machine</title><link>https://barn.pgsty.com/v1.5/blog/design/identity-before-pid/</link><pubDate>Fri, 28 Aug 2026 10:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/identity-before-pid/</guid><description>&lt;p&gt;This essay explains Linux runtime process identity and crash recovery in Barn &lt;code&gt;1.1.0&lt;/code&gt;. The separate &lt;a href="https://barn.pgsty.com/v1.5/blog/design/native-mac-lifecycle/"&gt;native Mac lifecycle&lt;/a&gt; uses per-machine operation locks and runner protocol &lt;code&gt;2&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;A &lt;code&gt;pidfile&lt;/code&gt; records a process ID at the moment it was written. Minutes or days later—especially after a crash or host reboot—that integer alone cannot tell you whether the original QEMU process is still running, whether the OS kernel recycled the PID for an unrelated user process, or which VM node that process belongs to.&lt;/p&gt;</description></item><item><title>Declarative Does Not Mean Destructive</title><link>https://barn.pgsty.com/v1.5/blog/design/convergence-without-surprise/</link><pubDate>Thu, 27 Aug 2026 21:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/convergence-without-surprise/</guid><description>&lt;p&gt;This essay explains the Linux VM convergence model 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; are managed independently).&lt;/p&gt;&#10;&lt;p&gt;A declarative tool compares live state against a configuration file—but in daily development, that file might be temporarily edited for debugging, checked out on another git branch, or missing a YAML group after a merge. If a local VM manager treats an omitted YAML block as permission to destroy a virtual machine, a single typo can wipe out a database node.&lt;/p&gt;</description></item><item><title>Why Every Barn Node Has Two NICs</title><link>https://barn.pgsty.com/v1.5/blog/design/fixed-ip-two-nics/</link><pubDate>Thu, 27 Aug 2026 20:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/fixed-ip-two-nics/</guid><description>&lt;p&gt;This essay explains the Linux lab network architecture 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; use independent per-VM &lt;code&gt;vmnet&lt;/code&gt; NAT subnets).&lt;/p&gt;&#10;&lt;p&gt;A Pigsty inventory identifies every database node by a stable IPv4 address: PostgreSQL streaming replication, Patroni/etcd consensus, HAProxy backends, keepalived VIPs, Prometheus targets, and Ansible playbooks all expect &lt;code&gt;10.10.10.11&lt;/code&gt; to name the same host across boots. Forwarding a loopback port on the host can expose SSH or port &lt;code&gt;5432&lt;/code&gt; to your laptop, but peer VMs cannot form a cluster over host loopback forwards.&lt;/p&gt;</description></item><item><title>Why Barn Has No Projects</title><link>https://barn.pgsty.com/v1.5/blog/design/one-deployment-no-projects/</link><pubDate>Thu, 27 Aug 2026 19:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/blog/design/one-deployment-no-projects/</guid><description>&lt;p&gt;This essay explains the Linux lab deployment model 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; are managed as independent named VMs).&lt;/p&gt;&#10;&lt;p&gt;Early prototypes of Barn treated every working directory as a separate project: a hidden directory marker identified the project, a central registry tracked active project paths, and a host-wide lease table arbitrated private subnet collisions. While that model made sense for a generic multi-project VM runner, it fought against Barn&amp;rsquo;s actual job: running a local Pigsty database lab with fixed IP addresses.&lt;/p&gt;</description></item><item><title>RC6 development candidate: owner-scoped Tier-1 delivery</title><link>https://barn.pgsty.com/v1.5/release/rc6-owner-scoped-20260825/</link><pubDate>Tue, 25 Aug 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/rc6-owner-scoped-20260825/</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;Pre-Barn historical archive (&lt;code&gt;Piglet 1.0.0-rc.6&lt;/code&gt;, 2026-08-25). This candidate was a local verification milestone and was never published as a GitHub Release or package repository; the SHA-256 digests below record the retained local build artifacts. For current Barn usage and support status, see the &lt;a href="https://barn.pgsty.com/v1.5/docs/"&gt;documentation&lt;/a&gt; and &lt;a href="https://barn.pgsty.com/v1.5/docs/about/status/"&gt;status page&lt;/a&gt;.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;Piglet &lt;code&gt;1.0.0-rc.6&lt;/code&gt; was a local development candidate that validated the Quick and four-node &lt;code&gt;full&lt;/code&gt; profiles on both Tier-1 native hypervisor platforms (&lt;code&gt;macOS arm64 / HVF&lt;/code&gt; and &lt;code&gt;Linux amd64 / KVM&lt;/code&gt;) and introduced journaled host-network transactions for crash recovery. &lt;a href="https://github.com/pgsty/barn.pgsty.com/blob/b2f220d/content/blog/release/rc6-owner-scoped-20260825.md"&gt;Original candidate acceptance record&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Development snapshot: the Go 1.27 product surface</title><link>https://barn.pgsty.com/v1.5/release/development-snapshot-20260824/</link><pubDate>Mon, 24 Aug 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/development-snapshot-20260824/</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;Pre-Barn historical archive (&lt;code&gt;Piglet&lt;/code&gt;, 2026-08-24). At this snapshot there was no public release tag, signed production artifact, or package repository, and all embedded image records were marked &lt;code&gt;testing&lt;/code&gt;. For current Barn behavior and support status, see the &lt;a href="https://barn.pgsty.com/v1.5/docs/"&gt;documentation&lt;/a&gt; and &lt;a href="https://barn.pgsty.com/v1.5/docs/about/status/"&gt;status page&lt;/a&gt;.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;The 2026-08-24 source snapshot turned the initial QEMU prototype into a structured Go 1.27 VM manager with zero-configuration Quick mode, fixed-IP private labs, 13 built-in profiles, Pigsty inventory generation, persistent data disks, schema migration, and reproducible release packaging. &lt;a href="https://github.com/pgsty/barn/blob/ffdc131e878e8307157691868fe4c722df50bcba/docs/RELEASE_READINESS.md"&gt;August 24 acceptance record&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Barn 0.9.3 Changes</title><link>https://barn.pgsty.com/v1.5/docs/about/0.9.3-changes/</link><guid>https://barn.pgsty.com/v1.5/docs/about/0.9.3-changes/</guid><description>&lt;p&gt;This page records the user-visible changes in &lt;strong&gt;Barn 0.9.3&lt;/strong&gt;, tagged on October 31 and published on November 1, 2026 (UTC+8). The workflow changes began in source commit &lt;code&gt;27f17bb&lt;/code&gt; and were completed by the commits leading to the release. Check &lt;code&gt;barn version&lt;/code&gt; when auditing another build.&lt;/p&gt;&#10;&lt;p&gt;See the &lt;a href="https://barn.pgsty.com/v1.5/release/0.9.3/"&gt;Barn 0.9.3 release notes&lt;/a&gt; for the upgrade summary and the complete bilingual release note.&lt;/p&gt;&#10;&lt;h2 id="resize-recovery"&gt;Resource changes and recovery&#10;&lt;/h2&gt;&#10;&lt;p&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;. QEMU hot-plugs supported increases when the running VM has reserved capacity; decreases, older VMs, and unsupported backends use a stop/start fallback. The VM identity, disks, and SSH keys remain unchanged. &lt;code&gt;resize&lt;/code&gt; refuses image, disk, network, share, creation, removal, and deployment-wide changes; use &lt;code&gt;recreate&lt;/code&gt;, &lt;code&gt;up&lt;/code&gt;, &lt;code&gt;destroy&lt;/code&gt;, or a full selected operation as indicated by its &lt;code&gt;next:&lt;/code&gt; field.&lt;/p&gt;</description></item><item><title>Validation History</title><link>https://barn.pgsty.com/v1.5/docs/about/history/</link><guid>https://barn.pgsty.com/v1.5/docs/about/history/</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 page collects documentation, source, packaging, VM, and public-installation checks through 2026-12-02. Each entry identifies the source build or release tested. For current host support and release behavior, see &lt;a href="../status/"&gt;Platforms and Limits&lt;/a&gt; and the &lt;a href="https://barn.pgsty.com/v1.5/release/"&gt;release notes&lt;/a&gt;.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;h2 id="docs-audit-2026-12-02" class="update"&gt;Documentation and release archive&#10;&lt;/h2&gt;&#10;&lt;div class="td-update-meta"&gt;&lt;time datetime="2026-12-02"&gt;2026-12-02&lt;/time&gt;&lt;/div&gt;&#10;&lt;p&gt;The English and Chinese command references were compared with &lt;code&gt;--help&lt;/code&gt; from CLIs built at tags &lt;code&gt;v1.1.0&lt;/code&gt; through &lt;code&gt;v1.4.0&lt;/code&gt;. For 1.4.0, the tables cover all 63 operational commands and 181 visible command-specific options, counted per command. Isolated data directories were used to validate and plan the inventory examples, check image architecture selection, and build and verify the sample image repositories. &lt;a href="https://github.com/pgsty/barn/tree/v1.4.0"&gt;1.4.0 source&lt;/a&gt; · &lt;a href="../../reference/commands/"&gt;Command reference&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>