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.
| 功能 | Kyvenza | Docker Desktop |
|---|---|---|
| Guest | Full Ubuntu / Debian / Fedora ARM VM | Linux container in a shared VM |
| Rollback | VM snapshot or delete clone | Rebuild image / volumes |
| MCP integration | 15 built-in tools (start, clone, exec, screenshot) | Not built in |
| macOS or Windows guests | Supported | Linux only |
| Setup for Claude Code | claude mcp add → local HTTP endpoint | Run Claude on host; docker exec separately |
Kyvenza 目前支援什麼
簡短、老實的清單,讓你下載前就知道能期待什麼。
目前已支援
- 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
尚未支援
- 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
我們把目前做不到的也列出來,方便你事先規劃。
運作方式
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.
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).
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.
常見問題
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.
Put Claude Code in a Linux VM you can reset
Download Kyvenza, build a base Ubuntu VM, connect Claude Code over MCP, and keep agent work off your main macOS account. $49 once after the trial.
其他比較