1.5 KiB
1.5 KiB
Building Vanilla Image
First, start Parallels 16 for Desktop and create a big-sur-vanilla VM by just creating it from a recovery partition in the UI.
Use VM's UI to change some settings:
- 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
- Open Safari. Preferences -> Advanced -> Show Developer menu. Develop -> Allow Remote Automation.
- Run
sudo visudoin Terminal, find%admin ALL=(ALL) ALLaddadmin ALL=(ALL) NOPASSWD: ALLto allow sudo without a password. - optional Disable SIP by getting into Recovery Mode,
Utilities -> Terminaland runcsrutil disable.
Shutdown macOS.
Also change some VM settings:
- Security -> Isolate VM from Mac.
- Change any other settings.
Building Base Image
packer build -only=parallels templates/base.json
If you are getting prlctl error: Failed to register the VM: "big-sur-vanilla" is already registered. error, run:
prlctl unregister big-sur-vanilla
Building Xcode Images
To build an Xcode image (don't forget to setup DEVPORTAL_EMAIL and DEVPORTAL_PASSWORD since they are required by
xcodes):
packer build -only=parallels \
-var xcode_version="12.5" \
-var devportal_email="$DEVPORTAL_EMAIL" \
-var devportal_password="$DEVPORTAL_PASSWORD" \
templates/xcode.json