diff --git a/Anka.md b/Anka.md index 8ab9d58..d6f3638 100644 --- a/Anka.md +++ b/Anka.md @@ -4,7 +4,7 @@ First, download macOS from App Store to have a `*.app` installation in `/Applica base all other VMs from: ```bash -anka create --ram-size 8G --cpu-count 2 --disk-size 80G -a /Applications/Install\ macOS\ Big\ Sur.app big-sur-vanilla +anka create --ram-size 8G --cpu-count 2 --disk-size 80G -a /Applications/Install\ macOS\ Big\ Sur.app monterey-vanilla ``` Then run `./scripts/install-anka-builder.sh` to install Anka builder for Packer. @@ -18,7 +18,7 @@ packer build -only=anka templates/base.json We also need to add a port forwarding rule so VMs based of `catalina-base` image can be SSHable: ```bash -anka modify big-sur-base add port-forwarding --host-port 0 --guest-port 22 ssh +anka modify monterey-base add port-forwarding --host-port 0 --guest-port 22 ssh ``` ## Building Xcode Images diff --git a/Parallels.md b/Parallels.md index 9f93f25..484a8c7 100644 --- a/Parallels.md +++ b/Parallels.md @@ -1,6 +1,6 @@ ## 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. +First, start Parallels 17 for Desktop and create a `monterey-vanilla` VM by just creating it from a recovery partition in the UI. Use VM's UI to change some settings: @@ -25,10 +25,10 @@ Also change some VM settings: 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: +If you are getting `prlctl error: Failed to register the VM: "monterey-vanilla" is already registered.` error, run: ```bash -prlctl unregister big-sur-vanilla +prlctl unregister monterey-vanilla ``` ## Building Xcode Images diff --git a/README.md b/README.md index af88fa5..9daf229 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ Repository with Packer templates to build VMs to use with [Cirrus CI](https://ci * `catalina-xcode-N` image is based of `catalina-base` and has `Xcode N` with [`Flutter`](https://flutter.dev/) pre-installed * `big-sur-base` image has only `brew` pre-installed * `big-sur-xcode-N` image is based of `big-sur-base` and has `Xcode N` with [`Flutter`](https://flutter.dev/) pre-installed +* `monterey-base` image has only `brew` pre-installed +* `monterey-xcode-N` image is based of `monterey-base` and has `Xcode N` with [`Flutter`](https://flutter.dev/) pre-installed See a full list of VMs available on Cirrus CI [here](https://cirrus-ci.org/guide/macOS/#list-of-available-images). @@ -13,4 +15,4 @@ See a full list of VMs available on Cirrus CI [here](https://cirrus-ci.org/guide ## Anka -Please see [`Anka.md`](Anka.md) for details on how to build Anka VMs. \ No newline at end of file +Please see [`Anka.md`](Anka.md) for details on how to build Anka VMs. diff --git a/scripts/pack-all-xcode-images.sh b/scripts/pack-all-xcode-images.sh index 593dc9d..49424ef 100755 --- a/scripts/pack-all-xcode-images.sh +++ b/scripts/pack-all-xcode-images.sh @@ -5,12 +5,12 @@ set -e Xcodes=("12.4") for Xcode in ${Xcodes[@]}; do - mv "$HOME/Parallels/big-sur-xcode-$Xcode/big-sur-xcode-$Xcode.pvm" "$HOME/Parallels/big-sur-xcode-$Xcode.pvm" - rm -rf "$HOME/Parallels/big-sur-xcode-$Xcode" - prlctl register "$HOME/Parallels/big-sur-xcode-$Xcode.pvm" - prlctl set "big-sur-xcode-$Xcode (1)" --name "big-sur-xcode-$Xcode" || true - prlctl start "big-sur-xcode-$Xcode" + mv "$HOME/Parallels/monterey-xcode-$Xcode/monterey-xcode-$Xcode.pvm" "$HOME/Parallels/monterey-xcode-$Xcode.pvm" + rm -rf "$HOME/Parallels/monterey-xcode-$Xcode" + prlctl register "$HOME/Parallels/monterey-xcode-$Xcode.pvm" + prlctl set "monterey-xcode-$Xcode (1)" --name "monterey-xcode-$Xcode" || true + prlctl start "monterey-xcode-$Xcode" sleep 180 - prlctl suspend "big-sur-xcode-$Xcode" - time prlctl pack "big-sur-xcode-$Xcode" -done \ No newline at end of file + prlctl suspend "monterey-xcode-$Xcode" + time prlctl pack "monterey-xcode-$Xcode" +done diff --git a/templates/base.json b/templates/base.json index 97ab03b..9f379cf 100644 --- a/templates/base.json +++ b/templates/base.json @@ -1,7 +1,7 @@ { "variables": { "home": "{{env `HOME`}}", - "mac_os_version": "big-sur" + "mac_os_version": "monterey" }, "builders": [ { diff --git a/templates/xcode.json b/templates/xcode.json index 98bf99d..eb32dc6 100644 --- a/templates/xcode.json +++ b/templates/xcode.json @@ -1,7 +1,7 @@ { "variables": { "home": "{{env `HOME`}}", - "mac_os_version": "big-sur", + "mac_os_version": "monterey", "xcode_version": "12.3" }, "builders": [