In developing/testing OSS libraries I can replicate a clean Linux fs using containers. However, if I want to test oss libs for MacOS end users, I seem to be in a bit of a quandary. Is there any way to create a clean fs on MacOS that I can test libraries with? Perhaps using chroot? Can someone explain exactly instead of just saying "use chroot"?

  • Or you can just run containers on Mac? – RibaldEddie Nov 19 '18 at 0:07
  • containers on macos have a linux fs tmk, but maybe you could get close, maybe there is a Docker image that attempts to be very close – Alexander Mills Nov 19 '18 at 0:18
  • 1
    ultimately I am trying to create a barebones MacOS fs..i think chroot on MacOS is the cheapest and simplest? but idk how to use chroot. – Alexander Mills Nov 19 '18 at 0:24
  • 1
    is it not clear what I am trying to do? i have a MacOS laptop, but i have things like coreutils installed and other MacOS users might not have that installed, etc. – Alexander Mills Nov 19 '18 at 0:25
  • 1
    yes but there a global tools that are available at that command line, other users on my machine would have access to those tools, which i want to avoid – Alexander Mills Nov 19 '18 at 0:59

Run MacOS as a virtual machine on Linux using VirtualBox? That might not be possible, since MacOS might only run on MacOS hardware. In that case, you might have to spin up a MacOS VM on a Mac computer.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.