Remix.run Logo
emilburzo 5 hours ago

> unsupervised in a VM in the cloud where the agent has root

Why in the cloud and not in a local VM?

I've re-discovered Vagrant and have been using it exactly for this and it's surprisingly effective for my workflows.

https://blog.emilburzo.com/2026/01/running-claude-code-dange...

avtar 2 hours ago | parent | next [-]

It's been ages since I used VirtualBox and reading the following didn't make me miss the experience at all:

> Eventually I found this GitHub issue. VirtualBox 7.2.4 shipped with a regression that causes high CPU usage on idle guests.

The list of viable hypervisors for running VMs with 3D acceleration is probably short but I'd hope there are more options these days for running headless VMs. Incus (on Linux hosts) and Lima come to mind and both are alternatives to Vagrant as well.

emilburzo 2 hours ago | parent [-]

I totally understand, Vagrant and VirtualBox are quite a blast from the past for me as well. But besides the what-are-the-odds bug, it's been smooth sailing.

> VMs with 3D acceleration

I think we don't even need 3D acceleration since Vagrant is running the VMs headless anyways and just ssh-ing in.

> Incus (on Linux hosts)

That looks interesting, though from a quick search it doesn't seem to have a "Vagrantfile" equivalent (is that correct?), but I guess a good old shell script could replace that, even if imperative can be more annoying than declarative.

And since it seems to have a full-VM mode, docker would also work without exposing the host docker socket.

Thanks for the tip, it looks promising, I need to try it out!

avtar an hour ago | parent [-]

> though from a quick search it doesn't seem to have a "Vagrantfile" equivalent (is that correct?)

It's just YAML config for the VM's resources:

https://linuxcontainers.org/incus/docs/main/howto/instances_...

https://linuxcontainers.org/incus/docs/main/explanation/inst...

And cloud-init for provisioning:

https://gitlab.oit.duke.edu/jnt6/incus-config/-/blob/main/co...

ahmadyan 29 minutes ago | parent | prev | next [-]

You mentioned "deleting the actual project, since the file sync is two-way", my solution (in agentastic.dev) was to fist copy the code with git-worktree, then share that with the container.

bjackman 4 hours ago | parent | prev [-]

Yeah local is totally fine too just whatever is easiest to set up.