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"?

2 Answers2

1

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". – oxr463 Jul 18 '19 at 23:43
  • @Lucas: Worse. It is a DMCA violation. Psystar who tried making money selling PCs with MacOS installed was ordered to pay $2,500 per PC due to DMCA violation. Didn’t matter though since they were broke and never paid anyone, including their lawyers. – gnasher729 Nov 16 '19 at 16:39
0

What do you actually want to achieve? You can take an external hard drive, attach it to a Mac, format it using Disk Utility. Or you can create a disk image on your hard drive. Or you can just partition your hard drive, and such a partition can be completely separate from other partitions (with its own login, no access to other partitions)

gnasher729
  • 44,814
  • 4
  • 64
  • 126