Skip to content

Commit 8fc660d

Browse files
committed
env/windows-arm64/azure: fill in a few missing README bits
Fill in a few more minor steps needed in the recipe for reverse builder VM creation/setup (builder key, initial login). Updates golang/go#57408. Change-Id: Iba36ef50bb2e1bbf734126aabcec0dcf850f695b Reviewed-on: https://go-review.googlesource.com/c/build/+/462015 TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]> Run-TryBot: Than McIntosh <[email protected]>
1 parent fdfb99e commit 8fc660d

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

env/windows-arm64/azure/README.md

+20-3
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ Deployment VMs are set up with invocations of the following az CLI command:
3434
az vm create \
3535
--name=MyNewVmName \
3636
--resource-group=dev_buildlets \
37-
--admin-username=<pick your admin account name> \
38-
--admin-password=<pick password> \
37+
--admin-username=gopheradmin \
38+
--admin-password=<password from valentine> \
3939
--image=microsoftwindowsdesktop:windows11preview-arm64:win11-22h2-ent:latest \
4040
--nsg-rule=NONE \
4141
--size=Standard_D8ps_v5 \
4242
--subscription=<set subscription ID here> \
4343
--public-ip-address ""
4444
```
4545

46-
and then configure as described below in VM setup. This VM will have no public IP address or open ports, thus will be usable only by the coordinator.
46+
and then configure as described below in VM setup. This VM will have no public IP address or open ports, thus will be usable only by the coordinator.
4747

4848
Notes:
4949
* the "image" argument above is arm-specific, and in addition "size" argument also encodes the arm64-ness of the VM (strangely)
@@ -82,6 +82,23 @@ az vm run-command invoke \
8282
--scripts @antivirusadditions.ps1
8383
```
8484

85+
## First login
86+
87+
Log into the new builder as "gopher" at least once so as to go through the "initial login" Windows workflow.
88+
89+
## Builder key
90+
91+
Generate a builder key for the VMs according to the directions in [x/build/cmd/genbuilderkey](https://go.googlesource.com/build/+/fdfb99e1de1f68b555502056567be459d98a0e71/cmd/genbuilderkey/README.md).
92+
93+
Once the key is available, write it to the builder (via "az vm run-command invoke" as above) using a PowerShell script of the form
94+
95+
```
96+
Write-Host "writing builder key"
97+
98+
$key = "<insert key here>"
99+
$key | Out-File -Encoding ascii -FilePath C:\Users\gopher\.gobuildkey-host-windows11-arm64-azure
100+
```
101+
85102
## Debugging/testing VM creation
86103

87104
To create a new windows-arm64 VM named "MyNewVM" that is net accessible (e.g. with a public IP and ssh port exposed), use this command:

0 commit comments

Comments
 (0)