Skip to content

Commit 818a910

Browse files
committed
env/darwin/macstadium: update image documentation
The macOS Catalina builder release requires additional notes to be added to the macOS builder documentation. Change-Id: I181c0175b46e0359ba940107311dda9a31dfdd68 Reviewed-on: https://go-review.googlesource.com/c/build/+/226841 Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 2c61532 commit 818a910

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

env/darwin/macstadium/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ via:
1414

1515
$ ssh -i ~/keys/id_ed25519_golang1 [email protected]
1616

17-
(Where `id_ed255519_golang` is available from http://go/go-builders-ssh)
17+
(Where `id_ed255519_golang1` is available from http://go/go-builders-ssh)
1818

1919
It also runs:
2020

@@ -57,6 +57,20 @@ VMware web UI at:
5757
(Alternatively, `ssh -D` to the bastion host to make a SOCKS tunnel
5858
and configure your browser to send proxy through that SOCKS tunnel.)
5959

60+
## Adding a New Image
61+
62+
When a new version of macOS is released:
63+
64+
* Ensure that the version of vSphere deployed on MacStadium supports the
65+
new version of macOS. If it doesn't, either request that MacStadium
66+
upgrade the cluster or seek guidance from them about the upgrade path.
67+
68+
* Clone the latest macOS version on vSphere and upgrade that version
69+
to the desired macOS version as per the [instructions](vmware-notes.md).
70+
71+
* If a completely new image is required, follow the [images setup notes](image-setup-notes.txt)
72+
in order to add a new image.
73+
6074
## Debugging
6175

6276
Common techniques to debug:

env/darwin/macstadium/image-setup-notes.txt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
The Disk should be formatted with a case insensitive file system (default).
2+
13
Install VMWare tools daemon.
24

35
- you should be able to do this from the vSphere UI, but I got errors with Mojave.
@@ -10,20 +12,26 @@ Install VMWare tools daemon.
1012
$ /Library/Application Support/VMware Tools/vmware-tools-daemon --cmd "info-get guestinfo.name"
1113
No value value
1214

13-
Add $HOME/go1.4
15+
Download Go 1.13.4 or newer tarball via curl (bootstrap version of Go must be signed and notorized in macOS version >= 10.15).
16+
17+
tar -xf <go.darwin-amd64.tar.gz>
18+
19+
mv go $HOME/goboot
1420

1521
System Preferences > Software Update > off
1622

1723
System Preferences > Desktop & Screensaver > never screensaver
1824

1925
System Preferences > Energy Saver > never sleep
2026

21-
System Preferences > Sharing > enable ssh (for later)
27+
System Preferences > Sharing > enable ssh (enable for administrators)
2228

2329
Create executable $HOME/stage0.sh with:
2430

2531
#!/bin/bash
26-
while true; do (curl -v http://10.50.0.2:8713/stage0/$(sw_ver -productVersion) | sh); sleep 5; done
32+
while true; do (curl -v http://10.50.0.2:8713/stage0/$(sw_vers -productVersion) | sh); sleep 5; done
33+
34+
chmod +x $HOME/stage0.sh
2735

2836
Automator:
2937

@@ -43,12 +51,12 @@ passwordless sudo:
4351
%admin ALL=(ALL) NOPASSWD: ALL
4452

4553
install xcode
46-
(as of 10.10 or 10.9, running git first time will propt for install;
47-
before that, need to find old xcode version)
54+
- Version < 10.9: search and install an older compatible version of Xcode.
55+
- Versions 10.10, 10.9: running git first time will prompt for install.
56+
- Version => 10.15: download Xcode from the Apple Developer site.
4857

4958
verbose boot: (text instead of apple image)
5059

5160
sudo nvram boot-args="-v"
5261

5362
run-builder-darwin-10_11.sh
54-

0 commit comments

Comments
 (0)