Files
osyandClaude Opus 5.5 dba702cda9 utmbot: the harness that drives UTM, its VMs and simulators
bin/utmbot and scripts/utmbot: the UTM lease, disposable VM boots, guest
commands over SSH, driver installs, frame capture and pacing, benchmarks,
kernel debugging, snapshots, CrossOver comparisons; macOS VMs (create and
install from an IPSW or the latest one, Setup Assistant driven through the
screen with OCR, baselines, Xcode and simulator runtimes, LLDB) and UTM's
UI on macOS VMs and iOS simulators. Host builds of UTM and its
dependencies, unattended Windows and Linux provisioning, guest scripts, the
GPU probes and benchmark definitions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 16:20:48 -08:00

30 lines
1.1 KiB
Bash

# devvm.sh - SSH to the Windows dev VM a build script builds on
# (build-drivers.sh, build-probes.sh). Sourced; needs REPO.
#
# devvm_connect <dev VM name | [user@]host[:port]>
# HOST and SSH_OPTS for gssh and gscp: a VM the plugin
# provisioned is reached as utmbot reaches it (resolve_ssh in
# utm.sh), anything else as given; keepalives carry multi-hour
# first builds
# devvm_profile the VM user's %USERPROFILE%
# shellcheck source=utm.sh
. "$REPO/scripts/lib/utm.sh"
devvm_connect() {
resolve_ssh "$1" || exit 1
SSH_OPTS=(-o BatchMode=yes -o ConnectTimeout=15 -o ServerAliveInterval=60 -o ServerAliveCountMax=10
"${SSH_TARGET_OPTS[@]+"${SSH_TARGET_OPTS[@]}"}")
HOST="$SSH_HOST"
}
gssh() { ssh "${SSH_OPTS[@]}" "$HOST" "$@"; }
gscp() { scp -q "${SSH_OPTS[@]}" "$@"; }
devvm_profile() {
local profile
profile="$(gssh 'echo %USERPROFILE%' | tr -d '\r')"
[ -n "$profile" ] || { echo "could not read %USERPROFILE% on $HOST" >&2; exit 1; }
printf '%s\n' "$profile"
}