0

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
  • 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
    what do you mean by macOS fs? You need to create an empty APFS partition? Give a concrete and specific example of how you need to test your library. – RibaldEddie Nov 19 '18 at 0:26
  • 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
0

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.

https://www.quora.com/How-can-I-run-MacOS-on-Linux-in-a-Virtual-Machine

  • The first sentence in the link you shared says, "Like Keith Derrick writes running macOS on anything but apple hardware violates the eula". – Lucas Ramage Jul 18 at 23:43

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.