zlacker

[parent] [thread] 9 comments
1. aflag+(OP)[view] [source] 2026-02-03 20:24:10
I don't know if I want to create an ad-hoc list of permissions. What I would like would be something like take a snapshot of my current workspace in a VM. Run claude there and let it go wild. After the end of the session, kill the box. The only downside is potentially syncing the claude sessions/projects. But I don't think that'd be too difficult.
replies(3): >>senko+E2 >>secure+H4 >>fsflov+ez
2. senko+E2[view] [source] 2026-02-03 20:37:43
>>aflag+(OP)
> take a snapshot of my current workspace in a VM. Run claude there

Sounds like docker + overlayfs might fit the bill, as long as there's a base image that is close enough to what you need.

I don't think there should be One True Way how to run these, everyone can set it up in a way that best fits their workflow.

replies(1): >>ushako+r5
3. secure+H4[view] [source] 2026-02-03 20:47:39
>>aflag+(OP)
I recently blogged about how I do this using MicroVMs on NixOS: https://michael.stapelberg.ch/posts/2026-02-01-coding-agent-...
◧◩
4. ushako+r5[view] [source] [discussion] 2026-02-03 20:51:28
>>senko+E2
both Docker and bubblewrap are not secure sandboxes. the only way to have actually isolated sandboxes is by using VMs

disclaimer: i work on secure sandboxes at E2B

replies(3): >>senko+q7 >>its-su+je >>gf000+ip
◧◩◪
5. senko+q7[view] [source] [discussion] 2026-02-03 20:59:24
>>ushako+r5
No disagreement from me. From the article:

> Bubblewrap and Docker are not hardened security isolation mechanisms, but that's okay with me.

Edit to add: my understanding is the major flaw in this approach is potential bugs in Linux kernel that would allow sandbox escape. Would appreciate your insight if there are some easier/more probable attack vectors.

◧◩◪
6. its-su+je[view] [source] [discussion] 2026-02-03 21:36:53
>>ushako+r5
Do you have more information on how to set up such VMs?
replies(1): >>ushako+lg
◧◩◪◨
7. ushako+lg[view] [source] [discussion] 2026-02-03 21:46:37
>>its-su+je
for personal use, many ways: Vargant, Docker Sandbox, NixOS VMs, Lima, OrbStack.

if you want multi-tenant: E2B (open-source, self-hosted)

replies(1): >>eikenb+iC
◧◩◪
8. gf000+ip[view] [source] [discussion] 2026-02-03 22:34:36
>>ushako+r5
What about cgroups? I know they are not exactly analogous, but to me that seems like a pretty decent solution.
9. fsflov+ez[view] [source] 2026-02-03 23:31:19
>>aflag+(OP)
> What I would like would be something like take a snapshot of my current workspace in a VM.

Sounds like you may be interested in Qubes OS, which runs everything in VMs.

◧◩◪◨⬒
10. eikenb+iC[view] [source] [discussion] 2026-02-03 23:45:32
>>ushako+lg
Hashicorp has mostly abandoned Vagrant, so I'd avoid it.
[go to top]