Comment by mmh0000
1 day ago
This is neat, and thank you for sharing!
I've been wanting to set up something exactly like this for my own use, but... You know, time is limited.
This is just enough scaffolding to have a little project for Monday morning!
I also have a light weight cross platform virtual machine with egress filtering if you're looking for an even more batteries included approach.
https://github.com/smol-machines/smolvm
There are many ways and tools on linux to get a "VM" up and running. But with libvirt you can easy script out what the initial environment and network stack is. The heart of it is just running the 'virt-install' command, but as you can see I've got a bunch of other opinionated stuff going on before that.