MacBook Pros in datacenter racks: how Namespace runs macOS instances
Namespace deploys hundreds of MacBook Pros into datacenter racks to serve macOS instances, because customers building and testing iOS apps need a Mac: the iOS Simulator only runs on a Mac, App Store releases require a recent Xcode version, and the xtool project is not yet a serious replacement. A Mac Mini would be a better server, but a couple hundred Minis ordered in January were delivered in July and the Mac Mini went without M5 cores for 10 months — that is how the MacBook-in-Datacenter project was born.
Each MacBook is connected to an IP KVM[1] for remote management, since laptop firmware assumes a screen, and gets an external 10G Ethernet NIC; cabling adds up to four cables per laptop, forty-eight per shelf plus twelve for Ethernet plus KVM wiring. Custom-made holders wick heat from hotspots and guide hot air away from neighboring machines. Contrary to expectations, MagSafe rarely disconnects, while HDMI turned out to be the most unreliable cable, and the company bought the entire available supply of better ones. The FileVault[2] pain point is decryption after an unplanned reboot: the password prompt disappears from the external screen after 5 minutes, the remote SSH unlock introduced in macOS Tahoe also expires after 5 minutes on laptops, so the only way out is a physical reboot, with fdesetup authrestart keeping the disk unlocked. A bug that makes an external USB NIC appear unpowered is fixed by deleting and recreating the network service in macOS Settings.
Instances run as virtual machines on Apple's Virtualization framework — comparable to Firecracker in how it fits the architecture — while the lower-level Hypervisor framework, analogous to Linux's KVM API, cannot run macOS. Apple allows only two macOS VMs per physical Mac, even a Mac Pro with 24 cores and 192 GB of memory, so instances get 6 or 12 cores on 14-core Minis and 8 or 16 cores on 18-core MacBooks with a couple of cores reserved for management overhead; the virtual CPU runs in a separate VMM[3] process, so interactions with custom virtual devices require an IPC roundtrip. M5 and M6 Mac Minis and Studios with a built-in 10 Gb network card, automatic boot after a power cycle and fully automatic OS configuration via MDM[4] are coming into the fleet.
Read the original namespace.soDiscussion
Discussion
Commenters mostly discuss how much work goes into working around Apple's limitations: one guesses buyers would take a modern Xserve even at twice the price because figuring out datacenter operations is expensive, another calls Xcode Cloud and Apple's automation a joke. One commenter disputes the claim that iOS apps cannot be built without a Mac, citing cross-compilation and signing tooling on Linux. Others share stories of running old MacBooks and Mac minis as home servers.
Sources
-
namespace.so
Mac at any scale
-
KRGeekNews KO
어떤 규모에서도 Mac 운영하기



