<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recovery on Barn</title><link>https://barn.pgsty.com/v1.5/tags/recovery/</link><description>Recent content in Recovery on Barn</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 09 Nov 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://barn.pgsty.com/v1.5/tags/recovery/index.xml" rel="self" type="application/rss+xml"/><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>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></channel></rss>