3 ms·
You probably want to take a look at gVisor[1], there's some desire for it to work on other systems like macos[2]. It doesn't have a working solution there yet
by simcop2387 3y ago
You probably want to take a look at gVisor[1], there's some desire for it to work on other systems like macos[2]. It doesn't have a working solution there yet but it's probably the easiest way to make something like Microsoft's WSL1 which handled things that way. You'll get a lot of the boiler plate out of the way that you'd need to pretend to be a Linux system, and just have to implement the translations to MacOS calls through some kind of library. From the looks of the github thread it seems the main issue to doing it is cgroup support since there isn't anything similar to it on the other side.
[1] https://en.wikipedia.org/wiki/GVisor https://en.wikipedia.org/wiki/GVisor
[2] https://github.com/google/gvisor/issues/1270 https://github.com/google/gvisor/issues/1270