# Guides

> Install Barn, boot your first Linux or macOS VM, then run, change, and script your lab.

---

LLMS index: [llms.txt](/v1.5/llms.txt)

---

Task-by-task guides, roughly in the order you will need them. Linux labs and macOS VMs can run side by side on the same Apple Silicon Mac; each is managed on its own.

## Get started {#get-started}

- [Install Barn](installation/) — Homebrew, installer script, or DEB/RPM; host requirements and upgrades.
- [Linux Quick Start](tutorial/) — Boot a Debian 13 VM, log in, and grow it into a four-node fixed-IP lab.
- [macOS VMs](macos/) — Create a macOS machine on Apple Silicon with a desktop, SSH, shared folders, and clipboard.
{.cards}

## Run a Linux lab {#day-to-day-linux-operations}

- [Daily Operations](operations/) — Check status, stop and start nodes, and apply inventory changes safely.
- [Storage and Access](storage/) — Add data disks that survive rebuilds, copy files, and reach guest services.
- [Images](images/) — Choose Ubuntu, Debian, or Rocky Linux, use the China mirror, or bring your own `qcow2`.
- [Automation](automation/) — Drive Barn from scripts, CI, or AI agents, and pair it with Pigsty.
- [Use Barn with an AI agent](agent/) — Give a coding agent the Barn skill and specify the lab you need.
{.cards}

## Fix, build, and remove {#diagnostics-source-builds-and-cleanup}

- [Troubleshooting](troubleshooting/) — Symptoms, checks, and fixes for setup, networking, SSH, and images.
- [Build from Source](source-build/) — Build the CLI and `Barn.app` yourself to try unreleased changes.
- [Uninstall](uninstall/) — Remove VMs, cached images, the host network, and Barn itself.
{.cards}

---

Section pages:

- [Download and Install Barn](/v1.5/docs/start/installation/): Install Barn on macOS or Linux, check host requirements, and upgrade an existing installation.
- [Linux Quick Start](/v1.5/docs/start/tutorial/): Boot a Debian 13 VM, log in, and grow it into a four-node fixed-IP lab by editing one YAML file.
- [macOS Virtual Machines](/v1.5/docs/start/macos/): Run macOS 27 virtual machines on Apple Silicon with barn mac — create, connect, share files and the clipboard, and clean up.
- [Daily Operations](/v1.5/docs/start/operations/): The normal lifecycle for the one deployment: inspect, access, scale, change, stop, and destroy.
- [Storage, Files, and Service Access](/v1.5/docs/start/storage/): Configure test data disks, understand retention, transfer files, and reach guest services through OpenSSH.
- [Image Repositories](/v1.5/docs/start/images/): Choose guest images, use a mirror, import a local qcow2, and prune the cache.
- [Automation and Guest Scripts](/v1.5/docs/start/automation/): Prepare an unattended lab, check JSON results, and run repeatable scripts inside selected guests.
- [Use Barn with an AI Agent](/v1.5/docs/start/agent/): Give Claude Code, Codex, or another coding agent the Barn skill so it can bring up Linux labs and macOS VMs for you.
- [Troubleshooting](/v1.5/docs/start/troubleshooting/): Short, safe runbooks for setup, networking, images, drift, interrupted state, and SSH.
- [Build from Source](/v1.5/docs/start/source-build/): Build the Barn CLI and the native Barn.app from source to try unreleased changes on main or to reproduce a release.
- [Uninstall and Clean Up](/v1.5/docs/start/uninstall/): Remove Linux and macOS VMs deliberately, then clean up integrations, images, networking, and the application.
