Skip to content

Commit 6aebaa4

Browse files
authored
Modernize instructions for Mac setup (#134)
Lessons learned from the M4 cluster
1 parent bf3c490 commit 6aebaa4

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

docs/infrastructure-macos.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,38 @@ On the Mac, go to System Settings -> Network and disable WiFi.
3939
Then, in the network settings, go to Ethernet -> Details -> DNS, and click "+" under "DNS Servers" to add the IPv4 addresses of alimesos01, alimesos02 and alimesos03 as DNS servers.
4040
Remove other DNS servers (including the automatic CERN central ones).
4141

42+
You will have to register them in LanDB too, the network will redirect you to the right page automatically.
43+
44+
### Set up the Mac's hostname
45+
46+
Make sure the Mac knows itself by it's real hostname, as it can have issues
47+
with DNS resolution otherwise. You can do this by going to System Preferences
48+
-> General -> About, and changing the computer name to the short hostname of
49+
the Mac (e.g. `alibuildmac09`).
50+
51+
### Enable SSH and VNC
52+
53+
To start both the SSH and VNC servers, enable remote login in System Preferences -> General -> Sharing -> Remote Login, and Screen Sharing.
54+
55+
Additionally, you may want to add the proper SSH keys to the `alibuild` user's `authorized_keys` file.
56+
4257
### Prevent the Mac from going to sleep
4358

4459
By default, Macs will go into a low-power state after a while without interactive use, which interrupts the CI build process.
4560
To prevent this, change the following settings in System Settings:
4661

47-
In Energy Saver, enable both "Start up automatically after a power failure" and "Wake for network access".
62+
In Energy, enable "Start up automatically after a power failure", "Wake for network access", and "Prevent computer from sleeping automatically when the display is off".
4863

4964
In Lock Screen, set both "Start Screen Saver when inactive" and "Turn display off when inactive" to "Never".
5065

51-
In Displays -> Advanced, enable "Prevent automatic sleeping when the display is off" (at the bottom of the page).
66+
### Disable crash reporting
67+
68+
Some jobs are intended to crash, and we don't want the Mac to get stuck waiting for user input.
69+
70+
```bash
71+
launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist
72+
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist
73+
```
5274

5375
### Software prerequisites
5476

@@ -300,3 +322,6 @@ sudo mount -t hfs /dev/disk2s1 /Volumes/build
300322
sudo /Users/alibuild/restart-services.sh
301323
```
302324

325+
### Macs continuously running out of memory
326+
327+
Make sure the Crash Reporter is disabled, as it can cause jobs like `o2-framework-crashing-workflow` to hang indefinitely.

0 commit comments

Comments
 (0)