Claude Code + Linux VM

Run Claude Code in a Linux VM on your Mac — not on your Mac

Claude Code shines when it can run shell commands. Point it at a Kyvenza Linux ARM VM through the built-in MCP server, and the agent works inside an isolated guest with its own disk, while your Keychain, SSH keys, and ~/Documents stay on the host. Snapshot the base image, clone a disposable VM for risky tasks, and delete the clone when finished.

Why developers run Claude Code in a VM

Match production Linux on a Mac laptop

Your servers run Ubuntu ARM or Debian ARM. A Kyvenza guest runs the same architecture natively, so apt installs and systemd behavior match production better than a container sharing one kernel.

Contain prompt-injection damage

A compromised command in the guest cannot read your macOS home folder unless you share it. Use isolated networking when the task should not phone home.

Disposable environments per task

Clone a clean Linux VM in about a second with copy-on-write storage. Let Claude Code install packages and run scripts in the clone, then delete it.

Screenshots and desktop workflows

Unlike headless containers, a full VM guest can run graphical tools when needed. The MCP screenshot tool captures what is on screen inside the guest.

Linux VM vs Docker for Claude Code on Mac

Docker on Mac is fast for many CLI tasks. A Linux VM is the better boundary when you want a full distro, isolated snapshots, or MCP tools that start and clone whole machines.

FunktionKyvenzaDocker Desktop
GuestFull Ubuntu / Debian / Fedora ARM VMLinux container in a shared VM
RollbackVM snapshot or delete cloneRebuild image / volumes
MCP integration15 built-in tools (start, clone, exec, screenshot)Not built in
macOS or Windows guestsSupportedLinux only
Setup for Claude Codeclaude mcp add → local HTTP endpointRun Claude on host; docker exec separately

Was Kyvenza heute unterstützt

Eine kurze, ehrliche Liste — damit Sie wissen, was Sie erwartet, und böse Überraschungen ausbleiben.

Heute unterstützt

  • Apple Silicon Macs (M1, M2, M3, M4, M5)
  • Windows 11 on ARM (bring your own Microsoft image and licence)
  • Ubuntu ARM (LTS releases)
  • Debian ARM
  • Fedora ARM
  • macOS 14 Sonoma or later as host
  • Native Apple Virtualization framework backend

Noch nicht unterstützt

  • OpenGL, Vulkan and DirectX 12 acceleration in Windows guests (DirectX 11 is experimental)
  • USB passthrough and microphone input in Windows guests
  • x86 / Intel guest operating systems
  • Nested virtualization
  • GPU passthrough

Wir listen auf, was wir heute nicht liefern können, damit Sie entsprechend planen können.

So funktioniert es

01

Create an Ubuntu ARM VM

Install Kyvenza, create a VM from an Ubuntu arm64 ISO, install build tools and git, then shut the VM down. That shut-down state is your golden base.

02

Enable the MCP server

In Kyvenza → Settings → Automation, turn the server on and copy the loopback URL with token. In Claude Code: claude mcp add --transport http kyvenza http://127.0.0.1:59800/mcp/YOUR-TOKEN (port shown in Settings).

03

Clone, work, discard

Ask Claude Code to clone the base VM before destructive work. It runs commands through MCP guest tools on Linux, takes screenshots when needed, and deletes the clone afterward. Longer walkthrough: kyvenza.com/docs/guide/claude-code-linux-arm-vm.

Häufig gestellte Fragen

Yes, through the built-in MCP server. Claude Code connects over loopback HTTP with a per-Mac token. The server exposes tools to list, start, stop, snapshot, clone, and run commands in Linux guests with the guest agent installed.