Skip to content

Barn 1.3.0: guest clocks, short image aliases, and catalog 2026112101

Linux guest clock synchronization, shorthand image and architecture aliases, signed catalog 2026112101, macOS 27.2.1 base selection, and macOS network setup and repair fixes.

Barn 1.3.0 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 2026112101 and selects macOS 27.2.1 (26B131) for a new Mac base. The bilingual command reference covers all 62 operation commands and 176 local options.

Upgrade from 1.2.0

If your inventory uses vm_image: rocky or vm_image: ubuntu, those names now select Rocky Linux 10 (el10) and Ubuntu 26.04 (u26). Set vm_image to el9 or u24 to keep the 1.2.0 targets. An omitted image still selects Ubuntu 24.04 (u24:stable) on the host’s native architecture. Run barn plan to review any change to an existing deployment; replacing a guest’s image requires barn recreate.

el8 (Rocky Linux 8) and u22 (Ubuntu 22.04 LTS) are now marked deprecated as support is phased out, alongside EOL el7. Existing deployments and compatibility tests remain runnable and emit a deprecation warning; prefer el9, el10, d12, d13, u24, or u26 for new labs.

When upgrading directly from 1.1.0, remember that omitted Linux CPU and memory values default to 1 vCPU and 2 GiB since 1.2.0; set vm_cpu: 2 and vm_mem: 4GiB explicitly to retain earlier defaults.

Linux guest clock synchronization

Use barn time status to measure running Linux guests against the host wall clock and barn time sync to force a verified correction over management SSH, including for offline guests without Internet access. Results report offset, half-round-trip uncertainty, and guest NTP synchronization state separately.

Startup commands (up, start, restart, reload, recreate) check selected ready guests and correct offsets above two seconds before returning. Failures surface as optional lifecycle warnings (time_sync) without changing management SSH readiness; --no-wait skips the check.

For ongoing drift correction after host sleep or VM pause, enable the opt-in per-user scheduler with barn time auto enable (reusing a macOS launchd calendar job or Linux systemd user timer without any Barn daemon). Checks run every minute with a 45-second budget, skip busy deployments, detect recurring drift while guest NTP reports synchronized (source-conflict), and distinguish host sleep from NTP conflicts via the guest monotonic clock. Use barn time auto status and barn time auto disable to inspect or remove it. See the time command reference and validation record.

Short image selectors and architecture suffixes

Unversioned family shorthands select the newest mainstream family (e/el/rocky → el10, u/ubuntu → u26, d/debian → d13). Append a for arm64 or x/i for amd64—for example, barn image info el10a, barn plan -I d13x, or vm_image: u24i—to select family and guest architecture together across image info/pull, --image/-I, BARN_IMAGE, and vm_image.

Across all commands, an explicit --arch/-A or BARN_ARCH value (including native) that conflicts with an architecture-suffixed alias returns a usage error. In YAML inventories, the default vm_arch: native defers to an architecture-suffixed vm_image, while a concrete vm_arch or mixed-architecture nodes fail validation. See Linux images and image and architecture overrides.

Signed image catalog 2026112101

The embedded signed catalog advances to revision 2026112101 (SHA-256 3179d231cd78bb071f051e0535d293e88326e0b4ef7d9fd15c0271dc3213a16d, key 4686B39A40F9B562), refreshing 12 artifacts across amd64 and arm64:

  • Debian 12 and 13 cloud builds 20261117-2665 (20261117.2665.1) and 20261116-2664 (20261116.2664.1)
  • Rocky Linux 9.9 (9.9.20261112.1) and 10.3 (10.3.20261112.1), with Rocky 10 now shipping signed, digest-locked kernel-modules and kernel-modules-extra for Docker’s default bridge networking and firewall
  • Ubuntu 22.04 and 26.04 cloud builds 20261109 (20261109.0.1) and 20261108 (20261108.0.1)

All 17 previous artifacts are retained alongside the 12 new ones (29 artifacts total; 17 selected by the 9 stable channels). The default remains u24:stable on the host’s native architecture, and el8/u22 are marked deprecated in the signed catalog as well. Both official mirrors match the embedded catalog byte for byte; Barn 1.2.0 users can also activate 2026112101 via barn update. See the 2026-11-21 image refresh record.

macOS 27.2.1 base and network setup

On a Mac with no prepared base, barn mac setup and barn mac up now select Apple’s macOS 27.2.1 (26B131) restore image. On an already prepared Mac, run barn mac image update to prepare 27.2.1 for future VMs; existing VMs keep their current disks and builds (barn mac image ls shows which base each VM uses).

For Linux labs on macOS, barn setup, barn up, and barn network install now accept an active Internet Sharing service when its com.apple.vmnet.plist preferences contain neither a custom subnet address nor a mask. If preview cannot read the protected preferences, both fresh installation and repair of a matching Barn network defer that check until approval, then verify both keys as root before writing network files or restarting socket_vmnet. Pre-mutation stops and clean rollbacks report the host unchanged, while partial subnet settings or live interface, route, and node-address conflicts still block.

Dependencies and packaging

Source builds, CI, and release artifacts use Go 1.27.4 and update golang.org/x/crypto to 0.59.0 (clearing GO-2026-5932 at the module level so govulncheck reports zero vulnerabilities), golang.org/x/net to 0.63.0, github.com/klauspost/compress to 1.20.5, and github.com/pierrec/lz4/v4 to 4.1.34, with the packaged 11-module license inventory synced to match.

Packaging uses GoReleaser 2.20.3, nFPM 2.49.0, and Syft 1.57.2. CI pins actions/setup-go v7.1.0, deadcode 0.53.0, and govulncheck 1.10.0. Validation History records the pre-tag checks and public release verification.

Install or upgrade

Stop running Mac VMs before replacing Barn.app, then upgrade through Homebrew:

brew update
brew upgrade pgsty/infra/barn

Or install the versioned release:

curl -fLO https://github.com/pgsty/barn/releases/download/v1.3.0/install.sh
BARN_VERSION=1.3.0 bash install.sh
export PATH="$HOME/.local/bin:$PATH"
barn version

The installer verifies archive SHA-256 against checksums.txt. The Darwin arm64 archive includes the Developer ID signed and notarized CLI, helper, and Barn.app; other archives and Linux DEB/RPM packages contain the CLI and matching helper. VM disks, keys, and state under BARN_HOME are preserved. Find every platform in the download table, or see the full changelog and source changes since 1.2.0.