Repository with Packer templates to build Tart VMs to use with Cirrus CI.
macos-{monterey,ventura}-vanilla
image nothing pre-installedmacos-{monterey,ventura}-base
image has onlybrew
pre-installedmacos-{monterey,ventura}-xcode:N
image is based ofmacos-{monterey,ventura}-base
and hasXcode N
withFlutter
pre-installed
See a full list of VMs available on Cirrus CI here.
First, create a ventura-vanilla
VM from the latest available IPSW with following command:
tart create --from-ipsw=latest --disk-size=25 ventura-vanilla
Start the VM and use UI to change some settings:
tart run ventura-vanilla
- Disable Lock Screen and Screen Saver. Preferences -> Lock Screen -> disable first three settings.
- Enable Auto-Login. Users & Groups -> Automatic log in as... -> admin.
- Allow SSH. General -> Sharing -> Remote Login & Screen Sharing
- Display -> Advanced -> Prevent from sleeping
- Open Safari. Preferences -> Advanced -> Show Developer menu. Develop -> Allow Remote Automation.
- (Optional, depends on your needs) Disable SIP. Run
tart run --recovery ventura-vanilla
-> Options -> Utilities menu -> Terminal ->csrutil disable
. - Enable passwordless
sudo
:- Run
sudo visudo /private/etc/sudoers.d/admin-passwordless
in Terminal. - Add
admin ALL = (ALL) NOPASSWD: ALL
to allowsudo
without a password. :wq
to write the file and quit.sudo
some command to verify no password is needed.
- Run
Shutdown macOS.
packer build templates/base.pkr.hcl
packer build -var xcode_version="14-beta-5" templates/xcode.pkr.hcl