<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux on Barn</title><link>https://barn.pgsty.com/v1.5/tags/linux/</link><description>Recent content in Linux on Barn</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 03 Dec 2026 00:00:00 +0800</lastBuildDate><atom:link href="https://barn.pgsty.com/v1.5/tags/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>Barn 1.5.0</title><link>https://barn.pgsty.com/v1.5/release/1.5.0/</link><pubDate>Thu, 03 Dec 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/1.5.0/</guid><description>&lt;p&gt;Barn 1.5.0 is available for macOS and Linux on amd64 and arm64. &lt;a href="https://github.com/pgsty/barn/releases/tag/v1.5.0"&gt;GitHub release and downloads&lt;/a&gt; · &lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/"&gt;Installation&lt;/a&gt; · &lt;a href="https://barn.pgsty.com/v1.5/blog/design/release-1-5-0-readiness/"&gt;Acceptance record&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="linux-labs"&gt;Linux labs and upgrades&#10;&lt;/h2&gt;&#10;&lt;p&gt;New labs and all four inventory templates default to Debian 13 (&lt;code&gt;d13:stable&lt;/code&gt;) on the host architecture. To create an Ubuntu 24.04 inventory, run &lt;code&gt;barn init -I u24&lt;/code&gt;. Existing deployments keep their saved image default, including for a new node that omits &lt;code&gt;vm_image&lt;/code&gt;. Updating the catalog preserves existing VM backing disks. &lt;a href="https://barn.pgsty.com/v1.5/docs/reference/configuration/#image-and-architecture"&gt;Configuration precedence&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Barn 1.4.0 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>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>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>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>Barn 1.0.0: the first stable release</title><link>https://barn.pgsty.com/v1.5/release/1.0.0/</link><pubDate>Thu, 05 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/1.0.0/</guid><description>&lt;p&gt;&lt;strong&gt;Released on 2026-11-05.&lt;/strong&gt; Barn 1.0.0 is the first stable release.&lt;/p&gt;&#10;&lt;p&gt;Barn 1.0.0 completes a pre-release audit of destructive operations, data-disk recovery, catalog integrity, and process cancellation. It embeds signed image catalog revision &lt;code&gt;2026110502&lt;/code&gt;, including Debian 13 image &lt;code&gt;20261103.2651.1&lt;/code&gt; for amd64 and arm64.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/"&gt;Install Barn&lt;/a&gt; · &lt;a href="https://github.com/pgsty/barn/releases/tag/v1.0.0"&gt;GitHub release and assets&lt;/a&gt; · &lt;a href="https://github.com/pgsty/barn/blob/v1.0.0/CHANGELOG.md"&gt;Changelog&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="changes"&gt;Changes&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Whole-deployment recreate keeps omitted nodes.&lt;/strong&gt; &lt;code&gt;barn recreate&lt;/code&gt; without node selectors refuses an inventory that no longer lists an existing node (&lt;code&gt;conflict&lt;/code&gt;, reason &lt;code&gt;nodes_removed&lt;/code&gt;, exit 4) before any VM stops. Earlier releases destroyed the omitted node without recreating it. Run &lt;code&gt;barn destroy NODE&lt;/code&gt; to remove it, or add it back to the inventory. The confirmation lists every node that will be replaced, and the scope is checked again under the destruction lock (&lt;code&gt;deployment_changed&lt;/code&gt; when the applied state changed during preflight).&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Destroying the control node keeps the lab usable.&lt;/strong&gt; The first remaining node becomes the control node, so &lt;code&gt;ssh-config&lt;/code&gt;, &lt;code&gt;hosts&lt;/code&gt;, &lt;code&gt;exec&lt;/code&gt;, and &lt;code&gt;provision&lt;/code&gt; keep working. Update the inventory&amp;rsquo;s control role, then run &lt;code&gt;barn up&lt;/code&gt; to install its control SSH access. Barn refuses to destroy the control node, before deleting anything, when the successor has an unfinished prepare record that cannot be completed; the error names the successor.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Data disks are reset only on recognized corruption.&lt;/strong&gt; Blank disks are initialized. An ext4 or XFS filesystem is reset only when the checker reports recognized corruption, including on a persistent disk. Partition tables, signatures without a UUID, unsupported filesystem features, and unknown checker failures keep their data and produce a warning. Existing guests receive the updated helper on their next &lt;code&gt;barn up&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;One confirmation before host changes.&lt;/strong&gt; On a terminal, &lt;code&gt;up&lt;/code&gt;, &lt;code&gt;start&lt;/code&gt;, &lt;code&gt;restart&lt;/code&gt;, and &lt;code&gt;reload&lt;/code&gt; show the host-preparation plan and ask once before installing packages or the Barn network. Without a terminal they report what is missing; run &lt;code&gt;barn setup --yes&lt;/code&gt; for unattended preparation.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;&lt;code&gt;--yes&lt;/code&gt; for destruction.&lt;/strong&gt; &lt;code&gt;destroy&lt;/code&gt;, &lt;code&gt;recreate&lt;/code&gt;, &lt;code&gt;mac destroy&lt;/code&gt;, and &lt;code&gt;mac recreate&lt;/code&gt; accept &lt;code&gt;--yes&lt;/code&gt;. &lt;code&gt;--force&lt;/code&gt; keeps working, and &lt;code&gt;mac stop --force&lt;/code&gt; still powers the VM off.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Catalog failures exit 7.&lt;/strong&gt; A catalog signature or signed revision that does not verify exits 7 (&lt;code&gt;integrity&lt;/code&gt;, reason &lt;code&gt;catalog_signature&lt;/code&gt; or &lt;code&gt;catalog_equivocation&lt;/code&gt;). Permission and I/O errors on a cached signature remain runtime failures (exit 1). Both official repositories share the embedded upgrade baseline, and a new trusted signature over identical catalog bytes is accepted.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Cancellation reaches &lt;code&gt;sudo&lt;/code&gt;.&lt;/strong&gt; Cancelled commands receive SIGTERM, which &lt;code&gt;sudo&lt;/code&gt; forwards, and Barn waits at most 10 seconds for the process and its inherited pipes.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Host networking and Mac images.&lt;/strong&gt; &lt;code&gt;barn network uninstall&lt;/code&gt; keeps global networkd unit state when other host links exist (&lt;code&gt;preserve_networkd&lt;/code&gt;, &lt;code&gt;checks.networkd&lt;/code&gt;). Mac image pruning keeps bases that interrupted recreates still reference.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;CLI.&lt;/strong&gt; &lt;code&gt;barn&lt;/code&gt; without a command prints the complete help; &lt;code&gt;--json&lt;/code&gt; and &lt;code&gt;--yaml&lt;/code&gt; keep the &lt;code&gt;actions[]&lt;/code&gt; document. Explicit &lt;code&gt;--json&lt;/code&gt;, &lt;code&gt;--yaml&lt;/code&gt;, and &lt;code&gt;--verbose&lt;/code&gt; override &lt;code&gt;BARN_OUTPUT&lt;/code&gt; and &lt;code&gt;BARN_VERBOSE&lt;/code&gt;, and help stays available when those variables are invalid.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Dependencies.&lt;/strong&gt; Go 1.27.3, &lt;code&gt;golang.org/x/net&lt;/code&gt; 0.62.0, and &lt;code&gt;go.yaml.in/yaml/v3&lt;/code&gt; 3.0.6.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="upgrade"&gt;Upgrade&#10;&lt;/h2&gt;&#10;&lt;p&gt;Upgrade through the channel you installed with. The installer selects the latest stable release, verifies the archive against the release&amp;rsquo;s &lt;code&gt;checksums.txt&lt;/code&gt;, and installs into &lt;code&gt;~/.local/bin&lt;/code&gt; without sudo; set &lt;code&gt;BARN_VERSION=1.0.0&lt;/code&gt; to pin &lt;code&gt;1.0.0&lt;/code&gt;. DEB and RPM packages are attached to the GitHub release.&lt;/p&gt;</description></item><item><title>Barn 0.9.3: safer resizing, selected nodes, and recovery</title><link>https://barn.pgsty.com/v1.5/release/0.9.3/</link><pubDate>Sun, 01 Nov 2026 00:00:00 +0800</pubDate><guid>https://barn.pgsty.com/v1.5/release/0.9.3/</guid><description>&lt;p&gt;&lt;strong&gt;Published on GitHub on 2026-11-01 (UTC+8).&lt;/strong&gt; The release tag is dated October 31. GitHub marks 0.9.3 as a pre-release.&lt;/p&gt;&#10;&lt;p&gt;Barn 0.9.3 focuses on safer changes to local labs. It adds resource-only VM resize, lets selected nodes converge independently, accepts ordinary user path forms for inventories and shares, and recovers interrupted lifecycle operations.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://barn.pgsty.com/v1.5/docs/start/installation/"&gt;Install Barn&lt;/a&gt; · &lt;a href="https://github.com/pgsty/barn/releases/tag/v0.9.3"&gt;Download 0.9.3&lt;/a&gt; · &lt;a href="https://github.com/pgsty/barn/blob/v0.9.3/.github/releases/0.9.3.md"&gt;Source release notes&lt;/a&gt;&lt;/p&gt;&#10;&lt;h2 id="changes"&gt;Changes&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Edit &lt;code&gt;vm_cpu&lt;/code&gt; or &lt;code&gt;vm_mem&lt;/code&gt; and run &lt;code&gt;barn resize [node...]&lt;/code&gt;. Supported increases are hot-plugged when QEMU has reserved capacity; decreases and unsupported cases use an automatic stop/start while preserving the VM identity, disks, and SSH keys. Use &lt;code&gt;barn recreate&lt;/code&gt; for image, disk, network, or share changes.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;plan&lt;/code&gt;, &lt;code&gt;up&lt;/code&gt;, &lt;code&gt;reload&lt;/code&gt;, &lt;code&gt;recreate&lt;/code&gt;, and &lt;code&gt;resize&lt;/code&gt; with selectors retain the applied definitions of unselected peers. Conflicts in addresses, aliases, control-node roles, and deployment-wide settings are checked before a node stops or is deleted.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;barn init [template] --image&lt;/code&gt; and &lt;code&gt;barn setup [template] --image&lt;/code&gt; select an image alias, channel, or version in generated templates without downloading it or rewriting an existing inventory.&lt;/li&gt;&#10;&lt;li&gt;Relative paths, &lt;code&gt;~/&lt;/code&gt;, and directory symlinks work for &lt;code&gt;BARN_HOME&lt;/code&gt;, local repositories, catalog export, inventories, imported images, and share sources where applicable. Inventory-relative shares resolve beside the inventory&amp;rsquo;s real file; spaces, Unicode, overlapping sources, and readable directories owned by another user are supported.&lt;/li&gt;&#10;&lt;li&gt;Provisioning accepts any positive &lt;code&gt;--parallel&lt;/code&gt; and &lt;code&gt;--timeout&lt;/code&gt;. Local images and catalog artifacts with declared sizes can exceed 8 GiB; digest-indexed imports, bounded reads, registry size checks, and cache verification protect the image store. &lt;code&gt;barn mac logs --lines&lt;/code&gt; accepts any positive line count.&lt;/li&gt;&#10;&lt;li&gt;The embedded signed catalog is revision &lt;code&gt;2026102802&lt;/code&gt;, with 9 distribution families and 17 architecture-specific artifacts. The default remains &lt;code&gt;u24:stable&lt;/code&gt; on the host architecture.&lt;/li&gt;&#10;&lt;li&gt;Interrupted Linux and macOS lifecycle, persistent-disk, and replacement operations leave journaled state for safe recovery. Signals produce the structured &lt;code&gt;cancelled&lt;/code&gt; result. &lt;code&gt;barn mac up --no-wait&lt;/code&gt; returns when the VM process starts; run &lt;code&gt;barn mac up NAME&lt;/code&gt; again before using SSH or exec on a machine whose first boot is still provisioning.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="upgrade"&gt;Upgrade&#10;&lt;/h2&gt;&#10;&lt;p&gt;Select &lt;strong&gt;0.9.3&lt;/strong&gt; explicitly with the download installer, or upgrade the Homebrew formula / Linux package. Existing VM disks and configuration remain under &lt;code&gt;~/.barn&lt;/code&gt;; no VM recreation is required.&lt;/p&gt;</description></item><item><title>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></channel></rss>