mirror of
https://github.com/cirruslabs/macos-image-templates.git
synced 2026-10-21 09:41:48 +02:00
Monterey images
This commit is contained in:
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
@@ -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.
|
||||
Please see [`Anka.md`](Anka.md) for details on how to build Anka VMs.
|
||||
|
||||
@@ -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
|
||||
prlctl suspend "monterey-xcode-$Xcode"
|
||||
time prlctl pack "monterey-xcode-$Xcode"
|
||||
done
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"variables": {
|
||||
"home": "{{env `HOME`}}",
|
||||
"mac_os_version": "big-sur"
|
||||
"mac_os_version": "monterey"
|
||||
},
|
||||
"builders": [
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"variables": {
|
||||
"home": "{{env `HOME`}}",
|
||||
"mac_os_version": "big-sur",
|
||||
"mac_os_version": "monterey",
|
||||
"xcode_version": "12.3"
|
||||
},
|
||||
"builders": [
|
||||
|
||||
Reference in New Issue
Block a user