Repository with Packer templates to build VMs to use with Cirrus CI.
macos-monterey-vanilla
image nothing pre-installedmacos-monterey-base
image has onlybrew
pre-installedmacos-monterey-xcode:N
image is based ofmacos-monterey-base
and hasXcode N
withFlutter
pre-installed
See a full list of VMs available on Cirrus CI here.
First, create a monterey-vanilla
VM from the latest available IPSW with following command:
tart create --from-ipsw=latest --disk-size=25 monterey-vanilla
Start the VM and use UI to change some settings:
tart run monterey-vanilla
- Disable Lock Screen. Preferences -> Lock Screen -> disable "Require Password" after 5.
- Disable Screen Saver.
- Enable Auto-Login. Users & Groups -> Login Options -> Automatic login -> admin.
- Allow SSH. Sharing -> Remote Login
- Power -> Turn display off -> Never & Prevent from sleeping
- Open Safari. Preferences -> Advanced -> Show Developer menu. Develop -> Allow Remote Automation.
- Run
sudo visudo
in Terminal, find%admin ALL=(ALL) ALL
addadmin ALL=(ALL) NOPASSWD: ALL
to allow sudo without a password. - Optionally disable SIP. Run
tart run --recovery monterey-vanilla
-> Options -> Utilities menu -> Terminal ->csrutil disable
.
Shutdown macOS.
packer build templates/base.pkr.hcl
packer build -var xcode_version="13.4.1" templates/xcode.pkr.hcl