{"by":"GreenGames","descendants":52,"id":43985624,"kids":[43986022,43986096,43991183,44005490,43991894,43987448,43986189,43986231,44000390,43986934,43987772,43990158,43985778,43986577,43986248],"score":159,"text":"Hey HN, we&#x27;re excited to share Lumier (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;cua&#x2F;tree&#x2F;main&#x2F;libs&#x2F;lumier\">https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;cua&#x2F;tree&#x2F;main&#x2F;libs&#x2F;lumier</a>), an open-source tool for running macOS and Linux virtual machines in Docker containers on Apple Silicon Macs.<p>When building virtualized environments for AI agents, we needed a reproducible way to package and distribute macOS VMs. Inspired by projects like dockur&#x2F;windows (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;dockur&#x2F;windows\">https:&#x2F;&#x2F;github.com&#x2F;dockur&#x2F;windows</a>) that pioneered running Windows in Docker, we wanted to create something similar but optimized for Apple Silicon. The existing solutions either didn&#x27;t support M-series chips or relied on KVM&#x2F;Intel emulation, which was slow and cumbersome. We realized we could leverage Apple&#x27;s Virtualization Framework to create a much better experience.<p>Lumier takes a different approach: it uses Docker as a delivery mechanism (not for isolation) and connects to a lightweight virtualization service (lume) running on your Mac. This creates true hardware-accelerated VMs using Apple&#x27;s native virtualization capabilities.<p>With Lumier, you can: \n- Launch a ready-to-use macOS VM in minutes with zero manual setup\n- Access your VM through any web browser via VNC\n- Share files between your host and VM effortlessly\n- Use persistent storage or ephemeral mode for quick tests\n- Automate VM startup with custom scripts<p>All of this works natively on Apple Silicon (M1&#x2F;M2&#x2F;M3&#x2F;M4) - no emulation required.<p>To get started:<p>1. Install Docker for Apple Silicon: <a href=\"https:&#x2F;&#x2F;desktop.docker.com&#x2F;mac&#x2F;main&#x2F;arm64&#x2F;Docker.dmg\" rel=\"nofollow\">https:&#x2F;&#x2F;desktop.docker.com&#x2F;mac&#x2F;main&#x2F;arm64&#x2F;Docker.dmg</a><p>2. Install lume background service with our one-liner:<p><pre><code>  &#x2F;bin&#x2F;bash -c &quot;$(curl -fsSL https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;trycua&#x2F;cua&#x2F;main&#x2F;libs&#x2F;lume&#x2F;scripts&#x2F;install.sh)&quot;\n</code></pre>\n3. Start a VM (ephemeral mode):<p><pre><code>  docker run -it --rm \\\n  --name lumier-vm \\\n    -p 8006:8006 \\\n    -e VM_NAME=lumier-vm \\\n    -e VERSION=ghcr.io&#x2F;trycua&#x2F;macos-sequoia-cua:latest \\\n    -e CPU_CORES=4 \\\n    -e RAM_SIZE=8192 \\\n    trycua&#x2F;lumier:latest\n</code></pre>\n4. Open <a href=\"http:&#x2F;&#x2F;localhost:8006&#x2F;vnc.html\" rel=\"nofollow\">http:&#x2F;&#x2F;localhost:8006&#x2F;vnc.html</a> in your browser. The container will generate a unique password for each VM instance - you&#x27;ll see it in the container logs.<p>For persistent storage (so your changes survive container restarts):<p>mkdir -p storage\ndocker run -it --rm \\\n  --name lumier-vm \\\n  -p 8006:8006 \\\n  -v $(pwd)&#x2F;storage:&#x2F;storage \\\n  -e VM_NAME=lumier-vm \\\n  -e HOST_STORAGE_PATH=$(pwd)&#x2F;storage \\\n  trycua&#x2F;lumier:latest<p>Want to share files with your VM? Just add another volume:<p>mkdir -p shared\ndocker run ... -v $(pwd)&#x2F;shared:&#x2F;shared -e HOST_SHARED_PATH=$(pwd)&#x2F;shared ...<p>You can even automate VM startup by placing an on-logon.sh script in shared&#x2F;lifecycle&#x2F;.<p>We&#x27;re seeing people use Lumier for:\n- Development and testing environments that need macOS\n- CI&#x2F;CD pipelines for Apple platform apps\n- Disposable macOS instances for security research\n- Automated UI testing across macOS versions\n- Running AI agents in isolated environments<p>Lumier is 100% open-source under the MIT license. We&#x27;re actively developing it as part of our work on C&#x2F;ua (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;cua\">https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;cua</a>), and we&#x27;d love your feedback, bug reports, or feature ideas.<p>We&#x27;ll be here to answer any technical questions and look forward to your comments!","time":1747235981,"title":"Show HN: Lumier – Run macOS VMs in a Docker","type":"story","url":"https://github.com/trycua/cua/tree/main/libs/lumier"}