<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Guides on Barn</title><link>https://barn.pgsty.com/v1.5/docs/start/</link><description>Recent content in Guides 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/docs/start/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>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>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>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>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>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></channel></rss>