ghostlan: MCP server lets AI agents spin up isolated virtual PCs on Linux with zero sudo prompts
CommunicationPlus253 · reddit · 2026-12-02
To test a C99 media streaming project (Gaming PC → Streaming PC), the author wrote ghostlan in Go: a Linux-only CLI + MCP server that lets an AI agent spin up 2+ isolated "virtual PCs" on one machine.
Problems solved: Docker/VMs broke GUI/audio and were too heavy; xdotool on Wayland hijacked the mouse; sudo scripts meant typing passwords every 2 minutes. ghostlan uses a one-time setcap so runtime needs zero sudo.
First real run, the agent:
- Spawned tx (10.99.119.11, Xvfb :99) and rx (10.99.119.12, :100) with isolated HOME/XDG configs so two OBS instances don't conflict
- Streamed 763 MB of live video+audio while checking the UI via MCP screenshots
- Injected 5% packet loss + 25ms delay + 10ms jitter via tc netem, catching OBS bumping audio buffering from 512ms → 832ms under TCP
- Pulled the virtual cable for 4s, verified auto-reconnect from logs, then cleaned up
Exposes 24 MCP tools (.pcap capture, GUI recording, audio checks, ghostlandoctor); works on Linux/WSL2, dual-licensed MIT / Apache-2.0.
More from coding & agent
- Agent denied vision autonomously downloads BLIP from HF and runs it locally — victormustar · 2026-12-02
- Google's Gemini 4 Neon tops coding benchmarks as developers praise its speed — OwariDa · 2026-12-02
- Dev challenges X users: prove you replaced a paid SaaS with vibe coding — kylegawley · 2026-12-02
- Open-source PubMed MCP Server gives AI agents access to 36M+ biomedical citations — modelcontextprotocol · 2026-12-02
- Prompt-only synthetic data is slop; statistically grounded synthesis with NeMo Data Designer works — JFPuget · 2026-12-02
- Same prompt, three tools: designer pits Claude vs ChatGPT vs Figma Make on design quality — Tegadesigns · 2026-12-02