展示HN:Lume 0.2 – 构建和运行macOS虚拟机,并进行无人值守设置
Show HN: Lume 0.2 – Build and Run macOS VMs with unattended setup

原始链接: https://cua.ai/docs/lume/guide/getting-started/introduction

## Lume:苹果芯片的快速本地虚拟化 Lume 是一个基于苹果虚拟化框架的开源虚拟机运行时,可在苹果芯片上实现接近原生速度的 macOS 和 Linux 虚拟机。它是一个单独的二进制文件,提供 CLI 和 HTTP API,用于程序化控制——非常适合自动化任务和构建强大的工作流程。 主要功能包括:高效的资源利用率、Rosetta 2 支持、自动化镜像创建以及用于轻松虚拟机管理的注册表支持。Lume 在 CI/CD 方面表现出色,允许在本地进行 macOS 测试和隔离风险操作。 值得注意的是,Lume 为 Cua Computer SDK 提供支持,用于构建 AI 代理,为模型与 macOS 交互提供安全环境。Anthropic 甚至在其 Claude Code 沙盒中使用该底层技术。 目前,Lume 仅适用于苹果芯片 Mac。感兴趣的用户可以找到快速入门指南,并通过演示预订探索托管云 macOS 沙盒服务。

## Lume 0.2:在 Apple Silicon 上运行 macOS 和 Linux 虚拟机 Lume 是一款开源 CLI 工具,用于在 Apple Silicon 上运行 macOS 和 Linux 虚拟机,专为隔离的 AI 代理环境和 CI/CD 管道等用例设计。最新的 0.2 版本引入了**无人值守设置**——通过 VNC 和 OCR 自动化 macOS 设置助手,从而消除手动配置。 主要功能包括用于持久管理虚拟机的 **REST API 和守护进程**,用于直接控制虚拟机的 **Claude Desktop 原生集成**,**多位置存储**支持(包括外部驱动器),以及用于通过 GHCR 或 GCS 分享镜像的 **虚拟机注册表**。 Lume 正在被用于诸如在沙盒中运行 Claude Code、Apple 平台应用测试和安全研究等任务。它利用 Apple 的虚拟化框架,并与 EC2 Mac 实例和 Scaleway 兼容。开发者还在致力于提供托管云服务。 Lume 采用 MIT 许可,并作为 Cua Computer Use Agent SDK 的一部分积极开发中。更多信息、文档和 GitHub 仓库请访问 [cua.ai](https://cua.ai)。
相关文章

原文

Lume is a VM runtime for building AI agents, running CI/CD pipelines, and automating macOS. It uses Apple's native Virtualization Framework to run macOS and Linux VMs at near-native speed on Apple Silicon.

MIT License

Lume is open-source and MIT licensed. If you find it useful, we'd appreciate a star on GitHub!

Cloud macOS Sandboxes

We're piloting a managed service for customers who want to run cloud macOS sandboxes for CI/CD and agent workloads. Book a demo if you're interested.

lume create test-vm --os macos --ipsw latest
lume run test-vm

A single binary with an HTTP API. Create a VM, run it headlessly, control it programmatically.

Lume Architecture

You can use Lume directly via CLI, or run lume serve to expose an HTTP API for programmatic access. The Computer SDK uses this API to automate macOS interactions.

Lume is a thin layer over Apple's Virtualization Framework, which provides hardware-accelerated virtualization on Apple Silicon. This gives you:

  • Native speed — CPU instructions execute directly via hardware virtualization
  • Paravirtualized graphics — Basic GPU support via Apple's virtualization layer (limited to GPU Family 5)
  • Efficient storage — Sparse disk files only consume actual usage, not allocated size
  • Rosetta 2 support — Run x86 Linux binaries in ARM Linux VMs
  • Automated golden images — Go from IPSW to fully configured macOS VM without manual intervention
  • Registry support — Pull and push VM images from GHCR or GCS registries

Testing across macOS versions — Spin up a VM with a specific macOS version, test your software, tear it down. No need to maintain multiple physical machines.

Automating macOS tasks — Combine Lume with Unattended Setup to create pre-configured VMs. The setup automation uses VNC and OCR to click through the Setup Assistant without manual intervention.

Running CI/CD locally — Test your macOS builds in isolated VMs before pushing to remote CI. The --no-display flag runs VMs headlessly.

Sandboxing risky operations — Need to test untrusted software or destructive scripts? Run them in a VM, then delete it. Clone a known-good VM to reset to a clean state instantly.

Building AI agents — Lume powers the Cua Computer SDK, providing VMs that AI models can interact with through screenshots and input simulation.

Used by Anthropic

Apple's Virtualization Framework—the same technology Lume is built on—powers Claude Cowork, Anthropic's sandboxed environment for Claude Code. It downloads a Linux root filesystem and boots it in an isolated VM where Claude can safely execute commands without access to your broader system.

Lume requires Apple Silicon—it won't work on Intel Macs or other platforms.

Ready to try it? Install Lume and create your first VM in the Quickstart.

联系我们 contact @ memedata.com