Skip to content

Commit 4e128fc

Browse files
prattmicgopherbot
authored andcommitted
env/darwin/aws: update docs
Different networking flag is needed for older macOS. Plus the disk numbering seems to change arbitrarily, so don't promise my examples are accurate. For golang/go#48945. Change-Id: I0e576e0c6c9e80969462a353c2e0326246ff4280 Reviewed-on: https://go-review.googlesource.com/c/build/+/432860 Auto-Submit: Michael Pratt <[email protected]> Run-TryBot: Michael Pratt <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 0baac96 commit 4e128fc

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

env/darwin/aws/README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ Steps to create a new QEMU macOS guest image:
7676
6. Use `$HOME/start-installer.sh macos-monterey.qcow2 opencore.img
7777
Monetery-recovery.dmg $OSK_VALUE` to launch the macOS installer in QEMU.
7878

79+
NOTE: If networking isn't working on older versions of macOS, swap the
80+
networking flag in `qemu.sh`.
81+
7982
This starts QEMU with the display on a VNC server at `localhost:5901`. Use SSH
8083
port forwarding to forward this to your local machine:
8184

@@ -102,10 +105,10 @@ Once macOS is fully installed, we will install OpenCore on the primary disk and
102105
configure it to autoboot to macOS.
103106

104107
1. In the guest, find the OpenCore and primary disks with `diskutil list`.
105-
* The OpenCore disk contains only one parition, of type "EFI". It is likely
106-
/dev/disk0, EFI partition /dev/disk0s1.
108+
* The OpenCore disk contains only one parition, of type "EFI". e.g., it may
109+
be /dev/disk0, EFI partition /dev/disk0s1.
107110
* The primary disk contains two paritions, one of type "EFI", one of type
108-
"Apple_APFS". It is likely /dev/disk2, EFI partition /dev/disk2s1.
111+
"Apple_APFS". e.g., it may be /dev/disk2, EFI partition /dev/disk2s1.
109112
2. Copy the OpenCore EFI partition over the primary disk EFI partition.
110113
* `sudo dd if=/dev/disk0s1 of=/dev/disk2s1`
111114
3. Mount the primary disk EFI partition to edit the configuration.
@@ -123,7 +126,8 @@ configure it to autoboot to macOS.
123126
$ $HOME/start-mutable.sh macos-monterey.qcow2 $OSK_VALUE
124127
```
125128

126-
Now complete the remainder of the [machine setup](../setup-notes.md).
129+
Now complete the remainder of the [machine setup](../setup-notes.md). See the
130+
`hostfwd` option in `qemu.sh` if you would like SSH access to the guest.
127131

128132
Copy complete images to `s3://go-builder-data/darwin/` for use on other
129133
builders.

env/darwin/aws/qemu.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ args=(
3636
-drive id=MacHDD,if=none,format=qcow2,file="$DISK"
3737
-device ide-hd,bus=sata.2,drive=MacHDD
3838
-netdev user,id=net0 # add ,hostfwd=tcp::5555-:22 to forward SSH to localhost:5555.
39-
-device virtio-net-pci,netdev=net0,id=net0,mac=52:54:00:c9:18:27
39+
-device virtio-net-pci,netdev=net0,id=net0,mac=52:54:00:c9:18:27 # for macOS >= 11
40+
# -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:c9:18:27 # for macOS < 11
4041
-monitor stdio
4142
-device VGA,vgamem_mb=128
4243
-M accel=hvf

0 commit comments

Comments
 (0)