BG5 commited on
Commit
199bf1b
·
1 Parent(s): b0b37ca

Upload 49 files

Browse files
Files changed (49) hide show
  1. CHANGELOG.md +65 -0
  2. CREDITS.md +131 -0
  3. Dockerfile +392 -0
  4. Dockerfile.auto +280 -0
  5. Dockerfile.monterey +255 -0
  6. Dockerfile.naked +204 -0
  7. Dockerfile.naked-auto +245 -0
  8. LICENSE +674 -0
  9. Youtube-Screenshot-Docker-OSX-Setup.png +0 -0
  10. Youtube-USBFLUXD-Screenshot-Docker-OSX.png +0 -0
  11. custom/README.md +7 -0
  12. custom/config-custom.plist +1401 -0
  13. custom/config-legacy.plist +883 -0
  14. custom/config-nopicker-custom.plist +1401 -0
  15. custom/config-nopicker-legacy.plist +883 -0
  16. custom/generate-specific-bootdisk.sh +290 -0
  17. custom/generate-unique-machine-values.sh +397 -0
  18. custom/opencore-image-ng.sh +164 -0
  19. discord-logo.svg +14 -0
  20. docker-compose.yml +26 -0
  21. fetch-macOS.py +447 -0
  22. glibc-linux4-2.33-4-x86_64.pkg.tar.zst +3 -0
  23. helm/Chart.yaml +16 -0
  24. helm/Dockerfile +72 -0
  25. helm/INSTALL-QEMU-AND-GPU-IOMMU.md +283 -0
  26. helm/README.md +87 -0
  27. helm/artifacthub-repo.yml +5 -0
  28. helm/docker-osx-0.2.0.tgz +3 -0
  29. helm/helm-chart-generate.sh +9 -0
  30. helm/index.yaml +24 -0
  31. helm/templates/_helpers.tpl +32 -0
  32. helm/templates/configmap.yaml +1299 -0
  33. helm/templates/data-pvc.yaml +28 -0
  34. helm/templates/deployment.yaml +148 -0
  35. helm/templates/ingress.yaml +39 -0
  36. helm/templates/service.yaml +32 -0
  37. helm/values.yaml +203 -0
  38. rankmirrors +244 -0
  39. running-mac-inside-docker-qemu.png +0 -0
  40. tests/big-sur_master.png +0 -0
  41. tests/boot-images.sh +69 -0
  42. tests/catalina_master.png +0 -0
  43. tests/high-sierra_master.png +0 -0
  44. tests/mojave_master.png +0 -0
  45. tests/monterey_master.png +0 -0
  46. tests/test.sh +348 -0
  47. tests/ventura_master.png +0 -0
  48. vnc-version/Dockerfile +128 -0
  49. vnc-version/Dockerfile.nakedvnc +207 -0
CHANGELOG.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ |Version|Date|Notes|
2
+ |---|---|---|
3
+ | |2021-09-09|Add Monterey|
4
+ | |2021-08-27|Add iPhone passthrough OTA!|
5
+ |6.0|2021-08-25|Added naked-auto. Keep kernel at 5.13, even tho it's just for supermin.|
6
+ |5.0|2021-07-25|Retire glibc patch. Retire file command patch. Add bootmenu=on.|
7
+ | |2021-07-08|Add CPUID_FLAGS to edit the CPUID flags on the fly.|
8
+ |4.4|2021-05-06|Prepare nakedvnc for hub.docker.com. Add `ENV BOOT_ARGS=` to supply additon boot arguments, for example, `vmx,rdtscp`. Add `ENV CPU=Penryn` to allow changes to the CPU emulation, for example, `Skylake-Client`, or see [more examples here](https://manpages.ubuntu.com/manpages/disco/man7/qemu-cpu-models.7.html).|
9
+ | |2021-05-04|Disable arbitrary chown warning|
10
+ | |2021-04-27|Fixed missing sudo|
11
+ | |2021-04-18|Add LIBGUESTFS debug & trace commands, exit on fail when creating bootdisks. Silence touch errors.|
12
+ |4.3|2021-03-24|Enable interactive QEMU again. Remove envsubst since we are already using bash... Add set -x flag|
13
+ |4.2|2021-03-24|Add all ENV variables to each dockerfile for readability. Add RAM allocation buffer and cache drop bug fix. Add kvm and libvirt groups. Add `IMAGE_FORMAT=qcow2` to allow `IMAGE_FORMAT=raw` too.|
14
+ | |2021-03-19|Use RAM=3 as the default RAM allocation. Add instructions to clear buff/cache.|
15
+ | |2021-03-17|Add RAM=max and RAM=half to dynamically select ram at runtime (DEFAULT).|
16
+ | |2021-03-06|Change envs to require --envs. Automatically enable --envs if --output-env is used. Same for plists, bootdisks. Fix help ugliness and sanity of generate serial scripts. Fix bootdisk not getting written to persistent file when using NOPICKER=true. NOPICKER=true is overridden by a custom plist now anyway. Remove useless case statements. Allow -e HEADLESS=true as human readable alternative to -e DISPLAY=:99.|
17
+ |4.1|2021-03-04|Add `-e MASTER_PLIST_URL` to all images to allow using your own remote plist.|
18
+ | |2021-03-03|Add `WIDTH` and `HEIGHT` to set the x and y resolutions, use in conjuction with serial numbers.|
19
+ | |2021-03-02|Add ADDITIONAL_PORTS, for example `-e ADDITIONAL_PORTS='hostfwd=tcp::23-:23,'`|
20
+ |4.0|2021-02-27|Add big-sur support. Use `sickcodes/docker-osx:big-sur` or build using `--build-arg VERSION=11`|
21
+ | |2021-02-26|Change `-e NOPICKER=true` to simply do `sed -i '/^.*InstallMedia.*/d' Launch.sh` and `export BOOTDISK=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2`.|
22
+ |3.2|2021-02-25|Add a script to generate unique machine serial numbers. Add a script to generate a bootdisk from given serial numbers. Add Linux for libguestfs which allows the docker container to make QEMU bootdisks with specific serial numbers.|
23
+ | |2021-02-21|Add NOPICKER environment variable to ALL images.|
24
+ |3.1|2021-02-21|Remove testing repos. Switch to base-devel. We shouldn't be using testing repos in a Dockerfile for light increase in stability. Add the mandatory glibc patch to every pacman until someone upstream fixes it.|
25
+ | |2021-02-07|Add NOPICKER environment variable to :naked image for effortless boot toggling.|
26
+ | |2021-02-07|Add MAC_ADDRESS environment variable.|
27
+ | |2021-02-03|Employ wget --no-verbose to avoid buffer overload in hub.docker.com.|
28
+ | |2021-02-03|Reduce build size.|
29
+ | |2021-01-27|Add OSX_COMMANDS to allow runtime commands on :auto image.|
30
+ | |2021-01-26|Removed most pointless VOLUME build commands.|
31
+ |3.0|2021-01-23|Add fast mode boot straight to shell. And -v $PWD/disk.img:/image for all Dockerfiles|
32
+ | |2021-01-22|Add additional helm chart instructions and files.|
33
+ | |2021-01-15|Fix helm initial disk creation process and add installation instructions.|
34
+ | |2021-01-14|Add Helm Chart for Kubernetes support.|
35
+ | |2021-01-08|Use IMAGE_PATH as a variable during envsubst for the full path of mac_hdd_ng.img. In preparation for full auto.|
36
+ | |2021-01-07|Fix sounds errors and sshd missing on latest build.|
37
+ |2.7|2021-01-05|Add rankmirrors. Remove gibMacOS. Replace iptables with iptables-nft. Remove libguestfs.|
38
+ | |2020-12-17|Remove unnecessary WORKDIR commands.|
39
+ | |2020-12-16|Reduce image size by cloning OSX-KVM to only 1 depth level. Simplify mkdir && chown to mkdir -m|
40
+ | |2020-10-06|Add the ability to skip the boot screen with ./Launch-nopicker.sh|
41
+ | |2020-10-05|Add vim/vi and nano to the container.|
42
+ |2.6|2020-09-26|Increase version.|
43
+ | |2020-09-25|Add some WORKDIR fixes.|
44
+ | |2020-09-24|Clear pacman cache after use to reduce disk size significantly. Add various shell expansions to inline variables. Add set -eu to Launch.sh. Add a shebang to Launch.sh. Add tcg acceleration as a fallback to kvm. Remove need for display **(This change is reverted later)**. Chown /dev/kvm and /dev/snd. Remove --privileged by specifying required passthroughs. Add audio driver arguments to satisfy QEMU **(USB SoundCard recommended)**. Tidy Launch.sh to reduce image by 2.5GB (from 6GB). |
45
+ |2.5|2020-09-20|Critical changes to TigerVNC due to upstream overhaul in TigerVNC.|
46
+ | |2020-09-20|Replace ebtables with iptables-nft.|
47
+ | |2020-08-29|Increase default OSX to 10.15.6 and add SCREEN_SHARE_PORT=5900 ENV variable.|
48
+ | |2020-08-23|Add OSX Screen Sharing port forwarding.|
49
+ | |2020-08-23|Clear /tmp/.X99-lock before starting the VNC version.|
50
+ | |2020-07-02|Refresh the docker-compose file.|
51
+ | |2020-06-22|Add some mirrors to the container.|
52
+ | |2020-06-22|Add more force updates to pacman.|
53
+ | |2020-06-18|Significantly reduce image layer count by concatenating groups of commands.|
54
+ | |2020-06-18|Use the mainline image as the base image for the VNC version.|
55
+ |2.0|2020-06-15|Change default OSX version from 10.14.6 to 10.15.5. Add SSH port forwarding inside the container thru to the guest. Increase default arbitrary disk size to 200G. Force update pacman to prevent old mirror links. Add custom Launch.sh script. Add customizable RAM, SMP, CORES, EXTRA and INTERNAL_SSH_PORT|
56
+ | |2020-06-14|Remove yay|
57
+ | |2020-06-10|Add an OR for attemping to kill non-existent VNC lock files.|
58
+ | |2020-06-09|Instruct gibMacOS to download recovery disk only.|
59
+ | |2020-06-09|Remove VNC lockfile from killed containers preventing a restart.|
60
+ | |2020-06-08|Add docker-compose.yml|
61
+ | |2020-06-07|Add VNC version inside the vnc folder.|
62
+ | |2020-06-05|Remove systemctl enable libvirtd.service/virtlogd.service since Docker doesn't have systemd|
63
+ | |2020-06-04|Removed svm\|vmx via /proc/cpuinfo check which fails on hub.docker.com|
64
+ |1.0|2020-06-04|Initial Release|
65
+
CREDITS.md ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Credits
2
+
3
+ The most important part of the project. You.
4
+
5
+ ## Upstream Acknowledgements:
6
+
7
+ This project uses OSX-KVM from https://github.com/kholia/OSX-KVM and fully appreciates the work done by [@Kholia](https://github.com/Kholia) and all the contributors who are listed: [https://github.com/kholia/OSX-KVM/blob/master/CREDITS.md](https://github.com/kholia/OSX-KVM/blob/master/CREDITS.md)
8
+
9
+ This project also uses KVM-OpenCore from https://github.com/Leoyzen/KVM-Opencore and fully appreciates the work done by [@Leoyzen](https://github.com/Leoyzen).
10
+
11
+ We use a special fork by [Nicholas Sherlock](https://www.nicksherlock.com/) of KVM-Opencore https://github.com/thenickdude/KVM-Opencore and thank Nick for his awesome upstream work!
12
+
13
+ This project now uses the fantastic OpenCore bootloader from the community OpenCore project: https://github.com/acidanthera/OpenCorePkg. You can join their [Subreddit here](https://www.reddit.com/r/hackintosh/)!
14
+
15
+ ## These credits refer to the legendary contributors to this repository:
16
+
17
+ [@GreeFine](https://github.com/GreeFine) - Readme Typo #9
18
+
19
+ [@parasquid](https://github.com/parasquid) - Docker compose file
20
+
21
+ [@matusnovak](https://github.com/matusnovak) - Kill badly terminated old vnc session before vnc starts and fix gtk initialization failed #31
22
+
23
+ [@m1k1o](https://github.com/m1k1o) - Kill badly terminated old vnc session before vnc starts and fix gtk initialization failed #31
24
+
25
+ [@qcasey](https://github.com/qcasey) - Removed unnecessary yay in Remove yay dependancy #40
26
+
27
+ [@tlierdotfr](https://github.com/tlierdotfr) - Reduce number of layers in Dockerfile
28
+
29
+ [@Julioevm](https://github.com/Julioevm) - Update docker-compose.yml #57
30
+
31
+ [@jviotti](https://github.com/jviotti) - Auto-boot thru ShowPicker
32
+
33
+ [@MrBenFTW](https://github.com/MrBenFTW) - Updated macOS version 10.15.5 -> 10.15.6, Enabled screen sharing port forwarding, Removed the need to remove 1gb from the partition.
34
+
35
+ [@hoantp](https://github.com/hoantp) - Initialized TigerVNC 1.11.0 fix
36
+
37
+ [@jimdigriz](https://github.com/jimdigriz) - Epic fixes: image size, shellisms, fallback2kvm, unprivileged mode https://github.com/sickcodes/Docker-OSX/pull/82
38
+
39
+ [@NickZhouNan](https://github.com/NickZhouNan) - Bug fix with changed WORKDIR
40
+
41
+ [@MrBenFTW](https://github.com/MrBenFTW) - Added IP forwarding hot tips, useful for boosting bridged networking in remote environments.
42
+
43
+ [@mikob](https://github.com/mikob) - Added important warning for Xcode users to reserve 60GB++ - Made instructions more clear for those needing Xcode #94
44
+
45
+ [@AdamMomen](https://github.com/AdamMomen) - Fixed automatic boot vnc-version container instructions for better usablility
46
+
47
+ [@PeterDaveHello](https://github.com/PeterDaveHello) - Simplify .ssh directory setup process in Dockerfile #111
48
+
49
+ [@PeterDaveHello](https://github.com/PeterDaveHello) - Reduce image size by setting git clone depth #110
50
+
51
+ [@PeterDaveHello](https://github.com/PeterDaveHello) - Reduce Dockerfile instructions and Docker image layers #112
52
+
53
+ [@weskerfoot](https://github.com/weskerfoot) Docs updates: usb passthrough, headless mode, disk space reduction guide #113
54
+
55
+ [@PeterDaveHello](https://github.com/PeterDaveHello) - Improve Dockerfile #121
56
+
57
+ [@cephasara](https://github.com/cephasara) - Add helm chart #124
58
+
59
+ [@cephasara](https://github.com/cephasara) - Fix helm initial disk creation process and add installation instructions #125
60
+
61
+ [@cephasara](https://github.com/cephasara) - Add gpu passthrough support as well as dynamic OpenCore chainloader regeneration #132
62
+
63
+ [@cephasara](https://github.com/cephasara) - Fix helm installation failure and cleanup values organization #134
64
+
65
+ [@prometheas](https://github.com/prometheas) - docs: fix broken multi-line docker command #140
66
+
67
+ [@MrBenFTW](https://github.com/MrBenFTW) - Tempfix for arch #150
68
+
69
+ [@edsonboldrini](https://github.com/edsonboldrini) - Update README.md #161
70
+
71
+ [@TheHackerCoding](https://github.com/TheHackerCoding) - Typo in README.md #194
72
+
73
+ [@panos](https://github.com/panos) - Improved README #212
74
+
75
+ [@ggjulio](https://github.com/ggjulio) - Restarting an "auto" container #216
76
+
77
+ [@panos](https://github.com/panos) - Improved README #212
78
+
79
+ [@panos](https://github.com/panos) - Made further improvements to the README #219
80
+
81
+ [@kaoudis](https://github.com/kaoudis) README / troubleshooting docs improvements #235
82
+
83
+ [@a10kiloham](https://github.com/a10kiloham) - Dockerfile for :naked image with VNC support #245
84
+
85
+ [@a10kiloham](https://github.com/a10kiloham) - Adding Bluebubbles as an example use case #250
86
+
87
+ [@aronzvi](https://github.com/aronzvi) - Fixed Failed to boot OSX with GENERATE_UNIQUE #244
88
+
89
+ [@tinjaw](https://github.com/tinjaw) - Fixed Type #258
90
+
91
+ [@m-zheng](https://github.com/m-zheng) - Update README.md #260
92
+
93
+ [@johnjhacking](https://github.com/johnjhacking) - Change call function to Popen #288
94
+
95
+ [@allansrc](https://github.com/allansrc) - Update Doc detail for run on WLS #318
96
+
97
+ [@mcandre](https://github.com/mcandre) - fix typo #334
98
+
99
+ [@cybik](https://github.com/cybik) Spice fix #337
100
+
101
+ [@Silfalion](https://github.com/Silfalion) - [https://github.com/Silfalion/Iphone_docker_osx_passthrough](https://github.com/Silfalion/Iphone_docker_osx_passthrough)
102
+
103
+ [@chirag350](https://github.com/chirag350) use LABEL instead of MAINTAINER since MAINTAINER is deprecated #352
104
+
105
+ [@Buthrakaur](https://github.com/Buthrakaur) readme - improve instructions for running on windows #361
106
+
107
+ [@TheHackerCoding](https://github.com/TheHackerCoding) Typo in README #367
108
+
109
+ [@cameronsteele](https://github.com/cameronsteele) fix Big Sur build example #378
110
+
111
+ [@eggplants](https://github.com/eggplants) Fix command to launch sickcodes/docker-osx:auto #366
112
+
113
+ [@martinmullins](https://github.com/martinmullins) Notes for mounting an NFS folder from a linux host #392
114
+
115
+ [@kimjammer](https://github.com/kimjammer) Readme - Added instructions for using WSLg's built in X11 server #395
116
+
117
+ [@jk2K](https://github.com/jk2K) fix: support dynamic change of Base image #408
118
+
119
+ [@MikeCoder96](https://github.com/MikeCoder96) Update README.md with WSL how to #412
120
+
121
+ [@aslafy-z](https://github.com/aslafy-z) chore(docs): update helm requirements list style #420
122
+
123
+ [@kimjammer](https://github.com/kimjammer) Update Windows Installation section #422
124
+
125
+ [@Mhartig](https://github.com/Mhartig) - Worked out issue `Enter a number (default=1): error: invalid number: y`
126
+
127
+ [@felipestt](https://github.com/felipestt) Use more CPU Cores/SMP' broken #440
128
+
129
+ [@routmoute](https://github.com/routmoute) README: add PulseAudio with WSLg #442
130
+
131
+ [@dulatello08](https://github.com/dulatello08) Update README.md #452
Dockerfile ADDED
@@ -0,0 +1,392 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/docker
2
+ # ____ __ ____ ______ __
3
+ # / __ \____ _____/ /_____ _____/ __ \/ ___/ |/ /
4
+ # / / / / __ \/ ___/ //_/ _ \/ ___/ / / /\__ \| /
5
+ # / /_/ / /_/ / /__/ ,< / __/ / / /_/ /___/ / |
6
+ # /_____/\____/\___/_/|_|\___/_/ \____//____/_/|_|
7
+ #
8
+ # Title: Docker-OSX (Mac on Docker)
9
+ # Author: Sick.Codes https://twitter.com/sickcodes
10
+ # Version: 6.0
11
+ # License: GPLv3+
12
+ # Repository: https://github.com/sickcodes/Docker-OSX
13
+ # Website: https://sick.codes
14
+ #
15
+ # All credits for OSX-KVM and the rest at @Kholia's repo: https://github.com/kholia/osx-kvm
16
+ # OpenCore support go to https://github.com/Leoyzen/KVM-Opencore
17
+ # and https://github.com/thenickdude/KVM-Opencore/
18
+ #
19
+ # This Dockerfile automates the installation of Docker-OSX
20
+ # It will build a 200GB container. You can change the size using build arguments.
21
+ # This Dockerfile builds on top of the work done by Dhiru Kholia, and many others.
22
+ #
23
+ # Build:
24
+ #
25
+ # docker build -t docker-osx .
26
+ # docker build -t docker-osx --build-arg VERSION=10.15.5 --build-arg SIZE=200G .
27
+ #
28
+ # Basic Run:
29
+ #
30
+ # docker run --device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:latest
31
+ #
32
+ # Run with SSH:
33
+ #
34
+ # docker run --device /dev/kvm --device /dev/snd -e RAM=6 -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:latest
35
+ # # ssh fullname@localhost -p 50922
36
+ #
37
+ # Optargs:
38
+ #
39
+ # -v $PWD/disk.img:/image
40
+ # -e SIZE=200G
41
+ # -e VERSION=10.15.6
42
+ # -e RAM=5
43
+ # -e SMP=4
44
+ # -e CORES=4
45
+ # -e EXTRA=
46
+ # -e INTERNAL_SSH_PORT=10022
47
+ # -e MAC_ADDRESS=
48
+ #
49
+ # Extra QEMU args:
50
+ #
51
+ # docker run ... -e EXTRA="-usb -device usb-host,hostbus=1,hostaddr=8" ...
52
+ # # you will also need to pass the device to the container
53
+
54
+ FROM archlinux:base-devel
55
+ LABEL maintainer='https://twitter.com/sickcodes <https://sick.codes>'
56
+
57
+ SHELL ["/bin/bash", "-c"]
58
+
59
+ # change disk size here or add during build, e.g. --build-arg VERSION=10.14.5 --build-arg SIZE=50G
60
+ ARG SIZE=200G
61
+
62
+ # OPTIONAL: Arch Linux server mirrors for super fast builds
63
+ # set RANKMIRRORS to any value other that nothing, e.g. -e RANKMIRRORS=true
64
+ RUN perl -i -p -e s/^\#Color/Color$'\n'ParallelDownloads\ =\ 30/g /etc/pacman.conf
65
+ ARG RANKMIRRORS
66
+ ARG MIRROR_COUNTRY=US
67
+ ARG MIRROR_COUNT=10
68
+
69
+ RUN tee /etc/pacman.d/mirrorlist <<< 'Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch' \
70
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
71
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch'
72
+
73
+ # Fixes issue with invalid GPG keys: update the archlinux-keyring package to get the latest keys, then remove and regenerate gnupg keys
74
+ RUN pacman -Sy archlinux-keyring --noconfirm \
75
+ && rm -rf /etc/pacman.d/gnupg \
76
+ && pacman-key --init \
77
+ && pacman-key --populate archlinux
78
+
79
+ RUN if [[ "${RANKMIRRORS}" ]]; then \
80
+ { pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
81
+ ; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/${BRANCH:=master}/rankmirrors" \
82
+ ; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \
83
+ | sed -e 's/^#Server/Server/' -e '/^#/d' \
84
+ | head -n "$((${MIRROR_COUNT:-10}+1))" \
85
+ | bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
86
+ && cat /etc/pacman.d/mirrorlist \
87
+ ; fi
88
+
89
+ RUN tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkp://keyserver.ubuntu.com' \
90
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://hkps.pool.sks-keyservers.net:443' \
91
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkp://pgp.mit.edu:11371' \
92
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://keys.openpgp.org' \
93
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://keys.mailvelope.com'
94
+
95
+ # This fails on hub.docker.com, useful for debugging in cloud
96
+ # RUN [[ $(egrep -c '(svm|vmx)' /proc/cpuinfo) -gt 0 ]] || { echo KVM not possible on this host && exit 1; }
97
+
98
+ # RUN tee -a /etc/pacman.conf <<< '[community-testing]' \
99
+ # && tee -a /etc/pacman.conf <<< 'Include = /etc/pacman.d/mirrorlist'
100
+
101
+ RUN pacman -Syu git zip vim nano alsa-utils openssh --noconfirm \
102
+ && ln -s /bin/vim /bin/vi \
103
+ && useradd arch -p arch \
104
+ && tee -a /etc/sudoers <<< 'arch ALL=(ALL) NOPASSWD: ALL' \
105
+ && mkdir -p /home/arch \
106
+ && chown arch:arch /home/arch
107
+
108
+ # allow ssh to container
109
+ RUN mkdir -p -m 700 /root/.ssh
110
+
111
+ WORKDIR /root/.ssh
112
+ RUN touch authorized_keys \
113
+ && chmod 644 authorized_keys
114
+
115
+ WORKDIR /etc/ssh
116
+ RUN tee -a sshd_config <<< 'AllowTcpForwarding yes' \
117
+ && tee -a sshd_config <<< 'PermitTunnel yes' \
118
+ && tee -a sshd_config <<< 'X11Forwarding yes' \
119
+ && tee -a sshd_config <<< 'PasswordAuthentication yes' \
120
+ && tee -a sshd_config <<< 'PermitRootLogin yes' \
121
+ && tee -a sshd_config <<< 'PubkeyAuthentication yes' \
122
+ && tee -a sshd_config <<< 'HostKey /etc/ssh/ssh_host_rsa_key' \
123
+ && tee -a sshd_config <<< 'HostKey /etc/ssh/ssh_host_ecdsa_key' \
124
+ && tee -a sshd_config <<< 'HostKey /etc/ssh/ssh_host_ed25519_key'
125
+
126
+ USER arch
127
+
128
+ # download OSX-KVM
129
+ RUN git clone --recurse-submodules --depth 1 https://github.com/kholia/OSX-KVM.git /home/arch/OSX-KVM
130
+
131
+ # enable ssh
132
+ # docker exec .... ./enable-ssh.sh
133
+ USER arch
134
+
135
+ WORKDIR /home/arch/OSX-KVM
136
+
137
+ RUN touch enable-ssh.sh \
138
+ && chmod +x ./enable-ssh.sh \
139
+ && tee -a enable-ssh.sh <<< '[[ -f /etc/ssh/ssh_host_rsa_key ]] || \' \
140
+ && tee -a enable-ssh.sh <<< '[[ -f /etc/ssh/ssh_host_ed25519_key ]] || \' \
141
+ && tee -a enable-ssh.sh <<< '[[ -f /etc/ssh/ssh_host_ed25519_key ]] || \' \
142
+ && tee -a enable-ssh.sh <<< 'sudo /usr/bin/ssh-keygen -A' \
143
+ && tee -a enable-ssh.sh <<< 'nohup sudo /usr/bin/sshd -D &'
144
+
145
+ # QEMU CONFIGURATOR
146
+ # set optional ram at runtime -e RAM=16
147
+ # set optional cores at runtime -e SMP=4 -e CORES=2
148
+ # add any additional commands in QEMU cli format -e EXTRA="-usb -device usb-host,hostbus=1,hostaddr=8"
149
+
150
+ # default env vars, RUNTIME ONLY, not for editing in build time.
151
+
152
+ # RUN yes | sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils edk2-ovmf netctl libvirt-dbus --overwrite --noconfirm
153
+
154
+ RUN yes | sudo pacman -Syu bc qemu-desktop libvirt dnsmasq virt-manager bridge-utils openresolv jack2 ebtables edk2-ovmf netctl libvirt-dbus wget --overwrite --noconfirm \
155
+ && yes | sudo pacman -Scc
156
+
157
+ WORKDIR /home/arch/OSX-KVM
158
+
159
+ ARG SHORTNAME=catalina
160
+
161
+ RUN make \
162
+ && qemu-img convert BaseSystem.dmg -O qcow2 -p -c BaseSystem.img \
163
+ && rm ./BaseSystem.dmg
164
+
165
+ # fix invalid signature on old libguestfs
166
+ ARG SIGLEVEL=Never
167
+
168
+ RUN sudo tee -a /etc/pacman.conf <<< "SigLevel = ${SIGLEVEL}" \
169
+ && sudo tee -a /etc/pacman.conf <<< 'RemoteFileSigLevel = Optional' \
170
+ && sudo sed -i -e 's/^\#RemoteFileSigLevel/RemoteFileSigLevel/g' /etc/pacman.conf
171
+
172
+ ARG LINUX=true
173
+
174
+ # required to use libguestfs inside a docker container, to create bootdisks for docker-osx on-the-fly
175
+ RUN if [[ "${LINUX}" == true ]]; then \
176
+ sudo pacman -Syu linux linux-headers archlinux-keyring guestfs-tools mkinitcpio pcre pcre2 --noconfirm \
177
+ && libguestfs-test-tool \
178
+ && rm -rf /var/tmp/.guestfs-* \
179
+ && yes | sudo pacman -Scc \
180
+ ; fi
181
+
182
+ # optional --build-arg to change branches for testing
183
+ ARG BRANCH=master
184
+ ARG REPO='https://github.com/sickcodes/Docker-OSX.git'
185
+ RUN git clone --recurse-submodules --depth 1 --branch "${BRANCH}" "${REPO}"
186
+
187
+ RUN touch Launch.sh \
188
+ && chmod +x ./Launch.sh \
189
+ && tee -a Launch.sh <<< '#!/bin/bash' \
190
+ && tee -a Launch.sh <<< 'set -eux' \
191
+ && tee -a Launch.sh <<< 'sudo chown $(id -u):$(id -g) /dev/kvm 2>/dev/null || true' \
192
+ && tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \
193
+ && tee -a Launch.sh <<< '[[ "${RAM}" = max ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 1000000"))"' \
194
+ && tee -a Launch.sh <<< '[[ "${RAM}" = half ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 2000000"))"' \
195
+ && tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \
196
+ && tee -a Launch.sh <<< 'exec qemu-system-x86_64 -m ${RAM:-4}000 \' \
197
+ && tee -a Launch.sh <<< '-cpu ${CPU:-Penryn},${CPUID_FLAGS:-vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,}${BOOT_ARGS} \' \
198
+ && tee -a Launch.sh <<< '-machine q35,${KVM-"accel=kvm:tcg"} \' \
199
+ && tee -a Launch.sh <<< '-smp ${CPU_STRING:-${SMP:-4},cores=${CORES:-4}} \' \
200
+ && tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \
201
+ && tee -a Launch.sh <<< '-device isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal\(c\)AppleComputerInc \' \
202
+ && tee -a Launch.sh <<< '-drive if=pflash,format=raw,readonly=on,file=/home/arch/OSX-KVM/OVMF_CODE.fd \' \
203
+ && tee -a Launch.sh <<< '-drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd \' \
204
+ && tee -a Launch.sh <<< '-smbios type=2 \' \
205
+ && tee -a Launch.sh <<< '-audiodev ${AUDIO_DRIVER:-alsa},id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda \' \
206
+ && tee -a Launch.sh <<< '-device ich9-ahci,id=sata \' \
207
+ && tee -a Launch.sh <<< '-drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=${BOOTDISK:-/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2} \' \
208
+ && tee -a Launch.sh <<< '-device ide-hd,bus=sata.2,drive=OpenCoreBoot \' \
209
+ && tee -a Launch.sh <<< '-device ide-hd,bus=sata.3,drive=InstallMedia \' \
210
+ && tee -a Launch.sh <<< '-drive id=InstallMedia,if=none,file=/home/arch/OSX-KVM/BaseSystem.img,format=${BASESYSTEM_FORMAT:-qcow2} \' \
211
+ && tee -a Launch.sh <<< '-drive id=MacHDD,if=none,file=${IMAGE_PATH:-/home/arch/OSX-KVM/mac_hdd_ng.img},format=${IMAGE_FORMAT:-qcow2} \' \
212
+ && tee -a Launch.sh <<< '-device ide-hd,bus=sata.4,drive=MacHDD \' \
213
+ && tee -a Launch.sh <<< '-netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT:-10022}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT:-5900}-:5900,${ADDITIONAL_PORTS} \' \
214
+ && tee -a Launch.sh <<< '-device ${NETWORKING:-vmxnet3},netdev=net0,id=net0,mac=${MAC_ADDRESS:-52:54:00:09:49:17} \' \
215
+ && tee -a Launch.sh <<< '-monitor stdio \' \
216
+ && tee -a Launch.sh <<< '-boot menu=on \' \
217
+ && tee -a Launch.sh <<< '-vga vmware \' \
218
+ && tee -a Launch.sh <<< '${EXTRA:-}'
219
+
220
+ # docker exec containerid mv ./Launch-nopicker.sh ./Launch.sh
221
+ # This is now a legacy command.
222
+ # You can use -e BOOTDISK=/bootdisk with -v ./bootdisk.img:/bootdisk
223
+
224
+ ### LEGACY CODE
225
+ RUN grep -v InstallMedia ./Launch.sh > ./Launch-nopicker.sh \
226
+ && chmod +x ./Launch-nopicker.sh \
227
+ && sed -i -e s/OpenCore\.qcow2/OpenCore\-nopicker\.qcow2/ ./Launch-nopicker.sh
228
+ ###
229
+
230
+ USER arch
231
+
232
+ ENV USER arch
233
+
234
+ # These are hardcoded serials for non-iMessage related research
235
+ # Overwritten by using GENERATE_UNIQUE=true
236
+ # Upstream removed nopicker, so we are adding it back in, at build time
237
+ # Once again, this is just for the Docker build so there is a default nopicker image there
238
+
239
+ # libguestfs verbose
240
+ ENV LIBGUESTFS_DEBUG=1
241
+ ENV LIBGUESTFS_TRACE=1
242
+
243
+ ARG STOCK_DEVICE_MODEL=iMacPro1,1
244
+ ARG STOCK_SERIAL=C02TM2ZBHX87
245
+ ARG STOCK_BOARD_SERIAL=C02717306J9JG361M
246
+ ARG STOCK_UUID=007076A6-F2A2-4461-BBE5-BAD019F8025A
247
+ ARG STOCK_MAC_ADDRESS=00:0A:27:00:00:00
248
+ ARG STOCK_WIDTH=1920
249
+ ARG STOCK_HEIGHT=1080
250
+ ARG STOCK_MASTER_PLIST_URL=https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist
251
+ ARG STOCK_MASTER_PLIST_URL_NOPICKER=https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-nopicker-custom.plist
252
+ ARG STOCK_BOOTDISK=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2
253
+ ARG STOCK_BOOTDISK_NOPICKER=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2
254
+
255
+ RUN ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
256
+ --master-plist-url="${STOCK_MASTER_PLIST_URL}" \
257
+ --model "${STOCK_DEVICE_MODEL}" \
258
+ --serial "${STOCK_SERIAL}" \
259
+ --board-serial "${STOCK_BOARD_SERIAL}" \
260
+ --uuid "${STOCK_UUID}" \
261
+ --mac-address "${STOCK_MAC_ADDRESS}" \
262
+ --width "${STOCK_WIDTH}" \
263
+ --height "${STOCK_HEIGHT}" \
264
+ --output-bootdisk "${STOCK_BOOTDISK}" || exit 1 \
265
+ ; rm -rf /var/tmp/.guestfs-*
266
+
267
+ RUN ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
268
+ --master-plist-url="${STOCK_MASTER_PLIST_URL_NOPICKER}" \
269
+ --model "${STOCK_DEVICE_MODEL}" \
270
+ --serial "${STOCK_SERIAL}" \
271
+ --board-serial "${STOCK_BOARD_SERIAL}" \
272
+ --uuid "${STOCK_UUID}" \
273
+ --mac-address "${STOCK_MAC_ADDRESS}" \
274
+ --width "${STOCK_WIDTH}" \
275
+ --height "${STOCK_HEIGHT}" \
276
+ --output-bootdisk "${STOCK_BOOTDISK_NOPICKER}" || exit 1 \
277
+ ; rm -rf /var/tmp/.guestfs-*
278
+
279
+ ### symlink the old directory as upstream has renamed a directory. Symlinking purely for backwards compatability!
280
+ RUN ln -s /home/arch/OSX-KVM/OpenCore /home/arch/OSX-KVM/OpenCore-Catalina || true
281
+ ####
282
+
283
+ #### SPECIAL RUNTIME ARGUMENTS BELOW
284
+ # env -e ADDITIONAL_PORTS with a comma
285
+ # for example, -e ADDITIONAL_PORTS=hostfwd=tcp::23-:23,
286
+ ENV ADDITIONAL_PORTS=
287
+
288
+ # since the Makefile uses raw, and raw uses the full disk amount
289
+ # we want to use a compressed qcow2
290
+ # ENV BASESYSTEM_FORMAT=raw
291
+ ENV BASESYSTEM_FORMAT=qcow2
292
+
293
+ # add additional QEMU boot arguments
294
+ ENV BOOT_ARGS=
295
+
296
+ ENV BOOTDISK=
297
+
298
+ # edit the CPU that is being emulated
299
+ ENV CPU=Penryn
300
+ ENV CPUID_FLAGS='vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,'
301
+
302
+ ENV DISPLAY=:0.0
303
+
304
+ # Deprecated
305
+ ENV ENV=/env
306
+
307
+ # Boolean for generating a bootdisk with new random serials.
308
+ ENV GENERATE_UNIQUE=false
309
+
310
+ # Boolean for generating a bootdisk with specific serials.
311
+ ENV GENERATE_SPECIFIC=false
312
+
313
+ ENV IMAGE_PATH=/home/arch/OSX-KVM/mac_hdd_ng.img
314
+ ENV IMAGE_FORMAT=qcow2
315
+
316
+ ENV KVM='accel=kvm:tcg'
317
+
318
+ ENV MASTER_PLIST_URL="https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist"
319
+
320
+ # ENV NETWORKING=e1000-82545em
321
+ ENV NETWORKING=vmxnet3
322
+
323
+ # boolean for skipping the disk selection menu at in the boot process
324
+ ENV NOPICKER=false
325
+
326
+ # dynamic RAM options for runtime
327
+ ENV RAM=4
328
+ # ENV RAM=max
329
+ # ENV RAM=half
330
+
331
+ # The x and y coordinates for resolution.
332
+ # Must be used with either -e GENERATE_UNIQUE=true or -e GENERATE_SPECIFIC=true.
333
+ ENV WIDTH=1920
334
+ ENV HEIGHT=1080
335
+
336
+ VOLUME ["/tmp/.X11-unix"]
337
+
338
+ # check if /image is a disk image or a directory. This allows you to optionally use -v disk.img:/image
339
+ # NOPICKER is used to skip the disk selection screen
340
+ # GENERATE_UNIQUE is used to generate serial numbers on boot.
341
+ # /env is a file that you can generate and save using -v source.sh:/env
342
+ # the env file is a file that you can carry to the next container which will supply the serials numbers.
343
+ # GENERATE_SPECIFIC is used to either accept the env serial numbers OR you can supply using:
344
+ # -e DEVICE_MODEL="iMacPro1,1" \
345
+ # -e SERIAL="C02TW0WAHX87" \
346
+ # -e BOARD_SERIAL="C027251024NJG36UE" \
347
+ # -e UUID="5CCB366D-9118-4C61-A00A-E5BAF3BED451" \
348
+ # -e MAC_ADDRESS="A8:5C:2C:9A:46:2F" \
349
+
350
+ # the output will be /bootdisk.
351
+ # /bootdisk is a useful persistent place to store the 15Mb serial number bootdisk.
352
+
353
+ # if you don't set any of the above:
354
+ # the default serial numbers are already contained in ./OpenCore/OpenCore.qcow2
355
+ # And the default serial numbers
356
+
357
+ CMD sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
358
+ ; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
359
+ ; [[ "${NOPICKER}" == true ]] && { \
360
+ sed -i '/^.*InstallMedia.*/d' Launch.sh \
361
+ && export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
362
+ ; } \
363
+ || export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
364
+ ; [[ "${GENERATE_UNIQUE}" == true ]] && { \
365
+ ./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
366
+ --master-plist-url="${MASTER_PLIST_URL}" \
367
+ --count 1 \
368
+ --tsv ./serial.tsv \
369
+ --bootdisks \
370
+ --width "${WIDTH:-1920}" \
371
+ --height "${HEIGHT:-1080}" \
372
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
373
+ --output-env "${ENV:=/env}" \
374
+ || exit 1 ; } \
375
+ ; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
376
+ source "${ENV:=/env}" 2>/dev/null \
377
+ ; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
378
+ --master-plist-url="${MASTER_PLIST_URL}" \
379
+ --model "${DEVICE_MODEL}" \
380
+ --serial "${SERIAL}" \
381
+ --board-serial "${BOARD_SERIAL}" \
382
+ --uuid "${UUID}" \
383
+ --mac-address "${MAC_ADDRESS}" \
384
+ --width "${WIDTH:-1920}" \
385
+ --height "${HEIGHT:-1080}" \
386
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
387
+ || exit 1 ; } \
388
+ ; ./enable-ssh.sh && /bin/bash -c ./Launch.sh
389
+
390
+ # virt-manager mode: eta son
391
+ # CMD virsh define <(envsubst < Docker-OSX.xml) && virt-manager || virt-manager
392
+ # CMD virsh define <(envsubst < macOS-libvirt-Catalina.xml) && virt-manager || virt-manager
Dockerfile.auto ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/docker
2
+ # ____ __ ____ ______ __
3
+ # / __ \____ _____/ /_____ _____/ __ \/ ___/ |/ /
4
+ # / / / / __ \/ ___/ //_/ _ \/ ___/ / / /\__ \| /
5
+ # / /_/ / /_/ / /__/ ,< / __/ / / /_/ /___/ / |
6
+ # /_____/\____/\___/_/|_|\___/_/ \____//____/_/|_| :AUTO
7
+ #
8
+ # Title: Docker-OSX (Mac on Docker)
9
+ # Author: Sick.Codes https://twitter.com/sickcodes
10
+ # Version: 6.0
11
+ # License: GPLv3+
12
+ # Repository: https://github.com/sickcodes/Docker-OSX
13
+ # Website: https://sick.codes
14
+ #
15
+ # This Dockerfile is a pre-installed naked installation of Docker-OSX!
16
+ #
17
+ # Default username: user
18
+ # Default password: alpine
19
+ #
20
+ # Take screenshots in the Arch container and display in terminal: scrotcat
21
+ # readme:
22
+ # timezone: UTC/GMT
23
+ #
24
+ # Future versions will navigate the installation process, inside the Dockerfile.
25
+ #
26
+ #
27
+ # Build:
28
+ #
29
+ # docker build -t docker-osx:auto -f Dockerfile.auto .
30
+ #
31
+ # Run:
32
+ #
33
+ # docker run -it --device /dev/kvm -p 50922:10022 -v ${PWD}/mac_hdd_ng_auto.img:/image docker-osx-auto:latest
34
+ #
35
+ # SSH:
36
+ # From inside the container:
37
+ # ssh -i ~/.ssh/id_docker_osx user@127.0.0.1 -p 10022
38
+ #
39
+ # From outside the container:
40
+ # ssh localhost user@127.0.0.1 -p 50922
41
+ # docker exec -it containerid ssh -i ~/.ssh/id_docker_osx user@127.0.0.1 -p 10022
42
+
43
+ FROM sickcodes/docker-osx:latest
44
+
45
+ LABEL maintainer='https://twitter.com/sickcodes <https://sick.codes>'
46
+
47
+ USER root
48
+
49
+ WORKDIR /root
50
+
51
+ # For taking screenshots of the Xfvb screen, useful during development.
52
+ ARG SCROT
53
+
54
+ # OPTIONAL: Arch Linux server mirrors for super fast builds
55
+ # set RANKMIRRORS to any value other that nothing, e.g. -e RANKMIRRORS=true
56
+ RUN perl -i -p -e s/^\#Color/Color$'\n'ParallelDownloads\ =\ 30/g /etc/pacman.conf
57
+ ARG RANKMIRRORS
58
+ ARG MIRROR_COUNTRY=US
59
+ ARG MIRROR_COUNT=10
60
+
61
+ RUN tee /etc/pacman.d/mirrorlist <<< 'Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch' \
62
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
63
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch'
64
+
65
+ # Fixes issue with invalid GPG keys: update the archlinux-keyring package to get the latest keys, then remove and regenerate gnupg keys
66
+ RUN pacman -Sy archlinux-keyring --noconfirm \
67
+ && rm -rf /etc/pacman.d/gnupg \
68
+ && pacman-key --init \
69
+ && pacman-key --populate archlinux
70
+
71
+ RUN if [[ "${RANKMIRRORS}" ]]; then \
72
+ { pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
73
+ ; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/${BRANCH:=master}/rankmirrors" \
74
+ ; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \
75
+ | sed -e 's/^#Server/Server/' -e '/^#/d' \
76
+ | head -n "$((${MIRROR_COUNT:-10}+1))" \
77
+ | bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
78
+
79
+
80
+
81
+ && cat /etc/pacman.d/mirrorlist \
82
+ ; fi
83
+
84
+ RUN tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkp://keyserver.ubuntu.com' \
85
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://hkps.pool.sks-keyservers.net:443' \
86
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkp://pgp.mit.edu:11371' \
87
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://keys.openpgp.org' \
88
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://keys.mailvelope.com'
89
+
90
+ RUN pacman -Syu xorg-server-xvfb wget xterm xorg-xhost xorg-xrandr --noconfirm \
91
+ && if [[ "${SCROT}" ]]; then \
92
+ pacman -Syu scrot base-devel --noconfirm \
93
+ && git clone --recurse-submodules --depth 1 https://github.com/stolk/imcat.git \
94
+ && cd imcat \
95
+ && make \
96
+ && sudo cp imcat /usr/bin/imcat \
97
+ && touch /usr/bin/scrotcat \
98
+ && tee -a /usr/bin/scrotcat <<< '/usr/bin/imcat <(scrot -o /dev/stdout)' \
99
+ && chmod +x /usr/bin/scrotcat \
100
+ ; else \
101
+ touch /usr/bin/scrotcat \
102
+ && echo echo >> /usr/bin/scrotcat \
103
+ && chmod +x /usr/bin/scrotcat \
104
+ ; fi \
105
+ ; yes | pacman -Scc
106
+
107
+ RUN pacman -S sshpass --noconfirm \
108
+ && yes | pacman -Scc
109
+
110
+ USER arch
111
+
112
+ ENV USER arch
113
+
114
+ WORKDIR /home/arch/OSX-KVM
115
+
116
+ RUN mkdir -p ~/.ssh \
117
+ && touch ~/.ssh/authorized_keys \
118
+ && touch ~/.ssh/config \
119
+ && chmod 700 ~/.ssh \
120
+ && chmod 600 ~/.ssh/config \
121
+ && chmod 600 ~/.ssh/authorized_keys \
122
+ && tee -a ~/.ssh/config <<< 'Host *' \
123
+ && tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
124
+ && tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null'
125
+
126
+ ARG COMPLETE=true
127
+
128
+ # use the COMPLETE arg, for a complete image, ready to boot.
129
+ # otherwise use your own image: -v "$PWD/disk.img":/image
130
+ ARG WGET_OPTIONS=
131
+ # ARG WGET_OPTIONS='--no-verbose'
132
+
133
+ # Feel free to take a copy of this image and then host it internally
134
+ ARG IMAGE_URL='https://images.sick.codes/mac_hdd_ng_auto.img'
135
+ # ARG IMAGE_URL='https://images.sick.codes/mac_hdd_ng_auto_big_sur.img'
136
+
137
+ RUN if [[ "${COMPLETE}" ]]; then \
138
+ echo "Downloading 20GB image... This step might take a while... Press Ctrl+C if you want to abort." \
139
+ ; rm -f /home/arch/OSX-KVM/mac_hdd_ng.img \
140
+ && wget ${WGET_OPTIONS} -O /home/arch/OSX-KVM/mac_hdd_ng.img "${IMAGE_URL}" \
141
+ ; fi
142
+
143
+
144
+ ####
145
+
146
+ # symlink the old directory, for redundancy
147
+ RUN ln -s /home/arch/OSX-KVM/OpenCore /home/arch/OSX-KVM/OpenCore-Catalina || true
148
+
149
+ ####
150
+
151
+ #### SPECIAL RUNTIME ARGUMENTS BELOW
152
+
153
+ ENV ADDITIONAL_PORTS=
154
+
155
+ # add additional QEMU boot arguments
156
+ ENV BOOT_ARGS=
157
+
158
+ ENV BOOTDISK=
159
+
160
+ # edit the CPU that is beign emulated
161
+ ENV CPU=Penryn
162
+
163
+ ENV DISPLAY=:99
164
+
165
+ ENV HEADLESS=false
166
+
167
+ ENV ENV=/env
168
+
169
+ # Boolean for generating a bootdisk with new random serials.
170
+ ENV GENERATE_UNIQUE=false
171
+
172
+ # Boolean for generating a bootdisk with specific serials.
173
+ ENV GENERATE_SPECIFIC=false
174
+
175
+ ENV IMAGE_PATH=/home/arch/OSX-KVM/mac_hdd_ng.img
176
+ ENV IMAGE_FORMAT=qcow2
177
+
178
+ ENV KVM='accel=kvm:tcg'
179
+
180
+ # ENV MASTER_PLIST_URL="https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist"
181
+
182
+ # ENV NETWORKING=e1000-82545em
183
+ ENV NETWORKING=vmxnet3
184
+
185
+ ENV NOPICKER=true
186
+
187
+ # set the username and password for automatically logging in
188
+ ENV USERNAME=user
189
+ ENV PASSWORD=alpine
190
+
191
+ # dynamic RAM options for runtime
192
+ ENV RAM=3
193
+ # ENV RAM=max
194
+ # ENV RAM=half
195
+
196
+ # The x and y coordinates for resolution.
197
+ # Must be used with either -e GENERATE_UNIQUE=true or -e GENERATE_SPECIFIC=true.
198
+ ENV WIDTH=1920
199
+ ENV HEIGHT=1080
200
+
201
+ # libguestfs verbose
202
+ ENV LIBGUESTFS_DEBUG=1
203
+ ENV LIBGUESTFS_TRACE=1
204
+
205
+ ENV TERMS_OF_USE=i_agree
206
+
207
+ ENV BOILERPLATE="By using this Dockerfile, you hereby agree that you are a security reseacher or developer and agree to use this Dockerfile to make the world a safer place. Examples include: making your apps safer, finding your mobile phone, compiling security products, etc. You understand that Docker-OSX is an Open Source project, which is released to the public under the GNU Pulic License version 3 and above. You acknowledge that the Open Source project is absolutely unaffiliated with any third party, in any form whatsoever. Any trademarks or intelectual property which happen to be mentioned anywhere in or around the project are owned by their respective owners. By using this Dockerfile, you agree to agree to the EULA of each piece of upstream or downstream software. The following code is released for the sole purpose of security research, under the GNU Public License version 3. If you are concerned about the licensing, please note that this project is not AGPL. A copy of the license is available online: https://github.com/sickcodes/Docker-OSX/blob/master/LICENSE. In order to use the following Dockerfile you must read and understand the terms. Once you have read the terms, use the -e TERMS_OF_USE=i_agree or -e TERMS_OF_USE=i_disagree"
208
+
209
+ CMD echo "${BOILERPLATE}" \
210
+ ; [[ "${TERMS_OF_USE}" = i_agree ]] || exit 1 \
211
+ ; echo "Disk is being copied between layers... Please wait a minute..." \
212
+ ; sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
213
+ ; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
214
+ ; [[ "${NOPICKER}" == true ]] && { \
215
+ sed -i '/^.*InstallMedia.*/d' Launch.sh \
216
+ && export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
217
+ ; } \
218
+ || export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
219
+ ; [[ "${GENERATE_UNIQUE}" == true ]] && { \
220
+ ./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
221
+ --master-plist-url="${MASTER_PLIST_URL}" \
222
+ --count 1 \
223
+ --tsv ./serial.tsv \
224
+ --bootdisks \
225
+ --width "${WIDTH:-1920}" \
226
+ --height "${HEIGHT:-1080}" \
227
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
228
+ --output-env "${ENV:=/env}" \
229
+ || exit 1 ; } \
230
+ ; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
231
+ source "${ENV:=/env}" 2>/dev/null \
232
+ ; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
233
+ --master-plist-url="${MASTER_PLIST_URL}" \
234
+ --model "${DEVICE_MODEL}" \
235
+ --serial "${SERIAL}" \
236
+ --board-serial "${BOARD_SERIAL}" \
237
+ --uuid "${UUID}" \
238
+ --mac-address "${MAC_ADDRESS}" \
239
+ --width "${WIDTH:-1920}" \
240
+ --height "${HEIGHT:-1080}" \
241
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
242
+ || exit 1 ; } \
243
+ ; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
244
+ nohup Xvfb :99 -screen 0 1920x1080x16 \
245
+ & until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 1 ; done \
246
+ ; } \
247
+ ; stat "${IMAGE_PATH}" \
248
+ ; echo "Large image is being copied between layers, please wait a minute..." \
249
+ ; ./enable-ssh.sh \
250
+ ; [[ -e ~/.ssh/id_docker_osx ]] || { \
251
+ /usr/bin/ssh-keygen -t rsa -f ~/.ssh/id_docker_osx -q -N "" \
252
+ && chmod 600 ~/.ssh/id_docker_osx \
253
+ ; } \
254
+ ; /bin/bash -c ./Launch.sh \
255
+ & echo "Booting Docker-OSX in the background. Please wait..." \
256
+ ; until [[ "$(sshpass -p${PASSWORD:=alpine} ssh-copy-id -f -i ~/.ssh/id_docker_osx.pub -p 10022 ${USERNAME:=user}@127.0.0.1)" ]]; do \
257
+ echo "Disk is being copied between layers. Repeating until able to copy SSH key into OSX..." \
258
+ ; sleep 1 \
259
+ ; done \
260
+ ; grep id_docker_osx ~/.ssh/config || { \
261
+ tee -a ~/.ssh/config <<< 'Host 127.0.0.1' \
262
+ ; tee -a ~/.ssh/config <<< " User ${USERNAME:=user}" \
263
+ ; tee -a ~/.ssh/config <<< ' Port 10022' \
264
+ ; tee -a ~/.ssh/config <<< ' IdentityFile ~/.ssh/id_docker_osx' \
265
+ ; tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
266
+ ; tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null' \
267
+ ; } \
268
+ && echo 'Default username: user' \
269
+ && echo 'Default password: alpine' \
270
+ && echo 'Change it immediately using the command: passwd' \
271
+ && ssh -i ~/.ssh/id_docker_osx ${USERNAME:=user}@127.0.0.1 -p 10022 "${OSX_COMMANDS}"
272
+
273
+ # username: user
274
+ # password: alpine
275
+ # screenshot: docker exec -it containerid scrotcat
276
+ # readme: https://github.com/sickcodes/Docker-OSX
277
+ # timezone: UTC/GMT
278
+
279
+ # Future case option when supplying IMAGE_PATH:
280
+ # Zstandard*) zstd -d /image && export IMAGE_PATH=/image;; \
Dockerfile.monterey ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/docker
2
+ # ____ __ ____ ______ __
3
+ # / __ \____ _____/ /_____ _____/ __ \/ ___/ |/ /
4
+ # / / / / __ \/ ___/ //_/ _ \/ ___/ / / /\__ \| /
5
+ # / /_/ / /_/ / /__/ ,< / __/ / / /_/ /___/ / |
6
+ # /_____/\____/\___/_/|_|\___/_/ \____//____/_/|_| [MONTEREY]
7
+ #
8
+ # Title: Docker-OSX (Mac on Docker)
9
+ # Author: Sick.Codes https://twitter.com/sickcodes
10
+ # Version: 6.0
11
+ # License: GPLv3+
12
+ # Repository: https://github.com/sickcodes/Docker-OSX
13
+ # Website: https://sick.codes
14
+ #
15
+ # Notes: Uses a self-hosted BaseSystem.img from a USB installer.
16
+ # If you want to DIY, use https://github.com/corpnewt/gibMacOS
17
+ # Set seed as developer, and install the Install Assistant on Big Sur
18
+ # Burn to a USB, and pull out BaseSystem.img
19
+ # Or download from https://images.sick.codes/BaseSystem_Monterey.dmg
20
+ #
21
+
22
+ FROM sickcodes/docker-osx
23
+
24
+ LABEL maintainer='https://twitter.com/sickcodes <https://sick.codes>'
25
+
26
+ SHELL ["/bin/bash", "-c"]
27
+
28
+ # change disk size here or add during build, e.g. --build-arg VERSION=10.14.5 --build-arg SIZE=50G
29
+ ARG SIZE=200G
30
+ ARG BASE_SYSTEM='https://images.sick.codes/BaseSystem_Monterey.dmg'
31
+
32
+ WORKDIR /home/arch/OSX-KVM
33
+
34
+ RUN wget -O BaseSystem.dmg "${BASE_SYSTEM}" \
35
+ && qemu-img convert BaseSystem.dmg -O qcow2 -p -c BaseSystem.img \
36
+ && rm -f BaseSystem.dmg
37
+
38
+ RUN qemu-img create -f qcow2 /home/arch/OSX-KVM/mac_hdd_ng.img "${SIZE}"
39
+
40
+ WORKDIR /home/arch/OSX-KVM
41
+
42
+ #### libguestfs versioning
43
+
44
+ # 5.13+ problem resolved by building the qcow2 against 5.12 using libguestfs-1.44.1-6
45
+
46
+ ENV SUPERMIN_KERNEL=/boot/vmlinuz-linux
47
+ ENV SUPERMIN_MODULES=/lib/modules/5.12.14-arch1-1
48
+ ENV SUPERMIN_KERNEL_VERSION=5.12.14-arch1-1
49
+ ENV KERNEL_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-5.12.14.arch1-1-x86_64.pkg.tar.zst
50
+ ENV KERNEL_HEADERS_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-headers-5.12.14.arch1-1-x86_64.pkg.tar.zst
51
+ ENV LIBGUESTFS_PACKAGE_URL=https://archive.archlinux.org/packages/l/libguestfs/libguestfs-1.44.1-6-x86_64.pkg.tar.zst
52
+
53
+ ARG LINUX=true
54
+
55
+ # required to use libguestfs inside a docker container, to create bootdisks for docker-osx on-the-fly
56
+ RUN if [[ "${LINUX}" == true ]]; then \
57
+ sudo pacman -U "${KERNEL_PACKAGE_URL}" --noconfirm \
58
+ ; sudo pacman -U "${LIBGUESTFS_PACKAGE_URL}" --noconfirm \
59
+ ; sudo pacman -U "${KERNEL_HEADERS_PACKAGE_URL}" --noconfirm \
60
+ ; sudo pacman -S mkinitcpio --noconfirm \
61
+ ; sudo libguestfs-test-tool \
62
+ ; sudo rm -rf /var/tmp/.guestfs-* \
63
+ ; fi
64
+
65
+ ####
66
+
67
+
68
+ # optional --build-arg to change branches for testing
69
+ ARG BRANCH=master
70
+ ARG REPO='https://github.com/sickcodes/Docker-OSX.git'
71
+ # RUN git clone --recurse-submodules --depth 1 --branch "${BRANCH}" "${REPO}"
72
+ RUN rm -rf ./Docker-OSX \
73
+ && git clone --recurse-submodules --depth 1 --branch "${BRANCH}" "${REPO}"
74
+
75
+ RUN touch Launch.sh \
76
+ && chmod +x ./Launch.sh \
77
+ && tee -a Launch.sh <<< '#!/bin/bash' \
78
+ && tee -a Launch.sh <<< 'set -eux' \
79
+ && tee -a Launch.sh <<< 'sudo chown $(id -u):$(id -g) /dev/kvm 2>/dev/null || true' \
80
+ && tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \
81
+ && tee -a Launch.sh <<< '[[ "${RAM}" = max ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 1000000"))"' \
82
+ && tee -a Launch.sh <<< '[[ "${RAM}" = half ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 2000000"))"' \
83
+ && tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \
84
+ && tee -a Launch.sh <<< 'exec qemu-system-x86_64 -m ${RAM:-2}000 \' \
85
+ && tee -a Launch.sh <<< '-cpu ${CPU:-Penryn},${CPUID_FLAGS:-vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,}${BOOT_ARGS} \' \
86
+ && tee -a Launch.sh <<< '-machine q35,${KVM-"accel=kvm:tcg"} \' \
87
+ && tee -a Launch.sh <<< '-smp ${CPU_STRING:-${SMP:-4},cores=${CORES:-4}} \' \
88
+ && tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \
89
+ && tee -a Launch.sh <<< '-device isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal\(c\)AppleComputerInc \' \
90
+ && tee -a Launch.sh <<< '-drive if=pflash,format=raw,readonly=on,file=/home/arch/OSX-KVM/OVMF_CODE.fd \' \
91
+ && tee -a Launch.sh <<< '-drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd \' \
92
+ && tee -a Launch.sh <<< '-smbios type=2 \' \
93
+ && tee -a Launch.sh <<< '-audiodev ${AUDIO_DRIVER:-alsa},id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda \' \
94
+ && tee -a Launch.sh <<< '-device ich9-ahci,id=sata \' \
95
+ && tee -a Launch.sh <<< '-drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=${BOOTDISK:-/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2} \' \
96
+ && tee -a Launch.sh <<< '-device ide-hd,bus=sata.2,drive=OpenCoreBoot \' \
97
+ && tee -a Launch.sh <<< '-device ide-hd,bus=sata.3,drive=InstallMedia \' \
98
+ && tee -a Launch.sh <<< '-drive id=InstallMedia,if=none,file=/home/arch/OSX-KVM/BaseSystem.img,format=qcow2 \' \
99
+ && tee -a Launch.sh <<< '-drive id=MacHDD,if=none,file=${IMAGE_PATH:-/home/arch/OSX-KVM/mac_hdd_ng.img},format=${IMAGE_FORMAT:-qcow2} \' \
100
+ && tee -a Launch.sh <<< '-device ide-hd,bus=sata.4,drive=MacHDD \' \
101
+ && tee -a Launch.sh <<< '-netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT:-10022}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT:-5900}-:5900,${ADDITIONAL_PORTS} \' \
102
+ && tee -a Launch.sh <<< '-device ${NETWORKING:-vmxnet3},netdev=net0,id=net0,mac=${MAC_ADDRESS:-52:54:00:09:49:17} \' \
103
+ && tee -a Launch.sh <<< '-monitor stdio \' \
104
+ && tee -a Launch.sh <<< '-boot menu=on \' \
105
+ && tee -a Launch.sh <<< '-vga vmware \' \
106
+ && tee -a Launch.sh <<< '${EXTRA:-}'
107
+
108
+ # docker exec containerid mv ./Launch-nopicker.sh ./Launch.sh
109
+ # This is now a legacy command.
110
+ # You can use -e BOOTDISK=/bootdisk with -v ./bootdisk.img:/bootdisk
111
+ RUN grep -v InstallMedia ./Launch.sh > ./Launch-nopicker.sh \
112
+ && chmod +x ./Launch-nopicker.sh \
113
+ && sed -i -e s/OpenCore\.qcow2/OpenCore\-nopicker\.qcow2/ ./Launch-nopicker.sh
114
+
115
+ USER arch
116
+
117
+ ENV USER arch
118
+
119
+
120
+ #### libguestfs versioning
121
+
122
+ # 5.13+ problem resolved by building the qcow2 against 5.12 using libguestfs-1.44.1-6
123
+
124
+ ENV SUPERMIN_KERNEL=/boot/vmlinuz-linux
125
+ ENV SUPERMIN_MODULES=/lib/modules/5.12.14-arch1-1
126
+ ENV SUPERMIN_KERNEL_VERSION=5.12.14-arch1-1
127
+ ENV KERNEL_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-5.12.14.arch1-1-x86_64.pkg.tar.zst
128
+ ENV KERNEL_HEADERS_PACKAGE_URL=https://archive.archlinux.org/packages/l/linux/linux-headers-5.12.14.arch1-1-x86_64.pkg.tar.zst
129
+ ENV LIBGUESTFS_PACKAGE_URL=https://archive.archlinux.org/packages/l/libguestfs/libguestfs-1.44.1-6-x86_64.pkg.tar.zst
130
+
131
+ RUN sudo pacman -Syy \
132
+ && sudo pacman -Rns linux --noconfirm \
133
+ ; sudo pacman -S mkinitcpio --noconfirm \
134
+ && sudo pacman -U "${KERNEL_PACKAGE_URL}" --noconfirm \
135
+ && sudo pacman -U "${LIBGUESTFS_PACKAGE_URL}" --noconfirm \
136
+ && rm -rf /var/tmp/.guestfs-* \
137
+ ; libguestfs-test-tool || exit 1
138
+
139
+ ####
140
+
141
+ # symlink the old directory, for redundancy
142
+ RUN ln -s /home/arch/OSX-KVM/OpenCore /home/arch/OSX-KVM/OpenCore-Catalina || true
143
+
144
+ ####
145
+
146
+ #### SPECIAL RUNTIME ARGUMENTS BELOW
147
+
148
+ # env -e ADDITIONAL_PORTS with a comma
149
+ # for example, -e ADDITIONAL_PORTS=hostfwd=tcp::23-:23,
150
+ ENV ADDITIONAL_PORTS=
151
+
152
+ # add additional QEMU boot arguments
153
+ ENV BOOT_ARGS=
154
+
155
+ ENV BOOTDISK=
156
+
157
+ # edit the CPU that is being emulated
158
+ ENV CPU=Penryn
159
+ ENV CPUID_FLAGS='vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,'
160
+
161
+ ENV DISPLAY=:0.0
162
+
163
+ # Deprecated
164
+ ENV ENV=/env
165
+
166
+ # Boolean for generating a bootdisk with new random serials.
167
+ ENV GENERATE_UNIQUE=false
168
+
169
+ # Boolean for generating a bootdisk with specific serials.
170
+ ENV GENERATE_SPECIFIC=false
171
+
172
+ ENV IMAGE_PATH=/home/arch/OSX-KVM/mac_hdd_ng.img
173
+ ENV IMAGE_FORMAT=qcow2
174
+
175
+ ENV KVM='accel=kvm:tcg'
176
+
177
+ ENV MASTER_PLIST_URL="https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist"
178
+
179
+ # ENV NETWORKING=e1000-82545em
180
+ ENV NETWORKING=vmxnet3
181
+
182
+ # boolean for skipping the disk selection menu at in the boot process
183
+ ENV NOPICKER=false
184
+
185
+ # dynamic RAM options for runtime
186
+ ENV RAM=3
187
+ # ENV RAM=max
188
+ # ENV RAM=half
189
+
190
+ # The x and y coordinates for resolution.
191
+ # Must be used with either -e GENERATE_UNIQUE=true or -e GENERATE_SPECIFIC=true.
192
+ ENV WIDTH=1920
193
+ ENV HEIGHT=1080
194
+
195
+ # libguestfs verbose
196
+ ENV LIBGUESTFS_DEBUG=1
197
+ ENV LIBGUESTFS_TRACE=1
198
+
199
+ VOLUME ["/tmp/.X11-unix"]
200
+
201
+ # check if /image is a disk image or a directory. This allows you to optionally use -v disk.img:/image
202
+ # NOPICKER is used to skip the disk selection screen
203
+ # GENERATE_UNIQUE is used to generate serial numbers on boot.
204
+ # /env is a file that you can generate and save using -v source.sh:/env
205
+ # the env file is a file that you can carry to the next container which will supply the serials numbers.
206
+ # GENERATE_SPECIFIC is used to either accept the env serial numbers OR you can supply using:
207
+ # -e DEVICE_MODEL="iMacPro1,1" \
208
+ # -e SERIAL="C02TW0WAHX87" \
209
+ # -e BOARD_SERIAL="C027251024NJG36UE" \
210
+ # -e UUID="5CCB366D-9118-4C61-A00A-E5BAF3BED451" \
211
+ # -e MAC_ADDRESS="A8:5C:2C:9A:46:2F" \
212
+
213
+ # the output will be /bootdisk.
214
+ # /bootdisk is a useful persistent place to store the 15Mb serial number bootdisk.
215
+
216
+ # if you don't set any of the above:
217
+ # the default serial numbers are already contained in ./OpenCore/OpenCore.qcow2
218
+ # And the default serial numbers
219
+
220
+ CMD sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
221
+ ; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
222
+ ; [[ "${NOPICKER}" == true ]] && { \
223
+ sed -i '/^.*InstallMedia.*/d' Launch.sh \
224
+ && export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
225
+ ; } \
226
+ || export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
227
+ ; [[ "${GENERATE_UNIQUE}" == true ]] && { \
228
+ ./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
229
+ --master-plist-url="${MASTER_PLIST_URL}" \
230
+ --count 1 \
231
+ --tsv ./serial.tsv \
232
+ --bootdisks \
233
+ --width "${WIDTH:-1920}" \
234
+ --height "${HEIGHT:-1080}" \
235
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
236
+ --output-env "${ENV:=/env}" \
237
+ || exit 1 ; } \
238
+ ; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
239
+ source "${ENV:=/env}" 2>/dev/null \
240
+ ; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
241
+ --master-plist-url="${MASTER_PLIST_URL}" \
242
+ --model "${DEVICE_MODEL}" \
243
+ --serial "${SERIAL}" \
244
+ --board-serial "${BOARD_SERIAL}" \
245
+ --uuid "${UUID}" \
246
+ --mac-address "${MAC_ADDRESS}" \
247
+ --width "${WIDTH:-1920}" \
248
+ --height "${HEIGHT:-1080}" \
249
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
250
+ || exit 1 ; } \
251
+ ; ./enable-ssh.sh && /bin/bash -c ./Launch.sh
252
+
253
+ # virt-manager mode: eta son
254
+ # CMD virsh define <(envsubst < Docker-OSX.xml) && virt-manager || virt-manager
255
+ # CMD virsh define <(envsubst < macOS-libvirt-Catalina.xml) && virt-manager || virt-manager
Dockerfile.naked ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/docker
2
+ # ____ __ ____ ______ __
3
+ # / __ \____ _____/ /_____ _____/ __ \/ ___/ |/ /
4
+ # / / / / __ \/ ___/ //_/ _ \/ ___/ / / /\__ \| /
5
+ # / /_/ / /_/ / /__/ ,< / __/ / / /_/ /___/ / |
6
+ # /_____/\____/\___/_/|_|\___/_/ \____//____/_/|_| :NAKED
7
+ #
8
+ # Title: Docker-OSX (Mac on Docker)
9
+ # Author: Sick.Codes https://twitter.com/sickcodes
10
+ # Version: 6.0
11
+ # License: GPLv3+
12
+ # Repository: https://github.com/sickcodes/Docker-OSX
13
+ # Website: https://sick.codes
14
+ #
15
+ # This image won't run unless you supply a disk image using:
16
+ # -v ${PWD}/mac_hdd_ng.img:/image
17
+ #
18
+ # Take screenshots in the Arch container and display in terminal: scrotcat
19
+ #
20
+ # Build:
21
+ #
22
+ # docker build -t docker-osx:naked -f Dockerfile.naked .
23
+ #
24
+ # Run headless:
25
+ #
26
+ # docker run -it --device /dev/kvm -p 50922:10022 -v ${PWD}/mac_hdd_ng.img:/image docker-osx:naked
27
+ #
28
+ # Run with display:
29
+ #
30
+ # docker run -it --device /dev/kvm -p 50922:10022 -v ${PWD}/mac_hdd_ng.img:/image -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix docker-osx:naked
31
+ #
32
+
33
+ FROM sickcodes/docker-osx:latest
34
+
35
+ LABEL maintainer='https://twitter.com/sickcodes <https://sick.codes>'
36
+
37
+ USER root
38
+
39
+ WORKDIR /root
40
+
41
+ RUN rm -f /home/arch/OSX-KVM/mac_hdd_ng.img
42
+
43
+ # OPTIONAL: Arch Linux server mirrors for super fast builds
44
+ # set RANKMIRRORS to any value other that nothing, e.g. -e RANKMIRRORS=true
45
+ RUN perl -i -p -e s/^\#Color/Color$'\n'ParallelDownloads\ =\ 30/g /etc/pacman.conf
46
+ ARG RANKMIRRORS
47
+ ARG MIRROR_COUNTRY=US
48
+ ARG MIRROR_COUNT=10
49
+
50
+ RUN tee /etc/pacman.d/mirrorlist <<< 'Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch' \
51
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
52
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch'
53
+
54
+ # Fixes issue with invalid GPG keys: update the archlinux-keyring package to get the latest keys, then remove and regenerate gnupg keys
55
+ RUN pacman -Sy archlinux-keyring --noconfirm \
56
+ && rm -rf /etc/pacman.d/gnupg \
57
+ && pacman-key --init \
58
+ && pacman-key --populate archlinux
59
+
60
+ RUN if [[ "${RANKMIRRORS}" ]]; then \
61
+ { pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
62
+ ; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/${BRANCH:=master}/rankmirrors" \
63
+ ; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \
64
+ | sed -e 's/^#Server/Server/' -e '/^#/d' \
65
+ | head -n "$((${MIRROR_COUNT:-10}+1))" \
66
+ | bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
67
+ && cat /etc/pacman.d/mirrorlist \
68
+ ; fi
69
+
70
+ RUN tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkp://keyserver.ubuntu.com' \
71
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://hkps.pool.sks-keyservers.net:443' \
72
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkp://pgp.mit.edu:11371' \
73
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://keys.openpgp.org' \
74
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://keys.mailvelope.com'
75
+
76
+ # For taking screenshots of the Xfvb screen, useful during development.
77
+ ARG SCROT
78
+
79
+ RUN pacman -Syu xorg-server-xvfb wget xterm xorg-xhost xorg-xrandr sshpass --noconfirm \
80
+ && if [[ "${SCROT}" ]]; then \
81
+ pacman -Syu scrot base-devel --noconfirm \
82
+ && git clone --recurse-submodules --depth 1 https://github.com/stolk/imcat.git \
83
+ && cd imcat \
84
+ && make \
85
+ && sudo cp imcat /usr/bin/imcat \
86
+ && touch /usr/bin/scrotcat \
87
+ && tee -a /usr/bin/scrotcat <<< '/usr/bin/imcat <(scrot -o /dev/stdout)' \
88
+ && chmod +x /usr/bin/scrotcat \
89
+ ; else \
90
+ touch /usr/bin/scrotcat \
91
+ && echo echo >> /usr/bin/scrotcat \
92
+ && chmod +x /usr/bin/scrotcat \
93
+ ; fi \
94
+ ; yes | pacman -Scc
95
+
96
+ USER arch
97
+
98
+ ENV USER arch
99
+
100
+ WORKDIR /home/arch/OSX-KVM
101
+
102
+ RUN mkdir -p ~/.ssh \
103
+ && touch ~/.ssh/authorized_keys \
104
+ && touch ~/.ssh/config \
105
+ && chmod 700 ~/.ssh \
106
+ && chmod 600 ~/.ssh/config \
107
+ && chmod 600 ~/.ssh/authorized_keys \
108
+ && tee -a ~/.ssh/config <<< 'Host *' \
109
+ && tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
110
+ && tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null'
111
+
112
+ ####
113
+
114
+ # symlink the old directory, for redundancy
115
+ RUN ln -s /home/arch/OSX-KVM/OpenCore /home/arch/OSX-KVM/OpenCore-Catalina || true
116
+
117
+ ####
118
+
119
+ #### SPECIAL RUNTIME ARGUMENTS BELOW
120
+
121
+ ENV ADDITIONAL_PORTS=
122
+
123
+ # add additional QEMU boot arguments
124
+ ENV BOOT_ARGS=
125
+
126
+ ENV BOOTDISK=
127
+
128
+ # edit the CPU that is beign emulated
129
+ ENV CPU=Penryn
130
+
131
+ ENV DISPLAY=:99
132
+
133
+ ENV HEADLESS=false
134
+
135
+ ENV ENV=/env
136
+
137
+ # Boolean for generating a bootdisk with new random serials.
138
+ ENV GENERATE_UNIQUE=false
139
+
140
+ # Boolean for generating a bootdisk with specific serials.
141
+ ENV GENERATE_SPECIFIC=false
142
+
143
+ ENV IMAGE_PATH=/image
144
+ ENV IMAGE_FORMAT=qcow2
145
+
146
+ ENV KVM='accel=kvm:tcg'
147
+
148
+ # ENV MASTER_PLIST_URL="https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist"
149
+
150
+ # ENV NETWORKING=e1000-82545em
151
+ ENV NETWORKING=vmxnet3
152
+
153
+ ENV NOPICKER=true
154
+
155
+ # dynamic RAM options for runtime
156
+ ENV RAM=3
157
+ # ENV RAM=max
158
+ # ENV RAM=half
159
+
160
+ # The x and y coordinates for resolution.
161
+ # Must be used with either -e GENERATE_UNIQUE=true or -e GENERATE_SPECIFIC=true.
162
+ ENV WIDTH=1920
163
+ ENV HEIGHT=1080
164
+
165
+ # libguestfs verbose
166
+ ENV LIBGUESTFS_DEBUG=1
167
+ ENV LIBGUESTFS_TRACE=1
168
+
169
+ CMD sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
170
+ ; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
171
+ ; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
172
+ nohup Xvfb :99 -screen 0 1920x1080x16 \
173
+ & until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 1 ; done \
174
+ ; } \
175
+ ; [[ "${NOPICKER}" == true ]] && { \
176
+ sed -i '/^.*InstallMedia.*/d' Launch.sh \
177
+ && export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
178
+ ; } \
179
+ || export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
180
+ ; [[ "${GENERATE_UNIQUE}" == true ]] && { \
181
+ ./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
182
+ --master-plist-url="${MASTER_PLIST_URL}" \
183
+ --count 1 \
184
+ --tsv ./serial.tsv \
185
+ --bootdisks \
186
+ --width "${WIDTH:-1920}" \
187
+ --height "${HEIGHT:-1080}" \
188
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
189
+ --output-env "${ENV:=/env}" \
190
+ || exit 1 ; } \
191
+ ; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
192
+ source "${ENV:=/env}" 2>/dev/null \
193
+ ; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
194
+ --master-plist-url="${MASTER_PLIST_URL}" \
195
+ --model "${DEVICE_MODEL}" \
196
+ --serial "${SERIAL}" \
197
+ --board-serial "${BOARD_SERIAL}" \
198
+ --uuid "${UUID}" \
199
+ --mac-address "${MAC_ADDRESS}" \
200
+ --width "${WIDTH:-1920}" \
201
+ --height "${HEIGHT:-1080}" \
202
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
203
+ || exit 1 ; } \
204
+ ; ./enable-ssh.sh && /bin/bash -c ./Launch.sh
Dockerfile.naked-auto ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/docker
2
+ # ____ __ ____ ______ __
3
+ # / __ \____ _____/ /_____ _____/ __ \/ ___/ |/ /
4
+ # / / / / __ \/ ___/ //_/ _ \/ ___/ / / /\__ \| /
5
+ # / /_/ / /_/ / /__/ ,< / __/ / / /_/ /___/ / |
6
+ # /_____/\____/\___/_/|_|\___/_/ \____//____/_/|_| :NAKED-AUTO
7
+ #
8
+ # Title: Docker-OSX (Mac on Docker)
9
+ # Author: Sick.Codes https://twitter.com/sickcodes
10
+ # Version: 6.0
11
+ # License: GPLv3+
12
+ # Repository: https://github.com/sickcodes/Docker-OSX
13
+ # Website: https://sick.codes
14
+ #
15
+ # This Dockerfile needs you to supply a pre-installed installation of Docker-OSX!
16
+ #
17
+ # Visit https://github.com/sickcodes/Docker-OSX for info
18
+
19
+ FROM sickcodes/docker-osx:latest
20
+
21
+ LABEL maintainer='https://twitter.com/sickcodes <https://sick.codes>'
22
+
23
+ USER root
24
+
25
+ WORKDIR /root
26
+
27
+ RUN rm -f /home/arch/OSX-KVM/mac_hdd_ng.img
28
+
29
+ # For taking screenshots of the Xfvb screen, useful during development.
30
+ ARG SCROT
31
+
32
+ # OPTIONAL: Arch Linux server mirrors for super fast builds
33
+ # set RANKMIRRORS to any value other that nothing, e.g. -e RANKMIRRORS=true
34
+ RUN perl -i -p -e s/^\#Color/Color$'\n'ParallelDownloads\ =\ 30/g /etc/pacman.conf
35
+ ARG RANKMIRRORS
36
+ ARG MIRROR_COUNTRY=US
37
+ ARG MIRROR_COUNT=10
38
+
39
+ RUN tee /etc/pacman.d/mirrorlist <<< 'Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch' \
40
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
41
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch'
42
+
43
+ # Fixes issue with invalid GPG keys: update the archlinux-keyring package to get the latest keys, then remove and regenerate gnupg keys
44
+ RUN pacman -Sy archlinux-keyring --noconfirm \
45
+ && rm -rf /etc/pacman.d/gnupg \
46
+ && pacman-key --init \
47
+ && pacman-key --populate archlinux
48
+
49
+ RUN if [[ "${RANKMIRRORS}" ]]; then \
50
+ { pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
51
+ ; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/${BRANCH:=master}/rankmirrors" \
52
+ ; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \
53
+ | sed -e 's/^#Server/Server/' -e '/^#/d' \
54
+ | head -n "$((${MIRROR_COUNT:-10}+1))" \
55
+ | bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
56
+ && cat /etc/pacman.d/mirrorlist \
57
+ ; fi
58
+
59
+ RUN tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkp://keyserver.ubuntu.com' \
60
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://hkps.pool.sks-keyservers.net:443' \
61
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkp://pgp.mit.edu:11371' \
62
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://keys.openpgp.org' \
63
+ && tee -a /etc/pacman.d/gnupg/gpg.conf <<< 'keyserver hkps://keys.mailvelope.com'
64
+
65
+ # For taking screenshots of the Xfvb screen, useful during development.
66
+ ARG SCROT
67
+
68
+ RUN pacman -Syu xorg-server-xvfb wget xterm xorg-xhost xorg-xrandr --noconfirm \
69
+ && if [[ "${SCROT}" ]]; then \
70
+ pacman -Syu scrot base-devel --noconfirm \
71
+ && git clone --recurse-submodules --depth 1 https://github.com/stolk/imcat.git \
72
+ && cd imcat \
73
+ && make \
74
+ && sudo cp imcat /usr/bin/imcat \
75
+ && touch /usr/bin/scrotcat \
76
+ && tee -a /usr/bin/scrotcat <<< '/usr/bin/imcat <(scrot -o /dev/stdout)' \
77
+ && chmod +x /usr/bin/scrotcat \
78
+ ; else \
79
+ touch /usr/bin/scrotcat \
80
+ && echo echo >> /usr/bin/scrotcat \
81
+ && chmod +x /usr/bin/scrotcat \
82
+ ; fi \
83
+ ; yes | pacman -Scc
84
+
85
+ RUN pacman -S sshpass --noconfirm \
86
+ && yes | pacman -Scc
87
+
88
+ USER arch
89
+
90
+ ENV USER arch
91
+
92
+ WORKDIR /home/arch/OSX-KVM
93
+
94
+ RUN mkdir -p ~/.ssh \
95
+ && touch ~/.ssh/authorized_keys \
96
+ && touch ~/.ssh/config \
97
+ && chmod 700 ~/.ssh \
98
+ && chmod 600 ~/.ssh/config \
99
+ && chmod 600 ~/.ssh/authorized_keys \
100
+ && tee -a ~/.ssh/config <<< 'Host *' \
101
+ && tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
102
+ && tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null'
103
+
104
+ ARG COMPLETE=
105
+
106
+ # use the COMPLETE arg, for a complete image, ready to boot.
107
+ # otherwise use your own image: -v "$PWD/disk.img":/image
108
+ ARG WGET_OPTIONS=
109
+ # ARG WGET_OPTIONS='--no-verbose'
110
+
111
+ # Feel free to take a copy of this image and then host it internally
112
+ ARG IMAGE_URL=
113
+ # ARG IMAGE_URL='https://images.sick.codes/mac_hdd_ng_auto_big_sur.img'
114
+
115
+ RUN if [[ "${COMPLETE}" ]]; then \
116
+ echo "Downloading your image... This step might take a while... Press Ctrl+C if you want to abort." \
117
+ ; rm -f /home/arch/OSX-KVM/mac_hdd_ng.img \
118
+ && wget ${WGET_OPTIONS} -O /home/arch/OSX-KVM/mac_hdd_ng.img "${IMAGE_URL}" \
119
+ ; fi
120
+
121
+ ####
122
+
123
+ # symlink the old directory, for redundancy
124
+ RUN ln -s /home/arch/OSX-KVM/OpenCore /home/arch/OSX-KVM/OpenCore-Catalina || true
125
+
126
+ ####
127
+
128
+ #### SPECIAL RUNTIME ARGUMENTS BELOW
129
+
130
+ ENV ADDITIONAL_PORTS=
131
+
132
+ # add additional QEMU boot arguments
133
+ ENV BOOT_ARGS=
134
+
135
+ ENV BOOTDISK=
136
+
137
+ # edit the CPU that is beign emulated
138
+ ENV CPU=Penryn
139
+
140
+ ENV DISPLAY=:99
141
+
142
+ ENV HEADLESS=false
143
+
144
+ ENV ENV=/env
145
+
146
+ # Boolean for generating a bootdisk with new random serials.
147
+ ENV GENERATE_UNIQUE=false
148
+
149
+ # Boolean for generating a bootdisk with specific serials.
150
+ ENV GENERATE_SPECIFIC=false
151
+
152
+ ENV IMAGE_PATH=/image
153
+ ENV IMAGE_FORMAT=qcow2
154
+
155
+ ENV KVM='accel=kvm:tcg'
156
+
157
+ # ENV MASTER_PLIST_URL="https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist"
158
+
159
+ # ENV NETWORKING=e1000-82545em
160
+ ENV NETWORKING=vmxnet3
161
+
162
+ ENV NOPICKER=true
163
+
164
+ # set the username and password for automatically logging in
165
+ ENV USERNAME=user
166
+ ENV PASSWORD=alpine
167
+
168
+ # dynamic RAM options for runtime
169
+ ENV RAM=3
170
+ # ENV RAM=max
171
+ # ENV RAM=half
172
+
173
+ # The x and y coordinates for resolution.
174
+ # Must be used with either -e GENERATE_UNIQUE=true or -e GENERATE_SPECIFIC=true.
175
+ ENV WIDTH=1920
176
+ ENV HEIGHT=1080
177
+
178
+ # libguestfs verbose
179
+ ENV LIBGUESTFS_DEBUG=1
180
+ ENV LIBGUESTFS_TRACE=1
181
+
182
+ ENV TERMS_OF_USE=i_agree
183
+
184
+ ENV BOILERPLATE="By using this Dockerfile, you hereby agree that you are a security reseacher or developer and agree to use this Dockerfile to make the world a safer place. Examples include: making your apps safer, finding your mobile phone, compiling security products, etc. You understand that Docker-OSX is an Open Source project, which is released to the public under the GNU Pulic License version 3 and above. You acknowledge that the Open Source project is absolutely unaffiliated with any third party, in any form whatsoever. Any trademarks or intelectual property which happen to be mentioned anywhere in or around the project are owned by their respective owners. By using this Dockerfile, you agree to agree to the EULA of each piece of upstream or downstream software. The following code is released for the sole purpose of security research, under the GNU Public License version 3. If you are concerned about the licensing, please note that this project is not AGPL. A copy of the license is available online: https://github.com/sickcodes/Docker-OSX/blob/master/LICENSE. In order to use the following Dockerfile you must read and understand the terms. Once you have read the terms, use the -e TERMS_OF_USE=i_agree or -e TERMS_OF_USE=i_disagree"
185
+
186
+ CMD echo "${BOILERPLATE}" \
187
+ ; [[ "${TERMS_OF_USE}" = i_agree ]] || exit 1 \
188
+ ; echo "Disk is being copied between layers... Please wait a minute..." \
189
+ ; sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
190
+ ; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
191
+ ; [[ "${NOPICKER}" == true ]] && { \
192
+ sed -i '/^.*InstallMedia.*/d' Launch.sh \
193
+ && export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore-nopicker.qcow2}" \
194
+ ; } \
195
+ || export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
196
+ ; [[ "${GENERATE_UNIQUE}" == true ]] && { \
197
+ ./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
198
+ --master-plist-url="${MASTER_PLIST_URL}" \
199
+ --count 1 \
200
+ --tsv ./serial.tsv \
201
+ --bootdisks \
202
+ --width "${WIDTH:-1920}" \
203
+ --height "${HEIGHT:-1080}" \
204
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
205
+ --output-env "${ENV:=/env}" \
206
+ || exit 1 ; } \
207
+ ; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
208
+ source "${ENV:=/env}" 2>/dev/null \
209
+ ; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
210
+ --master-plist-url="${MASTER_PLIST_URL}" \
211
+ --model "${DEVICE_MODEL}" \
212
+ --serial "${SERIAL}" \
213
+ --board-serial "${BOARD_SERIAL}" \
214
+ --uuid "${UUID}" \
215
+ --mac-address "${MAC_ADDRESS}" \
216
+ --width "${WIDTH:-1920}" \
217
+ --height "${HEIGHT:-1080}" \
218
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore/OpenCore.qcow2}" \
219
+ || exit 1 ; } \
220
+ ; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
221
+ nohup Xvfb :99 -screen 0 1920x1080x16 \
222
+ & until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 1 ; done \
223
+ ; } \
224
+ ; stat "${IMAGE_PATH}" \
225
+ ; echo "Large image is being copied between layers, please wait a minute..." \
226
+ ; ./enable-ssh.sh \
227
+ ; [[ -e ~/.ssh/id_docker_osx ]] || { \
228
+ /usr/bin/ssh-keygen -t rsa -f ~/.ssh/id_docker_osx -q -N "" \
229
+ && chmod 600 ~/.ssh/id_docker_osx \
230
+ ; } \
231
+ ; /bin/bash -c ./Launch.sh \
232
+ & echo "Booting Docker-OSX in the background. Please wait..." \
233
+ ; until [[ "$(sshpass -p${PASSWORD:=alpine} ssh-copy-id -f -i ~/.ssh/id_docker_osx.pub -p 10022 ${USERNAME:=user}@127.0.0.1)" ]]; do \
234
+ echo "Disk is being copied between layers. Repeating until able to copy SSH key into OSX..." \
235
+ ; sleep 1 \
236
+ ; done \
237
+ ; grep id_docker_osx ~/.ssh/config || { \
238
+ tee -a ~/.ssh/config <<< 'Host 127.0.0.1' \
239
+ ; tee -a ~/.ssh/config <<< " User ${USERNAME:=user}" \
240
+ ; tee -a ~/.ssh/config <<< ' Port 10022' \
241
+ ; tee -a ~/.ssh/config <<< ' IdentityFile ~/.ssh/id_docker_osx' \
242
+ ; tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
243
+ ; tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null' \
244
+ ; } \
245
+ && ssh -i ~/.ssh/id_docker_osx ${USERNAME:=user}@127.0.0.1 -p 10022 "${OSX_COMMANDS}"
LICENSE ADDED
@@ -0,0 +1,674 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU General Public License is a free, copyleft license for
11
+ software and other kinds of works.
12
+
13
+ The licenses for most software and other practical works are designed
14
+ to take away your freedom to share and change the works. By contrast,
15
+ the GNU General Public License is intended to guarantee your freedom to
16
+ share and change all versions of a program--to make sure it remains free
17
+ software for all its users. We, the Free Software Foundation, use the
18
+ GNU General Public License for most of our software; it applies also to
19
+ any other work released this way by its authors. You can apply it to
20
+ your programs, too.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ To protect your rights, we need to prevent others from denying you
30
+ these rights or asking you to surrender the rights. Therefore, you have
31
+ certain responsibilities if you distribute copies of the software, or if
32
+ you modify it: responsibilities to respect the freedom of others.
33
+
34
+ For example, if you distribute copies of such a program, whether
35
+ gratis or for a fee, you must pass on to the recipients the same
36
+ freedoms that you received. You must make sure that they, too, receive
37
+ or can get the source code. And you must show them these terms so they
38
+ know their rights.
39
+
40
+ Developers that use the GNU GPL protect your rights with two steps:
41
+ (1) assert copyright on the software, and (2) offer you this License
42
+ giving you legal permission to copy, distribute and/or modify it.
43
+
44
+ For the developers' and authors' protection, the GPL clearly explains
45
+ that there is no warranty for this free software. For both users' and
46
+ authors' sake, the GPL requires that modified versions be marked as
47
+ changed, so that their problems will not be attributed erroneously to
48
+ authors of previous versions.
49
+
50
+ Some devices are designed to deny users access to install or run
51
+ modified versions of the software inside them, although the manufacturer
52
+ can do so. This is fundamentally incompatible with the aim of
53
+ protecting users' freedom to change the software. The systematic
54
+ pattern of such abuse occurs in the area of products for individuals to
55
+ use, which is precisely where it is most unacceptable. Therefore, we
56
+ have designed this version of the GPL to prohibit the practice for those
57
+ products. If such problems arise substantially in other domains, we
58
+ stand ready to extend this provision to those domains in future versions
59
+ of the GPL, as needed to protect the freedom of users.
60
+
61
+ Finally, every program is threatened constantly by software patents.
62
+ States should not allow patents to restrict development and use of
63
+ software on general-purpose computers, but in those that do, we wish to
64
+ avoid the special danger that patents applied to a free program could
65
+ make it effectively proprietary. To prevent this, the GPL assures that
66
+ patents cannot be used to render the program non-free.
67
+
68
+ The precise terms and conditions for copying, distribution and
69
+ modification follow.
70
+
71
+ TERMS AND CONDITIONS
72
+
73
+ 0. Definitions.
74
+
75
+ "This License" refers to version 3 of the GNU General Public License.
76
+
77
+ "Copyright" also means copyright-like laws that apply to other kinds of
78
+ works, such as semiconductor masks.
79
+
80
+ "The Program" refers to any copyrightable work licensed under this
81
+ License. Each licensee is addressed as "you". "Licensees" and
82
+ "recipients" may be individuals or organizations.
83
+
84
+ To "modify" a work means to copy from or adapt all or part of the work
85
+ in a fashion requiring copyright permission, other than the making of an
86
+ exact copy. The resulting work is called a "modified version" of the
87
+ earlier work or a work "based on" the earlier work.
88
+
89
+ A "covered work" means either the unmodified Program or a work based
90
+ on the Program.
91
+
92
+ To "propagate" a work means to do anything with it that, without
93
+ permission, would make you directly or secondarily liable for
94
+ infringement under applicable copyright law, except executing it on a
95
+ computer or modifying a private copy. Propagation includes copying,
96
+ distribution (with or without modification), making available to the
97
+ public, and in some countries other activities as well.
98
+
99
+ To "convey" a work means any kind of propagation that enables other
100
+ parties to make or receive copies. Mere interaction with a user through
101
+ a computer network, with no transfer of a copy, is not conveying.
102
+
103
+ An interactive user interface displays "Appropriate Legal Notices"
104
+ to the extent that it includes a convenient and prominently visible
105
+ feature that (1) displays an appropriate copyright notice, and (2)
106
+ tells the user that there is no warranty for the work (except to the
107
+ extent that warranties are provided), that licensees may convey the
108
+ work under this License, and how to view a copy of this License. If
109
+ the interface presents a list of user commands or options, such as a
110
+ menu, a prominent item in the list meets this criterion.
111
+
112
+ 1. Source Code.
113
+
114
+ The "source code" for a work means the preferred form of the work
115
+ for making modifications to it. "Object code" means any non-source
116
+ form of a work.
117
+
118
+ A "Standard Interface" means an interface that either is an official
119
+ standard defined by a recognized standards body, or, in the case of
120
+ interfaces specified for a particular programming language, one that
121
+ is widely used among developers working in that language.
122
+
123
+ The "System Libraries" of an executable work include anything, other
124
+ than the work as a whole, that (a) is included in the normal form of
125
+ packaging a Major Component, but which is not part of that Major
126
+ Component, and (b) serves only to enable use of the work with that
127
+ Major Component, or to implement a Standard Interface for which an
128
+ implementation is available to the public in source code form. A
129
+ "Major Component", in this context, means a major essential component
130
+ (kernel, window system, and so on) of the specific operating system
131
+ (if any) on which the executable work runs, or a compiler used to
132
+ produce the work, or an object code interpreter used to run it.
133
+
134
+ The "Corresponding Source" for a work in object code form means all
135
+ the source code needed to generate, install, and (for an executable
136
+ work) run the object code and to modify the work, including scripts to
137
+ control those activities. However, it does not include the work's
138
+ System Libraries, or general-purpose tools or generally available free
139
+ programs which are used unmodified in performing those activities but
140
+ which are not part of the work. For example, Corresponding Source
141
+ includes interface definition files associated with source files for
142
+ the work, and the source code for shared libraries and dynamically
143
+ linked subprograms that the work is specifically designed to require,
144
+ such as by intimate data communication or control flow between those
145
+ subprograms and other parts of the work.
146
+
147
+ The Corresponding Source need not include anything that users
148
+ can regenerate automatically from other parts of the Corresponding
149
+ Source.
150
+
151
+ The Corresponding Source for a work in source code form is that
152
+ same work.
153
+
154
+ 2. Basic Permissions.
155
+
156
+ All rights granted under this License are granted for the term of
157
+ copyright on the Program, and are irrevocable provided the stated
158
+ conditions are met. This License explicitly affirms your unlimited
159
+ permission to run the unmodified Program. The output from running a
160
+ covered work is covered by this License only if the output, given its
161
+ content, constitutes a covered work. This License acknowledges your
162
+ rights of fair use or other equivalent, as provided by copyright law.
163
+
164
+ You may make, run and propagate covered works that you do not
165
+ convey, without conditions so long as your license otherwise remains
166
+ in force. You may convey covered works to others for the sole purpose
167
+ of having them make modifications exclusively for you, or provide you
168
+ with facilities for running those works, provided that you comply with
169
+ the terms of this License in conveying all material for which you do
170
+ not control copyright. Those thus making or running the covered works
171
+ for you must do so exclusively on your behalf, under your direction
172
+ and control, on terms that prohibit them from making any copies of
173
+ your copyrighted material outside their relationship with you.
174
+
175
+ Conveying under any other circumstances is permitted solely under
176
+ the conditions stated below. Sublicensing is not allowed; section 10
177
+ makes it unnecessary.
178
+
179
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180
+
181
+ No covered work shall be deemed part of an effective technological
182
+ measure under any applicable law fulfilling obligations under article
183
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184
+ similar laws prohibiting or restricting circumvention of such
185
+ measures.
186
+
187
+ When you convey a covered work, you waive any legal power to forbid
188
+ circumvention of technological measures to the extent such circumvention
189
+ is effected by exercising rights under this License with respect to
190
+ the covered work, and you disclaim any intention to limit operation or
191
+ modification of the work as a means of enforcing, against the work's
192
+ users, your or third parties' legal rights to forbid circumvention of
193
+ technological measures.
194
+
195
+ 4. Conveying Verbatim Copies.
196
+
197
+ You may convey verbatim copies of the Program's source code as you
198
+ receive it, in any medium, provided that you conspicuously and
199
+ appropriately publish on each copy an appropriate copyright notice;
200
+ keep intact all notices stating that this License and any
201
+ non-permissive terms added in accord with section 7 apply to the code;
202
+ keep intact all notices of the absence of any warranty; and give all
203
+ recipients a copy of this License along with the Program.
204
+
205
+ You may charge any price or no price for each copy that you convey,
206
+ and you may offer support or warranty protection for a fee.
207
+
208
+ 5. Conveying Modified Source Versions.
209
+
210
+ You may convey a work based on the Program, or the modifications to
211
+ produce it from the Program, in the form of source code under the
212
+ terms of section 4, provided that you also meet all of these conditions:
213
+
214
+ a) The work must carry prominent notices stating that you modified
215
+ it, and giving a relevant date.
216
+
217
+ b) The work must carry prominent notices stating that it is
218
+ released under this License and any conditions added under section
219
+ 7. This requirement modifies the requirement in section 4 to
220
+ "keep intact all notices".
221
+
222
+ c) You must license the entire work, as a whole, under this
223
+ License to anyone who comes into possession of a copy. This
224
+ License will therefore apply, along with any applicable section 7
225
+ additional terms, to the whole of the work, and all its parts,
226
+ regardless of how they are packaged. This License gives no
227
+ permission to license the work in any other way, but it does not
228
+ invalidate such permission if you have separately received it.
229
+
230
+ d) If the work has interactive user interfaces, each must display
231
+ Appropriate Legal Notices; however, if the Program has interactive
232
+ interfaces that do not display Appropriate Legal Notices, your
233
+ work need not make them do so.
234
+
235
+ A compilation of a covered work with other separate and independent
236
+ works, which are not by their nature extensions of the covered work,
237
+ and which are not combined with it such as to form a larger program,
238
+ in or on a volume of a storage or distribution medium, is called an
239
+ "aggregate" if the compilation and its resulting copyright are not
240
+ used to limit the access or legal rights of the compilation's users
241
+ beyond what the individual works permit. Inclusion of a covered work
242
+ in an aggregate does not cause this License to apply to the other
243
+ parts of the aggregate.
244
+
245
+ 6. Conveying Non-Source Forms.
246
+
247
+ You may convey a covered work in object code form under the terms
248
+ of sections 4 and 5, provided that you also convey the
249
+ machine-readable Corresponding Source under the terms of this License,
250
+ in one of these ways:
251
+
252
+ a) Convey the object code in, or embodied in, a physical product
253
+ (including a physical distribution medium), accompanied by the
254
+ Corresponding Source fixed on a durable physical medium
255
+ customarily used for software interchange.
256
+
257
+ b) Convey the object code in, or embodied in, a physical product
258
+ (including a physical distribution medium), accompanied by a
259
+ written offer, valid for at least three years and valid for as
260
+ long as you offer spare parts or customer support for that product
261
+ model, to give anyone who possesses the object code either (1) a
262
+ copy of the Corresponding Source for all the software in the
263
+ product that is covered by this License, on a durable physical
264
+ medium customarily used for software interchange, for a price no
265
+ more than your reasonable cost of physically performing this
266
+ conveying of source, or (2) access to copy the
267
+ Corresponding Source from a network server at no charge.
268
+
269
+ c) Convey individual copies of the object code with a copy of the
270
+ written offer to provide the Corresponding Source. This
271
+ alternative is allowed only occasionally and noncommercially, and
272
+ only if you received the object code with such an offer, in accord
273
+ with subsection 6b.
274
+
275
+ d) Convey the object code by offering access from a designated
276
+ place (gratis or for a charge), and offer equivalent access to the
277
+ Corresponding Source in the same way through the same place at no
278
+ further charge. You need not require recipients to copy the
279
+ Corresponding Source along with the object code. If the place to
280
+ copy the object code is a network server, the Corresponding Source
281
+ may be on a different server (operated by you or a third party)
282
+ that supports equivalent copying facilities, provided you maintain
283
+ clear directions next to the object code saying where to find the
284
+ Corresponding Source. Regardless of what server hosts the
285
+ Corresponding Source, you remain obligated to ensure that it is
286
+ available for as long as needed to satisfy these requirements.
287
+
288
+ e) Convey the object code using peer-to-peer transmission, provided
289
+ you inform other peers where the object code and Corresponding
290
+ Source of the work are being offered to the general public at no
291
+ charge under subsection 6d.
292
+
293
+ A separable portion of the object code, whose source code is excluded
294
+ from the Corresponding Source as a System Library, need not be
295
+ included in conveying the object code work.
296
+
297
+ A "User Product" is either (1) a "consumer product", which means any
298
+ tangible personal property which is normally used for personal, family,
299
+ or household purposes, or (2) anything designed or sold for incorporation
300
+ into a dwelling. In determining whether a product is a consumer product,
301
+ doubtful cases shall be resolved in favor of coverage. For a particular
302
+ product received by a particular user, "normally used" refers to a
303
+ typical or common use of that class of product, regardless of the status
304
+ of the particular user or of the way in which the particular user
305
+ actually uses, or expects or is expected to use, the product. A product
306
+ is a consumer product regardless of whether the product has substantial
307
+ commercial, industrial or non-consumer uses, unless such uses represent
308
+ the only significant mode of use of the product.
309
+
310
+ "Installation Information" for a User Product means any methods,
311
+ procedures, authorization keys, or other information required to install
312
+ and execute modified versions of a covered work in that User Product from
313
+ a modified version of its Corresponding Source. The information must
314
+ suffice to ensure that the continued functioning of the modified object
315
+ code is in no case prevented or interfered with solely because
316
+ modification has been made.
317
+
318
+ If you convey an object code work under this section in, or with, or
319
+ specifically for use in, a User Product, and the conveying occurs as
320
+ part of a transaction in which the right of possession and use of the
321
+ User Product is transferred to the recipient in perpetuity or for a
322
+ fixed term (regardless of how the transaction is characterized), the
323
+ Corresponding Source conveyed under this section must be accompanied
324
+ by the Installation Information. But this requirement does not apply
325
+ if neither you nor any third party retains the ability to install
326
+ modified object code on the User Product (for example, the work has
327
+ been installed in ROM).
328
+
329
+ The requirement to provide Installation Information does not include a
330
+ requirement to continue to provide support service, warranty, or updates
331
+ for a work that has been modified or installed by the recipient, or for
332
+ the User Product in which it has been modified or installed. Access to a
333
+ network may be denied when the modification itself materially and
334
+ adversely affects the operation of the network or violates the rules and
335
+ protocols for communication across the network.
336
+
337
+ Corresponding Source conveyed, and Installation Information provided,
338
+ in accord with this section must be in a format that is publicly
339
+ documented (and with an implementation available to the public in
340
+ source code form), and must require no special password or key for
341
+ unpacking, reading or copying.
342
+
343
+ 7. Additional Terms.
344
+
345
+ "Additional permissions" are terms that supplement the terms of this
346
+ License by making exceptions from one or more of its conditions.
347
+ Additional permissions that are applicable to the entire Program shall
348
+ be treated as though they were included in this License, to the extent
349
+ that they are valid under applicable law. If additional permissions
350
+ apply only to part of the Program, that part may be used separately
351
+ under those permissions, but the entire Program remains governed by
352
+ this License without regard to the additional permissions.
353
+
354
+ When you convey a copy of a covered work, you may at your option
355
+ remove any additional permissions from that copy, or from any part of
356
+ it. (Additional permissions may be written to require their own
357
+ removal in certain cases when you modify the work.) You may place
358
+ additional permissions on material, added by you to a covered work,
359
+ for which you have or can give appropriate copyright permission.
360
+
361
+ Notwithstanding any other provision of this License, for material you
362
+ add to a covered work, you may (if authorized by the copyright holders of
363
+ that material) supplement the terms of this License with terms:
364
+
365
+ a) Disclaiming warranty or limiting liability differently from the
366
+ terms of sections 15 and 16 of this License; or
367
+
368
+ b) Requiring preservation of specified reasonable legal notices or
369
+ author attributions in that material or in the Appropriate Legal
370
+ Notices displayed by works containing it; or
371
+
372
+ c) Prohibiting misrepresentation of the origin of that material, or
373
+ requiring that modified versions of such material be marked in
374
+ reasonable ways as different from the original version; or
375
+
376
+ d) Limiting the use for publicity purposes of names of licensors or
377
+ authors of the material; or
378
+
379
+ e) Declining to grant rights under trademark law for use of some
380
+ trade names, trademarks, or service marks; or
381
+
382
+ f) Requiring indemnification of licensors and authors of that
383
+ material by anyone who conveys the material (or modified versions of
384
+ it) with contractual assumptions of liability to the recipient, for
385
+ any liability that these contractual assumptions directly impose on
386
+ those licensors and authors.
387
+
388
+ All other non-permissive additional terms are considered "further
389
+ restrictions" within the meaning of section 10. If the Program as you
390
+ received it, or any part of it, contains a notice stating that it is
391
+ governed by this License along with a term that is a further
392
+ restriction, you may remove that term. If a license document contains
393
+ a further restriction but permits relicensing or conveying under this
394
+ License, you may add to a covered work material governed by the terms
395
+ of that license document, provided that the further restriction does
396
+ not survive such relicensing or conveying.
397
+
398
+ If you add terms to a covered work in accord with this section, you
399
+ must place, in the relevant source files, a statement of the
400
+ additional terms that apply to those files, or a notice indicating
401
+ where to find the applicable terms.
402
+
403
+ Additional terms, permissive or non-permissive, may be stated in the
404
+ form of a separately written license, or stated as exceptions;
405
+ the above requirements apply either way.
406
+
407
+ 8. Termination.
408
+
409
+ You may not propagate or modify a covered work except as expressly
410
+ provided under this License. Any attempt otherwise to propagate or
411
+ modify it is void, and will automatically terminate your rights under
412
+ this License (including any patent licenses granted under the third
413
+ paragraph of section 11).
414
+
415
+ However, if you cease all violation of this License, then your
416
+ license from a particular copyright holder is reinstated (a)
417
+ provisionally, unless and until the copyright holder explicitly and
418
+ finally terminates your license, and (b) permanently, if the copyright
419
+ holder fails to notify you of the violation by some reasonable means
420
+ prior to 60 days after the cessation.
421
+
422
+ Moreover, your license from a particular copyright holder is
423
+ reinstated permanently if the copyright holder notifies you of the
424
+ violation by some reasonable means, this is the first time you have
425
+ received notice of violation of this License (for any work) from that
426
+ copyright holder, and you cure the violation prior to 30 days after
427
+ your receipt of the notice.
428
+
429
+ Termination of your rights under this section does not terminate the
430
+ licenses of parties who have received copies or rights from you under
431
+ this License. If your rights have been terminated and not permanently
432
+ reinstated, you do not qualify to receive new licenses for the same
433
+ material under section 10.
434
+
435
+ 9. Acceptance Not Required for Having Copies.
436
+
437
+ You are not required to accept this License in order to receive or
438
+ run a copy of the Program. Ancillary propagation of a covered work
439
+ occurring solely as a consequence of using peer-to-peer transmission
440
+ to receive a copy likewise does not require acceptance. However,
441
+ nothing other than this License grants you permission to propagate or
442
+ modify any covered work. These actions infringe copyright if you do
443
+ not accept this License. Therefore, by modifying or propagating a
444
+ covered work, you indicate your acceptance of this License to do so.
445
+
446
+ 10. Automatic Licensing of Downstream Recipients.
447
+
448
+ Each time you convey a covered work, the recipient automatically
449
+ receives a license from the original licensors, to run, modify and
450
+ propagate that work, subject to this License. You are not responsible
451
+ for enforcing compliance by third parties with this License.
452
+
453
+ An "entity transaction" is a transaction transferring control of an
454
+ organization, or substantially all assets of one, or subdividing an
455
+ organization, or merging organizations. If propagation of a covered
456
+ work results from an entity transaction, each party to that
457
+ transaction who receives a copy of the work also receives whatever
458
+ licenses to the work the party's predecessor in interest had or could
459
+ give under the previous paragraph, plus a right to possession of the
460
+ Corresponding Source of the work from the predecessor in interest, if
461
+ the predecessor has it or can get it with reasonable efforts.
462
+
463
+ You may not impose any further restrictions on the exercise of the
464
+ rights granted or affirmed under this License. For example, you may
465
+ not impose a license fee, royalty, or other charge for exercise of
466
+ rights granted under this License, and you may not initiate litigation
467
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
468
+ any patent claim is infringed by making, using, selling, offering for
469
+ sale, or importing the Program or any portion of it.
470
+
471
+ 11. Patents.
472
+
473
+ A "contributor" is a copyright holder who authorizes use under this
474
+ License of the Program or a work on which the Program is based. The
475
+ work thus licensed is called the contributor's "contributor version".
476
+
477
+ A contributor's "essential patent claims" are all patent claims
478
+ owned or controlled by the contributor, whether already acquired or
479
+ hereafter acquired, that would be infringed by some manner, permitted
480
+ by this License, of making, using, or selling its contributor version,
481
+ but do not include claims that would be infringed only as a
482
+ consequence of further modification of the contributor version. For
483
+ purposes of this definition, "control" includes the right to grant
484
+ patent sublicenses in a manner consistent with the requirements of
485
+ this License.
486
+
487
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
488
+ patent license under the contributor's essential patent claims, to
489
+ make, use, sell, offer for sale, import and otherwise run, modify and
490
+ propagate the contents of its contributor version.
491
+
492
+ In the following three paragraphs, a "patent license" is any express
493
+ agreement or commitment, however denominated, not to enforce a patent
494
+ (such as an express permission to practice a patent or covenant not to
495
+ sue for patent infringement). To "grant" such a patent license to a
496
+ party means to make such an agreement or commitment not to enforce a
497
+ patent against the party.
498
+
499
+ If you convey a covered work, knowingly relying on a patent license,
500
+ and the Corresponding Source of the work is not available for anyone
501
+ to copy, free of charge and under the terms of this License, through a
502
+ publicly available network server or other readily accessible means,
503
+ then you must either (1) cause the Corresponding Source to be so
504
+ available, or (2) arrange to deprive yourself of the benefit of the
505
+ patent license for this particular work, or (3) arrange, in a manner
506
+ consistent with the requirements of this License, to extend the patent
507
+ license to downstream recipients. "Knowingly relying" means you have
508
+ actual knowledge that, but for the patent license, your conveying the
509
+ covered work in a country, or your recipient's use of the covered work
510
+ in a country, would infringe one or more identifiable patents in that
511
+ country that you have reason to believe are valid.
512
+
513
+ If, pursuant to or in connection with a single transaction or
514
+ arrangement, you convey, or propagate by procuring conveyance of, a
515
+ covered work, and grant a patent license to some of the parties
516
+ receiving the covered work authorizing them to use, propagate, modify
517
+ or convey a specific copy of the covered work, then the patent license
518
+ you grant is automatically extended to all recipients of the covered
519
+ work and works based on it.
520
+
521
+ A patent license is "discriminatory" if it does not include within
522
+ the scope of its coverage, prohibits the exercise of, or is
523
+ conditioned on the non-exercise of one or more of the rights that are
524
+ specifically granted under this License. You may not convey a covered
525
+ work if you are a party to an arrangement with a third party that is
526
+ in the business of distributing software, under which you make payment
527
+ to the third party based on the extent of your activity of conveying
528
+ the work, and under which the third party grants, to any of the
529
+ parties who would receive the covered work from you, a discriminatory
530
+ patent license (a) in connection with copies of the covered work
531
+ conveyed by you (or copies made from those copies), or (b) primarily
532
+ for and in connection with specific products or compilations that
533
+ contain the covered work, unless you entered into that arrangement,
534
+ or that patent license was granted, prior to 28 March 2007.
535
+
536
+ Nothing in this License shall be construed as excluding or limiting
537
+ any implied license or other defenses to infringement that may
538
+ otherwise be available to you under applicable patent law.
539
+
540
+ 12. No Surrender of Others' Freedom.
541
+
542
+ If conditions are imposed on you (whether by court order, agreement or
543
+ otherwise) that contradict the conditions of this License, they do not
544
+ excuse you from the conditions of this License. If you cannot convey a
545
+ covered work so as to satisfy simultaneously your obligations under this
546
+ License and any other pertinent obligations, then as a consequence you may
547
+ not convey it at all. For example, if you agree to terms that obligate you
548
+ to collect a royalty for further conveying from those to whom you convey
549
+ the Program, the only way you could satisfy both those terms and this
550
+ License would be to refrain entirely from conveying the Program.
551
+
552
+ 13. Use with the GNU Affero General Public License.
553
+
554
+ Notwithstanding any other provision of this License, you have
555
+ permission to link or combine any covered work with a work licensed
556
+ under version 3 of the GNU Affero General Public License into a single
557
+ combined work, and to convey the resulting work. The terms of this
558
+ License will continue to apply to the part which is the covered work,
559
+ but the special requirements of the GNU Affero General Public License,
560
+ section 13, concerning interaction through a network will apply to the
561
+ combination as such.
562
+
563
+ 14. Revised Versions of this License.
564
+
565
+ The Free Software Foundation may publish revised and/or new versions of
566
+ the GNU General Public License from time to time. Such new versions will
567
+ be similar in spirit to the present version, but may differ in detail to
568
+ address new problems or concerns.
569
+
570
+ Each version is given a distinguishing version number. If the
571
+ Program specifies that a certain numbered version of the GNU General
572
+ Public License "or any later version" applies to it, you have the
573
+ option of following the terms and conditions either of that numbered
574
+ version or of any later version published by the Free Software
575
+ Foundation. If the Program does not specify a version number of the
576
+ GNU General Public License, you may choose any version ever published
577
+ by the Free Software Foundation.
578
+
579
+ If the Program specifies that a proxy can decide which future
580
+ versions of the GNU General Public License can be used, that proxy's
581
+ public statement of acceptance of a version permanently authorizes you
582
+ to choose that version for the Program.
583
+
584
+ Later license versions may give you additional or different
585
+ permissions. However, no additional obligations are imposed on any
586
+ author or copyright holder as a result of your choosing to follow a
587
+ later version.
588
+
589
+ 15. Disclaimer of Warranty.
590
+
591
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599
+
600
+ 16. Limitation of Liability.
601
+
602
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610
+ SUCH DAMAGES.
611
+
612
+ 17. Interpretation of Sections 15 and 16.
613
+
614
+ If the disclaimer of warranty and limitation of liability provided
615
+ above cannot be given local legal effect according to their terms,
616
+ reviewing courts shall apply local law that most closely approximates
617
+ an absolute waiver of all civil liability in connection with the
618
+ Program, unless a warranty or assumption of liability accompanies a
619
+ copy of the Program in return for a fee.
620
+
621
+ END OF TERMS AND CONDITIONS
622
+
623
+ How to Apply These Terms to Your New Programs
624
+
625
+ If you develop a new program, and you want it to be of the greatest
626
+ possible use to the public, the best way to achieve this is to make it
627
+ free software which everyone can redistribute and change under these terms.
628
+
629
+ To do so, attach the following notices to the program. It is safest
630
+ to attach them to the start of each source file to most effectively
631
+ state the exclusion of warranty; and each file should have at least
632
+ the "copyright" line and a pointer to where the full notice is found.
633
+
634
+ <one line to give the program's name and a brief idea of what it does.>
635
+ Copyright (C) <year> <name of author>
636
+
637
+ This program is free software: you can redistribute it and/or modify
638
+ it under the terms of the GNU General Public License as published by
639
+ the Free Software Foundation, either version 3 of the License, or
640
+ (at your option) any later version.
641
+
642
+ This program is distributed in the hope that it will be useful,
643
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
644
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645
+ GNU General Public License for more details.
646
+
647
+ You should have received a copy of the GNU General Public License
648
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
649
+
650
+ Also add information on how to contact you by electronic and paper mail.
651
+
652
+ If the program does terminal interaction, make it output a short
653
+ notice like this when it starts in an interactive mode:
654
+
655
+ <program> Copyright (C) <year> <name of author>
656
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
+ This is free software, and you are welcome to redistribute it
658
+ under certain conditions; type `show c' for details.
659
+
660
+ The hypothetical commands `show w' and `show c' should show the appropriate
661
+ parts of the General Public License. Of course, your program's commands
662
+ might be different; for a GUI interface, you would use an "about box".
663
+
664
+ You should also get your employer (if you work as a programmer) or school,
665
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
666
+ For more information on this, and how to apply and follow the GNU GPL, see
667
+ <https://www.gnu.org/licenses/>.
668
+
669
+ The GNU General Public License does not permit incorporating your program
670
+ into proprietary programs. If your program is a subroutine library, you
671
+ may consider it more useful to permit linking proprietary applications with
672
+ the library. If this is what you want to do, use the GNU Lesser General
673
+ Public License instead of this License. But first, please read
674
+ <https://www.gnu.org/licenses/why-not-lgpl.html>.
Youtube-Screenshot-Docker-OSX-Setup.png ADDED
Youtube-USBFLUXD-Screenshot-Docker-OSX.png ADDED
custom/README.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # OSX Serial Generator
2
+
3
+ This folder has been moved to its own repository :)
4
+
5
+ This is a temporary copy for hardlinks.
6
+
7
+ See [https://github.com/sickcodes/osx-serial-generator](https://github.com/sickcodes/osx-serial-generator)
custom/config-custom.plist ADDED
@@ -0,0 +1,1401 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- This file is modified by @sickcodes from https://github.com/kholia/OSX-KVM/tree/master/OpenCore-Catalina -->
2
+ <!-- The modifications are placeholders for: {{DEVICE_MODEL}}, {{SERIAL}}, {{BOARD_SERIAL}}, {{UUID}}, {{ROM}}, {{WIDTH}}, {{HEIGHT}} -->
3
+ <!-- All credit for this file https://github.com/kholia/OSX-KVM/blob/master/CREDITS.md -->
4
+ <?xml version="1.0" encoding="UTF-8"?>
5
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
6
+ <plist version="1.0">
7
+ <dict>
8
+ <key>ACPI</key>
9
+ <dict>
10
+ <key>Add</key>
11
+ <array>
12
+ <dict>
13
+ <key>Comment</key>
14
+ <string>My custom DSDT</string>
15
+ <key>Enabled</key>
16
+ <false/>
17
+ <key>Path</key>
18
+ <string>DSDT.aml</string>
19
+ </dict>
20
+ <dict>
21
+ <key>Comment</key>
22
+ <string>My custom SSDT</string>
23
+ <key>Enabled</key>
24
+ <false/>
25
+ <key>Path</key>
26
+ <string>SSDT-1.aml</string>
27
+ </dict>
28
+ <dict>
29
+ <key>Comment</key>
30
+ <string>Read the comment in dsl sample</string>
31
+ <key>Enabled</key>
32
+ <false/>
33
+ <key>Path</key>
34
+ <string>SSDT-ALS0.aml</string>
35
+ </dict>
36
+ <dict>
37
+ <key>Comment</key>
38
+ <string>Read the comment in dsl sample</string>
39
+ <key>Enabled</key>
40
+ <false/>
41
+ <key>Path</key>
42
+ <string>SSDT-AWAC-DISABLE.aml</string>
43
+ </dict>
44
+ <dict>
45
+ <key>Comment</key>
46
+ <string>Read the comment in dsl sample</string>
47
+ <key>Enabled</key>
48
+ <false/>
49
+ <key>Path</key>
50
+ <string>SSDT-BRG0.aml</string>
51
+ </dict>
52
+ <dict>
53
+ <key>Comment</key>
54
+ <string>Read the comment in dsl sample</string>
55
+ <key>Enabled</key>
56
+ <false/>
57
+ <key>Path</key>
58
+ <string>SSDT-EC-USBX.aml</string>
59
+ </dict>
60
+ <dict>
61
+ <key>Comment</key>
62
+ <string>Fake EC and USBX Power</string>
63
+ <key>Enabled</key>
64
+ <true/>
65
+ <key>Path</key>
66
+ <string>SSDT-EC.aml</string>
67
+ </dict>
68
+ <dict>
69
+ <key>Comment</key>
70
+ <string>Read the comment in dsl sample</string>
71
+ <key>Enabled</key>
72
+ <false/>
73
+ <key>Path</key>
74
+ <string>SSDT-EHCx-DISABLE.aml</string>
75
+ </dict>
76
+ <dict>
77
+ <key>Comment</key>
78
+ <string>Read the comment in dsl sample</string>
79
+ <key>Enabled</key>
80
+ <false/>
81
+ <key>Path</key>
82
+ <string>SSDT-IMEI.aml</string>
83
+ </dict>
84
+ <dict>
85
+ <key>Comment</key>
86
+ <string>CPU AGPM Plugin=1</string>
87
+ <key>Enabled</key>
88
+ <true/>
89
+ <key>Path</key>
90
+ <string>SSDT-PLUG.aml</string>
91
+ </dict>
92
+ <dict>
93
+ <key>Comment</key>
94
+ <string>Read the comment in dsl sample</string>
95
+ <key>Enabled</key>
96
+ <false/>
97
+ <key>Path</key>
98
+ <string>SSDT-PMC.aml</string>
99
+ </dict>
100
+ <dict>
101
+ <key>Comment</key>
102
+ <string>Read the comment in dsl sample</string>
103
+ <key>Enabled</key>
104
+ <false/>
105
+ <key>Path</key>
106
+ <string>SSDT-PNLF.aml</string>
107
+ </dict>
108
+ <dict>
109
+ <key>Comment</key>
110
+ <string>Read the comment in dsl sample</string>
111
+ <key>Enabled</key>
112
+ <false/>
113
+ <key>Path</key>
114
+ <string>SSDT-PNLFCFL.aml</string>
115
+ </dict>
116
+ <dict>
117
+ <key>Comment</key>
118
+ <string>Read the comment in dsl sample</string>
119
+ <key>Enabled</key>
120
+ <false/>
121
+ <key>Path</key>
122
+ <string>SSDT-RTC0-RANGE.aml</string>
123
+ </dict>
124
+ <dict>
125
+ <key>Comment</key>
126
+ <string>Read the comment in dsl sample</string>
127
+ <key>Enabled</key>
128
+ <false/>
129
+ <key>Path</key>
130
+ <string>SSDT-RTC0.aml</string>
131
+ </dict>
132
+ <dict>
133
+ <key>Comment</key>
134
+ <string>Read the comment in dsl sample</string>
135
+ <key>Enabled</key>
136
+ <false/>
137
+ <key>Path</key>
138
+ <string>SSDT-SBUS-MCHC.aml</string>
139
+ </dict>
140
+ <dict>
141
+ <key>Comment</key>
142
+ <string>Read the comment in dsl sample</string>
143
+ <key>Enabled</key>
144
+ <false/>
145
+ <key>Path</key>
146
+ <string>SSDT-UNC.aml</string>
147
+ </dict>
148
+ <dict>
149
+ <key>Comment</key>
150
+ <string>add DTGP method</string>
151
+ <key>Enabled</key>
152
+ <true/>
153
+ <key>Path</key>
154
+ <string>SSDT-DTGP.aml</string>
155
+ </dict>
156
+ <dict>
157
+ <key>Comment</key>
158
+ <string>USB 2.0 Injection</string>
159
+ <key>Enabled</key>
160
+ <true/>
161
+ <key>Path</key>
162
+ <string>SSDT-EHCI.aml</string>
163
+ </dict>
164
+ </array>
165
+ <key>Delete</key>
166
+ <array>
167
+ <dict>
168
+ <key>All</key>
169
+ <false/>
170
+ <key>Comment</key>
171
+ <string>Delete CpuPm</string>
172
+ <key>Enabled</key>
173
+ <false/>
174
+ <key>OemTableId</key>
175
+ <data>Q3B1UG0AAAA=</data>
176
+ <key>TableLength</key>
177
+ <integer>0</integer>
178
+ <key>TableSignature</key>
179
+ <data>U1NEVA==</data>
180
+ </dict>
181
+ <dict>
182
+ <key>All</key>
183
+ <false/>
184
+ <key>Comment</key>
185
+ <string>Delete Cpu0Ist</string>
186
+ <key>Enabled</key>
187
+ <false/>
188
+ <key>OemTableId</key>
189
+ <data>Q3B1MElzdAA=</data>
190
+ <key>TableLength</key>
191
+ <integer>0</integer>
192
+ <key>TableSignature</key>
193
+ <data>U1NEVA==</data>
194
+ </dict>
195
+ </array>
196
+ <key>Patch</key>
197
+ <array>
198
+ <dict>
199
+ <key>Base</key>
200
+ <string></string>
201
+ <key>BaseSkip</key>
202
+ <integer>0</integer>
203
+ <key>Comment</key>
204
+ <string>Replace one byte sequence with another</string>
205
+ <key>Count</key>
206
+ <integer>0</integer>
207
+ <key>Enabled</key>
208
+ <false/>
209
+ <key>Find</key>
210
+ <data>ESIzRA==</data>
211
+ <key>Limit</key>
212
+ <integer>0</integer>
213
+ <key>Mask</key>
214
+ <data></data>
215
+ <key>OemTableId</key>
216
+ <data></data>
217
+ <key>Replace</key>
218
+ <data>RDMiEQ==</data>
219
+ <key>ReplaceMask</key>
220
+ <data></data>
221
+ <key>Skip</key>
222
+ <integer>0</integer>
223
+ <key>TableLength</key>
224
+ <integer>0</integer>
225
+ <key>TableSignature</key>
226
+ <data></data>
227
+ </dict>
228
+ <dict>
229
+ <key>Base</key>
230
+ <string>\_SB.PCI0.LPCB.HPET</string>
231
+ <key>BaseSkip</key>
232
+ <integer>0</integer>
233
+ <key>Comment</key>
234
+ <string>HPET _CRS to XCRS</string>
235
+ <key>Count</key>
236
+ <integer>1</integer>
237
+ <key>Enabled</key>
238
+ <false/>
239
+ <key>Find</key>
240
+ <data>X0NSUw==</data>
241
+ <key>Limit</key>
242
+ <integer>0</integer>
243
+ <key>Mask</key>
244
+ <data></data>
245
+ <key>OemTableId</key>
246
+ <data></data>
247
+ <key>Replace</key>
248
+ <data>WENSUw==</data>
249
+ <key>ReplaceMask</key>
250
+ <data></data>
251
+ <key>Skip</key>
252
+ <integer>0</integer>
253
+ <key>TableLength</key>
254
+ <integer>0</integer>
255
+ <key>TableSignature</key>
256
+ <data></data>
257
+ </dict>
258
+ </array>
259
+ <key>Quirks</key>
260
+ <dict>
261
+ <key>FadtEnableReset</key>
262
+ <false/>
263
+ <key>NormalizeHeaders</key>
264
+ <false/>
265
+ <key>RebaseRegions</key>
266
+ <false/>
267
+ <key>ResetHwSig</key>
268
+ <false/>
269
+ <key>ResetLogoStatus</key>
270
+ <true/>
271
+ <key>SyncTableIds</key>
272
+ <false/>
273
+ </dict>
274
+ </dict>
275
+ <key>Booter</key>
276
+ <dict>
277
+ <key>MmioWhitelist</key>
278
+ <array/>
279
+ <key>Quirks</key>
280
+ <dict>
281
+ <key>AllowRelocationBlock</key>
282
+ <false/>
283
+ <key>AvoidRuntimeDefrag</key>
284
+ <true/>
285
+ <key>DevirtualiseMmio</key>
286
+ <false/>
287
+ <key>DisableSingleUser</key>
288
+ <false/>
289
+ <key>DisableVariableWrite</key>
290
+ <false/>
291
+ <key>DiscardHibernateMap</key>
292
+ <false/>
293
+ <key>EnableSafeModeSlide</key>
294
+ <true/>
295
+ <key>EnableWriteUnprotector</key>
296
+ <true/>
297
+ <key>ForceBooterSignature</key>
298
+ <false/>
299
+ <key>ForceExitBootServices</key>
300
+ <false/>
301
+ <key>ProtectMemoryRegions</key>
302
+ <false/>
303
+ <key>ProtectSecureBoot</key>
304
+ <false/>
305
+ <key>ProtectUefiServices</key>
306
+ <false/>
307
+ <key>ProvideCustomSlide</key>
308
+ <true/>
309
+ <key>ProvideMaxSlide</key>
310
+ <integer>0</integer>
311
+ <key>RebuildAppleMemoryMap</key>
312
+ <false/>
313
+ <key>SetupVirtualMap</key>
314
+ <false/>
315
+ <key>SignalAppleOS</key>
316
+ <false/>
317
+ <key>SyncRuntimePermissions</key>
318
+ <false/>
319
+ </dict>
320
+ </dict>
321
+ <key>DeviceProperties</key>
322
+ <dict>
323
+ <key>Add</key>
324
+ <dict>
325
+ <key>PciRoot(0x1)/Pci(0x1F,0x0)</key>
326
+ <dict>
327
+ <key>compatible</key>
328
+ <string>pci8086,2916</string>
329
+ <key>device-id</key>
330
+ <data>
331
+ FikA
332
+ </data>
333
+ <key>name</key>
334
+ <string>pci8086,2916</string>
335
+ </dict>
336
+ </dict>
337
+ <key>Delete</key>
338
+ <dict/>
339
+ </dict>
340
+ <key>Kernel</key>
341
+ <dict>
342
+ <key>Add</key>
343
+ <array>
344
+ <dict>
345
+ <key>Arch</key>
346
+ <string>Any</string>
347
+ <key>BundlePath</key>
348
+ <string>Lilu.kext</string>
349
+ <key>Comment</key>
350
+ <string>Patch engine</string>
351
+ <key>Enabled</key>
352
+ <true/>
353
+ <key>ExecutablePath</key>
354
+ <string>Contents/MacOS/Lilu</string>
355
+ <key>MaxKernel</key>
356
+ <string></string>
357
+ <key>MinKernel</key>
358
+ <string>8.0.0</string>
359
+ <key>PlistPath</key>
360
+ <string>Contents/Info.plist</string>
361
+ </dict>
362
+ <dict>
363
+ <key>Arch</key>
364
+ <string>Any</string>
365
+ <key>BundlePath</key>
366
+ <string>VirtualSMC.kext</string>
367
+ <key>Comment</key>
368
+ <string>SMC emulator</string>
369
+ <key>Enabled</key>
370
+ <false/>
371
+ <key>ExecutablePath</key>
372
+ <string>Contents/MacOS/VirtualSMC</string>
373
+ <key>MaxKernel</key>
374
+ <string></string>
375
+ <key>MinKernel</key>
376
+ <string>8.0.0</string>
377
+ <key>PlistPath</key>
378
+ <string>Contents/Info.plist</string>
379
+ </dict>
380
+ <dict>
381
+ <key>Arch</key>
382
+ <string>x86_64</string>
383
+ <key>BundlePath</key>
384
+ <string>WhateverGreen.kext</string>
385
+ <key>Comment</key>
386
+ <string>Video patches</string>
387
+ <key>Enabled</key>
388
+ <true/>
389
+ <key>ExecutablePath</key>
390
+ <string>Contents/MacOS/WhateverGreen</string>
391
+ <key>MaxKernel</key>
392
+ <string></string>
393
+ <key>MinKernel</key>
394
+ <string>10.0.0</string>
395
+ <key>PlistPath</key>
396
+ <string>Contents/Info.plist</string>
397
+ </dict>
398
+ <dict>
399
+ <key>Arch</key>
400
+ <string>Any</string>
401
+ <key>BundlePath</key>
402
+ <string>AppleALC.kext</string>
403
+ <key>Comment</key>
404
+ <string>Audio patches</string>
405
+ <key>Enabled</key>
406
+ <true/>
407
+ <key>ExecutablePath</key>
408
+ <string>Contents/MacOS/AppleALC</string>
409
+ <key>MaxKernel</key>
410
+ <string></string>
411
+ <key>MinKernel</key>
412
+ <string>8.0.0</string>
413
+ <key>PlistPath</key>
414
+ <string>Contents/Info.plist</string>
415
+ </dict>
416
+ <dict>
417
+ <key>Arch</key>
418
+ <string>x86_64</string>
419
+ <key>BundlePath</key>
420
+ <string>IntelMausi.kext</string>
421
+ <key>Comment</key>
422
+ <string>Intel Ethernet LAN</string>
423
+ <key>Enabled</key>
424
+ <false/>
425
+ <key>ExecutablePath</key>
426
+ <string>Contents/MacOS/IntelMausi</string>
427
+ <key>MaxKernel</key>
428
+ <string></string>
429
+ <key>MinKernel</key>
430
+ <string>13.0.0</string>
431
+ <key>PlistPath</key>
432
+ <string>Contents/Info.plist</string>
433
+ </dict>
434
+ <dict>
435
+ <key>Arch</key>
436
+ <string>x86_64</string>
437
+ <key>BundlePath</key>
438
+ <string>Legacy_USB3.kext</string>
439
+ <key>Comment</key>
440
+ <string>XHC ports configuration</string>
441
+ <key>Enabled</key>
442
+ <false/>
443
+ <key>ExecutablePath</key>
444
+ <string></string>
445
+ <key>MaxKernel</key>
446
+ <string></string>
447
+ <key>MinKernel</key>
448
+ <string>15.0.0</string>
449
+ <key>PlistPath</key>
450
+ <string>Contents/Info.plist</string>
451
+ </dict>
452
+ <dict>
453
+ <key>Arch</key>
454
+ <string>x86_64</string>
455
+ <key>BundlePath</key>
456
+ <string>MCEReporterDisabler.kext</string>
457
+ <key>Comment</key>
458
+ <string>AppleMCEReporter disabler</string>
459
+ <key>Enabled</key>
460
+ <true/>
461
+ <key>ExecutablePath</key>
462
+ <string></string>
463
+ <key>MaxKernel</key>
464
+ <string></string>
465
+ <key>MinKernel</key>
466
+ <string>19.0.0</string>
467
+ <key>PlistPath</key>
468
+ <string>Contents/Info.plist</string>
469
+ </dict>
470
+ <dict>
471
+ <key>Arch</key>
472
+ <string>x86_64</string>
473
+ <key>BundlePath</key>
474
+ <string>VoodooPS2Controller.kext</string>
475
+ <key>Comment</key>
476
+ <string></string>
477
+ <key>Enabled</key>
478
+ <false/>
479
+ <key>ExecutablePath</key>
480
+ <string>Contents/MacOS/VoodooPS2Controller</string>
481
+ <key>MaxKernel</key>
482
+ <string></string>
483
+ <key>MinKernel</key>
484
+ <string>15.0.0</string>
485
+ <key>PlistPath</key>
486
+ <string>Contents/Info.plist</string>
487
+ </dict>
488
+ <dict>
489
+ <key>Arch</key>
490
+ <string>x86_64</string>
491
+ <key>BundlePath</key>
492
+ <string>VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext</string>
493
+ <key>Comment</key>
494
+ <string></string>
495
+ <key>Enabled</key>
496
+ <false/>
497
+ <key>ExecutablePath</key>
498
+ <string>Contents/MacOS/VoodooPS2Keyboard</string>
499
+ <key>MaxKernel</key>
500
+ <string></string>
501
+ <key>MinKernel</key>
502
+ <string>15.0.0</string>
503
+ <key>PlistPath</key>
504
+ <string>Contents/Info.plist</string>
505
+ </dict>
506
+ <dict>
507
+ <key>Arch</key>
508
+ <string>x86_64</string>
509
+ <key>BundlePath</key>
510
+ <string>VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Mouse.kext</string>
511
+ <key>Comment</key>
512
+ <string></string>
513
+ <key>Enabled</key>
514
+ <false/>
515
+ <key>ExecutablePath</key>
516
+ <string>Contents/MacOS/VoodooPS2Mouse</string>
517
+ <key>MaxKernel</key>
518
+ <string></string>
519
+ <key>MinKernel</key>
520
+ <string>15.0.0</string>
521
+ <key>PlistPath</key>
522
+ <string>Contents/Info.plist</string>
523
+ </dict>
524
+ <dict>
525
+ <key>Arch</key>
526
+ <string>x86_64</string>
527
+ <key>BundlePath</key>
528
+ <string>VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Trackpad.kext</string>
529
+ <key>Comment</key>
530
+ <string></string>
531
+ <key>Enabled</key>
532
+ <false/>
533
+ <key>ExecutablePath</key>
534
+ <string>Contents/MacOS/VoodooPS2Trackpad</string>
535
+ <key>MaxKernel</key>
536
+ <string></string>
537
+ <key>MinKernel</key>
538
+ <string>15.0.0</string>
539
+ <key>PlistPath</key>
540
+ <string>Contents/Info.plist</string>
541
+ </dict>
542
+ <dict>
543
+ <key>Arch</key>
544
+ <string>x86_64</string>
545
+ <key>BundlePath</key>
546
+ <string>VoodooPS2Controller.kext/Contents/PlugIns/VoodooInput.kext</string>
547
+ <key>Comment</key>
548
+ <string></string>
549
+ <key>Enabled</key>
550
+ <false/>
551
+ <key>ExecutablePath</key>
552
+ <string>Contents/MacOS/VoodooInput</string>
553
+ <key>MaxKernel</key>
554
+ <string></string>
555
+ <key>MinKernel</key>
556
+ <string>15.0.0</string>
557
+ <key>PlistPath</key>
558
+ <string>Contents/Info.plist</string>
559
+ </dict>
560
+ <dict>
561
+ <key>Arch</key>
562
+ <string>x86_64</string>
563
+ <key>BundlePath</key>
564
+ <string>USBPorts.kext</string>
565
+ <key>Comment</key>
566
+ <string></string>
567
+ <key>Enabled</key>
568
+ <true/>
569
+ <key>ExecutablePath</key>
570
+ <string></string>
571
+ <key>MaxKernel</key>
572
+ <string></string>
573
+ <key>MinKernel</key>
574
+ <string></string>
575
+ <key>PlistPath</key>
576
+ <string>Contents/Info.plist</string>
577
+ </dict>
578
+ <dict>
579
+ <key>Arch</key>
580
+ <string>x86_64</string>
581
+ <key>BundlePath</key>
582
+ <string>AGPMInjector.kext</string>
583
+ <key>Comment</key>
584
+ <string></string>
585
+ <key>Enabled</key>
586
+ <true/>
587
+ <key>ExecutablePath</key>
588
+ <string></string>
589
+ <key>MaxKernel</key>
590
+ <string></string>
591
+ <key>MinKernel</key>
592
+ <string></string>
593
+ <key>PlistPath</key>
594
+ <string>Contents/Info.plist</string>
595
+ </dict>
596
+ </array>
597
+ <key>Block</key>
598
+ <array>
599
+ <dict>
600
+ <key>Arch</key>
601
+ <string>Any</string>
602
+ <key>Comment</key>
603
+ <string></string>
604
+ <key>Enabled</key>
605
+ <false/>
606
+ <key>Identifier</key>
607
+ <string>com.apple.driver.AppleTyMCEDriver</string>
608
+ <key>MaxKernel</key>
609
+ <string></string>
610
+ <key>MinKernel</key>
611
+ <string></string>
612
+ </dict>
613
+ </array>
614
+ <key>Emulate</key>
615
+ <dict>
616
+ <key>Cpuid1Data</key>
617
+ <data>
618
+ VAYFAAAAAAAAAAAAAAAAAA==
619
+ </data>
620
+ <key>Cpuid1Mask</key>
621
+ <data>
622
+ ////AAAAAAAAAAAAAAAAAA==
623
+ </data>
624
+ <key>DummyPowerManagement</key>
625
+ <true/>
626
+ <key>MaxKernel</key>
627
+ <string></string>
628
+ <key>MinKernel</key>
629
+ <string></string>
630
+ </dict>
631
+ <key>Force</key>
632
+ <array>
633
+ <dict>
634
+ <key>Arch</key>
635
+ <string>Any</string>
636
+ <key>BundlePath</key>
637
+ <string>System/Library/Extensions/IONetworkingFamily.kext</string>
638
+ <key>Comment</key>
639
+ <string></string>
640
+ <key>Enabled</key>
641
+ <false/>
642
+ <key>ExecutablePath</key>
643
+ <string>Contents/MacOS/IONetworkingFamily</string>
644
+ <key>Identifier</key>
645
+ <string>com.apple.iokit.IONetworkingFamily</string>
646
+ <key>MaxKernel</key>
647
+ <string>13.99.99</string>
648
+ <key>MinKernel</key>
649
+ <string></string>
650
+ <key>PlistPath</key>
651
+ <string>Contents/Info.plist</string>
652
+ </dict>
653
+ </array>
654
+ <key>Patch</key>
655
+ <array>
656
+ <dict>
657
+ <key>Arch</key>
658
+ <string>x86_64</string>
659
+ <key>Base</key>
660
+ <string></string>
661
+ <key>Comment</key>
662
+ <string>algrey - cpuid_set_cpufamily - force CPUFAMILY_INTEL_PENRYN</string>
663
+ <key>Count</key>
664
+ <integer>1</integer>
665
+ <key>Enabled</key>
666
+ <true/>
667
+ <key>Find</key>
668
+ <data>
669
+ MduAPQAAAAAGdQA=
670
+ </data>
671
+ <key>Identifier</key>
672
+ <string>kernel</string>
673
+ <key>Limit</key>
674
+ <integer>0</integer>
675
+ <key>Mask</key>
676
+ <data>
677
+ /////wAAAP///wA=
678
+ </data>
679
+ <key>MaxKernel</key>
680
+ <string>20.3.99</string>
681
+ <key>MinKernel</key>
682
+ <string>17.0.0</string>
683
+ <key>Replace</key>
684
+ <data>
685
+ u7xP6njpXQAAAJA=
686
+ </data>
687
+ <key>ReplaceMask</key>
688
+ <data>
689
+ </data>
690
+ <key>Skip</key>
691
+ <integer>0</integer>
692
+ </dict>
693
+ <dict>
694
+ <key>Arch</key>
695
+ <string>x86_64</string>
696
+ <key>Base</key>
697
+ <string></string>
698
+ <key>Comment</key>
699
+ <string>algrey - thenickdude - cpuid_set_cpufamily - force CPUFAMILY_INTEL_PENRYN (Big Sur 11.3 and newer)</string>
700
+ <key>Count</key>
701
+ <integer>1</integer>
702
+ <key>Enabled</key>
703
+ <true/>
704
+ <key>Find</key>
705
+ <data>
706
+ MdKzAYA9AAAAAAZ1
707
+ </data>
708
+ <key>Identifier</key>
709
+ <string>kernel</string>
710
+ <key>Limit</key>
711
+ <integer>0</integer>
712
+ <key>Mask</key>
713
+ <data>
714
+ ////////AAAAAP//
715
+ </data>
716
+ <key>MaxKernel</key>
717
+ <string>21.99.99</string>
718
+ <key>MinKernel</key>
719
+ <string>20.4.0</string>
720
+ <key>Replace</key>
721
+ <data>
722
+ urxP6nizAJCQkJDr
723
+ </data>
724
+ <key>ReplaceMask</key>
725
+ <data>
726
+ </data>
727
+ <key>Skip</key>
728
+ <integer>0</integer>
729
+ </dict>
730
+ </array>
731
+ <key>Quirks</key>
732
+ <dict>
733
+ <key>AppleCpuPmCfgLock</key>
734
+ <false/>
735
+ <key>AppleXcpmCfgLock</key>
736
+ <false/>
737
+ <key>AppleXcpmExtraMsrs</key>
738
+ <false/>
739
+ <key>AppleXcpmForceBoost</key>
740
+ <false/>
741
+ <key>CustomSMBIOSGuid</key>
742
+ <false/>
743
+ <key>DisableIoMapper</key>
744
+ <false/>
745
+ <key>DisableLinkeditJettison</key>
746
+ <true/>
747
+ <key>DisableRtcChecksum</key>
748
+ <false/>
749
+ <key>ExtendBTFeatureFlags</key>
750
+ <false/>
751
+ <key>ExternalDiskIcons</key>
752
+ <false/>
753
+ <key>ForceSecureBootScheme</key>
754
+ <true/>
755
+ <key>IncreasePciBarSize</key>
756
+ <false/>
757
+ <key>LapicKernelPanic</key>
758
+ <false/>
759
+ <key>LegacyCommpage</key>
760
+ <false/>
761
+ <key>PanicNoKextDump</key>
762
+ <false/>
763
+ <key>PowerTimeoutKernelPanic</key>
764
+ <false/>
765
+ <key>ProvideCurrentCpuInfo</key>
766
+ <true/>
767
+ <key>SetApfsTrimTimeout</key>
768
+ <integer>-1</integer>
769
+ <key>ThirdPartyDrives</key>
770
+ <false/>
771
+ <key>XhciPortLimit</key>
772
+ <false/>
773
+ </dict>
774
+ <key>Scheme</key>
775
+ <dict>
776
+ <key>CustomKernel</key>
777
+ <false/>
778
+ <key>FuzzyMatch</key>
779
+ <true/>
780
+ <key>KernelArch</key>
781
+ <string>Auto</string>
782
+ <key>KernelCache</key>
783
+ <string>Auto</string>
784
+ </dict>
785
+ </dict>
786
+ <key>Misc</key>
787
+ <dict>
788
+ <key>BlessOverride</key>
789
+ <array/>
790
+ <key>Boot</key>
791
+ <dict>
792
+ <key>ConsoleAttributes</key>
793
+ <integer>0</integer>
794
+ <key>HibernateMode</key>
795
+ <string>Auto</string>
796
+ <key>HideAuxiliary</key>
797
+ <false/>
798
+ <key>LauncherOption</key>
799
+ <string>Disabled</string>
800
+ <key>LauncherPath</key>
801
+ <string>Default</string>
802
+ <key>PickerAttributes</key>
803
+ <integer>17</integer>
804
+ <key>PickerAudioAssist</key>
805
+ <false/>
806
+ <key>PickerMode</key>
807
+ <string>External</string>
808
+ <key>PickerVariant</key>
809
+ <string>Auto</string>
810
+ <key>PollAppleHotKeys</key>
811
+ <true/>
812
+ <key>ShowPicker</key>
813
+ <true/>
814
+ <key>TakeoffDelay</key>
815
+ <integer>0</integer>
816
+ <key>Timeout</key>
817
+ <integer>45</integer>
818
+ </dict>
819
+ <key>Debug</key>
820
+ <dict>
821
+ <key>AppleDebug</key>
822
+ <false/>
823
+ <key>ApplePanic</key>
824
+ <false/>
825
+ <key>DisableWatchDog</key>
826
+ <false/>
827
+ <key>DisplayDelay</key>
828
+ <integer>0</integer>
829
+ <key>DisplayLevel</key>
830
+ <integer>2147483650</integer>
831
+ <key>SerialInit</key>
832
+ <false/>
833
+ <key>SysReport</key>
834
+ <false/>
835
+ <key>Target</key>
836
+ <integer>3</integer>
837
+ </dict>
838
+ <key>Entries</key>
839
+ <array/>
840
+ <key>Security</key>
841
+ <dict>
842
+ <key>AllowNvramReset</key>
843
+ <true/>
844
+ <key>AllowSetDefault</key>
845
+ <true/>
846
+ <key>AllowToggleSip</key>
847
+ <true/>
848
+ <key>ApECID</key>
849
+ <integer>0</integer>
850
+ <key>AuthRestart</key>
851
+ <false/>
852
+ <key>BlacklistAppleUpdate</key>
853
+ <true/>
854
+ <key>DmgLoading</key>
855
+ <string>Signed</string>
856
+ <key>EnablePassword</key>
857
+ <false/>
858
+ <key>ExposeSensitiveData</key>
859
+ <integer>6</integer>
860
+ <key>HaltLevel</key>
861
+ <integer>2147483648</integer>
862
+ <key>PasswordHash</key>
863
+ <data></data>
864
+ <key>PasswordSalt</key>
865
+ <data></data>
866
+ <key>ScanPolicy</key>
867
+ <integer>0</integer>
868
+ <key>SecureBootModel</key>
869
+ <string>Disabled</string>
870
+ <key>Vault</key>
871
+ <string>Optional</string>
872
+ </dict>
873
+ <key>Tools</key>
874
+ <array>
875
+ <dict>
876
+ <key>Arguments</key>
877
+ <string></string>
878
+ <key>Auxiliary</key>
879
+ <false/>
880
+ <key>Comment</key>
881
+ <string>Not signed for security reasons</string>
882
+ <key>Enabled</key>
883
+ <true/>
884
+ <key>Flavour</key>
885
+ <string>OpenShell:UEFIShell:Shell</string>
886
+ <key>Name</key>
887
+ <string>UEFI Shell</string>
888
+ <key>Path</key>
889
+ <string>OpenShell.efi</string>
890
+ <key>RealPath</key>
891
+ <false/>
892
+ <key>TextMode</key>
893
+ <false/>
894
+ </dict>
895
+ <dict>
896
+ <key>Arguments</key>
897
+ <string></string>
898
+ <key>Auxiliary</key>
899
+ <true/>
900
+ <key>Comment</key>
901
+ <string>Memory testing utility</string>
902
+ <key>Enabled</key>
903
+ <false/>
904
+ <key>Flavour</key>
905
+ <string>MemTest</string>
906
+ <key>Name</key>
907
+ <string>memtest86</string>
908
+ <key>Path</key>
909
+ <string>memtest86/BOOTX64.efi</string>
910
+ <key>RealPath</key>
911
+ <true/>
912
+ <key>TextMode</key>
913
+ <false/>
914
+ </dict>
915
+ <dict>
916
+ <key>Arguments</key>
917
+ <string>Shutdown</string>
918
+ <key>Auxiliary</key>
919
+ <true/>
920
+ <key>Comment</key>
921
+ <string>Perform shutdown</string>
922
+ <key>Enabled</key>
923
+ <false/>
924
+ <key>Flavour</key>
925
+ <string>Auto</string>
926
+ <key>Name</key>
927
+ <string>Shutdown</string>
928
+ <key>Path</key>
929
+ <string>ResetSystem.efi</string>
930
+ <key>RealPath</key>
931
+ <false/>
932
+ <key>TextMode</key>
933
+ <false/>
934
+ </dict>
935
+ </array>
936
+ </dict>
937
+ <key>NVRAM</key>
938
+ <dict>
939
+ <key>Add</key>
940
+ <dict>
941
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
942
+ <dict>
943
+ <key>DefaultBackgroundColor</key>
944
+ <data>AAAAAA==</data>
945
+ <key>UIScale</key>
946
+ <data>AQ==</data>
947
+ </dict>
948
+ <key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
949
+ <dict>
950
+ <key>rtc-blacklist</key>
951
+ <data></data>
952
+ </dict>
953
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
954
+ <dict>
955
+ <key>ForceDisplayRotationInEFI</key>
956
+ <integer>0</integer>
957
+ <key>SystemAudioVolume</key>
958
+ <data>Rg==</data>
959
+ <key>boot-args</key>
960
+ <string>-v keepsyms=1 tlbto_us=0 vti=9 {{KERNEL_ARGS}}</string>
961
+ <key>run-efi-updater</key>
962
+ <string>No</string>
963
+ <key>csr-active-config</key>
964
+ <data>ZwAAAA==</data>
965
+ <key>prev-lang:kbd</key>
966
+ <data>ZW4tVVM6MA==</data>
967
+ <key>run-efi-updater</key>
968
+ <string>No</string>
969
+ </dict>
970
+ </dict>
971
+ <key>Delete</key>
972
+ <dict>
973
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
974
+ <array>
975
+ <string>UIScale</string>
976
+ <string>DefaultBackgroundColor</string>
977
+ </array>
978
+ <key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
979
+ <array>
980
+ <string>rtc-blacklist</string>
981
+ </array>
982
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
983
+ <array>
984
+ <string>boot-args</string>
985
+ <string>ForceDisplayRotationInEFI</string>
986
+ </array>
987
+ </dict>
988
+ <key>LegacyEnable</key>
989
+ <false/>
990
+ <key>LegacyOverwrite</key>
991
+ <false/>
992
+ <key>LegacySchema</key>
993
+ <dict>
994
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
995
+ <array>
996
+ <string>EFILoginHiDPI</string>
997
+ <string>EFIBluetoothDelay</string>
998
+ <string>LocationServicesEnabled</string>
999
+ <string>SystemAudioVolume</string>
1000
+ <string>SystemAudioVolumeDB</string>
1001
+ <string>SystemAudioVolumeSaved</string>
1002
+ <string>bluetoothActiveControllerInfo</string>
1003
+ <string>bluetoothInternalControllerInfo</string>
1004
+ <string>flagstate</string>
1005
+ <string>fmm-computer-name</string>
1006
+ <string>fmm-mobileme-token-FMM</string>
1007
+ <string>fmm-mobileme-token-FMM-BridgeHasAccount</string>
1008
+ <string>nvda_drv</string>
1009
+ <string>prev-lang:kbd</string>
1010
+ </array>
1011
+ <key>8BE4DF61-93CA-11D2-AA0D-00E098032B8C</key>
1012
+ <array>
1013
+ <string>Boot0080</string>
1014
+ <string>Boot0081</string>
1015
+ <string>Boot0082</string>
1016
+ <string>BootNext</string>
1017
+ <string>BootOrder</string>
1018
+ </array>
1019
+ </dict>
1020
+ <key>WriteFlash</key>
1021
+ <true/>
1022
+ </dict>
1023
+ <key>PlatformInfo</key>
1024
+ <dict>
1025
+ <key>Automatic</key>
1026
+ <true/>
1027
+ <key>CustomMemory</key>
1028
+ <false/>
1029
+ <key>Generic</key>
1030
+ <dict>
1031
+ <key>AdviseFeatures</key>
1032
+ <false/>
1033
+ <key>MaxBIOSVersion</key>
1034
+ <false/>
1035
+ <key>MLB</key>
1036
+ <string>{{BOARD_SERIAL}}</string>
1037
+ <key>ProcessorType</key>
1038
+ <integer>0</integer>
1039
+ <key>ROM</key>
1040
+ <data>
1041
+ {{ROM}}
1042
+ </data>
1043
+ <key>SpoofVendor</key>
1044
+ <true/>
1045
+ <key>SystemMemoryStatus</key>
1046
+ <string>Auto</string>
1047
+ <key>SystemProductName</key>
1048
+ <string>{{DEVICE_MODEL}}</string>
1049
+ <key>SystemSerialNumber</key>
1050
+ <string>{{SERIAL}}</string>
1051
+ <key>SystemUUID</key>
1052
+ <string>{{UUID}}</string>
1053
+ </dict>
1054
+ <key>UpdateDataHub</key>
1055
+ <true/>
1056
+ <key>UpdateNVRAM</key>
1057
+ <true/>
1058
+ <key>UpdateSMBIOS</key>
1059
+ <true/>
1060
+ <key>UpdateSMBIOSMode</key>
1061
+ <string>Create</string>
1062
+ <key>UseRawUuidEncoding</key>
1063
+ <false/>
1064
+ </dict>
1065
+ <key>UEFI</key>
1066
+ <dict>
1067
+ <key>APFS</key>
1068
+ <dict>
1069
+ <key>EnableJumpstart</key>
1070
+ <true/>
1071
+ <key>GlobalConnect</key>
1072
+ <false/>
1073
+ <key>HideVerbose</key>
1074
+ <true/>
1075
+ <key>JumpstartHotPlug</key>
1076
+ <false/>
1077
+ <key>MinDate</key>
1078
+ <integer>-1</integer>
1079
+ <key>MinVersion</key>
1080
+ <integer>-1</integer>
1081
+ </dict>
1082
+ <key>AppleInput</key>
1083
+ <dict>
1084
+ <key>AppleEvent</key>
1085
+ <string>Builtin</string>
1086
+ <key>CustomDelays</key>
1087
+ <false/>
1088
+ <key>GraphicsInputMirroring</key>
1089
+ <true/>
1090
+ <key>KeyInitialDelay</key>
1091
+ <integer>50</integer>
1092
+ <key>KeySubsequentDelay</key>
1093
+ <integer>5</integer>
1094
+ <key>PointerSpeedDiv</key>
1095
+ <integer>1</integer>
1096
+ <key>PointerSpeedMul</key>
1097
+ <integer>1</integer>
1098
+ </dict>
1099
+ <key>Audio</key>
1100
+ <dict>
1101
+ <key>AudioCodec</key>
1102
+ <integer>0</integer>
1103
+ <key>AudioDevice</key>
1104
+ <string>PciRoot(0x1)/Pci(0x1,0x0)/Pci(0x0,0x1)</string>
1105
+ <key>AudioOut</key>
1106
+ <integer>0</integer>
1107
+ <key>AudioSupport</key>
1108
+ <false/>
1109
+ <key>MinimumVolume</key>
1110
+ <integer>20</integer>
1111
+ <key>PlayChime</key>
1112
+ <string>Auto</string>
1113
+ <key>ResetTrafficClass</key>
1114
+ <false/>
1115
+ <key>SetupDelay</key>
1116
+ <integer>0</integer>
1117
+ <key>VolumeAmplifier</key>
1118
+ <integer>0</integer>
1119
+ </dict>
1120
+ <key>ConnectDrivers</key>
1121
+ <true/>
1122
+ <key>Drivers</key>
1123
+ <array>
1124
+ <dict>
1125
+ <key>Arguments</key>
1126
+ <string></string>
1127
+ <key>Comment</key>
1128
+ <string>HFS+ Driver</string>
1129
+ <key>Enabled</key>
1130
+ <true/>
1131
+ <key>Path</key>
1132
+ <string>OpenHfsPlus.efi</string>
1133
+ </dict>
1134
+ <dict>
1135
+ <key>Arguments</key>
1136
+ <string></string>
1137
+ <key>Comment</key>
1138
+ <string></string>
1139
+ <key>Enabled</key>
1140
+ <true/>
1141
+ <key>Path</key>
1142
+ <string>OpenRuntime.efi</string>
1143
+ </dict>
1144
+ <dict>
1145
+ <key>Arguments</key>
1146
+ <string></string>
1147
+ <key>Comment</key>
1148
+ <string></string>
1149
+ <key>Enabled</key>
1150
+ <true/>
1151
+ <key>Path</key>
1152
+ <string>OpenCanopy.efi</string>
1153
+ </dict>
1154
+ <dict>
1155
+ <key>Arguments</key>
1156
+ <string></string>
1157
+ <key>Comment</key>
1158
+ <string></string>
1159
+ <key>Enabled</key>
1160
+ <false/>
1161
+ <key>Path</key>
1162
+ <string>AudioDxe.efi</string>
1163
+ </dict>
1164
+ <dict>
1165
+ <key>Arguments</key>
1166
+ <string></string>
1167
+ <key>Comment</key>
1168
+ <string></string>
1169
+ <key>Enabled</key>
1170
+ <true/>
1171
+ <key>Path</key>
1172
+ <string>OpenPartitionDxe.efi</string>
1173
+ </dict>
1174
+ <dict>
1175
+ <key>Arguments</key>
1176
+ <string></string>
1177
+ <key>Comment</key>
1178
+ <string></string>
1179
+ <key>Enabled</key>
1180
+ <false/>
1181
+ <key>Path</key>
1182
+ <string>OpenUsbKbDxe.efi</string>
1183
+ </dict>
1184
+ <dict>
1185
+ <key>Arguments</key>
1186
+ <string></string>
1187
+ <key>Comment</key>
1188
+ <string></string>
1189
+ <key>Enabled</key>
1190
+ <false/>
1191
+ <key>Path</key>
1192
+ <string>UsbMouseDxe.efi</string>
1193
+ </dict>
1194
+ <dict>
1195
+ <key>Arguments</key>
1196
+ <string></string>
1197
+ <key>Comment</key>
1198
+ <string></string>
1199
+ <key>Enabled</key>
1200
+ <false/>
1201
+ <key>Path</key>
1202
+ <string>Ps2KeyboardDxe.efi</string>
1203
+ </dict>
1204
+ <dict>
1205
+ <key>Arguments</key>
1206
+ <string></string>
1207
+ <key>Comment</key>
1208
+ <string></string>
1209
+ <key>Enabled</key>
1210
+ <false/>
1211
+ <key>Path</key>
1212
+ <string>Ps2MouseDxe.efi</string>
1213
+ </dict>
1214
+ <dict>
1215
+ <key>Arguments</key>
1216
+ <string></string>
1217
+ <key>Comment</key>
1218
+ <string></string>
1219
+ <key>Enabled</key>
1220
+ <false/>
1221
+ <key>Path</key>
1222
+ <string>HiiDatabase.efi</string>
1223
+ </dict>
1224
+ <dict>
1225
+ <key>Arguments</key>
1226
+ <string></string>
1227
+ <key>Comment</key>
1228
+ <string></string>
1229
+ <key>Enabled</key>
1230
+ <false/>
1231
+ <key>Path</key>
1232
+ <string>NvmExpressDxe.efi</string>
1233
+ </dict>
1234
+ <dict>
1235
+ <key>Arguments</key>
1236
+ <string></string>
1237
+ <key>Comment</key>
1238
+ <string></string>
1239
+ <key>Enabled</key>
1240
+ <false/>
1241
+ <key>Path</key>
1242
+ <string>XhciDxe.efi</string>
1243
+ </dict>
1244
+ <dict>
1245
+ <key>Arguments</key>
1246
+ <string></string>
1247
+ <key>Comment</key>
1248
+ <string></string>
1249
+ <key>Enabled</key>
1250
+ <false/>
1251
+ <key>Path</key>
1252
+ <string>ExFatDxe.efi</string>
1253
+ </dict>
1254
+ <dict>
1255
+ <key>Arguments</key>
1256
+ <string></string>
1257
+ <key>Comment</key>
1258
+ <string></string>
1259
+ <key>Enabled</key>
1260
+ <false/>
1261
+ <key>Path</key>
1262
+ <string>CrScreenshotDxe.efi</string>
1263
+ </dict>
1264
+ <dict>
1265
+ <key>Arguments</key>
1266
+ <string></string>
1267
+ <key>Comment</key>
1268
+ <string></string>
1269
+ <key>Enabled</key>
1270
+ <false/>
1271
+ <key>Path</key>
1272
+ <string>ext4_x64.efi</string>
1273
+ </dict>
1274
+ <dict>
1275
+ <key>Arguments</key>
1276
+ <string></string>
1277
+ <key>Comment</key>
1278
+ <string></string>
1279
+ <key>Enabled</key>
1280
+ <false/>
1281
+ <key>Path</key>
1282
+ <string>OpenLinuxBoot.efi</string>
1283
+ </dict>
1284
+ </array>
1285
+ <key>Input</key>
1286
+ <dict>
1287
+ <key>KeyFiltering</key>
1288
+ <false/>
1289
+ <key>KeyForgetThreshold</key>
1290
+ <integer>5</integer>
1291
+ <key>KeySupport</key>
1292
+ <true/>
1293
+ <key>KeySupportMode</key>
1294
+ <string>Auto</string>
1295
+ <key>KeySwap</key>
1296
+ <false/>
1297
+ <key>PointerSupport</key>
1298
+ <false/>
1299
+ <key>PointerSupportMode</key>
1300
+ <string>ASUS</string>
1301
+ <key>TimerResolution</key>
1302
+ <integer>50000</integer>
1303
+ </dict>
1304
+ <key>Output</key>
1305
+ <dict>
1306
+ <key>ClearScreenOnModeSwitch</key>
1307
+ <false/>
1308
+ <key>ConsoleMode</key>
1309
+ <string></string>
1310
+ <key>DirectGopRendering</key>
1311
+ <false/>
1312
+ <key>ForceResolution</key>
1313
+ <false/>
1314
+ <key>GopPassThrough</key>
1315
+ <string>Disabled</string>
1316
+ <key>IgnoreTextInGraphics</key>
1317
+ <false/>
1318
+ <key>ProvideConsoleGop</key>
1319
+ <true/>
1320
+ <key>ReconnectOnResChange</key>
1321
+ <false/>
1322
+ <key>ReplaceTabWithSpace</key>
1323
+ <false/>
1324
+ <key>Resolution</key>
1325
+ <string>{{WIDTH}}x{{HEIGHT}}@32</string>
1326
+ <key>SanitiseClearScreen</key>
1327
+ <false/>
1328
+ <key>TextRenderer</key>
1329
+ <string>BuiltinGraphics</string>
1330
+ <key>UgaPassThrough</key>
1331
+ <false/>
1332
+ </dict>
1333
+ <key>ProtocolOverrides</key>
1334
+ <dict>
1335
+ <key>AppleAudio</key>
1336
+ <false/>
1337
+ <key>AppleBootPolicy</key>
1338
+ <false/>
1339
+ <key>AppleDebugLog</key>
1340
+ <false/>
1341
+ <key>AppleEg2Info</key>
1342
+ <false/>
1343
+ <key>AppleFramebufferInfo</key>
1344
+ <false/>
1345
+ <key>AppleImageConversion</key>
1346
+ <false/>
1347
+ <key>AppleImg4Verification</key>
1348
+ <false/>
1349
+ <key>AppleKeyMap</key>
1350
+ <false/>
1351
+ <key>AppleRtcRam</key>
1352
+ <false/>
1353
+ <key>AppleSecureBoot</key>
1354
+ <false/>
1355
+ <key>AppleSmcIo</key>
1356
+ <false/>
1357
+ <key>AppleUserInterfaceTheme</key>
1358
+ <false/>
1359
+ <key>DataHub</key>
1360
+ <false/>
1361
+ <key>DeviceProperties</key>
1362
+ <false/>
1363
+ <key>FirmwareVolume</key>
1364
+ <true/>
1365
+ <key>HashServices</key>
1366
+ <false/>
1367
+ <key>OSInfo</key>
1368
+ <false/>
1369
+ <key>UnicodeCollation</key>
1370
+ <false/>
1371
+ </dict>
1372
+ <key>Quirks</key>
1373
+ <dict>
1374
+ <key>ActivateHpetSupport</key>
1375
+ <false/>
1376
+ <key>DisableSecurityPolicy</key>
1377
+ <false/>
1378
+ <key>EnableVectorAcceleration</key>
1379
+ <true/>
1380
+ <key>ExitBootServicesDelay</key>
1381
+ <integer>0</integer>
1382
+ <key>ForceOcWriteFlash</key>
1383
+ <false/>
1384
+ <key>ForgeUefiSupport</key>
1385
+ <false/>
1386
+ <key>IgnoreInvalidFlexRatio</key>
1387
+ <false/>
1388
+ <key>ReleaseUsbOwnership</key>
1389
+ <false/>
1390
+ <key>ReloadOptionRoms</key>
1391
+ <false/>
1392
+ <key>RequestBootVarRouting</key>
1393
+ <true/>
1394
+ <key>TscSyncTimeout</key>
1395
+ <integer>0</integer>
1396
+ <key>UnblockFsConnect</key>
1397
+ <false/>
1398
+ </dict>
1399
+ </dict>
1400
+ </dict>
1401
+ </plist>
custom/config-legacy.plist ADDED
@@ -0,0 +1,883 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>ACPI</key>
6
+ <dict>
7
+ <key>Add</key>
8
+ <array>
9
+ <dict>
10
+ <key>Comment</key>
11
+ <string>add DTGP method</string>
12
+ <key>Enabled</key>
13
+ <true/>
14
+ <key>Path</key>
15
+ <string>SSDT-DTGP.aml</string>
16
+ </dict>
17
+ <dict>
18
+ <key>Comment</key>
19
+ <string>Fake EC and USBX Power</string>
20
+ <key>Enabled</key>
21
+ <true/>
22
+ <key>Path</key>
23
+ <string>SSDT-EC.aml</string>
24
+ </dict>
25
+ <dict>
26
+ <key>Comment</key>
27
+ <string>USB 2.0 Injection</string>
28
+ <key>Enabled</key>
29
+ <true/>
30
+ <key>Path</key>
31
+ <string>SSDT-EHCI.aml</string>
32
+ </dict>
33
+ <dict>
34
+ <key>Comment</key>
35
+ <string>CPU AGPM Plugin=1</string>
36
+ <key>Enabled</key>
37
+ <true/>
38
+ <key>Path</key>
39
+ <string>SSDT-PLUG.aml</string>
40
+ </dict>
41
+ </array>
42
+ <key>Delete</key>
43
+ <array>
44
+ <dict>
45
+ <key>All</key>
46
+ <false/>
47
+ <key>Comment</key>
48
+ <string>Delete CpuPm</string>
49
+ <key>Enabled</key>
50
+ <false/>
51
+ <key>OemTableId</key>
52
+ <data>Q3B1UG0AAAA=</data>
53
+ <key>TableLength</key>
54
+ <integer>0</integer>
55
+ <key>TableSignature</key>
56
+ <data>U1NEVA==</data>
57
+ </dict>
58
+ <dict>
59
+ <key>All</key>
60
+ <false/>
61
+ <key>Comment</key>
62
+ <string>Delete Cpu0Ist</string>
63
+ <key>Enabled</key>
64
+ <false/>
65
+ <key>OemTableId</key>
66
+ <data>Q3B1MElzdAA=</data>
67
+ <key>TableLength</key>
68
+ <integer>0</integer>
69
+ <key>TableSignature</key>
70
+ <data>U1NEVA==</data>
71
+ </dict>
72
+ </array>
73
+ <key>Patch</key>
74
+ <array>
75
+ <dict>
76
+ <key>Comment</key>
77
+ <string>_Q11 to XQ11</string>
78
+ <key>Count</key>
79
+ <integer>1</integer>
80
+ <key>Enabled</key>
81
+ <false/>
82
+ <key>Find</key>
83
+ <data>X1ExMQ==</data>
84
+ <key>Limit</key>
85
+ <integer>0</integer>
86
+ <key>Mask</key>
87
+ <data></data>
88
+ <key>OemTableId</key>
89
+ <data></data>
90
+ <key>Replace</key>
91
+ <data>WFExMQ==</data>
92
+ <key>ReplaceMask</key>
93
+ <data></data>
94
+ <key>Skip</key>
95
+ <integer>0</integer>
96
+ <key>TableLength</key>
97
+ <integer>0</integer>
98
+ <key>TableSignature</key>
99
+ <data></data>
100
+ </dict>
101
+ <dict>
102
+ <key>Comment</key>
103
+ <string>_Q12 to XQ12</string>
104
+ <key>Count</key>
105
+ <integer>1</integer>
106
+ <key>Enabled</key>
107
+ <false/>
108
+ <key>Find</key>
109
+ <data>X1ExMg==</data>
110
+ <key>Limit</key>
111
+ <integer>0</integer>
112
+ <key>Mask</key>
113
+ <data></data>
114
+ <key>OemTableId</key>
115
+ <data></data>
116
+ <key>Replace</key>
117
+ <data>WFExMg==</data>
118
+ <key>ReplaceMask</key>
119
+ <data></data>
120
+ <key>Skip</key>
121
+ <integer>0</integer>
122
+ <key>TableLength</key>
123
+ <integer>0</integer>
124
+ <key>TableSignature</key>
125
+ <data></data>
126
+ </dict>
127
+ </array>
128
+ <key>Quirks</key>
129
+ <dict>
130
+ <key>FadtEnableReset</key>
131
+ <false/>
132
+ <key>NormalizeHeaders</key>
133
+ <false/>
134
+ <key>RebaseRegions</key>
135
+ <false/>
136
+ <key>ResetHwSig</key>
137
+ <false/>
138
+ <key>ResetLogoStatus</key>
139
+ <false/>
140
+ </dict>
141
+ </dict>
142
+ <key>Booter</key>
143
+ <dict>
144
+ <key>MmioWhitelist</key>
145
+ <array/>
146
+ <key>Quirks</key>
147
+ <dict>
148
+ <key>AvoidRuntimeDefrag</key>
149
+ <true/>
150
+ <key>DevirtualiseMmio</key>
151
+ <false/>
152
+ <key>DisableSingleUser</key>
153
+ <false/>
154
+ <key>DisableVariableWrite</key>
155
+ <false/>
156
+ <key>DiscardHibernateMap</key>
157
+ <false/>
158
+ <key>EnableSafeModeSlide</key>
159
+ <true/>
160
+ <key>EnableWriteUnprotector</key>
161
+ <true/>
162
+ <key>ForceExitBootServices</key>
163
+ <false/>
164
+ <key>ProtectMemoryRegions</key>
165
+ <false/>
166
+ <key>ProtectSecureBoot</key>
167
+ <false/>
168
+ <key>ProtectUefiServices</key>
169
+ <false/>
170
+ <key>ProvideCustomSlide</key>
171
+ <true/>
172
+ <key>ProvideMaxSlide</key>
173
+ <integer>0</integer>
174
+ <key>RebuildAppleMemoryMap</key>
175
+ <false/>
176
+ <key>SetupVirtualMap</key>
177
+ <false/>
178
+ <key>SignalAppleOS</key>
179
+ <false/>
180
+ <key>SyncRuntimePermissions</key>
181
+ <false/>
182
+ </dict>
183
+ </dict>
184
+ <key>DeviceProperties</key>
185
+ <dict>
186
+ <key>Add</key>
187
+ <dict>
188
+ <key>PciRoot(0x1)/Pci(0x1F,0x0)</key>
189
+ <dict>
190
+ <key>compatible</key>
191
+ <string>pci8086,2916</string>
192
+ <key>device-id</key>
193
+ <data>
194
+ FikA
195
+ </data>
196
+ <key>name</key>
197
+ <string>pci8086,2916</string>
198
+ </dict>
199
+ </dict>
200
+ <key>Delete</key>
201
+ <dict>
202
+ <key>PciRoot(0x0)/Pci(0x1b,0x0)</key>
203
+ <array>
204
+ <string>MaximumBootBeepVolume</string>
205
+ </array>
206
+ </dict>
207
+ </dict>
208
+ <key>Kernel</key>
209
+ <dict>
210
+ <key>Add</key>
211
+ <array>
212
+ <dict>
213
+ <key>Arch</key>
214
+ <string>Any</string>
215
+ <key>BundlePath</key>
216
+ <string>VoodooHDA.kext</string>
217
+ <key>Comment</key>
218
+ <string></string>
219
+ <key>Enabled</key>
220
+ <true/>
221
+ <key>ExecutablePath</key>
222
+ <string>Contents/MacOS/VoodooHDA</string>
223
+ <key>MaxKernel</key>
224
+ <string></string>
225
+ <key>MinKernel</key>
226
+ <string></string>
227
+ <key>PlistPath</key>
228
+ <string>Contents/Info.plist</string>
229
+ </dict>
230
+ <dict>
231
+ <key>Arch</key>
232
+ <string>x86_64</string>
233
+ <key>BundlePath</key>
234
+ <string>Lilu.kext</string>
235
+ <key>Comment</key>
236
+ <string>Patch engine</string>
237
+ <key>Enabled</key>
238
+ <true/>
239
+ <key>ExecutablePath</key>
240
+ <string>Contents/MacOS/Lilu</string>
241
+ <key>MaxKernel</key>
242
+ <string></string>
243
+ <key>MinKernel</key>
244
+ <string>12.0.0</string>
245
+ <key>PlistPath</key>
246
+ <string>Contents/Info.plist</string>
247
+ </dict>
248
+ <dict>
249
+ <key>Arch</key>
250
+ <string>x86_64</string>
251
+ <key>BundlePath</key>
252
+ <string>VirtualSMC.kext</string>
253
+ <key>Comment</key>
254
+ <string>SMC emulator</string>
255
+ <key>Enabled</key>
256
+ <false/>
257
+ <key>ExecutablePath</key>
258
+ <string>Contents/MacOS/VirtualSMC</string>
259
+ <key>MaxKernel</key>
260
+ <string></string>
261
+ <key>MinKernel</key>
262
+ <string>12.0.0</string>
263
+ <key>PlistPath</key>
264
+ <string>Contents/Info.plist</string>
265
+ </dict>
266
+ <dict>
267
+ <key>Arch</key>
268
+ <string>x86_64</string>
269
+ <key>BundlePath</key>
270
+ <string>WhateverGreen.kext</string>
271
+ <key>Comment</key>
272
+ <string>Video patches</string>
273
+ <key>Enabled</key>
274
+ <true/>
275
+ <key>ExecutablePath</key>
276
+ <string>Contents/MacOS/WhateverGreen</string>
277
+ <key>MaxKernel</key>
278
+ <string></string>
279
+ <key>MinKernel</key>
280
+ <string>12.0.0</string>
281
+ <key>PlistPath</key>
282
+ <string>Contents/Info.plist</string>
283
+ </dict>
284
+ <dict>
285
+ <key>BundlePath</key>
286
+ <string>AGPMInjector.kext</string>
287
+ <key>Comment</key>
288
+ <string></string>
289
+ <key>Enabled</key>
290
+ <true/>
291
+ <key>ExecutablePath</key>
292
+ <string></string>
293
+ <key>MaxKernel</key>
294
+ <string></string>
295
+ <key>MinKernel</key>
296
+ <string></string>
297
+ <key>PlistPath</key>
298
+ <string>Contents/Info.plist</string>
299
+ </dict>
300
+ <dict>
301
+ <key>BundlePath</key>
302
+ <string>USBPorts.kext</string>
303
+ <key>Comment</key>
304
+ <string></string>
305
+ <key>Enabled</key>
306
+ <true/>
307
+ <key>ExecutablePath</key>
308
+ <string></string>
309
+ <key>MaxKernel</key>
310
+ <string></string>
311
+ <key>MinKernel</key>
312
+ <string></string>
313
+ <key>PlistPath</key>
314
+ <string>Contents/Info.plist</string>
315
+ </dict>
316
+ <dict>
317
+ <key>Arch</key>
318
+ <string>x86_64</string>
319
+ <key>BundlePath</key>
320
+ <string>MCEReporterDisabler.kext</string>
321
+ <key>Comment</key>
322
+ <string>AppleMCEReporter disabler</string>
323
+ <key>Enabled</key>
324
+ <true/>
325
+ <key>ExecutablePath</key>
326
+ <string></string>
327
+ <key>MaxKernel</key>
328
+ <string></string>
329
+ <key>MinKernel</key>
330
+ <string>19.0.0</string>
331
+ <key>PlistPath</key>
332
+ <string>Contents/Info.plist</string>
333
+ </dict>
334
+ </array>
335
+ <key>Block</key>
336
+ <array>
337
+ <dict>
338
+ <key>Arch</key>
339
+ <string>Any</string>
340
+ <key>Comment</key>
341
+ <string></string>
342
+ <key>Enabled</key>
343
+ <false/>
344
+ <key>Identifier</key>
345
+ <string>com.apple.driver.AppleTyMCEDriver</string>
346
+ <key>MaxKernel</key>
347
+ <string></string>
348
+ <key>MinKernel</key>
349
+ <string></string>
350
+ </dict>
351
+ </array>
352
+ <key>Emulate</key>
353
+ <dict>
354
+ <key>Cpuid1Data</key>
355
+ <data>
356
+ VAYFAAAAAAAAAAAAAAAAAA==
357
+ </data>
358
+ <key>Cpuid1Mask</key>
359
+ <data>
360
+ ////AAAAAAAAAAAAAAAAAA==
361
+ </data>
362
+ </dict>
363
+ <key>Force</key>
364
+ <array>
365
+ <dict>
366
+ <key>Arch</key>
367
+ <string>Any</string>
368
+ <key>BundlePath</key>
369
+ <string>System/Library/Extensions/IONetworkingFamily.kext</string>
370
+ <key>Comment</key>
371
+ <string>Patch engine</string>
372
+ <key>Enabled</key>
373
+ <false/>
374
+ <key>Identifier</key>
375
+ <string>com.apple.iokit.IONetworkingFamily</string>
376
+ <key>ExecutablePath</key>
377
+ <string>Contents/MacOS/IONetworkingFamily</string>
378
+ <key>MaxKernel</key>
379
+ <string>13.99.99</string>
380
+ <key>MinKernel</key>
381
+ <string></string>
382
+ <key>PlistPath</key>
383
+ <string>Contents/Info.plist</string>
384
+ </dict>
385
+ </array>
386
+ <key>Patch</key>
387
+ <array>
388
+ <dict>
389
+ <key>Base</key>
390
+ <string>_cpu_topology_sort</string>
391
+ <key>Comment</key>
392
+ <string>algrey - cpu_topology_sort -disable _x86_validate_topology</string>
393
+ <key>Count</key>
394
+ <integer>1</integer>
395
+ <key>Enabled</key>
396
+ <true/>
397
+ <key>Find</key>
398
+ <data>
399
+ 6AAA//8=
400
+ </data>
401
+ <key>Identifier</key>
402
+ <string>kernel</string>
403
+ <key>Limit</key>
404
+ <integer>0</integer>
405
+ <key>Mask</key>
406
+ <data>
407
+ /wAA//8=
408
+ </data>
409
+ <key>MaxKernel</key>
410
+ <string>20.99.99</string>
411
+ <key>MinKernel</key>
412
+ <string>17.0.0</string>
413
+ <key>Replace</key>
414
+ <data>
415
+ Dx9EAAA=
416
+ </data>
417
+ <key>ReplaceMask</key>
418
+ <data>
419
+ </data>
420
+ <key>Skip</key>
421
+ <integer>0</integer>
422
+ </dict>
423
+ <dict>
424
+ <key>Base</key>
425
+ <string></string>
426
+ <key>Comment</key>
427
+ <string>algrey - cpuid_set_cpufamily - force CPUFAMILY_INTEL_PENRYN</string>
428
+ <key>Count</key>
429
+ <integer>1</integer>
430
+ <key>Enabled</key>
431
+ <true/>
432
+ <key>Find</key>
433
+ <data>
434
+ MduAPQAAAAAGdQA=
435
+ </data>
436
+ <key>Identifier</key>
437
+ <string>kernel</string>
438
+ <key>Limit</key>
439
+ <integer>0</integer>
440
+ <key>Mask</key>
441
+ <data>
442
+ /////wAAAP///wA=
443
+ </data>
444
+ <key>MaxKernel</key>
445
+ <string>20.99.99</string>
446
+ <key>MinKernel</key>
447
+ <string>17.0.0</string>
448
+ <key>Replace</key>
449
+ <data>
450
+ u7xP6njpXQAAAJA=
451
+ </data>
452
+ <key>ReplaceMask</key>
453
+ <data>
454
+ </data>
455
+ <key>Skip</key>
456
+ <integer>0</integer>
457
+ </dict>
458
+ </array>
459
+ <key>Quirks</key>
460
+ <dict>
461
+ <key>AppleCpuPmCfgLock</key>
462
+ <false/>
463
+ <key>AppleXcpmCfgLock</key>
464
+ <false/>
465
+ <key>AppleXcpmExtraMsrs</key>
466
+ <false/>
467
+ <key>AppleXcpmForceBoost</key>
468
+ <false/>
469
+ <key>CustomSMBIOSGuid</key>
470
+ <false/>
471
+ <key>DisableIoMapper</key>
472
+ <false/>
473
+ <key>DisableLinkeditJettison</key>
474
+ <true/>
475
+ <key>DisableRtcChecksum</key>
476
+ <false/>
477
+ <key>DummyPowerManagement</key>
478
+ <true/>
479
+ <key>ExternalDiskIcons</key>
480
+ <false/>
481
+ <key>IncreasePciBarSize</key>
482
+ <false/>
483
+ <key>LapicKernelPanic</key>
484
+ <false/>
485
+ <key>PanicNoKextDump</key>
486
+ <false/>
487
+ <key>PowerTimeoutKernelPanic</key>
488
+ <false/>
489
+ <key>ThirdPartyDrives</key>
490
+ <false/>
491
+ <key>XhciPortLimit</key>
492
+ <false/>
493
+ </dict>
494
+ <key>Scheme</key>
495
+ <dict>
496
+ <key>FuzzyMatch</key>
497
+ <true/>
498
+ <key>KernelArch</key>
499
+ <string>x86_64</string>
500
+ <key>KernelCache</key>
501
+ <string>Auto</string>
502
+ </dict>
503
+ </dict>
504
+ <key>Misc</key>
505
+ <dict>
506
+ <key>BlessOverride</key>
507
+ <array/>
508
+ <key>Boot</key>
509
+ <dict>
510
+ <key>ConsoleAttributes</key>
511
+ <integer>0</integer>
512
+ <key>HibernateMode</key>
513
+ <string>Auto</string>
514
+ <key>HideAuxiliary</key>
515
+ <false/>
516
+ <key>PickerAttributes</key>
517
+ <integer>1</integer>
518
+ <key>PickerAudioAssist</key>
519
+ <false/>
520
+ <key>PickerMode</key>
521
+ <string>External</string>
522
+ <key>PollAppleHotKeys</key>
523
+ <true/>
524
+ <key>ShowPicker</key>
525
+ <true/>
526
+ <key>TakeoffDelay</key>
527
+ <integer>0</integer>
528
+ <key>Timeout</key>
529
+ <integer>0</integer>
530
+ </dict>
531
+ <key>Debug</key>
532
+ <dict>
533
+ <key>AppleDebug</key>
534
+ <false/>
535
+ <key>ApplePanic</key>
536
+ <false/>
537
+ <key>DisableWatchDog</key>
538
+ <false/>
539
+ <key>DisplayDelay</key>
540
+ <integer>0</integer>
541
+ <key>DisplayLevel</key>
542
+ <integer>2147483650</integer>
543
+ <key>SerialInit</key>
544
+ <false/>
545
+ <key>SysReport</key>
546
+ <false/>
547
+ <key>Target</key>
548
+ <integer>3</integer>
549
+ </dict>
550
+ <key>Entries</key>
551
+ <array/>
552
+ <key>Security</key>
553
+ <dict>
554
+ <key>AllowNvramReset</key>
555
+ <true/>
556
+ <key>AllowSetDefault</key>
557
+ <false/>
558
+ <key>ApECID</key>
559
+ <integer>0</integer>
560
+ <key>AuthRestart</key>
561
+ <false/>
562
+ <key>BootProtect</key>
563
+ <string>None</string>
564
+ <key>DmgLoading</key>
565
+ <string>Signed</string>
566
+ <key>EnablePassword</key>
567
+ <false/>
568
+ <key>ExposeSensitiveData</key>
569
+ <integer>6</integer>
570
+ <key>HaltLevel</key>
571
+ <integer>2147483648</integer>
572
+ <key>PasswordHash</key>
573
+ <data></data>
574
+ <key>PasswordSalt</key>
575
+ <data></data>
576
+ <key>ScanPolicy</key>
577
+ <integer>0</integer>
578
+ <key>SecureBootModel</key>
579
+ <string>Disabled</string>
580
+ <key>Vault</key>
581
+ <string>Optional</string>
582
+ </dict>
583
+ <key>Tools</key>
584
+ <array>
585
+ <dict>
586
+ <key>Arguments</key>
587
+ <string></string>
588
+ <key>Auxiliary</key>
589
+ <false/>
590
+ <key>Comment</key>
591
+ <string>Not signed for security reasons</string>
592
+ <key>Enabled</key>
593
+ <true/>
594
+ <key>Name</key>
595
+ <string>UEFI Shell</string>
596
+ <key>Path</key>
597
+ <string>OpenShell.efi</string>
598
+ </dict>
599
+ <dict>
600
+ <key>Arguments</key>
601
+ <string>Shutdown</string>
602
+ <key>Auxiliary</key>
603
+ <true/>
604
+ <key>Comment</key>
605
+ <string>Perform shutdown</string>
606
+ <key>Enabled</key>
607
+ <true/>
608
+ <key>Name</key>
609
+ <string>Shutdown</string>
610
+ <key>Path</key>
611
+ <string>ResetSystem.efi</string>
612
+ </dict>
613
+ </array>
614
+ </dict>
615
+ <key>NVRAM</key>
616
+ <dict>
617
+ <key>Add</key>
618
+ <dict>
619
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
620
+ <dict>
621
+ <key>DefaultBackgroundColor</key>
622
+ <data>AAAAAA==</data>
623
+ <key>UIScale</key>
624
+ <data>AQ==</data>
625
+ </dict>
626
+ <key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
627
+ <dict>
628
+ <key>rtc-blacklist</key>
629
+ <data></data>
630
+ </dict>
631
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
632
+ <dict>
633
+ <key>SystemAudioVolume</key>
634
+ <data>Rg==</data>
635
+ <key>boot-args</key>
636
+ <string>-v keepsyms=1 tlbto_us=0 vti=9 {{KERNEL_ARGS}}</string>
637
+ <key>run-efi-updater</key>
638
+ <string>No</string>
639
+ <key>csr-active-config</key>
640
+ <data>ZwAAAA==</data>
641
+ <key>prev-lang:kbd</key>
642
+ <data>ZW4tVVM6MA==</data>
643
+ </dict>
644
+ </dict>
645
+ <key>Delete</key>
646
+ <dict>
647
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
648
+ <array>
649
+ <string>UIScale</string>
650
+ <string>DefaultBackgroundColor</string>
651
+ </array>
652
+ <key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
653
+ <array>
654
+ <string>rtc-blacklist</string>
655
+ </array>
656
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
657
+ <array>
658
+ <string>boot-args</string>
659
+ </array>
660
+ </dict>
661
+ <key>LegacyEnable</key>
662
+ <false/>
663
+ <key>LegacyOverwrite</key>
664
+ <false/>
665
+ <key>LegacySchema</key>
666
+ <dict>
667
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
668
+ <array>
669
+ <string>EFILoginHiDPI</string>
670
+ <string>EFIBluetoothDelay</string>
671
+ <string>LocationServicesEnabled</string>
672
+ <string>SystemAudioVolume</string>
673
+ <string>SystemAudioVolumeDB</string>
674
+ <string>SystemAudioVolumeSaved</string>
675
+ <string>bluetoothActiveControllerInfo</string>
676
+ <string>bluetoothInternalControllerInfo</string>
677
+ <string>flagstate</string>
678
+ <string>fmm-computer-name</string>
679
+ <string>nvda_drv</string>
680
+ <string>prev-lang:kbd</string>
681
+ </array>
682
+ <key>8BE4DF61-93CA-11D2-AA0D-00E098032B8C</key>
683
+ <array>
684
+ <string>Boot0080</string>
685
+ <string>Boot0081</string>
686
+ <string>Boot0082</string>
687
+ <string>BootNext</string>
688
+ <string>BootOrder</string>
689
+ </array>
690
+ </dict>
691
+ <key>WriteFlash</key>
692
+ <true/>
693
+ </dict>
694
+ <key>PlatformInfo</key>
695
+ <dict>
696
+ <key>Automatic</key>
697
+ <true/>
698
+ <key>Generic</key>
699
+ <dict>
700
+ <key>AdviseWindows</key>
701
+ <false/>
702
+ <key>MLB</key>
703
+ <string>{{BOARD_SERIAL_OLD}}</string>
704
+ <key>ROM</key>
705
+ <data>
706
+ {{ROM}}
707
+ </data>
708
+ <key>SpoofVendor</key>
709
+ <true/>
710
+ <key>SystemProductName</key>
711
+ <string>{{DEVICE_MODEL}}</string>
712
+ <key>SystemSerialNumber</key>
713
+ <string>{{SERIAL_OLD}}</string>
714
+ <key>SystemUUID</key>
715
+ <string>{{SYSTEM_UUID_OLD}}</string>
716
+ </dict>
717
+ <key>UpdateDataHub</key>
718
+ <true/>
719
+ <key>UpdateNVRAM</key>
720
+ <true/>
721
+ <key>UpdateSMBIOS</key>
722
+ <true/>
723
+ <key>UpdateSMBIOSMode</key>
724
+ <string>Create</string>
725
+ </dict>
726
+ <key>UEFI</key>
727
+ <dict>
728
+ <key>APFS</key>
729
+ <dict>
730
+ <key>EnableJumpstart</key>
731
+ <true/>
732
+ <key>GlobalConnect</key>
733
+ <false/>
734
+ <key>HideVerbose</key>
735
+ <false/>
736
+ <key>JumpstartHotPlug</key>
737
+ <true/>
738
+ <key>MinDate</key>
739
+ <integer>0</integer>
740
+ <key>MinVersion</key>
741
+ <integer>0</integer>
742
+ </dict>
743
+ <key>Audio</key>
744
+ <dict>
745
+ <key>AudioCodec</key>
746
+ <integer>0</integer>
747
+ <key>AudioDevice</key>
748
+ <string>PciRoot(0x1)/Pci(0x1,0x0)/Pci(0x0,0x1)</string>
749
+ <key>AudioOut</key>
750
+ <integer>0</integer>
751
+ <key>AudioSupport</key>
752
+ <false/>
753
+ <key>MinimumVolume</key>
754
+ <integer>20</integer>
755
+ <key>PlayChime</key>
756
+ <false/>
757
+ <key>VolumeAmplifier</key>
758
+ <integer>0</integer>
759
+ </dict>
760
+ <key>ConnectDrivers</key>
761
+ <true/>
762
+ <key>Drivers</key>
763
+ <array>
764
+ <string>VBoxHfs.efi</string>
765
+ <string>OpenRuntime.efi</string>
766
+ <string>OpenCanopy.efi</string>
767
+ <string>#AudioDxe.efi</string>
768
+ <string>#OpenUsbKbDxe.efi</string>
769
+ <string>#UsbMouseDxe.efi</string>
770
+ <string>#Ps2KeyboardDxe.efi</string>
771
+ <string>#Ps2MouseDxe.efi</string>
772
+ <string>#HiiDatabase.efi</string>
773
+ <string>#NvmExpressDxe.efi</string>
774
+ <string>#XhciDxe.efi</string>
775
+ <string>#ExFatDxe.efi</string>
776
+ <string>#PartitionDxe.efi</string>
777
+ <string>#CrScreenshotDxe.efi</string>
778
+ </array>
779
+ <key>Input</key>
780
+ <dict>
781
+ <key>KeyFiltering</key>
782
+ <false/>
783
+ <key>KeyForgetThreshold</key>
784
+ <integer>5</integer>
785
+ <key>KeyMergeThreshold</key>
786
+ <integer>2</integer>
787
+ <key>KeySupport</key>
788
+ <true/>
789
+ <key>KeySupportMode</key>
790
+ <string>Auto</string>
791
+ <key>KeySwap</key>
792
+ <false/>
793
+ <key>PointerSupport</key>
794
+ <false/>
795
+ <key>PointerSupportMode</key>
796
+ <string>ASUS</string>
797
+ <key>TimerResolution</key>
798
+ <integer>50000</integer>
799
+ </dict>
800
+ <key>Output</key>
801
+ <dict>
802
+ <key>ClearScreenOnModeSwitch</key>
803
+ <false/>
804
+ <key>ConsoleMode</key>
805
+ <string></string>
806
+ <key>DirectGopRendering</key>
807
+ <false/>
808
+ <key>IgnoreTextInGraphics</key>
809
+ <false/>
810
+ <key>ProvideConsoleGop</key>
811
+ <true/>
812
+ <key>ReconnectOnResChange</key>
813
+ <false/>
814
+ <key>ReplaceTabWithSpace</key>
815
+ <false/>
816
+ <key>Resolution</key>
817
+ <string>1920x1080@32</string>
818
+ <key>SanitiseClearScreen</key>
819
+ <false/>
820
+ <key>TextRenderer</key>
821
+ <string>BuiltinGraphics</string>
822
+ <key>UgaPassThrough</key>
823
+ <false/>
824
+ </dict>
825
+ <key>ProtocolOverrides</key>
826
+ <dict>
827
+ <key>AppleAudio</key>
828
+ <false/>
829
+ <key>AppleBootPolicy</key>
830
+ <false/>
831
+ <key>AppleDebugLog</key>
832
+ <false/>
833
+ <key>AppleEvent</key>
834
+ <false/>
835
+ <key>AppleFramebufferInfo</key>
836
+ <false/>
837
+ <key>AppleImageConversion</key>
838
+ <false/>
839
+ <key>AppleImg4Verification</key>
840
+ <false/>
841
+ <key>AppleKeyMap</key>
842
+ <false/>
843
+ <key>AppleRtcRam</key>
844
+ <false/>
845
+ <key>AppleSecureBoot</key>
846
+ <false/>
847
+ <key>AppleSmcIo</key>
848
+ <false/>
849
+ <key>AppleUserInterfaceTheme</key>
850
+ <false/>
851
+ <key>DataHub</key>
852
+ <false/>
853
+ <key>DeviceProperties</key>
854
+ <false/>
855
+ <key>FirmwareVolume</key>
856
+ <false/>
857
+ <key>HashServices</key>
858
+ <false/>
859
+ <key>OSInfo</key>
860
+ <false/>
861
+ <key>UnicodeCollation</key>
862
+ <false/>
863
+ </dict>
864
+ <key>Quirks</key>
865
+ <dict>
866
+ <key>ExitBootServicesDelay</key>
867
+ <integer>0</integer>
868
+ <key>IgnoreInvalidFlexRatio</key>
869
+ <false/>
870
+ <key>ReleaseUsbOwnership</key>
871
+ <false/>
872
+ <key>RequestBootVarRouting</key>
873
+ <true/>
874
+ <key>TscSyncTimeout</key>
875
+ <integer>0</integer>
876
+ <key>UnblockFsConnect</key>
877
+ <true/>
878
+ <key>ConnectDrivers</key>
879
+ <true/>
880
+ </dict>
881
+ </dict>
882
+ </dict>
883
+ </plist>
custom/config-nopicker-custom.plist ADDED
@@ -0,0 +1,1401 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- This file is modified by @sickcodes from https://github.com/kholia/OSX-KVM/tree/master/OpenCore-Catalina -->
2
+ <!-- The modifications are placeholders for: {{DEVICE_MODEL}}, {{SERIAL}}, {{BOARD_SERIAL}}, {{UUID}}, {{ROM}}, {{WIDTH}}, {{HEIGHT}} -->
3
+ <!-- All credit for this file https://github.com/kholia/OSX-KVM/blob/master/CREDITS.md -->
4
+ <?xml version="1.0" encoding="UTF-8"?>
5
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
6
+ <plist version="1.0">
7
+ <dict>
8
+ <key>ACPI</key>
9
+ <dict>
10
+ <key>Add</key>
11
+ <array>
12
+ <dict>
13
+ <key>Comment</key>
14
+ <string>My custom DSDT</string>
15
+ <key>Enabled</key>
16
+ <false/>
17
+ <key>Path</key>
18
+ <string>DSDT.aml</string>
19
+ </dict>
20
+ <dict>
21
+ <key>Comment</key>
22
+ <string>My custom SSDT</string>
23
+ <key>Enabled</key>
24
+ <false/>
25
+ <key>Path</key>
26
+ <string>SSDT-1.aml</string>
27
+ </dict>
28
+ <dict>
29
+ <key>Comment</key>
30
+ <string>Read the comment in dsl sample</string>
31
+ <key>Enabled</key>
32
+ <false/>
33
+ <key>Path</key>
34
+ <string>SSDT-ALS0.aml</string>
35
+ </dict>
36
+ <dict>
37
+ <key>Comment</key>
38
+ <string>Read the comment in dsl sample</string>
39
+ <key>Enabled</key>
40
+ <false/>
41
+ <key>Path</key>
42
+ <string>SSDT-AWAC-DISABLE.aml</string>
43
+ </dict>
44
+ <dict>
45
+ <key>Comment</key>
46
+ <string>Read the comment in dsl sample</string>
47
+ <key>Enabled</key>
48
+ <false/>
49
+ <key>Path</key>
50
+ <string>SSDT-BRG0.aml</string>
51
+ </dict>
52
+ <dict>
53
+ <key>Comment</key>
54
+ <string>Read the comment in dsl sample</string>
55
+ <key>Enabled</key>
56
+ <false/>
57
+ <key>Path</key>
58
+ <string>SSDT-EC-USBX.aml</string>
59
+ </dict>
60
+ <dict>
61
+ <key>Comment</key>
62
+ <string>Fake EC and USBX Power</string>
63
+ <key>Enabled</key>
64
+ <true/>
65
+ <key>Path</key>
66
+ <string>SSDT-EC.aml</string>
67
+ </dict>
68
+ <dict>
69
+ <key>Comment</key>
70
+ <string>Read the comment in dsl sample</string>
71
+ <key>Enabled</key>
72
+ <false/>
73
+ <key>Path</key>
74
+ <string>SSDT-EHCx-DISABLE.aml</string>
75
+ </dict>
76
+ <dict>
77
+ <key>Comment</key>
78
+ <string>Read the comment in dsl sample</string>
79
+ <key>Enabled</key>
80
+ <false/>
81
+ <key>Path</key>
82
+ <string>SSDT-IMEI.aml</string>
83
+ </dict>
84
+ <dict>
85
+ <key>Comment</key>
86
+ <string>CPU AGPM Plugin=1</string>
87
+ <key>Enabled</key>
88
+ <true/>
89
+ <key>Path</key>
90
+ <string>SSDT-PLUG.aml</string>
91
+ </dict>
92
+ <dict>
93
+ <key>Comment</key>
94
+ <string>Read the comment in dsl sample</string>
95
+ <key>Enabled</key>
96
+ <false/>
97
+ <key>Path</key>
98
+ <string>SSDT-PMC.aml</string>
99
+ </dict>
100
+ <dict>
101
+ <key>Comment</key>
102
+ <string>Read the comment in dsl sample</string>
103
+ <key>Enabled</key>
104
+ <false/>
105
+ <key>Path</key>
106
+ <string>SSDT-PNLF.aml</string>
107
+ </dict>
108
+ <dict>
109
+ <key>Comment</key>
110
+ <string>Read the comment in dsl sample</string>
111
+ <key>Enabled</key>
112
+ <false/>
113
+ <key>Path</key>
114
+ <string>SSDT-PNLFCFL.aml</string>
115
+ </dict>
116
+ <dict>
117
+ <key>Comment</key>
118
+ <string>Read the comment in dsl sample</string>
119
+ <key>Enabled</key>
120
+ <false/>
121
+ <key>Path</key>
122
+ <string>SSDT-RTC0-RANGE.aml</string>
123
+ </dict>
124
+ <dict>
125
+ <key>Comment</key>
126
+ <string>Read the comment in dsl sample</string>
127
+ <key>Enabled</key>
128
+ <false/>
129
+ <key>Path</key>
130
+ <string>SSDT-RTC0.aml</string>
131
+ </dict>
132
+ <dict>
133
+ <key>Comment</key>
134
+ <string>Read the comment in dsl sample</string>
135
+ <key>Enabled</key>
136
+ <false/>
137
+ <key>Path</key>
138
+ <string>SSDT-SBUS-MCHC.aml</string>
139
+ </dict>
140
+ <dict>
141
+ <key>Comment</key>
142
+ <string>Read the comment in dsl sample</string>
143
+ <key>Enabled</key>
144
+ <false/>
145
+ <key>Path</key>
146
+ <string>SSDT-UNC.aml</string>
147
+ </dict>
148
+ <dict>
149
+ <key>Comment</key>
150
+ <string>add DTGP method</string>
151
+ <key>Enabled</key>
152
+ <true/>
153
+ <key>Path</key>
154
+ <string>SSDT-DTGP.aml</string>
155
+ </dict>
156
+ <dict>
157
+ <key>Comment</key>
158
+ <string>USB 2.0 Injection</string>
159
+ <key>Enabled</key>
160
+ <true/>
161
+ <key>Path</key>
162
+ <string>SSDT-EHCI.aml</string>
163
+ </dict>
164
+ </array>
165
+ <key>Delete</key>
166
+ <array>
167
+ <dict>
168
+ <key>All</key>
169
+ <false/>
170
+ <key>Comment</key>
171
+ <string>Delete CpuPm</string>
172
+ <key>Enabled</key>
173
+ <false/>
174
+ <key>OemTableId</key>
175
+ <data>Q3B1UG0AAAA=</data>
176
+ <key>TableLength</key>
177
+ <integer>0</integer>
178
+ <key>TableSignature</key>
179
+ <data>U1NEVA==</data>
180
+ </dict>
181
+ <dict>
182
+ <key>All</key>
183
+ <false/>
184
+ <key>Comment</key>
185
+ <string>Delete Cpu0Ist</string>
186
+ <key>Enabled</key>
187
+ <false/>
188
+ <key>OemTableId</key>
189
+ <data>Q3B1MElzdAA=</data>
190
+ <key>TableLength</key>
191
+ <integer>0</integer>
192
+ <key>TableSignature</key>
193
+ <data>U1NEVA==</data>
194
+ </dict>
195
+ </array>
196
+ <key>Patch</key>
197
+ <array>
198
+ <dict>
199
+ <key>Base</key>
200
+ <string></string>
201
+ <key>BaseSkip</key>
202
+ <integer>0</integer>
203
+ <key>Comment</key>
204
+ <string>Replace one byte sequence with another</string>
205
+ <key>Count</key>
206
+ <integer>0</integer>
207
+ <key>Enabled</key>
208
+ <false/>
209
+ <key>Find</key>
210
+ <data>ESIzRA==</data>
211
+ <key>Limit</key>
212
+ <integer>0</integer>
213
+ <key>Mask</key>
214
+ <data></data>
215
+ <key>OemTableId</key>
216
+ <data></data>
217
+ <key>Replace</key>
218
+ <data>RDMiEQ==</data>
219
+ <key>ReplaceMask</key>
220
+ <data></data>
221
+ <key>Skip</key>
222
+ <integer>0</integer>
223
+ <key>TableLength</key>
224
+ <integer>0</integer>
225
+ <key>TableSignature</key>
226
+ <data></data>
227
+ </dict>
228
+ <dict>
229
+ <key>Base</key>
230
+ <string>\_SB.PCI0.LPCB.HPET</string>
231
+ <key>BaseSkip</key>
232
+ <integer>0</integer>
233
+ <key>Comment</key>
234
+ <string>HPET _CRS to XCRS</string>
235
+ <key>Count</key>
236
+ <integer>1</integer>
237
+ <key>Enabled</key>
238
+ <false/>
239
+ <key>Find</key>
240
+ <data>X0NSUw==</data>
241
+ <key>Limit</key>
242
+ <integer>0</integer>
243
+ <key>Mask</key>
244
+ <data></data>
245
+ <key>OemTableId</key>
246
+ <data></data>
247
+ <key>Replace</key>
248
+ <data>WENSUw==</data>
249
+ <key>ReplaceMask</key>
250
+ <data></data>
251
+ <key>Skip</key>
252
+ <integer>0</integer>
253
+ <key>TableLength</key>
254
+ <integer>0</integer>
255
+ <key>TableSignature</key>
256
+ <data></data>
257
+ </dict>
258
+ </array>
259
+ <key>Quirks</key>
260
+ <dict>
261
+ <key>FadtEnableReset</key>
262
+ <false/>
263
+ <key>NormalizeHeaders</key>
264
+ <false/>
265
+ <key>RebaseRegions</key>
266
+ <false/>
267
+ <key>ResetHwSig</key>
268
+ <false/>
269
+ <key>ResetLogoStatus</key>
270
+ <true/>
271
+ <key>SyncTableIds</key>
272
+ <false/>
273
+ </dict>
274
+ </dict>
275
+ <key>Booter</key>
276
+ <dict>
277
+ <key>MmioWhitelist</key>
278
+ <array/>
279
+ <key>Quirks</key>
280
+ <dict>
281
+ <key>AllowRelocationBlock</key>
282
+ <false/>
283
+ <key>AvoidRuntimeDefrag</key>
284
+ <true/>
285
+ <key>DevirtualiseMmio</key>
286
+ <false/>
287
+ <key>DisableSingleUser</key>
288
+ <false/>
289
+ <key>DisableVariableWrite</key>
290
+ <false/>
291
+ <key>DiscardHibernateMap</key>
292
+ <false/>
293
+ <key>EnableSafeModeSlide</key>
294
+ <true/>
295
+ <key>EnableWriteUnprotector</key>
296
+ <true/>
297
+ <key>ForceBooterSignature</key>
298
+ <false/>
299
+ <key>ForceExitBootServices</key>
300
+ <false/>
301
+ <key>ProtectMemoryRegions</key>
302
+ <false/>
303
+ <key>ProtectSecureBoot</key>
304
+ <false/>
305
+ <key>ProtectUefiServices</key>
306
+ <false/>
307
+ <key>ProvideCustomSlide</key>
308
+ <true/>
309
+ <key>ProvideMaxSlide</key>
310
+ <integer>0</integer>
311
+ <key>RebuildAppleMemoryMap</key>
312
+ <false/>
313
+ <key>SetupVirtualMap</key>
314
+ <false/>
315
+ <key>SignalAppleOS</key>
316
+ <false/>
317
+ <key>SyncRuntimePermissions</key>
318
+ <false/>
319
+ </dict>
320
+ </dict>
321
+ <key>DeviceProperties</key>
322
+ <dict>
323
+ <key>Add</key>
324
+ <dict>
325
+ <key>PciRoot(0x1)/Pci(0x1F,0x0)</key>
326
+ <dict>
327
+ <key>compatible</key>
328
+ <string>pci8086,2916</string>
329
+ <key>device-id</key>
330
+ <data>
331
+ FikA
332
+ </data>
333
+ <key>name</key>
334
+ <string>pci8086,2916</string>
335
+ </dict>
336
+ </dict>
337
+ <key>Delete</key>
338
+ <dict/>
339
+ </dict>
340
+ <key>Kernel</key>
341
+ <dict>
342
+ <key>Add</key>
343
+ <array>
344
+ <dict>
345
+ <key>Arch</key>
346
+ <string>Any</string>
347
+ <key>BundlePath</key>
348
+ <string>Lilu.kext</string>
349
+ <key>Comment</key>
350
+ <string>Patch engine</string>
351
+ <key>Enabled</key>
352
+ <true/>
353
+ <key>ExecutablePath</key>
354
+ <string>Contents/MacOS/Lilu</string>
355
+ <key>MaxKernel</key>
356
+ <string></string>
357
+ <key>MinKernel</key>
358
+ <string>8.0.0</string>
359
+ <key>PlistPath</key>
360
+ <string>Contents/Info.plist</string>
361
+ </dict>
362
+ <dict>
363
+ <key>Arch</key>
364
+ <string>Any</string>
365
+ <key>BundlePath</key>
366
+ <string>VirtualSMC.kext</string>
367
+ <key>Comment</key>
368
+ <string>SMC emulator</string>
369
+ <key>Enabled</key>
370
+ <false/>
371
+ <key>ExecutablePath</key>
372
+ <string>Contents/MacOS/VirtualSMC</string>
373
+ <key>MaxKernel</key>
374
+ <string></string>
375
+ <key>MinKernel</key>
376
+ <string>8.0.0</string>
377
+ <key>PlistPath</key>
378
+ <string>Contents/Info.plist</string>
379
+ </dict>
380
+ <dict>
381
+ <key>Arch</key>
382
+ <string>x86_64</string>
383
+ <key>BundlePath</key>
384
+ <string>WhateverGreen.kext</string>
385
+ <key>Comment</key>
386
+ <string>Video patches</string>
387
+ <key>Enabled</key>
388
+ <true/>
389
+ <key>ExecutablePath</key>
390
+ <string>Contents/MacOS/WhateverGreen</string>
391
+ <key>MaxKernel</key>
392
+ <string></string>
393
+ <key>MinKernel</key>
394
+ <string>10.0.0</string>
395
+ <key>PlistPath</key>
396
+ <string>Contents/Info.plist</string>
397
+ </dict>
398
+ <dict>
399
+ <key>Arch</key>
400
+ <string>Any</string>
401
+ <key>BundlePath</key>
402
+ <string>AppleALC.kext</string>
403
+ <key>Comment</key>
404
+ <string>Audio patches</string>
405
+ <key>Enabled</key>
406
+ <true/>
407
+ <key>ExecutablePath</key>
408
+ <string>Contents/MacOS/AppleALC</string>
409
+ <key>MaxKernel</key>
410
+ <string></string>
411
+ <key>MinKernel</key>
412
+ <string>8.0.0</string>
413
+ <key>PlistPath</key>
414
+ <string>Contents/Info.plist</string>
415
+ </dict>
416
+ <dict>
417
+ <key>Arch</key>
418
+ <string>x86_64</string>
419
+ <key>BundlePath</key>
420
+ <string>IntelMausi.kext</string>
421
+ <key>Comment</key>
422
+ <string>Intel Ethernet LAN</string>
423
+ <key>Enabled</key>
424
+ <false/>
425
+ <key>ExecutablePath</key>
426
+ <string>Contents/MacOS/IntelMausi</string>
427
+ <key>MaxKernel</key>
428
+ <string></string>
429
+ <key>MinKernel</key>
430
+ <string>13.0.0</string>
431
+ <key>PlistPath</key>
432
+ <string>Contents/Info.plist</string>
433
+ </dict>
434
+ <dict>
435
+ <key>Arch</key>
436
+ <string>x86_64</string>
437
+ <key>BundlePath</key>
438
+ <string>Legacy_USB3.kext</string>
439
+ <key>Comment</key>
440
+ <string>XHC ports configuration</string>
441
+ <key>Enabled</key>
442
+ <false/>
443
+ <key>ExecutablePath</key>
444
+ <string></string>
445
+ <key>MaxKernel</key>
446
+ <string></string>
447
+ <key>MinKernel</key>
448
+ <string>15.0.0</string>
449
+ <key>PlistPath</key>
450
+ <string>Contents/Info.plist</string>
451
+ </dict>
452
+ <dict>
453
+ <key>Arch</key>
454
+ <string>x86_64</string>
455
+ <key>BundlePath</key>
456
+ <string>MCEReporterDisabler.kext</string>
457
+ <key>Comment</key>
458
+ <string>AppleMCEReporter disabler</string>
459
+ <key>Enabled</key>
460
+ <true/>
461
+ <key>ExecutablePath</key>
462
+ <string></string>
463
+ <key>MaxKernel</key>
464
+ <string></string>
465
+ <key>MinKernel</key>
466
+ <string>19.0.0</string>
467
+ <key>PlistPath</key>
468
+ <string>Contents/Info.plist</string>
469
+ </dict>
470
+ <dict>
471
+ <key>Arch</key>
472
+ <string>x86_64</string>
473
+ <key>BundlePath</key>
474
+ <string>VoodooPS2Controller.kext</string>
475
+ <key>Comment</key>
476
+ <string></string>
477
+ <key>Enabled</key>
478
+ <false/>
479
+ <key>ExecutablePath</key>
480
+ <string>Contents/MacOS/VoodooPS2Controller</string>
481
+ <key>MaxKernel</key>
482
+ <string></string>
483
+ <key>MinKernel</key>
484
+ <string>15.0.0</string>
485
+ <key>PlistPath</key>
486
+ <string>Contents/Info.plist</string>
487
+ </dict>
488
+ <dict>
489
+ <key>Arch</key>
490
+ <string>x86_64</string>
491
+ <key>BundlePath</key>
492
+ <string>VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Keyboard.kext</string>
493
+ <key>Comment</key>
494
+ <string></string>
495
+ <key>Enabled</key>
496
+ <false/>
497
+ <key>ExecutablePath</key>
498
+ <string>Contents/MacOS/VoodooPS2Keyboard</string>
499
+ <key>MaxKernel</key>
500
+ <string></string>
501
+ <key>MinKernel</key>
502
+ <string>15.0.0</string>
503
+ <key>PlistPath</key>
504
+ <string>Contents/Info.plist</string>
505
+ </dict>
506
+ <dict>
507
+ <key>Arch</key>
508
+ <string>x86_64</string>
509
+ <key>BundlePath</key>
510
+ <string>VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Mouse.kext</string>
511
+ <key>Comment</key>
512
+ <string></string>
513
+ <key>Enabled</key>
514
+ <false/>
515
+ <key>ExecutablePath</key>
516
+ <string>Contents/MacOS/VoodooPS2Mouse</string>
517
+ <key>MaxKernel</key>
518
+ <string></string>
519
+ <key>MinKernel</key>
520
+ <string>15.0.0</string>
521
+ <key>PlistPath</key>
522
+ <string>Contents/Info.plist</string>
523
+ </dict>
524
+ <dict>
525
+ <key>Arch</key>
526
+ <string>x86_64</string>
527
+ <key>BundlePath</key>
528
+ <string>VoodooPS2Controller.kext/Contents/PlugIns/VoodooPS2Trackpad.kext</string>
529
+ <key>Comment</key>
530
+ <string></string>
531
+ <key>Enabled</key>
532
+ <false/>
533
+ <key>ExecutablePath</key>
534
+ <string>Contents/MacOS/VoodooPS2Trackpad</string>
535
+ <key>MaxKernel</key>
536
+ <string></string>
537
+ <key>MinKernel</key>
538
+ <string>15.0.0</string>
539
+ <key>PlistPath</key>
540
+ <string>Contents/Info.plist</string>
541
+ </dict>
542
+ <dict>
543
+ <key>Arch</key>
544
+ <string>x86_64</string>
545
+ <key>BundlePath</key>
546
+ <string>VoodooPS2Controller.kext/Contents/PlugIns/VoodooInput.kext</string>
547
+ <key>Comment</key>
548
+ <string></string>
549
+ <key>Enabled</key>
550
+ <false/>
551
+ <key>ExecutablePath</key>
552
+ <string>Contents/MacOS/VoodooInput</string>
553
+ <key>MaxKernel</key>
554
+ <string></string>
555
+ <key>MinKernel</key>
556
+ <string>15.0.0</string>
557
+ <key>PlistPath</key>
558
+ <string>Contents/Info.plist</string>
559
+ </dict>
560
+ <dict>
561
+ <key>Arch</key>
562
+ <string>x86_64</string>
563
+ <key>BundlePath</key>
564
+ <string>USBPorts.kext</string>
565
+ <key>Comment</key>
566
+ <string></string>
567
+ <key>Enabled</key>
568
+ <true/>
569
+ <key>ExecutablePath</key>
570
+ <string></string>
571
+ <key>MaxKernel</key>
572
+ <string></string>
573
+ <key>MinKernel</key>
574
+ <string></string>
575
+ <key>PlistPath</key>
576
+ <string>Contents/Info.plist</string>
577
+ </dict>
578
+ <dict>
579
+ <key>Arch</key>
580
+ <string>x86_64</string>
581
+ <key>BundlePath</key>
582
+ <string>AGPMInjector.kext</string>
583
+ <key>Comment</key>
584
+ <string></string>
585
+ <key>Enabled</key>
586
+ <true/>
587
+ <key>ExecutablePath</key>
588
+ <string></string>
589
+ <key>MaxKernel</key>
590
+ <string></string>
591
+ <key>MinKernel</key>
592
+ <string></string>
593
+ <key>PlistPath</key>
594
+ <string>Contents/Info.plist</string>
595
+ </dict>
596
+ </array>
597
+ <key>Block</key>
598
+ <array>
599
+ <dict>
600
+ <key>Arch</key>
601
+ <string>Any</string>
602
+ <key>Comment</key>
603
+ <string></string>
604
+ <key>Enabled</key>
605
+ <false/>
606
+ <key>Identifier</key>
607
+ <string>com.apple.driver.AppleTyMCEDriver</string>
608
+ <key>MaxKernel</key>
609
+ <string></string>
610
+ <key>MinKernel</key>
611
+ <string></string>
612
+ </dict>
613
+ </array>
614
+ <key>Emulate</key>
615
+ <dict>
616
+ <key>Cpuid1Data</key>
617
+ <data>
618
+ VAYFAAAAAAAAAAAAAAAAAA==
619
+ </data>
620
+ <key>Cpuid1Mask</key>
621
+ <data>
622
+ ////AAAAAAAAAAAAAAAAAA==
623
+ </data>
624
+ <key>DummyPowerManagement</key>
625
+ <true/>
626
+ <key>MaxKernel</key>
627
+ <string></string>
628
+ <key>MinKernel</key>
629
+ <string></string>
630
+ </dict>
631
+ <key>Force</key>
632
+ <array>
633
+ <dict>
634
+ <key>Arch</key>
635
+ <string>Any</string>
636
+ <key>BundlePath</key>
637
+ <string>System/Library/Extensions/IONetworkingFamily.kext</string>
638
+ <key>Comment</key>
639
+ <string></string>
640
+ <key>Enabled</key>
641
+ <false/>
642
+ <key>ExecutablePath</key>
643
+ <string>Contents/MacOS/IONetworkingFamily</string>
644
+ <key>Identifier</key>
645
+ <string>com.apple.iokit.IONetworkingFamily</string>
646
+ <key>MaxKernel</key>
647
+ <string>13.99.99</string>
648
+ <key>MinKernel</key>
649
+ <string></string>
650
+ <key>PlistPath</key>
651
+ <string>Contents/Info.plist</string>
652
+ </dict>
653
+ </array>
654
+ <key>Patch</key>
655
+ <array>
656
+ <dict>
657
+ <key>Arch</key>
658
+ <string>x86_64</string>
659
+ <key>Base</key>
660
+ <string></string>
661
+ <key>Comment</key>
662
+ <string>algrey - cpuid_set_cpufamily - force CPUFAMILY_INTEL_PENRYN</string>
663
+ <key>Count</key>
664
+ <integer>1</integer>
665
+ <key>Enabled</key>
666
+ <true/>
667
+ <key>Find</key>
668
+ <data>
669
+ MduAPQAAAAAGdQA=
670
+ </data>
671
+ <key>Identifier</key>
672
+ <string>kernel</string>
673
+ <key>Limit</key>
674
+ <integer>0</integer>
675
+ <key>Mask</key>
676
+ <data>
677
+ /////wAAAP///wA=
678
+ </data>
679
+ <key>MaxKernel</key>
680
+ <string>20.3.99</string>
681
+ <key>MinKernel</key>
682
+ <string>17.0.0</string>
683
+ <key>Replace</key>
684
+ <data>
685
+ u7xP6njpXQAAAJA=
686
+ </data>
687
+ <key>ReplaceMask</key>
688
+ <data>
689
+ </data>
690
+ <key>Skip</key>
691
+ <integer>0</integer>
692
+ </dict>
693
+ <dict>
694
+ <key>Arch</key>
695
+ <string>x86_64</string>
696
+ <key>Base</key>
697
+ <string></string>
698
+ <key>Comment</key>
699
+ <string>algrey - thenickdude - cpuid_set_cpufamily - force CPUFAMILY_INTEL_PENRYN (Big Sur 11.3 and newer)</string>
700
+ <key>Count</key>
701
+ <integer>1</integer>
702
+ <key>Enabled</key>
703
+ <true/>
704
+ <key>Find</key>
705
+ <data>
706
+ MdKzAYA9AAAAAAZ1
707
+ </data>
708
+ <key>Identifier</key>
709
+ <string>kernel</string>
710
+ <key>Limit</key>
711
+ <integer>0</integer>
712
+ <key>Mask</key>
713
+ <data>
714
+ ////////AAAAAP//
715
+ </data>
716
+ <key>MaxKernel</key>
717
+ <string>21.99.99</string>
718
+ <key>MinKernel</key>
719
+ <string>20.4.0</string>
720
+ <key>Replace</key>
721
+ <data>
722
+ urxP6nizAJCQkJDr
723
+ </data>
724
+ <key>ReplaceMask</key>
725
+ <data>
726
+ </data>
727
+ <key>Skip</key>
728
+ <integer>0</integer>
729
+ </dict>
730
+ </array>
731
+ <key>Quirks</key>
732
+ <dict>
733
+ <key>AppleCpuPmCfgLock</key>
734
+ <false/>
735
+ <key>AppleXcpmCfgLock</key>
736
+ <false/>
737
+ <key>AppleXcpmExtraMsrs</key>
738
+ <false/>
739
+ <key>AppleXcpmForceBoost</key>
740
+ <false/>
741
+ <key>CustomSMBIOSGuid</key>
742
+ <false/>
743
+ <key>DisableIoMapper</key>
744
+ <false/>
745
+ <key>DisableLinkeditJettison</key>
746
+ <true/>
747
+ <key>DisableRtcChecksum</key>
748
+ <false/>
749
+ <key>ExtendBTFeatureFlags</key>
750
+ <false/>
751
+ <key>ExternalDiskIcons</key>
752
+ <false/>
753
+ <key>ForceSecureBootScheme</key>
754
+ <true/>
755
+ <key>IncreasePciBarSize</key>
756
+ <false/>
757
+ <key>LapicKernelPanic</key>
758
+ <false/>
759
+ <key>LegacyCommpage</key>
760
+ <false/>
761
+ <key>PanicNoKextDump</key>
762
+ <false/>
763
+ <key>PowerTimeoutKernelPanic</key>
764
+ <false/>
765
+ <key>ProvideCurrentCpuInfo</key>
766
+ <true/>
767
+ <key>SetApfsTrimTimeout</key>
768
+ <integer>-1</integer>
769
+ <key>ThirdPartyDrives</key>
770
+ <false/>
771
+ <key>XhciPortLimit</key>
772
+ <false/>
773
+ </dict>
774
+ <key>Scheme</key>
775
+ <dict>
776
+ <key>CustomKernel</key>
777
+ <false/>
778
+ <key>FuzzyMatch</key>
779
+ <true/>
780
+ <key>KernelArch</key>
781
+ <string>Auto</string>
782
+ <key>KernelCache</key>
783
+ <string>Auto</string>
784
+ </dict>
785
+ </dict>
786
+ <key>Misc</key>
787
+ <dict>
788
+ <key>BlessOverride</key>
789
+ <array/>
790
+ <key>Boot</key>
791
+ <dict>
792
+ <key>ConsoleAttributes</key>
793
+ <integer>0</integer>
794
+ <key>HibernateMode</key>
795
+ <string>Auto</string>
796
+ <key>HideAuxiliary</key>
797
+ <false/>
798
+ <key>LauncherOption</key>
799
+ <string>Disabled</string>
800
+ <key>LauncherPath</key>
801
+ <string>Default</string>
802
+ <key>PickerAttributes</key>
803
+ <integer>17</integer>
804
+ <key>PickerAudioAssist</key>
805
+ <false/>
806
+ <key>PickerMode</key>
807
+ <string>External</string>
808
+ <key>PickerVariant</key>
809
+ <string>Auto</string>
810
+ <key>PollAppleHotKeys</key>
811
+ <true/>
812
+ <key>ShowPicker</key>
813
+ <false/>
814
+ <key>TakeoffDelay</key>
815
+ <integer>0</integer>
816
+ <key>Timeout</key>
817
+ <integer>45</integer>
818
+ </dict>
819
+ <key>Debug</key>
820
+ <dict>
821
+ <key>AppleDebug</key>
822
+ <false/>
823
+ <key>ApplePanic</key>
824
+ <false/>
825
+ <key>DisableWatchDog</key>
826
+ <false/>
827
+ <key>DisplayDelay</key>
828
+ <integer>0</integer>
829
+ <key>DisplayLevel</key>
830
+ <integer>2147483650</integer>
831
+ <key>SerialInit</key>
832
+ <false/>
833
+ <key>SysReport</key>
834
+ <false/>
835
+ <key>Target</key>
836
+ <integer>3</integer>
837
+ </dict>
838
+ <key>Entries</key>
839
+ <array/>
840
+ <key>Security</key>
841
+ <dict>
842
+ <key>AllowNvramReset</key>
843
+ <true/>
844
+ <key>AllowSetDefault</key>
845
+ <true/>
846
+ <key>AllowToggleSip</key>
847
+ <true/>
848
+ <key>ApECID</key>
849
+ <integer>0</integer>
850
+ <key>AuthRestart</key>
851
+ <false/>
852
+ <key>BlacklistAppleUpdate</key>
853
+ <true/>
854
+ <key>DmgLoading</key>
855
+ <string>Signed</string>
856
+ <key>EnablePassword</key>
857
+ <false/>
858
+ <key>ExposeSensitiveData</key>
859
+ <integer>6</integer>
860
+ <key>HaltLevel</key>
861
+ <integer>2147483648</integer>
862
+ <key>PasswordHash</key>
863
+ <data></data>
864
+ <key>PasswordSalt</key>
865
+ <data></data>
866
+ <key>ScanPolicy</key>
867
+ <integer>0</integer>
868
+ <key>SecureBootModel</key>
869
+ <string>Disabled</string>
870
+ <key>Vault</key>
871
+ <string>Optional</string>
872
+ </dict>
873
+ <key>Tools</key>
874
+ <array>
875
+ <dict>
876
+ <key>Arguments</key>
877
+ <string></string>
878
+ <key>Auxiliary</key>
879
+ <false/>
880
+ <key>Comment</key>
881
+ <string>Not signed for security reasons</string>
882
+ <key>Enabled</key>
883
+ <true/>
884
+ <key>Flavour</key>
885
+ <string>OpenShell:UEFIShell:Shell</string>
886
+ <key>Name</key>
887
+ <string>UEFI Shell</string>
888
+ <key>Path</key>
889
+ <string>OpenShell.efi</string>
890
+ <key>RealPath</key>
891
+ <false/>
892
+ <key>TextMode</key>
893
+ <false/>
894
+ </dict>
895
+ <dict>
896
+ <key>Arguments</key>
897
+ <string></string>
898
+ <key>Auxiliary</key>
899
+ <true/>
900
+ <key>Comment</key>
901
+ <string>Memory testing utility</string>
902
+ <key>Enabled</key>
903
+ <false/>
904
+ <key>Flavour</key>
905
+ <string>MemTest</string>
906
+ <key>Name</key>
907
+ <string>memtest86</string>
908
+ <key>Path</key>
909
+ <string>memtest86/BOOTX64.efi</string>
910
+ <key>RealPath</key>
911
+ <true/>
912
+ <key>TextMode</key>
913
+ <false/>
914
+ </dict>
915
+ <dict>
916
+ <key>Arguments</key>
917
+ <string>Shutdown</string>
918
+ <key>Auxiliary</key>
919
+ <true/>
920
+ <key>Comment</key>
921
+ <string>Perform shutdown</string>
922
+ <key>Enabled</key>
923
+ <false/>
924
+ <key>Flavour</key>
925
+ <string>Auto</string>
926
+ <key>Name</key>
927
+ <string>Shutdown</string>
928
+ <key>Path</key>
929
+ <string>ResetSystem.efi</string>
930
+ <key>RealPath</key>
931
+ <false/>
932
+ <key>TextMode</key>
933
+ <false/>
934
+ </dict>
935
+ </array>
936
+ </dict>
937
+ <key>NVRAM</key>
938
+ <dict>
939
+ <key>Add</key>
940
+ <dict>
941
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
942
+ <dict>
943
+ <key>DefaultBackgroundColor</key>
944
+ <data>AAAAAA==</data>
945
+ <key>UIScale</key>
946
+ <data>AQ==</data>
947
+ </dict>
948
+ <key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
949
+ <dict>
950
+ <key>rtc-blacklist</key>
951
+ <data></data>
952
+ </dict>
953
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
954
+ <dict>
955
+ <key>ForceDisplayRotationInEFI</key>
956
+ <integer>0</integer>
957
+ <key>SystemAudioVolume</key>
958
+ <data>Rg==</data>
959
+ <key>boot-args</key>
960
+ <string>-v keepsyms=1 tlbto_us=0 vti=9 {{KERNEL_ARGS}}</string>
961
+ <key>run-efi-updater</key>
962
+ <string>No</string>
963
+ <key>csr-active-config</key>
964
+ <data>ZwAAAA==</data>
965
+ <key>prev-lang:kbd</key>
966
+ <data>ZW4tVVM6MA==</data>
967
+ <key>run-efi-updater</key>
968
+ <string>No</string>
969
+ </dict>
970
+ </dict>
971
+ <key>Delete</key>
972
+ <dict>
973
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
974
+ <array>
975
+ <string>UIScale</string>
976
+ <string>DefaultBackgroundColor</string>
977
+ </array>
978
+ <key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
979
+ <array>
980
+ <string>rtc-blacklist</string>
981
+ </array>
982
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
983
+ <array>
984
+ <string>boot-args</string>
985
+ <string>ForceDisplayRotationInEFI</string>
986
+ </array>
987
+ </dict>
988
+ <key>LegacyEnable</key>
989
+ <false/>
990
+ <key>LegacyOverwrite</key>
991
+ <false/>
992
+ <key>LegacySchema</key>
993
+ <dict>
994
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
995
+ <array>
996
+ <string>EFILoginHiDPI</string>
997
+ <string>EFIBluetoothDelay</string>
998
+ <string>LocationServicesEnabled</string>
999
+ <string>SystemAudioVolume</string>
1000
+ <string>SystemAudioVolumeDB</string>
1001
+ <string>SystemAudioVolumeSaved</string>
1002
+ <string>bluetoothActiveControllerInfo</string>
1003
+ <string>bluetoothInternalControllerInfo</string>
1004
+ <string>flagstate</string>
1005
+ <string>fmm-computer-name</string>
1006
+ <string>fmm-mobileme-token-FMM</string>
1007
+ <string>fmm-mobileme-token-FMM-BridgeHasAccount</string>
1008
+ <string>nvda_drv</string>
1009
+ <string>prev-lang:kbd</string>
1010
+ </array>
1011
+ <key>8BE4DF61-93CA-11D2-AA0D-00E098032B8C</key>
1012
+ <array>
1013
+ <string>Boot0080</string>
1014
+ <string>Boot0081</string>
1015
+ <string>Boot0082</string>
1016
+ <string>BootNext</string>
1017
+ <string>BootOrder</string>
1018
+ </array>
1019
+ </dict>
1020
+ <key>WriteFlash</key>
1021
+ <true/>
1022
+ </dict>
1023
+ <key>PlatformInfo</key>
1024
+ <dict>
1025
+ <key>Automatic</key>
1026
+ <true/>
1027
+ <key>CustomMemory</key>
1028
+ <false/>
1029
+ <key>Generic</key>
1030
+ <dict>
1031
+ <key>AdviseFeatures</key>
1032
+ <false/>
1033
+ <key>MaxBIOSVersion</key>
1034
+ <false/>
1035
+ <key>MLB</key>
1036
+ <string>{{BOARD_SERIAL}}</string>
1037
+ <key>ProcessorType</key>
1038
+ <integer>0</integer>
1039
+ <key>ROM</key>
1040
+ <data>
1041
+ {{ROM}}
1042
+ </data>
1043
+ <key>SpoofVendor</key>
1044
+ <true/>
1045
+ <key>SystemMemoryStatus</key>
1046
+ <string>Auto</string>
1047
+ <key>SystemProductName</key>
1048
+ <string>{{DEVICE_MODEL}}</string>
1049
+ <key>SystemSerialNumber</key>
1050
+ <string>{{SERIAL}}</string>
1051
+ <key>SystemUUID</key>
1052
+ <string>{{UUID}}</string>
1053
+ </dict>
1054
+ <key>UpdateDataHub</key>
1055
+ <true/>
1056
+ <key>UpdateNVRAM</key>
1057
+ <true/>
1058
+ <key>UpdateSMBIOS</key>
1059
+ <true/>
1060
+ <key>UpdateSMBIOSMode</key>
1061
+ <string>Create</string>
1062
+ <key>UseRawUuidEncoding</key>
1063
+ <false/>
1064
+ </dict>
1065
+ <key>UEFI</key>
1066
+ <dict>
1067
+ <key>APFS</key>
1068
+ <dict>
1069
+ <key>EnableJumpstart</key>
1070
+ <true/>
1071
+ <key>GlobalConnect</key>
1072
+ <false/>
1073
+ <key>HideVerbose</key>
1074
+ <true/>
1075
+ <key>JumpstartHotPlug</key>
1076
+ <false/>
1077
+ <key>MinDate</key>
1078
+ <integer>-1</integer>
1079
+ <key>MinVersion</key>
1080
+ <integer>-1</integer>
1081
+ </dict>
1082
+ <key>AppleInput</key>
1083
+ <dict>
1084
+ <key>AppleEvent</key>
1085
+ <string>Builtin</string>
1086
+ <key>CustomDelays</key>
1087
+ <false/>
1088
+ <key>GraphicsInputMirroring</key>
1089
+ <true/>
1090
+ <key>KeyInitialDelay</key>
1091
+ <integer>50</integer>
1092
+ <key>KeySubsequentDelay</key>
1093
+ <integer>5</integer>
1094
+ <key>PointerSpeedDiv</key>
1095
+ <integer>1</integer>
1096
+ <key>PointerSpeedMul</key>
1097
+ <integer>1</integer>
1098
+ </dict>
1099
+ <key>Audio</key>
1100
+ <dict>
1101
+ <key>AudioCodec</key>
1102
+ <integer>0</integer>
1103
+ <key>AudioDevice</key>
1104
+ <string>PciRoot(0x1)/Pci(0x1,0x0)/Pci(0x0,0x1)</string>
1105
+ <key>AudioOut</key>
1106
+ <integer>0</integer>
1107
+ <key>AudioSupport</key>
1108
+ <false/>
1109
+ <key>MinimumVolume</key>
1110
+ <integer>20</integer>
1111
+ <key>PlayChime</key>
1112
+ <string>Auto</string>
1113
+ <key>ResetTrafficClass</key>
1114
+ <false/>
1115
+ <key>SetupDelay</key>
1116
+ <integer>0</integer>
1117
+ <key>VolumeAmplifier</key>
1118
+ <integer>0</integer>
1119
+ </dict>
1120
+ <key>ConnectDrivers</key>
1121
+ <true/>
1122
+ <key>Drivers</key>
1123
+ <array>
1124
+ <dict>
1125
+ <key>Arguments</key>
1126
+ <string></string>
1127
+ <key>Comment</key>
1128
+ <string>HFS+ Driver</string>
1129
+ <key>Enabled</key>
1130
+ <true/>
1131
+ <key>Path</key>
1132
+ <string>OpenHfsPlus.efi</string>
1133
+ </dict>
1134
+ <dict>
1135
+ <key>Arguments</key>
1136
+ <string></string>
1137
+ <key>Comment</key>
1138
+ <string></string>
1139
+ <key>Enabled</key>
1140
+ <true/>
1141
+ <key>Path</key>
1142
+ <string>OpenRuntime.efi</string>
1143
+ </dict>
1144
+ <dict>
1145
+ <key>Arguments</key>
1146
+ <string></string>
1147
+ <key>Comment</key>
1148
+ <string></string>
1149
+ <key>Enabled</key>
1150
+ <true/>
1151
+ <key>Path</key>
1152
+ <string>OpenCanopy.efi</string>
1153
+ </dict>
1154
+ <dict>
1155
+ <key>Arguments</key>
1156
+ <string></string>
1157
+ <key>Comment</key>
1158
+ <string></string>
1159
+ <key>Enabled</key>
1160
+ <false/>
1161
+ <key>Path</key>
1162
+ <string>AudioDxe.efi</string>
1163
+ </dict>
1164
+ <dict>
1165
+ <key>Arguments</key>
1166
+ <string></string>
1167
+ <key>Comment</key>
1168
+ <string></string>
1169
+ <key>Enabled</key>
1170
+ <true/>
1171
+ <key>Path</key>
1172
+ <string>OpenPartitionDxe.efi</string>
1173
+ </dict>
1174
+ <dict>
1175
+ <key>Arguments</key>
1176
+ <string></string>
1177
+ <key>Comment</key>
1178
+ <string></string>
1179
+ <key>Enabled</key>
1180
+ <false/>
1181
+ <key>Path</key>
1182
+ <string>OpenUsbKbDxe.efi</string>
1183
+ </dict>
1184
+ <dict>
1185
+ <key>Arguments</key>
1186
+ <string></string>
1187
+ <key>Comment</key>
1188
+ <string></string>
1189
+ <key>Enabled</key>
1190
+ <false/>
1191
+ <key>Path</key>
1192
+ <string>UsbMouseDxe.efi</string>
1193
+ </dict>
1194
+ <dict>
1195
+ <key>Arguments</key>
1196
+ <string></string>
1197
+ <key>Comment</key>
1198
+ <string></string>
1199
+ <key>Enabled</key>
1200
+ <false/>
1201
+ <key>Path</key>
1202
+ <string>Ps2KeyboardDxe.efi</string>
1203
+ </dict>
1204
+ <dict>
1205
+ <key>Arguments</key>
1206
+ <string></string>
1207
+ <key>Comment</key>
1208
+ <string></string>
1209
+ <key>Enabled</key>
1210
+ <false/>
1211
+ <key>Path</key>
1212
+ <string>Ps2MouseDxe.efi</string>
1213
+ </dict>
1214
+ <dict>
1215
+ <key>Arguments</key>
1216
+ <string></string>
1217
+ <key>Comment</key>
1218
+ <string></string>
1219
+ <key>Enabled</key>
1220
+ <false/>
1221
+ <key>Path</key>
1222
+ <string>HiiDatabase.efi</string>
1223
+ </dict>
1224
+ <dict>
1225
+ <key>Arguments</key>
1226
+ <string></string>
1227
+ <key>Comment</key>
1228
+ <string></string>
1229
+ <key>Enabled</key>
1230
+ <false/>
1231
+ <key>Path</key>
1232
+ <string>NvmExpressDxe.efi</string>
1233
+ </dict>
1234
+ <dict>
1235
+ <key>Arguments</key>
1236
+ <string></string>
1237
+ <key>Comment</key>
1238
+ <string></string>
1239
+ <key>Enabled</key>
1240
+ <false/>
1241
+ <key>Path</key>
1242
+ <string>XhciDxe.efi</string>
1243
+ </dict>
1244
+ <dict>
1245
+ <key>Arguments</key>
1246
+ <string></string>
1247
+ <key>Comment</key>
1248
+ <string></string>
1249
+ <key>Enabled</key>
1250
+ <false/>
1251
+ <key>Path</key>
1252
+ <string>ExFatDxe.efi</string>
1253
+ </dict>
1254
+ <dict>
1255
+ <key>Arguments</key>
1256
+ <string></string>
1257
+ <key>Comment</key>
1258
+ <string></string>
1259
+ <key>Enabled</key>
1260
+ <false/>
1261
+ <key>Path</key>
1262
+ <string>CrScreenshotDxe.efi</string>
1263
+ </dict>
1264
+ <dict>
1265
+ <key>Arguments</key>
1266
+ <string></string>
1267
+ <key>Comment</key>
1268
+ <string></string>
1269
+ <key>Enabled</key>
1270
+ <false/>
1271
+ <key>Path</key>
1272
+ <string>ext4_x64.efi</string>
1273
+ </dict>
1274
+ <dict>
1275
+ <key>Arguments</key>
1276
+ <string></string>
1277
+ <key>Comment</key>
1278
+ <string></string>
1279
+ <key>Enabled</key>
1280
+ <false/>
1281
+ <key>Path</key>
1282
+ <string>OpenLinuxBoot.efi</string>
1283
+ </dict>
1284
+ </array>
1285
+ <key>Input</key>
1286
+ <dict>
1287
+ <key>KeyFiltering</key>
1288
+ <false/>
1289
+ <key>KeyForgetThreshold</key>
1290
+ <integer>5</integer>
1291
+ <key>KeySupport</key>
1292
+ <true/>
1293
+ <key>KeySupportMode</key>
1294
+ <string>Auto</string>
1295
+ <key>KeySwap</key>
1296
+ <false/>
1297
+ <key>PointerSupport</key>
1298
+ <false/>
1299
+ <key>PointerSupportMode</key>
1300
+ <string>ASUS</string>
1301
+ <key>TimerResolution</key>
1302
+ <integer>50000</integer>
1303
+ </dict>
1304
+ <key>Output</key>
1305
+ <dict>
1306
+ <key>ClearScreenOnModeSwitch</key>
1307
+ <false/>
1308
+ <key>ConsoleMode</key>
1309
+ <string></string>
1310
+ <key>DirectGopRendering</key>
1311
+ <false/>
1312
+ <key>ForceResolution</key>
1313
+ <false/>
1314
+ <key>GopPassThrough</key>
1315
+ <string>Disabled</string>
1316
+ <key>IgnoreTextInGraphics</key>
1317
+ <false/>
1318
+ <key>ProvideConsoleGop</key>
1319
+ <true/>
1320
+ <key>ReconnectOnResChange</key>
1321
+ <false/>
1322
+ <key>ReplaceTabWithSpace</key>
1323
+ <false/>
1324
+ <key>Resolution</key>
1325
+ <string>{{WIDTH}}x{{HEIGHT}}@32</string>
1326
+ <key>SanitiseClearScreen</key>
1327
+ <false/>
1328
+ <key>TextRenderer</key>
1329
+ <string>BuiltinGraphics</string>
1330
+ <key>UgaPassThrough</key>
1331
+ <false/>
1332
+ </dict>
1333
+ <key>ProtocolOverrides</key>
1334
+ <dict>
1335
+ <key>AppleAudio</key>
1336
+ <false/>
1337
+ <key>AppleBootPolicy</key>
1338
+ <false/>
1339
+ <key>AppleDebugLog</key>
1340
+ <false/>
1341
+ <key>AppleEg2Info</key>
1342
+ <false/>
1343
+ <key>AppleFramebufferInfo</key>
1344
+ <false/>
1345
+ <key>AppleImageConversion</key>
1346
+ <false/>
1347
+ <key>AppleImg4Verification</key>
1348
+ <false/>
1349
+ <key>AppleKeyMap</key>
1350
+ <false/>
1351
+ <key>AppleRtcRam</key>
1352
+ <false/>
1353
+ <key>AppleSecureBoot</key>
1354
+ <false/>
1355
+ <key>AppleSmcIo</key>
1356
+ <false/>
1357
+ <key>AppleUserInterfaceTheme</key>
1358
+ <false/>
1359
+ <key>DataHub</key>
1360
+ <false/>
1361
+ <key>DeviceProperties</key>
1362
+ <false/>
1363
+ <key>FirmwareVolume</key>
1364
+ <true/>
1365
+ <key>HashServices</key>
1366
+ <false/>
1367
+ <key>OSInfo</key>
1368
+ <false/>
1369
+ <key>UnicodeCollation</key>
1370
+ <false/>
1371
+ </dict>
1372
+ <key>Quirks</key>
1373
+ <dict>
1374
+ <key>ActivateHpetSupport</key>
1375
+ <false/>
1376
+ <key>DisableSecurityPolicy</key>
1377
+ <false/>
1378
+ <key>EnableVectorAcceleration</key>
1379
+ <true/>
1380
+ <key>ExitBootServicesDelay</key>
1381
+ <integer>0</integer>
1382
+ <key>ForceOcWriteFlash</key>
1383
+ <false/>
1384
+ <key>ForgeUefiSupport</key>
1385
+ <false/>
1386
+ <key>IgnoreInvalidFlexRatio</key>
1387
+ <false/>
1388
+ <key>ReleaseUsbOwnership</key>
1389
+ <false/>
1390
+ <key>ReloadOptionRoms</key>
1391
+ <false/>
1392
+ <key>RequestBootVarRouting</key>
1393
+ <true/>
1394
+ <key>TscSyncTimeout</key>
1395
+ <integer>0</integer>
1396
+ <key>UnblockFsConnect</key>
1397
+ <false/>
1398
+ </dict>
1399
+ </dict>
1400
+ </dict>
1401
+ </plist>
custom/config-nopicker-legacy.plist ADDED
@@ -0,0 +1,883 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>ACPI</key>
6
+ <dict>
7
+ <key>Add</key>
8
+ <array>
9
+ <dict>
10
+ <key>Comment</key>
11
+ <string>add DTGP method</string>
12
+ <key>Enabled</key>
13
+ <true/>
14
+ <key>Path</key>
15
+ <string>SSDT-DTGP.aml</string>
16
+ </dict>
17
+ <dict>
18
+ <key>Comment</key>
19
+ <string>Fake EC and USBX Power</string>
20
+ <key>Enabled</key>
21
+ <true/>
22
+ <key>Path</key>
23
+ <string>SSDT-EC.aml</string>
24
+ </dict>
25
+ <dict>
26
+ <key>Comment</key>
27
+ <string>USB 2.0 Injection</string>
28
+ <key>Enabled</key>
29
+ <true/>
30
+ <key>Path</key>
31
+ <string>SSDT-EHCI.aml</string>
32
+ </dict>
33
+ <dict>
34
+ <key>Comment</key>
35
+ <string>CPU AGPM Plugin=1</string>
36
+ <key>Enabled</key>
37
+ <true/>
38
+ <key>Path</key>
39
+ <string>SSDT-PLUG.aml</string>
40
+ </dict>
41
+ </array>
42
+ <key>Delete</key>
43
+ <array>
44
+ <dict>
45
+ <key>All</key>
46
+ <false/>
47
+ <key>Comment</key>
48
+ <string>Delete CpuPm</string>
49
+ <key>Enabled</key>
50
+ <false/>
51
+ <key>OemTableId</key>
52
+ <data>Q3B1UG0AAAA=</data>
53
+ <key>TableLength</key>
54
+ <integer>0</integer>
55
+ <key>TableSignature</key>
56
+ <data>U1NEVA==</data>
57
+ </dict>
58
+ <dict>
59
+ <key>All</key>
60
+ <false/>
61
+ <key>Comment</key>
62
+ <string>Delete Cpu0Ist</string>
63
+ <key>Enabled</key>
64
+ <false/>
65
+ <key>OemTableId</key>
66
+ <data>Q3B1MElzdAA=</data>
67
+ <key>TableLength</key>
68
+ <integer>0</integer>
69
+ <key>TableSignature</key>
70
+ <data>U1NEVA==</data>
71
+ </dict>
72
+ </array>
73
+ <key>Patch</key>
74
+ <array>
75
+ <dict>
76
+ <key>Comment</key>
77
+ <string>_Q11 to XQ11</string>
78
+ <key>Count</key>
79
+ <integer>1</integer>
80
+ <key>Enabled</key>
81
+ <false/>
82
+ <key>Find</key>
83
+ <data>X1ExMQ==</data>
84
+ <key>Limit</key>
85
+ <integer>0</integer>
86
+ <key>Mask</key>
87
+ <data></data>
88
+ <key>OemTableId</key>
89
+ <data></data>
90
+ <key>Replace</key>
91
+ <data>WFExMQ==</data>
92
+ <key>ReplaceMask</key>
93
+ <data></data>
94
+ <key>Skip</key>
95
+ <integer>0</integer>
96
+ <key>TableLength</key>
97
+ <integer>0</integer>
98
+ <key>TableSignature</key>
99
+ <data></data>
100
+ </dict>
101
+ <dict>
102
+ <key>Comment</key>
103
+ <string>_Q12 to XQ12</string>
104
+ <key>Count</key>
105
+ <integer>1</integer>
106
+ <key>Enabled</key>
107
+ <false/>
108
+ <key>Find</key>
109
+ <data>X1ExMg==</data>
110
+ <key>Limit</key>
111
+ <integer>0</integer>
112
+ <key>Mask</key>
113
+ <data></data>
114
+ <key>OemTableId</key>
115
+ <data></data>
116
+ <key>Replace</key>
117
+ <data>WFExMg==</data>
118
+ <key>ReplaceMask</key>
119
+ <data></data>
120
+ <key>Skip</key>
121
+ <integer>0</integer>
122
+ <key>TableLength</key>
123
+ <integer>0</integer>
124
+ <key>TableSignature</key>
125
+ <data></data>
126
+ </dict>
127
+ </array>
128
+ <key>Quirks</key>
129
+ <dict>
130
+ <key>FadtEnableReset</key>
131
+ <false/>
132
+ <key>NormalizeHeaders</key>
133
+ <false/>
134
+ <key>RebaseRegions</key>
135
+ <false/>
136
+ <key>ResetHwSig</key>
137
+ <false/>
138
+ <key>ResetLogoStatus</key>
139
+ <false/>
140
+ </dict>
141
+ </dict>
142
+ <key>Booter</key>
143
+ <dict>
144
+ <key>MmioWhitelist</key>
145
+ <array/>
146
+ <key>Quirks</key>
147
+ <dict>
148
+ <key>AvoidRuntimeDefrag</key>
149
+ <true/>
150
+ <key>DevirtualiseMmio</key>
151
+ <false/>
152
+ <key>DisableSingleUser</key>
153
+ <false/>
154
+ <key>DisableVariableWrite</key>
155
+ <false/>
156
+ <key>DiscardHibernateMap</key>
157
+ <false/>
158
+ <key>EnableSafeModeSlide</key>
159
+ <true/>
160
+ <key>EnableWriteUnprotector</key>
161
+ <true/>
162
+ <key>ForceExitBootServices</key>
163
+ <false/>
164
+ <key>ProtectMemoryRegions</key>
165
+ <false/>
166
+ <key>ProtectSecureBoot</key>
167
+ <false/>
168
+ <key>ProtectUefiServices</key>
169
+ <false/>
170
+ <key>ProvideCustomSlide</key>
171
+ <true/>
172
+ <key>ProvideMaxSlide</key>
173
+ <integer>0</integer>
174
+ <key>RebuildAppleMemoryMap</key>
175
+ <false/>
176
+ <key>SetupVirtualMap</key>
177
+ <false/>
178
+ <key>SignalAppleOS</key>
179
+ <false/>
180
+ <key>SyncRuntimePermissions</key>
181
+ <false/>
182
+ </dict>
183
+ </dict>
184
+ <key>DeviceProperties</key>
185
+ <dict>
186
+ <key>Add</key>
187
+ <dict>
188
+ <key>PciRoot(0x1)/Pci(0x1F,0x0)</key>
189
+ <dict>
190
+ <key>compatible</key>
191
+ <string>pci8086,2916</string>
192
+ <key>device-id</key>
193
+ <data>
194
+ FikA
195
+ </data>
196
+ <key>name</key>
197
+ <string>pci8086,2916</string>
198
+ </dict>
199
+ </dict>
200
+ <key>Delete</key>
201
+ <dict>
202
+ <key>PciRoot(0x0)/Pci(0x1b,0x0)</key>
203
+ <array>
204
+ <string>MaximumBootBeepVolume</string>
205
+ </array>
206
+ </dict>
207
+ </dict>
208
+ <key>Kernel</key>
209
+ <dict>
210
+ <key>Add</key>
211
+ <array>
212
+ <dict>
213
+ <key>Arch</key>
214
+ <string>Any</string>
215
+ <key>BundlePath</key>
216
+ <string>VoodooHDA.kext</string>
217
+ <key>Comment</key>
218
+ <string></string>
219
+ <key>Enabled</key>
220
+ <true/>
221
+ <key>ExecutablePath</key>
222
+ <string>Contents/MacOS/VoodooHDA</string>
223
+ <key>MaxKernel</key>
224
+ <string></string>
225
+ <key>MinKernel</key>
226
+ <string></string>
227
+ <key>PlistPath</key>
228
+ <string>Contents/Info.plist</string>
229
+ </dict>
230
+ <dict>
231
+ <key>Arch</key>
232
+ <string>x86_64</string>
233
+ <key>BundlePath</key>
234
+ <string>Lilu.kext</string>
235
+ <key>Comment</key>
236
+ <string>Patch engine</string>
237
+ <key>Enabled</key>
238
+ <true/>
239
+ <key>ExecutablePath</key>
240
+ <string>Contents/MacOS/Lilu</string>
241
+ <key>MaxKernel</key>
242
+ <string></string>
243
+ <key>MinKernel</key>
244
+ <string>12.0.0</string>
245
+ <key>PlistPath</key>
246
+ <string>Contents/Info.plist</string>
247
+ </dict>
248
+ <dict>
249
+ <key>Arch</key>
250
+ <string>x86_64</string>
251
+ <key>BundlePath</key>
252
+ <string>VirtualSMC.kext</string>
253
+ <key>Comment</key>
254
+ <string>SMC emulator</string>
255
+ <key>Enabled</key>
256
+ <false/>
257
+ <key>ExecutablePath</key>
258
+ <string>Contents/MacOS/VirtualSMC</string>
259
+ <key>MaxKernel</key>
260
+ <string></string>
261
+ <key>MinKernel</key>
262
+ <string>12.0.0</string>
263
+ <key>PlistPath</key>
264
+ <string>Contents/Info.plist</string>
265
+ </dict>
266
+ <dict>
267
+ <key>Arch</key>
268
+ <string>x86_64</string>
269
+ <key>BundlePath</key>
270
+ <string>WhateverGreen.kext</string>
271
+ <key>Comment</key>
272
+ <string>Video patches</string>
273
+ <key>Enabled</key>
274
+ <true/>
275
+ <key>ExecutablePath</key>
276
+ <string>Contents/MacOS/WhateverGreen</string>
277
+ <key>MaxKernel</key>
278
+ <string></string>
279
+ <key>MinKernel</key>
280
+ <string>12.0.0</string>
281
+ <key>PlistPath</key>
282
+ <string>Contents/Info.plist</string>
283
+ </dict>
284
+ <dict>
285
+ <key>BundlePath</key>
286
+ <string>AGPMInjector.kext</string>
287
+ <key>Comment</key>
288
+ <string></string>
289
+ <key>Enabled</key>
290
+ <true/>
291
+ <key>ExecutablePath</key>
292
+ <string></string>
293
+ <key>MaxKernel</key>
294
+ <string></string>
295
+ <key>MinKernel</key>
296
+ <string></string>
297
+ <key>PlistPath</key>
298
+ <string>Contents/Info.plist</string>
299
+ </dict>
300
+ <dict>
301
+ <key>BundlePath</key>
302
+ <string>USBPorts.kext</string>
303
+ <key>Comment</key>
304
+ <string></string>
305
+ <key>Enabled</key>
306
+ <true/>
307
+ <key>ExecutablePath</key>
308
+ <string></string>
309
+ <key>MaxKernel</key>
310
+ <string></string>
311
+ <key>MinKernel</key>
312
+ <string></string>
313
+ <key>PlistPath</key>
314
+ <string>Contents/Info.plist</string>
315
+ </dict>
316
+ <dict>
317
+ <key>Arch</key>
318
+ <string>x86_64</string>
319
+ <key>BundlePath</key>
320
+ <string>MCEReporterDisabler.kext</string>
321
+ <key>Comment</key>
322
+ <string>AppleMCEReporter disabler</string>
323
+ <key>Enabled</key>
324
+ <true/>
325
+ <key>ExecutablePath</key>
326
+ <string></string>
327
+ <key>MaxKernel</key>
328
+ <string></string>
329
+ <key>MinKernel</key>
330
+ <string>19.0.0</string>
331
+ <key>PlistPath</key>
332
+ <string>Contents/Info.plist</string>
333
+ </dict>
334
+ </array>
335
+ <key>Block</key>
336
+ <array>
337
+ <dict>
338
+ <key>Arch</key>
339
+ <string>Any</string>
340
+ <key>Comment</key>
341
+ <string></string>
342
+ <key>Enabled</key>
343
+ <false/>
344
+ <key>Identifier</key>
345
+ <string>com.apple.driver.AppleTyMCEDriver</string>
346
+ <key>MaxKernel</key>
347
+ <string></string>
348
+ <key>MinKernel</key>
349
+ <string></string>
350
+ </dict>
351
+ </array>
352
+ <key>Emulate</key>
353
+ <dict>
354
+ <key>Cpuid1Data</key>
355
+ <data>
356
+ VAYFAAAAAAAAAAAAAAAAAA==
357
+ </data>
358
+ <key>Cpuid1Mask</key>
359
+ <data>
360
+ ////AAAAAAAAAAAAAAAAAA==
361
+ </data>
362
+ </dict>
363
+ <key>Force</key>
364
+ <array>
365
+ <dict>
366
+ <key>Arch</key>
367
+ <string>Any</string>
368
+ <key>BundlePath</key>
369
+ <string>System/Library/Extensions/IONetworkingFamily.kext</string>
370
+ <key>Comment</key>
371
+ <string>Patch engine</string>
372
+ <key>Enabled</key>
373
+ <false/>
374
+ <key>Identifier</key>
375
+ <string>com.apple.iokit.IONetworkingFamily</string>
376
+ <key>ExecutablePath</key>
377
+ <string>Contents/MacOS/IONetworkingFamily</string>
378
+ <key>MaxKernel</key>
379
+ <string>13.99.99</string>
380
+ <key>MinKernel</key>
381
+ <string></string>
382
+ <key>PlistPath</key>
383
+ <string>Contents/Info.plist</string>
384
+ </dict>
385
+ </array>
386
+ <key>Patch</key>
387
+ <array>
388
+ <dict>
389
+ <key>Base</key>
390
+ <string>_cpu_topology_sort</string>
391
+ <key>Comment</key>
392
+ <string>algrey - cpu_topology_sort -disable _x86_validate_topology</string>
393
+ <key>Count</key>
394
+ <integer>1</integer>
395
+ <key>Enabled</key>
396
+ <true/>
397
+ <key>Find</key>
398
+ <data>
399
+ 6AAA//8=
400
+ </data>
401
+ <key>Identifier</key>
402
+ <string>kernel</string>
403
+ <key>Limit</key>
404
+ <integer>0</integer>
405
+ <key>Mask</key>
406
+ <data>
407
+ /wAA//8=
408
+ </data>
409
+ <key>MaxKernel</key>
410
+ <string>20.99.99</string>
411
+ <key>MinKernel</key>
412
+ <string>17.0.0</string>
413
+ <key>Replace</key>
414
+ <data>
415
+ Dx9EAAA=
416
+ </data>
417
+ <key>ReplaceMask</key>
418
+ <data>
419
+ </data>
420
+ <key>Skip</key>
421
+ <integer>0</integer>
422
+ </dict>
423
+ <dict>
424
+ <key>Base</key>
425
+ <string></string>
426
+ <key>Comment</key>
427
+ <string>algrey - cpuid_set_cpufamily - force CPUFAMILY_INTEL_PENRYN</string>
428
+ <key>Count</key>
429
+ <integer>1</integer>
430
+ <key>Enabled</key>
431
+ <true/>
432
+ <key>Find</key>
433
+ <data>
434
+ MduAPQAAAAAGdQA=
435
+ </data>
436
+ <key>Identifier</key>
437
+ <string>kernel</string>
438
+ <key>Limit</key>
439
+ <integer>0</integer>
440
+ <key>Mask</key>
441
+ <data>
442
+ /////wAAAP///wA=
443
+ </data>
444
+ <key>MaxKernel</key>
445
+ <string>20.99.99</string>
446
+ <key>MinKernel</key>
447
+ <string>17.0.0</string>
448
+ <key>Replace</key>
449
+ <data>
450
+ u7xP6njpXQAAAJA=
451
+ </data>
452
+ <key>ReplaceMask</key>
453
+ <data>
454
+ </data>
455
+ <key>Skip</key>
456
+ <integer>0</integer>
457
+ </dict>
458
+ </array>
459
+ <key>Quirks</key>
460
+ <dict>
461
+ <key>AppleCpuPmCfgLock</key>
462
+ <false/>
463
+ <key>AppleXcpmCfgLock</key>
464
+ <false/>
465
+ <key>AppleXcpmExtraMsrs</key>
466
+ <false/>
467
+ <key>AppleXcpmForceBoost</key>
468
+ <false/>
469
+ <key>CustomSMBIOSGuid</key>
470
+ <false/>
471
+ <key>DisableIoMapper</key>
472
+ <false/>
473
+ <key>DisableLinkeditJettison</key>
474
+ <true/>
475
+ <key>DisableRtcChecksum</key>
476
+ <false/>
477
+ <key>DummyPowerManagement</key>
478
+ <true/>
479
+ <key>ExternalDiskIcons</key>
480
+ <false/>
481
+ <key>IncreasePciBarSize</key>
482
+ <false/>
483
+ <key>LapicKernelPanic</key>
484
+ <false/>
485
+ <key>PanicNoKextDump</key>
486
+ <false/>
487
+ <key>PowerTimeoutKernelPanic</key>
488
+ <false/>
489
+ <key>ThirdPartyDrives</key>
490
+ <false/>
491
+ <key>XhciPortLimit</key>
492
+ <false/>
493
+ </dict>
494
+ <key>Scheme</key>
495
+ <dict>
496
+ <key>FuzzyMatch</key>
497
+ <true/>
498
+ <key>KernelArch</key>
499
+ <string>x86_64</string>
500
+ <key>KernelCache</key>
501
+ <string>Auto</string>
502
+ </dict>
503
+ </dict>
504
+ <key>Misc</key>
505
+ <dict>
506
+ <key>BlessOverride</key>
507
+ <array/>
508
+ <key>Boot</key>
509
+ <dict>
510
+ <key>ConsoleAttributes</key>
511
+ <integer>0</integer>
512
+ <key>HibernateMode</key>
513
+ <string>Auto</string>
514
+ <key>HideAuxiliary</key>
515
+ <false/>
516
+ <key>PickerAttributes</key>
517
+ <integer>1</integer>
518
+ <key>PickerAudioAssist</key>
519
+ <false/>
520
+ <key>PickerMode</key>
521
+ <string>External</string>
522
+ <key>PollAppleHotKeys</key>
523
+ <true/>
524
+ <key>ShowPicker</key>
525
+ <false/>
526
+ <key>TakeoffDelay</key>
527
+ <integer>0</integer>
528
+ <key>Timeout</key>
529
+ <integer>0</integer>
530
+ </dict>
531
+ <key>Debug</key>
532
+ <dict>
533
+ <key>AppleDebug</key>
534
+ <false/>
535
+ <key>ApplePanic</key>
536
+ <false/>
537
+ <key>DisableWatchDog</key>
538
+ <false/>
539
+ <key>DisplayDelay</key>
540
+ <integer>0</integer>
541
+ <key>DisplayLevel</key>
542
+ <integer>2147483650</integer>
543
+ <key>SerialInit</key>
544
+ <false/>
545
+ <key>SysReport</key>
546
+ <false/>
547
+ <key>Target</key>
548
+ <integer>3</integer>
549
+ </dict>
550
+ <key>Entries</key>
551
+ <array/>
552
+ <key>Security</key>
553
+ <dict>
554
+ <key>AllowNvramReset</key>
555
+ <true/>
556
+ <key>AllowSetDefault</key>
557
+ <false/>
558
+ <key>ApECID</key>
559
+ <integer>0</integer>
560
+ <key>AuthRestart</key>
561
+ <false/>
562
+ <key>BootProtect</key>
563
+ <string>None</string>
564
+ <key>DmgLoading</key>
565
+ <string>Signed</string>
566
+ <key>EnablePassword</key>
567
+ <false/>
568
+ <key>ExposeSensitiveData</key>
569
+ <integer>6</integer>
570
+ <key>HaltLevel</key>
571
+ <integer>2147483648</integer>
572
+ <key>PasswordHash</key>
573
+ <data></data>
574
+ <key>PasswordSalt</key>
575
+ <data></data>
576
+ <key>ScanPolicy</key>
577
+ <integer>0</integer>
578
+ <key>SecureBootModel</key>
579
+ <string>Disabled</string>
580
+ <key>Vault</key>
581
+ <string>Optional</string>
582
+ </dict>
583
+ <key>Tools</key>
584
+ <array>
585
+ <dict>
586
+ <key>Arguments</key>
587
+ <string></string>
588
+ <key>Auxiliary</key>
589
+ <false/>
590
+ <key>Comment</key>
591
+ <string>Not signed for security reasons</string>
592
+ <key>Enabled</key>
593
+ <true/>
594
+ <key>Name</key>
595
+ <string>UEFI Shell</string>
596
+ <key>Path</key>
597
+ <string>OpenShell.efi</string>
598
+ </dict>
599
+ <dict>
600
+ <key>Arguments</key>
601
+ <string>Shutdown</string>
602
+ <key>Auxiliary</key>
603
+ <true/>
604
+ <key>Comment</key>
605
+ <string>Perform shutdown</string>
606
+ <key>Enabled</key>
607
+ <true/>
608
+ <key>Name</key>
609
+ <string>Shutdown</string>
610
+ <key>Path</key>
611
+ <string>ResetSystem.efi</string>
612
+ </dict>
613
+ </array>
614
+ </dict>
615
+ <key>NVRAM</key>
616
+ <dict>
617
+ <key>Add</key>
618
+ <dict>
619
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
620
+ <dict>
621
+ <key>DefaultBackgroundColor</key>
622
+ <data>AAAAAA==</data>
623
+ <key>UIScale</key>
624
+ <data>AQ==</data>
625
+ </dict>
626
+ <key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
627
+ <dict>
628
+ <key>rtc-blacklist</key>
629
+ <data></data>
630
+ </dict>
631
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
632
+ <dict>
633
+ <key>SystemAudioVolume</key>
634
+ <data>Rg==</data>
635
+ <key>boot-args</key>
636
+ <string>-v keepsyms=1 tlbto_us=0 vti=9 {{KERNEL_ARGS}}</string>
637
+ <key>run-efi-updater</key>
638
+ <string>No</string>
639
+ <key>csr-active-config</key>
640
+ <data>ZwAAAA==</data>
641
+ <key>prev-lang:kbd</key>
642
+ <data>ZW4tVVM6MA==</data>
643
+ </dict>
644
+ </dict>
645
+ <key>Delete</key>
646
+ <dict>
647
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
648
+ <array>
649
+ <string>UIScale</string>
650
+ <string>DefaultBackgroundColor</string>
651
+ </array>
652
+ <key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
653
+ <array>
654
+ <string>rtc-blacklist</string>
655
+ </array>
656
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
657
+ <array>
658
+ <string>boot-args</string>
659
+ </array>
660
+ </dict>
661
+ <key>LegacyEnable</key>
662
+ <false/>
663
+ <key>LegacyOverwrite</key>
664
+ <false/>
665
+ <key>LegacySchema</key>
666
+ <dict>
667
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
668
+ <array>
669
+ <string>EFILoginHiDPI</string>
670
+ <string>EFIBluetoothDelay</string>
671
+ <string>LocationServicesEnabled</string>
672
+ <string>SystemAudioVolume</string>
673
+ <string>SystemAudioVolumeDB</string>
674
+ <string>SystemAudioVolumeSaved</string>
675
+ <string>bluetoothActiveControllerInfo</string>
676
+ <string>bluetoothInternalControllerInfo</string>
677
+ <string>flagstate</string>
678
+ <string>fmm-computer-name</string>
679
+ <string>nvda_drv</string>
680
+ <string>prev-lang:kbd</string>
681
+ </array>
682
+ <key>8BE4DF61-93CA-11D2-AA0D-00E098032B8C</key>
683
+ <array>
684
+ <string>Boot0080</string>
685
+ <string>Boot0081</string>
686
+ <string>Boot0082</string>
687
+ <string>BootNext</string>
688
+ <string>BootOrder</string>
689
+ </array>
690
+ </dict>
691
+ <key>WriteFlash</key>
692
+ <true/>
693
+ </dict>
694
+ <key>PlatformInfo</key>
695
+ <dict>
696
+ <key>Automatic</key>
697
+ <true/>
698
+ <key>Generic</key>
699
+ <dict>
700
+ <key>AdviseWindows</key>
701
+ <false/>
702
+ <key>MLB</key>
703
+ <string>{{BOARD_SERIAL_OLD}}</string>
704
+ <key>ROM</key>
705
+ <data>
706
+ {{ROM}}
707
+ </data>
708
+ <key>SpoofVendor</key>
709
+ <true/>
710
+ <key>SystemProductName</key>
711
+ <string>{{DEVICE_MODEL}}</string>
712
+ <key>SystemSerialNumber</key>
713
+ <string>{{SERIAL_OLD}}</string>
714
+ <key>SystemUUID</key>
715
+ <string>{{SYSTEM_UUID_OLD}}</string>
716
+ </dict>
717
+ <key>UpdateDataHub</key>
718
+ <true/>
719
+ <key>UpdateNVRAM</key>
720
+ <true/>
721
+ <key>UpdateSMBIOS</key>
722
+ <true/>
723
+ <key>UpdateSMBIOSMode</key>
724
+ <string>Create</string>
725
+ </dict>
726
+ <key>UEFI</key>
727
+ <dict>
728
+ <key>APFS</key>
729
+ <dict>
730
+ <key>EnableJumpstart</key>
731
+ <true/>
732
+ <key>GlobalConnect</key>
733
+ <false/>
734
+ <key>HideVerbose</key>
735
+ <false/>
736
+ <key>JumpstartHotPlug</key>
737
+ <true/>
738
+ <key>MinDate</key>
739
+ <integer>0</integer>
740
+ <key>MinVersion</key>
741
+ <integer>0</integer>
742
+ </dict>
743
+ <key>Audio</key>
744
+ <dict>
745
+ <key>AudioCodec</key>
746
+ <integer>0</integer>
747
+ <key>AudioDevice</key>
748
+ <string>PciRoot(0x1)/Pci(0x1,0x0)/Pci(0x0,0x1)</string>
749
+ <key>AudioOut</key>
750
+ <integer>0</integer>
751
+ <key>AudioSupport</key>
752
+ <false/>
753
+ <key>MinimumVolume</key>
754
+ <integer>20</integer>
755
+ <key>PlayChime</key>
756
+ <false/>
757
+ <key>VolumeAmplifier</key>
758
+ <integer>0</integer>
759
+ </dict>
760
+ <key>ConnectDrivers</key>
761
+ <true/>
762
+ <key>Drivers</key>
763
+ <array>
764
+ <string>VBoxHfs.efi</string>
765
+ <string>OpenRuntime.efi</string>
766
+ <string>OpenCanopy.efi</string>
767
+ <string>#AudioDxe.efi</string>
768
+ <string>#OpenUsbKbDxe.efi</string>
769
+ <string>#UsbMouseDxe.efi</string>
770
+ <string>#Ps2KeyboardDxe.efi</string>
771
+ <string>#Ps2MouseDxe.efi</string>
772
+ <string>#HiiDatabase.efi</string>
773
+ <string>#NvmExpressDxe.efi</string>
774
+ <string>#XhciDxe.efi</string>
775
+ <string>#ExFatDxe.efi</string>
776
+ <string>#PartitionDxe.efi</string>
777
+ <string>#CrScreenshotDxe.efi</string>
778
+ </array>
779
+ <key>Input</key>
780
+ <dict>
781
+ <key>KeyFiltering</key>
782
+ <false/>
783
+ <key>KeyForgetThreshold</key>
784
+ <integer>5</integer>
785
+ <key>KeyMergeThreshold</key>
786
+ <integer>2</integer>
787
+ <key>KeySupport</key>
788
+ <true/>
789
+ <key>KeySupportMode</key>
790
+ <string>Auto</string>
791
+ <key>KeySwap</key>
792
+ <false/>
793
+ <key>PointerSupport</key>
794
+ <false/>
795
+ <key>PointerSupportMode</key>
796
+ <string>ASUS</string>
797
+ <key>TimerResolution</key>
798
+ <integer>50000</integer>
799
+ </dict>
800
+ <key>Output</key>
801
+ <dict>
802
+ <key>ClearScreenOnModeSwitch</key>
803
+ <false/>
804
+ <key>ConsoleMode</key>
805
+ <string></string>
806
+ <key>DirectGopRendering</key>
807
+ <false/>
808
+ <key>IgnoreTextInGraphics</key>
809
+ <false/>
810
+ <key>ProvideConsoleGop</key>
811
+ <true/>
812
+ <key>ReconnectOnResChange</key>
813
+ <false/>
814
+ <key>ReplaceTabWithSpace</key>
815
+ <false/>
816
+ <key>Resolution</key>
817
+ <string>1920x1080@32</string>
818
+ <key>SanitiseClearScreen</key>
819
+ <false/>
820
+ <key>TextRenderer</key>
821
+ <string>BuiltinGraphics</string>
822
+ <key>UgaPassThrough</key>
823
+ <false/>
824
+ </dict>
825
+ <key>ProtocolOverrides</key>
826
+ <dict>
827
+ <key>AppleAudio</key>
828
+ <false/>
829
+ <key>AppleBootPolicy</key>
830
+ <false/>
831
+ <key>AppleDebugLog</key>
832
+ <false/>
833
+ <key>AppleEvent</key>
834
+ <false/>
835
+ <key>AppleFramebufferInfo</key>
836
+ <false/>
837
+ <key>AppleImageConversion</key>
838
+ <false/>
839
+ <key>AppleImg4Verification</key>
840
+ <false/>
841
+ <key>AppleKeyMap</key>
842
+ <false/>
843
+ <key>AppleRtcRam</key>
844
+ <false/>
845
+ <key>AppleSecureBoot</key>
846
+ <false/>
847
+ <key>AppleSmcIo</key>
848
+ <false/>
849
+ <key>AppleUserInterfaceTheme</key>
850
+ <false/>
851
+ <key>DataHub</key>
852
+ <false/>
853
+ <key>DeviceProperties</key>
854
+ <false/>
855
+ <key>FirmwareVolume</key>
856
+ <false/>
857
+ <key>HashServices</key>
858
+ <false/>
859
+ <key>OSInfo</key>
860
+ <false/>
861
+ <key>UnicodeCollation</key>
862
+ <false/>
863
+ </dict>
864
+ <key>Quirks</key>
865
+ <dict>
866
+ <key>ExitBootServicesDelay</key>
867
+ <integer>0</integer>
868
+ <key>IgnoreInvalidFlexRatio</key>
869
+ <false/>
870
+ <key>ReleaseUsbOwnership</key>
871
+ <false/>
872
+ <key>RequestBootVarRouting</key>
873
+ <true/>
874
+ <key>TscSyncTimeout</key>
875
+ <integer>0</integer>
876
+ <key>UnblockFsConnect</key>
877
+ <true/>
878
+ <key>ConnectDrivers</key>
879
+ <true/>
880
+ </dict>
881
+ </dict>
882
+ </dict>
883
+ </plist>
custom/generate-specific-bootdisk.sh ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # ___ _____ __ ___ _ _ ___ _
3
+ # / _ \/ __\ \/ / / __| ___ _ _(_)__ _| | / __|___ _ _ ___ _ _ __ _| |_ ___ _ _
4
+ # | (_) \__ \> < \__ \/ -_) '_| / _` | | | (_ / -_) ' \/ -_) '_/ _` | _/ _ \ '_|
5
+ # \___/|___/_/\_\ |___/\___|_| |_\__,_|_| \___\___|_||_\___|_| \__,_|\__\___/_|
6
+ #
7
+ # Repo: https://github.com/sickcodes/osx-serial-generator/
8
+ # Title: OSX Serial Generator
9
+ # Author: Sick.Codes https://sick.codes/
10
+ # Version: 3.1
11
+ # License: GPLv3+
12
+
13
+ set -e
14
+
15
+ help_text="Usage: ./generate-specific-bootdisk.sh
16
+
17
+ Required options:
18
+ --model <string> Device model, e.g. 'iMacPro1,1'
19
+ --serial <string> Device Serial number
20
+ --board-serial <string> Main Logic Board Serial number (MLB)
21
+ --uuid <string> SMBIOS UUID (SmUUID)
22
+ --mac-address <string> Used for both the MAC address and to set ROM
23
+ ROM is lowercased sans any colons
24
+ Optional options:
25
+ --width <integer> Resolution x axis length in px, default 1920
26
+ --height <integer> Resolution y axis length in px, default 1080
27
+ --kernel-args <string> Additional boot-args
28
+ --input-plist-url <url> Specify an alternative master plist, via URL
29
+ --master-plist-url <url> Same as above.
30
+ --custom-plist <filename> Optionally change the input plist.
31
+ --master-plist <filename> Same as above.
32
+ --output-bootdisk <filename> Optionally change the bootdisk filename
33
+ --output-plist <filename> Optionally change the output plist filename
34
+ --help, -h, help Display this help and exit
35
+
36
+ Placeholders: {{DEVICE_MODEL}}, {{SERIAL}}, {{BOARD_SERIAL}}, {{UUID}},
37
+ {{ROM}}, {{WIDTH}}, {{HEIGHT}}
38
+
39
+ Example:
40
+ ./generate-specific-bootdisk.sh \\
41
+ --model iMacPro1,1 \\
42
+ --serial C02TW0WAHX87 \\
43
+ --board-serial C027251024NJG36UE \\
44
+ --uuid 5CCB366D-9118-4C61-A00A-E5BAF3BED451 \\
45
+ --mac-address A8:5C:2C:9A:46:2F \\
46
+ --output-bootdisk ./OpenCore-nopicker.qcow2 \\
47
+ --width 1920 \\
48
+ --height 1080
49
+
50
+ Author: Sick.Codes https://sick.codes/
51
+ Project: https://github.com/sickcodes/osx-serial-generator/
52
+ License: GPLv3+
53
+ "
54
+
55
+ OPENCORE_IMAGE_MAKER_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/opencore-image-ng.sh'
56
+ MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-nopicker-custom.plist'
57
+
58
+ # gather arguments
59
+ while (( "$#" )); do
60
+ case "${1}" in
61
+
62
+ --help | -h | h | help )
63
+ echo "${help_text}" && exit 0
64
+ ;;
65
+
66
+ --model=* | -m=* )
67
+ export DEVICE_MODEL="${1#*=}"
68
+ shift
69
+ ;;
70
+
71
+ --model* | -m* )
72
+ export DEVICE_MODEL="${2}"
73
+ shift
74
+ shift
75
+ ;;
76
+
77
+ --serial=* )
78
+ export SERIAL="${1#*=}"
79
+ shift
80
+ ;;
81
+
82
+ --serial* )
83
+ export SERIAL="${2}"
84
+ shift
85
+ shift
86
+ ;;
87
+
88
+ --board-serial=* )
89
+ export BOARD_SERIAL="${1#*=}"
90
+ shift
91
+ ;;
92
+
93
+ --board-serial* )
94
+ export BOARD_SERIAL="${2}"
95
+ shift
96
+ shift
97
+ ;;
98
+
99
+ --uuid=* )
100
+ export UUID="${1#*=}"
101
+ shift
102
+ ;;
103
+
104
+ --uuid* )
105
+ export UUID="${2}"
106
+ shift
107
+ shift
108
+ ;;
109
+
110
+ --mac-address=* )
111
+ export MAC_ADDRESS="${1#*=}"
112
+ shift
113
+ ;;
114
+
115
+ --mac-address* )
116
+ export MAC_ADDRESS="${2}"
117
+ shift
118
+ shift
119
+ ;;
120
+
121
+ --width=* )
122
+ export WIDTH="${1#*=}"
123
+ shift
124
+ ;;
125
+
126
+ --width* )
127
+ export WIDTH="${2}"
128
+ shift
129
+ shift
130
+ ;;
131
+
132
+ --height=* )
133
+ export HEIGHT="${1#*=}"
134
+ shift
135
+ ;;
136
+
137
+ --height* )
138
+ export HEIGHT="${2}"
139
+ shift
140
+ shift
141
+ ;;
142
+
143
+ --output-bootdisk=* )
144
+ export OUTPUT_QCOW="${1#*=}"
145
+ shift
146
+ ;;
147
+
148
+ --output-bootdisk* )
149
+ export OUTPUT_QCOW="${2}"
150
+ shift
151
+ shift
152
+ ;;
153
+
154
+ --output-plist=* )
155
+ export OUTPUT_PLIST="${1#*=}"
156
+ shift
157
+ ;;
158
+
159
+ --output-plist* )
160
+ export OUTPUT_PLIST="${2}"
161
+ shift
162
+ shift
163
+ ;;
164
+
165
+ --master-plist-url=* | --input-plist-url=* | --custom-plist-url=* )
166
+ export MASTER_PLIST_URL="${1#*=}"
167
+ shift
168
+ ;;
169
+
170
+ --master-plist-url* | --input-plist-url* | --custom-plist-url* )
171
+ export MASTER_PLIST_URL="${2}"
172
+ shift
173
+ shift
174
+ ;;
175
+
176
+ --master-plist=* | --input-plist=* | --custom-plist=* )
177
+ export MASTER_PLIST="${1#*=}"
178
+ shift
179
+ ;;
180
+
181
+ --master-plist* | --input-plist* | --custom-plist* )
182
+ export MASTER_PLIST="${2}"
183
+ shift
184
+ shift
185
+ ;;
186
+
187
+ *)
188
+ echo "Invalid option ${1}. Running with default values..."
189
+ shift
190
+ ;;
191
+ esac
192
+ done
193
+
194
+
195
+ download_qcow_efi_folder () {
196
+
197
+ export EFI_FOLDER=./OpenCore/EFI
198
+ export RESOURCES_FOLDER=./resources/OcBinaryData/Resources
199
+
200
+ # check if we are inside OSX-KVM already
201
+ # if not, download OSX-KVM locally
202
+ [ -d ./OpenCore/EFI/ ] || {
203
+ [ -d ./OSX-KVM/ ] || git clone --recurse-submodules --depth 1 https://github.com/kholia/OSX-KVM.git
204
+ export EFI_FOLDER="./OSX-KVM/${EFI_FOLDER}"
205
+ }
206
+
207
+ [ -d ./resources/OcBinaryData/Resources/ ] || {
208
+ export RESOURCES_FOLDER="./OSX-KVM/${RESOURCES_FOLDER}"
209
+ }
210
+
211
+ # EFI Shell commands
212
+ touch startup.nsh && echo 'fs0:\EFI\BOOT\BOOTx64.efi' > startup.nsh
213
+
214
+ cp -a "${EFI_FOLDER}" .
215
+
216
+ mkdir -p ./EFI/OC/Resources
217
+
218
+ # copy Apple drivers into EFI/OC/Resources
219
+ cp -a "${RESOURCES_FOLDER}"/* ./EFI/OC/Resources
220
+ }
221
+
222
+ generate_bootdisk () {
223
+
224
+ # need a config.plist
225
+ if [ "${MASTER_PLIST}" ]; then
226
+ [ -e "${MASTER_PLIST}" ] || echo "Could not find: ${MASTER_PLIST}"
227
+ elif [ "${MASTER_PLIST}" ] && [ "${MASTER_PLIST_URL}" ]; then
228
+ echo 'You specified both a custom plist FILE & custom plist URL.'
229
+ echo 'Use only one of those options.'
230
+ elif [ "${MASTER_PLIST_URL}" ]; then
231
+ wget -O "${MASTER_PLIST:=./config-custom.plist}" "${MASTER_PLIST_URL}"
232
+ else
233
+ # default is config-nopicker-custom.plist from OSX-KVM with placeholders used in Docker-OSX
234
+ wget -O "${MASTER_PLIST:=./config-nopicker-custom.plist}" "${MASTER_PLIST_URL}"
235
+ fi
236
+
237
+ [ -e ./opencore-image-ng.sh ] \
238
+ || { wget "${OPENCORE_IMAGE_MAKER_URL}" \
239
+ && chmod +x opencore-image-ng.sh ; }
240
+
241
+ # plist required for bootdisks, so create anyway.
242
+ if [ "${DEVICE_MODEL}" ] \
243
+ && [ "${SERIAL}" ] \
244
+ && [ "${BOARD_SERIAL}" ] \
245
+ && [ "${UUID}" ] \
246
+ && [ "${MAC_ADDRESS}" ]; then
247
+ ROM="${MAC_ADDRESS//\:/}"
248
+ ROM="${ROM,,}"
249
+ sed -e s/\{\{DEVICE_MODEL\}\}/"${DEVICE_MODEL}"/g \
250
+ -e s/\{\{SERIAL\}\}/"${SERIAL}"/g \
251
+ -e s/\{\{BOARD_SERIAL\}\}/"${BOARD_SERIAL}"/g \
252
+ -e s/\{\{UUID\}\}/"${UUID}"/g \
253
+ -e s/\{\{ROM\}\}/"${ROM}"/g \
254
+ -e s/\{\{WIDTH\}\}/"${WIDTH:-1920}"/g \
255
+ -e s/\{\{HEIGHT\}\}/"${HEIGHT:-1080}"/g \
256
+ -e s/\{\{KERNEL_ARGS\}\}/"${KERNEL_ARGS:-}"/g \
257
+ "${MASTER_PLIST}" > ./tmp.config.plist || exit 1
258
+ else
259
+ cat <<EOF && exit 1
260
+ Error: one of the following values is missing:
261
+
262
+ --model "${DEVICE_MODEL:-MISSING}"
263
+ --serial "${SERIAL:-MISSING}"
264
+ --board-serial "${BOARD_SERIAL:-MISSING}"
265
+ --uuid "${UUID:-MISSING}"
266
+ --mac-address "${MAC_ADDRESS:-MISSING}"
267
+
268
+ Optional:
269
+
270
+ --width "${WIDTH:-1920}"
271
+ --height "${HEIGHT:-1080}"
272
+ --kernel-args "${KERNEL_ARGS:-}"
273
+
274
+ EOF
275
+ fi
276
+
277
+ ./opencore-image-ng.sh \
278
+ --cfg "./tmp.config.plist" \
279
+ --img "${OUTPUT_QCOW:-./${SERIAL}.OpenCore-nopicker.qcow2}" || exit 1
280
+ rm ./tmp.config.plist
281
+
282
+ }
283
+
284
+ main () {
285
+ download_qcow_efi_folder
286
+ generate_bootdisk
287
+ }
288
+
289
+ main
290
+
custom/generate-unique-machine-values.sh ADDED
@@ -0,0 +1,397 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # ___ _____ __ ___ _ _ ___ _
3
+ # / _ \/ __\ \/ / / __| ___ _ _(_)__ _| | / __|___ _ _ ___ _ _ __ _| |_ ___ _ _
4
+ # | (_) \__ \> < \__ \/ -_) '_| / _` | | | (_ / -_) ' \/ -_) '_/ _` | _/ _ \ '_|
5
+ # \___/|___/_/\_\ |___/\___|_| |_\__,_|_| \___\___|_||_\___|_| \__,_|\__\___/_|
6
+ #
7
+ # Repo: https://github.com/sickcodes/osx-serial-generator/
8
+ # Title: OSX Serial Generator
9
+ # Author: Sick.Codes https://sick.codes/
10
+ # Version: 3.1
11
+ # License: GPLv3+
12
+
13
+ set -e
14
+
15
+ help_text="Usage: ./generate-unique-machine-values.sh
16
+
17
+ General options:
18
+ --count, -n, -c <count> Number of serials to generate
19
+ --model, -m <model> Device model, e.g. 'iMacPro1,1'
20
+ --csv <filename> Optionally change the CSV output filename
21
+ --tsv <filename> Optionally change the TSV output filename
22
+ --output-dir <directory> Optionally change the script output location
23
+ --width <string> Resolution x axis length in px, default 1920
24
+ --height <string> Resolution y axis length in px, default 1080
25
+ --kernel-args <string> Additional boot-args
26
+ --input-plist-url <url> Specify an alternative master plist, via URL
27
+ --master-plist-url <url> Same as above.
28
+ --custom-plist <filename> Optionally change the input plist.
29
+ --master-plist <filename> Same as above.
30
+ --output-bootdisk <filename> Optionally change the bootdisk filename
31
+ --create-envs, --envs Create all corresponding sourcable envs
32
+ --create-plists, --plists Create all corresponding config.plists
33
+ --create-bootdisks, --bootdisks Create all corresponding bootdisks [SLOW]
34
+ --help, -h, help Display this help and exit
35
+
36
+ Additional options only if you are creating ONE serial set:
37
+ --output-bootdisk <filename> Optionally change the bootdisk filename
38
+ --output-env <filename> Optionally change the serials env filename
39
+
40
+ Custom plist placeholders:
41
+ {{DEVICE_MODEL}}, {{SERIAL}}, {{BOARD_SERIAL}},
42
+ {{UUID}}, {{ROM}}, {{WIDTH}}, {{HEIGHT}}, {{KERNEL_ARGS}}
43
+
44
+ Example:
45
+ ./generate-unique-machine-values.sh --count 1 --plists --bootdisks --envs
46
+
47
+ Defaults:
48
+ - One serial, for 'iMacPro1,1', in the current working directory
49
+ - CSV and TSV output
50
+ - plists in ./plists/ & bootdisks in ./bootdisks/ & envs in ./envs
51
+ - if you set --bootdisk name, --bootdisks is assumed
52
+ - if you set --custom-plist, --plists is assumed
53
+ - if you set --output-env, --envs is assumed
54
+
55
+ Author: Sick.Codes https://sick.codes/
56
+ Project: https://github.com/sickcodes/osx-serial-generator/
57
+ License: GPLv3+
58
+ "
59
+
60
+ OPENCORE_IMAGE_MAKER_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/opencore-image-ng.sh'
61
+ MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-nopicker-custom.plist'
62
+
63
+ # gather arguments
64
+ while (( "$#" )); do
65
+ case "${1}" in
66
+
67
+ --help | -h | h | help )
68
+ echo "${help_text}" && exit 0
69
+ ;;
70
+
71
+ --count=* | -c=* | -n=* )
72
+ export SERIAL_SET_COUNT="${1#*=}"
73
+ shift
74
+ ;;
75
+
76
+ --count* | -c* | -n* )
77
+ export SERIAL_SET_COUNT="${2}"
78
+ shift
79
+ shift
80
+ ;;
81
+
82
+ --csv=* )
83
+ export CSV_OUTPUT_FILENAME="${1#*=}"
84
+ shift
85
+ ;;
86
+
87
+ --csv* )
88
+ export CSV_OUTPUT_FILENAME="${2}"
89
+ shift
90
+ shift
91
+ ;;
92
+
93
+ --tsv=* )
94
+ export TSV_OUTPUT_FILENAME="${1#*=}"
95
+ shift
96
+ ;;
97
+
98
+ --tsv* )
99
+ export TSV_OUTPUT_FILENAME="${2}"
100
+ shift
101
+ shift
102
+ ;;
103
+
104
+ --output-dir=* )
105
+ export OUTPUT_DIRECTORY="${1#*=}"
106
+ shift
107
+ ;;
108
+
109
+ --output-dir* )
110
+ export OUTPUT_DIRECTORY="${2}"
111
+ shift
112
+ shift
113
+ ;;
114
+
115
+ --output-bootdisk=* )
116
+ export OUTPUT_BOOTDISK="${1#*=}"
117
+ shift
118
+ ;;
119
+
120
+ --output-bootdisk* )
121
+ export OUTPUT_BOOTDISK="${2}"
122
+ shift
123
+ shift
124
+ ;;
125
+
126
+ --output-env=* )
127
+ export OUTPUT_ENV="${1#*=}"
128
+ shift
129
+ ;;
130
+
131
+ --output-env* )
132
+ export OUTPUT_ENV="${2}"
133
+ shift
134
+ shift
135
+ ;;
136
+
137
+ --model=* | -m=* )
138
+ export DEVICE_MODEL="${1#*=}"
139
+ shift
140
+ ;;
141
+
142
+ --model* | -m* )
143
+ export DEVICE_MODEL="${2}"
144
+ shift
145
+ shift
146
+ ;;
147
+
148
+ --width=* )
149
+ export WIDTH="${1#*=}"
150
+ shift
151
+ ;;
152
+
153
+ --width* )
154
+ export WIDTH="${2}"
155
+ shift
156
+ shift
157
+ ;;
158
+
159
+ --height=* )
160
+ export HEIGHT="${1#*=}"
161
+ shift
162
+ ;;
163
+
164
+ --height* )
165
+ export HEIGHT="${2}"
166
+ shift
167
+ shift
168
+ ;;
169
+
170
+ --master-plist-url=* | --input-plist-url=* | --custom-plist-url=* )
171
+ export MASTER_PLIST_URL="${1#*=}"
172
+ shift
173
+ ;;
174
+
175
+ --master-plist-url* | --input-plist-url* | --custom-plist-url* )
176
+ export MASTER_PLIST_URL="${2}"
177
+ shift
178
+ shift
179
+ ;;
180
+
181
+ --master-plist=* | --input-plist=* | --custom-plist=* )
182
+ export MASTER_PLIST="${1#*=}"
183
+ shift
184
+ ;;
185
+
186
+ --master-plist* | --input-plist* | --custom-plist* )
187
+ export MASTER_PLIST="${2}"
188
+ shift
189
+ shift
190
+ ;;
191
+
192
+ --create-plists | --plists )
193
+ export CREATE_PLISTS=1
194
+ shift
195
+ ;;
196
+
197
+ --create-bootdisks | --bootdisks )
198
+ export CREATE_BOOTDISKS=1
199
+ shift
200
+ ;;
201
+
202
+ --create-envs | --envs )
203
+ export CREATE_ENVS=1
204
+ shift
205
+ ;;
206
+
207
+ *)
208
+ echo "Invalid option. Running with default values..."
209
+ shift
210
+ ;;
211
+ esac
212
+ done
213
+
214
+
215
+ build_mac_serial () {
216
+ [ -d ./OpenCorePkg ] || git clone --depth 1 https://github.com/acidanthera/OpenCorePkg.git
217
+ make -C ./OpenCorePkg/Utilities/macserial/
218
+ mv ./OpenCorePkg/Utilities/macserial/macserial .
219
+ chmod +x ./macserial
220
+ stat ./macserial
221
+ }
222
+
223
+ download_vendor_mac_addresses () {
224
+ # download the MAC Address vendor list
225
+ [ -e "${MAC_ADDRESSES_FILE:=vendor_macs.tsv}" ] || wget -O "${MAC_ADDRESSES_FILE}" https://gitlab.com/wireshark/wireshark/-/raw/master/manuf
226
+ }
227
+
228
+ download_qcow_efi_folder () {
229
+
230
+ export EFI_FOLDER=./OpenCore/EFI
231
+ export RESOURCES_FOLDER=./resources/OcBinaryData/Resources
232
+
233
+ # check if we are inside OSX-KVM already
234
+ # if not, download OSX-KVM locally
235
+ [ -d ./OpenCore/EFI/ ] || {
236
+ [ -d ./OSX-KVM/ ] || git clone --recurse-submodules --depth 1 https://github.com/kholia/OSX-KVM.git
237
+ export EFI_FOLDER="./OSX-KVM/${EFI_FOLDER}"
238
+ }
239
+
240
+ [ -d ./resources/OcBinaryData/Resources/ ] || {
241
+ export RESOURCES_FOLDER="./OSX-KVM/${RESOURCES_FOLDER}"
242
+ }
243
+
244
+ # EFI Shell commands
245
+ touch startup.nsh && echo 'fs0:\EFI\BOOT\BOOTx64.efi' > startup.nsh
246
+
247
+ cp -a "${EFI_FOLDER}" .
248
+
249
+ mkdir -p ./EFI/OC/Resources
250
+
251
+ # copy Apple drivers into EFI/OC/Resources
252
+ cp -a "${RESOURCES_FOLDER}"/* ./EFI/OC/Resources
253
+ }
254
+
255
+
256
+ generate_serial_sets () {
257
+
258
+
259
+
260
+ if [ "${CSV_OUTPUT_FILENAME}" ]; then
261
+ [ "${CSV_OUTPUT_FILENAME}" ] && export CSV_SERIAL_SETS_FILE="${CSV_OUTPUT_FILENAME}"
262
+ else
263
+ export CSV_SERIAL_SETS_FILE="${OUTPUT_DIRECTORY}/serial_sets-${DATE_NOW}.csv"
264
+ fi
265
+
266
+ if [ "${TSV_OUTPUT_FILENAME}" ]; then
267
+ [ "${TSV_OUTPUT_FILENAME}" ] && export TSV_SERIAL_SETS_FILE="${TSV_OUTPUT_FILENAME}"
268
+ else
269
+ export TSV_SERIAL_SETS_FILE="${OUTPUT_DIRECTORY}/serial_sets-${DATE_NOW}.tsv"
270
+ fi
271
+
272
+
273
+ ./macserial \
274
+ --num "${SERIAL_SET_COUNT}" \
275
+ --model "${DEVICE_MODEL}" \
276
+ | while IFS='\ \|\ ' read -r SERIAL BOARD_SERIAL; do
277
+ # make a uuid...
278
+ UUID="$(uuidgen)"
279
+ # bash 3-5 compatible
280
+ # UUID="${UUID^^}"
281
+ UUID="$(tr '[:lower:]' '[:upper:]' <<< "${UUID}")"
282
+
283
+ # get a random vendor specific MAC address.
284
+ RANDOM_MAC_PREFIX="$(grep -e "${VENDOR_REGEX}" < "${MAC_ADDRESSES_FILE:=vendor_macs.tsv}" | sort --random-sort | head -n1)"
285
+ RANDOM_MAC_PREFIX="$(cut -d$'\t' -f1 <<< "${RANDOM_MAC_PREFIX}")"
286
+ MAC_ADDRESS="$(printf "${RANDOM_MAC_PREFIX}:%02X:%02X:%02X" "$((RANDOM%256))" "$((RANDOM%256))" "$((RANDOM%256))")"
287
+
288
+ [ -z "${WIDTH}" ] && WIDTH=1920
289
+ [ -z "${HEIGHT}" ] && HEIGHT=1080
290
+
291
+ # append to csv file
292
+ tee -a "${CSV_SERIAL_SETS_FILE}" <<EOF
293
+ "${DEVICE_MODEL}","${SERIAL}","${BOARD_SERIAL}","${UUID}","${MAC_ADDRESS}","${WIDTH}","${HEIGHT}","${KERNEL_ARGS}"
294
+ EOF
295
+ echo "Wrote CSV to: ${CSV_SERIAL_SETS_FILE}"
296
+
297
+ # append to tsv file
298
+ T=$'\t'
299
+ tee -a "${TSV_SERIAL_SETS_FILE}" <<EOF
300
+ ${DEVICE_MODEL}${T}${SERIAL}${T}${BOARD_SERIAL}${T}${UUID}${T}${MAC_ADDRESS}${T}${WIDTH}${T}${HEIGHT}${T}${KERNEL_ARGS}
301
+ EOF
302
+ echo "Wrote TSV to: ${TSV_SERIAL_SETS_FILE}"
303
+
304
+ # if any of these are on, we need the env file.
305
+ if [ "${CREATE_ENVS}" ] || [ "${CREATE_PLISTS}" ] || [ "${CREATE_BOOTDISKS}" ] || [ "${OUTPUT_BOOTDISK}" ] || [ "${OUTPUT_ENV}" ]; then
306
+ mkdir -p "${OUTPUT_DIRECTORY}/envs"
307
+ OUTPUT_ENV_FILE="${OUTPUT_ENV:-"${OUTPUT_DIRECTORY}/envs/${SERIAL}.env.sh"}"
308
+ touch "${OUTPUT_ENV_FILE}"
309
+ cat <<EOF > "${OUTPUT_ENV_FILE}"
310
+ export DEVICE_MODEL="${DEVICE_MODEL}"
311
+ export SERIAL="${SERIAL}"
312
+ export BOARD_SERIAL="${BOARD_SERIAL}"
313
+ export UUID="${UUID}"
314
+ export MAC_ADDRESS="${MAC_ADDRESS}"
315
+ export WIDTH="${WIDTH}"
316
+ export HEIGHT="${HEIGHT}"
317
+ EOF
318
+
319
+ fi
320
+
321
+ # plist required for bootdisks, so create anyway.
322
+ if [ "${CREATE_PLISTS}" ] || [ "${CREATE_BOOTDISKS}" ]; then
323
+
324
+ # need a config.plist
325
+ if [ "${MASTER_PLIST}" ]; then
326
+ [ -e "${MASTER_PLIST}" ] || echo "Could not find: ${MASTER_PLIST}"
327
+ elif [ "${MASTER_PLIST}" ] && [ "${MASTER_PLIST_URL}" ]; then
328
+ echo 'You specified both a custom plist FILE & custom plist URL.'
329
+ echo 'Use only one of those options.'
330
+ elif [ "${MASTER_PLIST_URL}" ]; then
331
+ wget -O "${MASTER_PLIST:=./config-custom.plist}" "${MASTER_PLIST_URL}"
332
+ else
333
+ # default is config-nopicker-custom.plist from OSX-KVM with placeholders used in Docker-OSX
334
+ wget -O "${MASTER_PLIST:=./config-nopicker-custom.plist}" "${MASTER_PLIST_URL}"
335
+ fi
336
+
337
+ mkdir -p "${OUTPUT_DIRECTORY}/plists"
338
+ source "${OUTPUT_ENV_FILE}"
339
+ ROM="${MAC_ADDRESS//\:/}"
340
+ ROM="${ROM,,}"
341
+ sed -e s/\{\{DEVICE_MODEL\}\}/"${DEVICE_MODEL}"/g \
342
+ -e s/\{\{SERIAL\}\}/"${SERIAL}"/g \
343
+ -e s/\{\{BOARD_SERIAL\}\}/"${BOARD_SERIAL}"/g \
344
+ -e s/\{\{UUID\}\}/"${UUID}"/g \
345
+ -e s/\{\{ROM\}\}/"${ROM}"/g \
346
+ -e s/\{\{WIDTH\}\}/"${WIDTH}"/g \
347
+ -e s/\{\{HEIGHT\}\}/"${HEIGHT}"/g \
348
+ -e s/\{\{KERNEL_ARGS\}\}/"${KERNEL_ARGS:-}"/g \
349
+ "${MASTER_PLIST}" > "${OUTPUT_DIRECTORY}/plists/${SERIAL}.config.plist" || exit 1
350
+ fi
351
+
352
+ # make bootdisk qcow2 format if --bootdisks, but also if you set the bootdisk filename
353
+ if [ "${CREATE_BOOTDISKS}" ] || [ "${OUTPUT_BOOTDISK}" ]; then
354
+ [ -e ./opencore-image-ng.sh ] \
355
+ || { wget "${OPENCORE_IMAGE_MAKER_URL}" \
356
+ && chmod +x opencore-image-ng.sh ; }
357
+ mkdir -p "${OUTPUT_DIRECTORY}/bootdisks"
358
+ ./opencore-image-ng.sh \
359
+ --cfg "${OUTPUT_DIRECTORY}/plists/${SERIAL}.config.plist" \
360
+ --img "${OUTPUT_BOOTDISK:-${OUTPUT_DIRECTORY}/bootdisks/${SERIAL}.OpenCore-nopicker.qcow2}" || exit 1
361
+ fi
362
+
363
+ done
364
+
365
+ [ -e "${CSV_SERIAL_SETS_FILE}" ] && \
366
+ cat <(echo "DEVICE_MODEL,SERIAL,BOARD_SERIAL,UUID,MAC_ADDRESS,WIDTH,HEIGHT,KERNEL_ARGS") "${CSV_SERIAL_SETS_FILE}"
367
+
368
+
369
+ [ -e "${TSV_SERIAL_SETS_FILE}" ] && \
370
+ cat <(printf "DEVICE_MODEL\tSERIAL\tBOARD_SERIAL\tUUID\tMAC_ADDRESS\tWIDTH\tHEIGHT\tKERNEL_ARGS\n") "${TSV_SERIAL_SETS_FILE}"
371
+
372
+ }
373
+
374
+ main () {
375
+ # setting default variables if there are no options
376
+ export DATE_NOW="$(date +%F-%T)"
377
+ export DEVICE_MODEL="${DEVICE_MODEL:=iMacPro1,1}"
378
+ export VENDOR_REGEX="${VENDOR_REGEX:=Apple, Inc.}"
379
+ export SERIAL_SET_COUNT="${SERIAL_SET_COUNT:=1}"
380
+ export OUTPUT_DIRECTORY="${OUTPUT_DIRECTORY:=.}"
381
+ cat <<EOF
382
+ DEVICE_MODEL: ${DEVICE_MODEL}
383
+ SERIAL_SET_COUNT: ${SERIAL_SET_COUNT}
384
+ OUTPUT_DIRECTORY: ${OUTPUT_DIRECTORY}
385
+ EOF
386
+ [ -d "${OUTPUT_DIRECTORY}" ] || mkdir -p "${OUTPUT_DIRECTORY}"
387
+ [ -e ./macserial ] || build_mac_serial
388
+ download_vendor_mac_addresses
389
+ if [ "${CREATE_BOOTDISKS}" ] || [ "${OUTPUT_BOOTDISK}" ]; then
390
+ download_qcow_efi_folder
391
+ fi
392
+ generate_serial_sets
393
+ echo "${SERIAL_SETS_FILE}"
394
+ }
395
+
396
+ main
397
+
custom/opencore-image-ng.sh ADDED
@@ -0,0 +1,164 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ # https://github.com/kraxel/imagefish
4
+
5
+ ######################################################################
6
+ # defaults
7
+
8
+ iso=""
9
+ img=""
10
+ cfg=""
11
+
12
+ ######################################################################
13
+ # create work dir
14
+
15
+ function msg() {
16
+ local txt="$1"
17
+ local bold="\x1b[1m"
18
+ local normal="\x1b[0m"
19
+ echo -e "${bold}### ${txt}${normal}"
20
+ }
21
+
22
+ function do_cleanup() {
23
+ msg "cleaning up ..."
24
+ if test "$GUESTFISH_PID" != ""; then
25
+ guestfish --remote -- exit >/dev/null 2>&1 || true
26
+ fi
27
+ sudo rm -rf "$WORK"
28
+ }
29
+
30
+ WORK="${TMPDIR-/var/tmp}/${0##*/}-$$"
31
+ mkdir "$WORK" || exit 1
32
+ trap 'do_cleanup' EXIT
33
+
34
+ BASE="$(dirname $0)"
35
+
36
+ ######################################################################
37
+ # parse args
38
+
39
+ function print_help() {
40
+ cat <<EOF
41
+ usage: $0 [ options ]
42
+ options:
43
+ --iso <iso-image>
44
+ --img <disk-image>
45
+ --cfg <clover-config>
46
+ EOF
47
+ }
48
+
49
+ while test "$1" != ""; do
50
+ case "$1" in
51
+ --iso)
52
+ iso="$2"
53
+ shift; shift
54
+ ;;
55
+ --img)
56
+ img="$2"
57
+ shift; shift
58
+ ;;
59
+ --cfg)
60
+ cfg="$2"
61
+ shift; shift
62
+ ;;
63
+ esac
64
+ done
65
+
66
+ ######################################################################
67
+ # guestfish script helpers
68
+
69
+ function fish() {
70
+ echo "#" "$@"
71
+ guestfish --remote -- "$@" || exit 1
72
+ }
73
+
74
+ function fish_init() {
75
+ local format
76
+
77
+ case "$img" in
78
+ *.raw) format="raw" ;;
79
+ *) format="qcow2";;
80
+ esac
81
+
82
+ msg "creating and adding disk image"
83
+ fish disk-create $img $format 384M
84
+ fish add $img
85
+ fish run
86
+ }
87
+
88
+ function fish_fini() {
89
+ fish umount-all
90
+ }
91
+
92
+ # disabled by @sickcodes to allow unattended image overwrites
93
+ ######################################################################
94
+ # sanity checks
95
+
96
+ # if test ! -f "$cfg"; then
97
+ # echo "ERROR: cfg not found: $cfg"
98
+ # exit 1
99
+ # fi
100
+ # if test -f "$img"; then
101
+ # if test "$allow_override" = "yes"; then
102
+ # rm -f "$img"
103
+ # else
104
+ # echo "ERROR: image exists: $img"
105
+ # exit 1
106
+ # fi
107
+ # fi
108
+
109
+ ######################################################################
110
+ # go!
111
+
112
+ msg "copy files from local folder"
113
+ BASE="$(dirname $0)"
114
+ cp -a $BASE/EFI $WORK
115
+ find "$WORK"
116
+
117
+ #msg "[debug] list drivers in EFI/OC"
118
+ #(cd $WORK/EFI/OC; find driver* -print)
119
+
120
+ export LIBGUESTFS_BACKEND=direct
121
+ eval $(guestfish --listen)
122
+ if test "$GUESTFISH_PID" = ""; then
123
+ echo "ERROR: starting guestfish failed"
124
+ exit 1
125
+ fi
126
+
127
+ fish_init
128
+
129
+ msg "partition disk image"
130
+ fish part-init /dev/sda gpt
131
+ fish part-add /dev/sda p 2048 300000
132
+ fish part-add /dev/sda p 302048 -2048
133
+ fish part-set-gpt-type /dev/sda 1 C12A7328-F81F-11D2-BA4B-00A0C93EC93B
134
+ fish part-set-bootable /dev/sda 1 true
135
+ fish mkfs vfat /dev/sda1 label:EFI
136
+ fish mkfs vfat /dev/sda2 label:OpenCore
137
+ fish mount /dev/sda2 /
138
+ fish mkdir /ESP
139
+ fish mount /dev/sda1 /ESP
140
+
141
+ msg "copy files to disk image"
142
+ cp -v "$cfg" $WORK/config.plist
143
+ fish mkdir /ESP/EFI
144
+ fish mkdir /ESP/EFI/OC
145
+ fish mkdir /ESP/EFI/OC/Kexts
146
+ fish mkdir /ESP/EFI/OC/ACPI
147
+ fish mkdir /ESP/EFI/OC/Resources
148
+ fish mkdir /ESP/EFI/OC/Tools
149
+ fish copy-in $WORK/EFI/BOOT /ESP/EFI
150
+ fish copy-in $WORK/EFI/OC/OpenCore.efi /ESP/EFI/OC
151
+ fish copy-in $WORK/EFI/OC/Drivers /ESP/EFI/OC/
152
+ fish copy-in $WORK/EFI/OC/Kexts /ESP/EFI/OC/
153
+ fish copy-in $WORK/EFI/OC/ACPI /ESP/EFI/OC/
154
+ fish copy-in $BASE/resources/OcBinaryData/Resources /ESP/EFI/OC/
155
+ fish copy-in $WORK/EFI/OC/Tools /ESP/EFI/OC/
156
+
157
+ # Note
158
+ fish copy-in startup.nsh /
159
+
160
+ BASE="$(dirname $0)"
161
+ fish copy-in "$WORK/config.plist" /ESP/EFI/OC/
162
+
163
+ fish find /ESP/
164
+ fish_fini
discord-logo.svg ADDED
docker-compose.yml ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.4'
2
+
3
+ services:
4
+ osx:
5
+ container_name: docker-osx
6
+ build:
7
+ context: .
8
+ args:
9
+ - SIZE=200G
10
+ - VERSION=10.15.5
11
+ image: sickcodes/docker-osx
12
+ privileged: true
13
+ environment:
14
+ - DISPLAY=${DISPLAY:-:0.0}
15
+ network_mode: "host"
16
+ cap_add:
17
+ - ALL
18
+ volumes:
19
+ - /tmp/.X11-unix:/tmp/.X11-unix
20
+ - /dev:/dev
21
+ - /lib/modules:/lib/modules
22
+ - docker-osx_data:/home
23
+
24
+ volumes:
25
+ docker-osx_data:
26
+ name: docker-osx_data
fetch-macOS.py ADDED
@@ -0,0 +1,447 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ # encoding: utf-8
3
+ #
4
+ # https://github.com/munki/macadmin-scripts/blob/master/installinstallmacos.py
5
+ #
6
+ # Copyright 2017 Greg Neagle.
7
+ #
8
+ # Licensed under the Apache License, Version 2.0 (the "License");
9
+ # you may not use this file except in compliance with the License.
10
+ # You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+ #
20
+ # Thanks to Tim Sutton for ideas, suggestions, and sample code.
21
+ #
22
+ # Updated in May of 2019 by Dhiru Kholia.
23
+
24
+ '''installinstallmacos.py
25
+ A tool to download the parts for an Install macOS app from Apple's
26
+ softwareupdate servers and install a functioning Install macOS app onto an
27
+ empty disk image'''
28
+
29
+ # https://github.com/foxlet/macOS-Simple-KVM/blob/master/tools/FetchMacOS/fetch-macos.py
30
+ # is pretty similar.
31
+
32
+
33
+ # Bad hack
34
+ import warnings
35
+
36
+ warnings.filterwarnings("ignore", category=DeprecationWarning)
37
+
38
+ import os
39
+ import gzip
40
+ import argparse
41
+ import plistlib
42
+ import subprocess
43
+
44
+ from xml.dom import minidom
45
+ from xml.parsers.expat import ExpatError
46
+
47
+
48
+ import sys
49
+
50
+ if sys.version_info[0] < 3:
51
+ import urlparse as urlstuff
52
+ else:
53
+ import urllib.parse as urlstuff
54
+ # Quick fix for python 3.9 and above
55
+ if sys.version_info[0] == 3 and sys.version_info[1] >= 9:
56
+ from types import MethodType
57
+
58
+ def readPlist(self,filepath):
59
+ with open(filepath, 'rb') as f:
60
+ p = plistlib._PlistParser(dict)
61
+ rootObject = p.parse(f)
62
+ return rootObject
63
+ # adding the method readPlist() to plistlib
64
+ plistlib.readPlist = MethodType(readPlist, plistlib)
65
+
66
+ # https://github.com/foxlet/macOS-Simple-KVM/blob/master/tools/FetchMacOS/fetch-macos.py (unused)
67
+ # https://github.com/munki/macadmin-scripts
68
+ catalogs = {
69
+ "CustomerSeed": "https://swscan.apple.com/content/catalogs/others/index-10.16customerseed-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog",
70
+ "DeveloperSeed": "https://swscan.apple.com/content/catalogs/others/index-10.16seed-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog",
71
+ "PublicSeed": "https://swscan.apple.com/content/catalogs/others/index-10.16beta-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog",
72
+ "PublicRelease": "https://swscan.apple.com/content/catalogs/others/index-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog",
73
+ "20": "https://swscan.apple.com/content/catalogs/others/index-11-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog"
74
+ }
75
+
76
+
77
+ def get_default_catalog():
78
+ '''Returns the default softwareupdate catalog for the current OS'''
79
+ return catalogs["20"]
80
+ # return catalogs["PublicRelease"]
81
+ # return catalogs["DeveloperSeed"]
82
+
83
+
84
+ class ReplicationError(Exception):
85
+ '''A custom error when replication fails'''
86
+ pass
87
+
88
+
89
+ def cmd_exists(cmd):
90
+ return subprocess.Popen("type " + cmd, shell=True,
91
+ stdout=subprocess.PIPE, stderr=subprocess.PIPE)
92
+
93
+
94
+ def replicate_url(full_url,
95
+ root_dir='/tmp',
96
+ show_progress=False,
97
+ ignore_cache=False,
98
+ attempt_resume=False, installer=False, product_title=""):
99
+ '''Downloads a URL and stores it in the same relative path on our
100
+ filesystem. Returns a path to the replicated file.'''
101
+
102
+ # hack
103
+ print("[+] Fetching %s" % full_url)
104
+ if installer and "BaseSystem.dmg" not in full_url and "Big Sur" not in product_title:
105
+ return
106
+ if "Big Sur" in product_title and "InstallAssistant.pkg" not in full_url:
107
+ return
108
+ attempt_resume = True
109
+ # path = urllib.parse.urlsplit(full_url)[2]
110
+ path = urlstuff.urlsplit(full_url)[2]
111
+ relative_url = path.lstrip('/')
112
+ relative_url = os.path.normpath(relative_url)
113
+ # local_file_path = os.path.join(root_dir, relative_url)
114
+ local_file_path = relative_url
115
+ # print("Downloading %s..." % full_url)
116
+
117
+ if cmd_exists('wget'):
118
+ if not installer:
119
+ download_cmd = ['wget', "-c", "--quiet", "-x", "-nH", full_url]
120
+ # this doesn't work as there are multiple metadata files with the same name!
121
+ # download_cmd = ['wget', "-c", "--quiet", full_url]
122
+ else:
123
+ download_cmd = ['wget', "-c", full_url]
124
+ else:
125
+ if not installer:
126
+ download_cmd = ['curl', "--silent", "--show-error", "-o", local_file_path, "--create-dirs", full_url]
127
+ else:
128
+ local_file_path = os.path.basename(local_file_path)
129
+ download_cmd = ['curl', "-o", local_file_path, full_url]
130
+
131
+ try:
132
+ subprocess.check_call(download_cmd)
133
+ except subprocess.CalledProcessError as err:
134
+ raise ReplicationError(err)
135
+ return local_file_path
136
+
137
+
138
+ def parse_server_metadata(filename):
139
+ '''Parses a softwareupdate server metadata file, looking for information
140
+ of interest.
141
+ Returns a dictionary containing title, version, and description.'''
142
+ title = ''
143
+ vers = ''
144
+ try:
145
+ md_plist = plistlib.readPlist(filename)
146
+ except (OSError, IOError, ExpatError) as err:
147
+ print('Error reading %s: %s' % (filename, err), file=sys.stderr)
148
+ return {}
149
+ vers = md_plist.get('CFBundleShortVersionString', '')
150
+ localization = md_plist.get('localization', {})
151
+ preferred_localization = (localization.get('English') or
152
+ localization.get('en'))
153
+ if preferred_localization:
154
+ title = preferred_localization.get('title', '')
155
+
156
+ metadata = {}
157
+ metadata['title'] = title
158
+ metadata['version'] = vers
159
+
160
+ """
161
+ {'title': 'macOS Mojave', 'version': '10.14.5'}
162
+ {'title': 'macOS Mojave', 'version': '10.14.6'}
163
+ """
164
+ return metadata
165
+
166
+
167
+ def get_server_metadata(catalog, product_key, workdir, ignore_cache=False):
168
+ '''Replicate ServerMetaData'''
169
+ try:
170
+ url = catalog['Products'][product_key]['ServerMetadataURL']
171
+ try:
172
+ smd_path = replicate_url(
173
+ url, root_dir=workdir, ignore_cache=ignore_cache)
174
+ return smd_path
175
+ except ReplicationError as err:
176
+ print('Could not replicate %s: %s' % (url, err), file=sys.stderr)
177
+ return None
178
+ except KeyError:
179
+ # print('Malformed catalog.', file=sys.stderr)
180
+ return None
181
+
182
+
183
+ def parse_dist(filename):
184
+ '''Parses a softwareupdate dist file, returning a dict of info of
185
+ interest'''
186
+ dist_info = {}
187
+ try:
188
+ dom = minidom.parse(filename)
189
+ except ExpatError:
190
+ print('Invalid XML in %s' % filename, file=sys.stderr)
191
+ return dist_info
192
+ except IOError as err:
193
+ print('Error reading %s: %s' % (filename, err), file=sys.stderr)
194
+ return dist_info
195
+
196
+ titles = dom.getElementsByTagName('title')
197
+ if titles:
198
+ dist_info['title_from_dist'] = titles[0].firstChild.wholeText
199
+
200
+ auxinfos = dom.getElementsByTagName('auxinfo')
201
+ if not auxinfos:
202
+ return dist_info
203
+ auxinfo = auxinfos[0]
204
+ key = None
205
+ value = None
206
+ children = auxinfo.childNodes
207
+ # handle the possibility that keys from auxinfo may be nested
208
+ # within a 'dict' element
209
+ dict_nodes = [n for n in auxinfo.childNodes
210
+ if n.nodeType == n.ELEMENT_NODE and
211
+ n.tagName == 'dict']
212
+ if dict_nodes:
213
+ children = dict_nodes[0].childNodes
214
+ for node in children:
215
+ if node.nodeType == node.ELEMENT_NODE and node.tagName == 'key':
216
+ key = node.firstChild.wholeText
217
+ if node.nodeType == node.ELEMENT_NODE and node.tagName == 'string':
218
+ value = node.firstChild.wholeText
219
+ if key and value:
220
+ dist_info[key] = value
221
+ key = None
222
+ value = None
223
+ return dist_info
224
+
225
+
226
+ def download_and_parse_sucatalog(sucatalog, workdir, ignore_cache=False):
227
+ '''Downloads and returns a parsed softwareupdate catalog'''
228
+ try:
229
+ localcatalogpath = replicate_url(
230
+ sucatalog, root_dir=workdir, ignore_cache=ignore_cache)
231
+ except ReplicationError as err:
232
+ print('Could not replicate %s: %s' % (sucatalog, err), file=sys.stderr)
233
+ exit(-1)
234
+ if os.path.splitext(localcatalogpath)[1] == '.gz':
235
+ with gzip.open(localcatalogpath) as the_file:
236
+ content = the_file.read()
237
+ try:
238
+ catalog = plistlib.readPlistFromString(content)
239
+ return catalog
240
+ except ExpatError as err:
241
+ print('Error reading %s: %s' % (localcatalogpath, err), file=sys.stderr)
242
+ exit(-1)
243
+ else:
244
+ try:
245
+ catalog = plistlib.readPlist(localcatalogpath)
246
+ return catalog
247
+ except (OSError, IOError, ExpatError) as err:
248
+ print('Error reading %s: %s' % (localcatalogpath, err), file=sys.stderr)
249
+ exit(-1)
250
+
251
+
252
+ def find_mac_os_installers(catalog):
253
+ '''Return a list of product identifiers for what appear to be macOS
254
+ installers'''
255
+ mac_os_installer_products = []
256
+ if 'Products' in catalog:
257
+ for product_key in catalog['Products'].keys():
258
+ product = catalog['Products'][product_key]
259
+ try:
260
+ if product['ExtendedMetaInfo'][
261
+ 'InstallAssistantPackageIdentifiers']:
262
+ mac_os_installer_products.append(product_key)
263
+ except KeyError:
264
+ continue
265
+
266
+ return mac_os_installer_products
267
+
268
+
269
+ def os_installer_product_info(catalog, workdir, ignore_cache=False):
270
+ '''Returns a dict of info about products that look like macOS installers'''
271
+ product_info = {}
272
+ installer_products = find_mac_os_installers(catalog)
273
+ for product_key in installer_products:
274
+ product_info[product_key] = {}
275
+ filename = get_server_metadata(catalog, product_key, workdir)
276
+ if filename:
277
+ product_info[product_key] = parse_server_metadata(filename)
278
+ else:
279
+ # print('No server metadata for %s' % product_key)
280
+ product_info[product_key]['title'] = None
281
+ product_info[product_key]['version'] = None
282
+
283
+ product = catalog['Products'][product_key]
284
+ product_info[product_key]['PostDate'] = product['PostDate']
285
+ distributions = product['Distributions']
286
+ dist_url = distributions.get('English') or distributions.get('en')
287
+ try:
288
+ dist_path = replicate_url(
289
+ dist_url, root_dir=workdir, ignore_cache=ignore_cache)
290
+ except ReplicationError as err:
291
+ print('Could not replicate %s: %s' % (dist_url, err),
292
+ file=sys.stderr)
293
+ else:
294
+ dist_info = parse_dist(dist_path)
295
+ product_info[product_key]['DistributionPath'] = dist_path
296
+ product_info[product_key].update(dist_info)
297
+ if not product_info[product_key]['title']:
298
+ product_info[product_key]['title'] = dist_info.get('title_from_dist')
299
+ if not product_info[product_key]['version']:
300
+ product_info[product_key]['version'] = dist_info.get('VERSION')
301
+
302
+ return product_info
303
+
304
+
305
+ def replicate_product(catalog, product_id, workdir, ignore_cache=False, product_title=""):
306
+ '''Downloads all the packages for a product'''
307
+ product = catalog['Products'][product_id]
308
+ for package in product.get('Packages', []):
309
+ # TO-DO: Check 'Size' attribute and make sure
310
+ # we have enough space on the target
311
+ # filesystem before attempting to download
312
+ if 'URL' in package:
313
+ try:
314
+ replicate_url(
315
+ package['URL'], root_dir=workdir,
316
+ show_progress=True, ignore_cache=ignore_cache,
317
+ attempt_resume=(not ignore_cache), installer=True, product_title=product_title)
318
+ except ReplicationError as err:
319
+ print('Could not replicate %s: %s' % (package['URL'], err), file=sys.stderr)
320
+ exit(-1)
321
+ if 'MetadataURL' in package:
322
+ try:
323
+ replicate_url(package['MetadataURL'], root_dir=workdir,
324
+ ignore_cache=ignore_cache, installer=True)
325
+ except ReplicationError as err:
326
+ print('Could not replicate %s: %s' % (package['MetadataURL'], err), file=sys.stderr)
327
+ exit(-1)
328
+
329
+
330
+ def find_installer_app(mountpoint):
331
+ '''Returns the path to the Install macOS app on the mountpoint'''
332
+ applications_dir = os.path.join(mountpoint, 'Applications')
333
+ for item in os.listdir(applications_dir):
334
+ if item.endswith('.app'):
335
+ return os.path.join(applications_dir, item)
336
+ return None
337
+
338
+
339
+ def determine_version(version, product_info):
340
+ if version:
341
+ if version == 'latest':
342
+ from distutils.version import StrictVersion
343
+ latest_version = StrictVersion('0.0.0')
344
+ for index, product_id in enumerate(product_info):
345
+ d = product_info[product_id]['version']
346
+ if d > latest_version:
347
+ latest_version = d
348
+
349
+ if latest_version == StrictVersion("0.0.0"):
350
+ print("Could not find latest version {}")
351
+ exit(1)
352
+
353
+ version = str(latest_version)
354
+
355
+ for index, product_id in enumerate(product_info):
356
+ v = product_info[product_id]['version']
357
+ if v == version:
358
+ return product_id, product_info[product_id]['title']
359
+
360
+ print("Could not find version {}. Versions available are:".format(version))
361
+ for _, pid in enumerate(product_info):
362
+ print("- {}".format(product_info[pid]['version']))
363
+
364
+ exit(1)
365
+
366
+ # display a menu of choices (some seed catalogs have multiple installers)
367
+ print('%2s %12s %10s %11s %s' % ('#', 'ProductID', 'Version',
368
+ 'Post Date', 'Title'))
369
+ for index, product_id in enumerate(product_info):
370
+ print('%2s %12s %10s %11s %s' % (
371
+ index + 1,
372
+ product_id,
373
+ product_info[product_id]['version'],
374
+ product_info[product_id]['PostDate'].strftime('%Y-%m-%d'),
375
+ product_info[product_id]['title']
376
+ ))
377
+
378
+ answer = input(
379
+ '\nChoose a product to download (1-%s): ' % len(product_info))
380
+ try:
381
+ index = int(answer) - 1
382
+ if index < 0:
383
+ raise ValueError
384
+ product_id = list(product_info.keys())[index]
385
+ return product_id, product_info[product_id]['title']
386
+ except (ValueError, IndexError):
387
+ pass
388
+
389
+ print('Invalid input provided.')
390
+ exit(0)
391
+
392
+
393
+ def main():
394
+ '''Do the main thing here'''
395
+ """
396
+ if os.getuid() != 0:
397
+ sys.exit('This command requires root (to install packages), so please '
398
+ 'run again with sudo or as root.')
399
+ """
400
+ parser = argparse.ArgumentParser()
401
+ parser.add_argument('--workdir', metavar='path_to_working_dir',
402
+ default='.',
403
+ help='Path to working directory on a volume with over '
404
+ '10G of available space. Defaults to current working '
405
+ 'directory.')
406
+ parser.add_argument('--version', metavar='version',
407
+ default=None,
408
+ help='The version to download in the format of '
409
+ '"$major.$minor.$patch", e.g. "10.15.4". Can '
410
+ 'be "latest" to download the latest version.')
411
+ parser.add_argument('--compress', action='store_true',
412
+ help='Output a read-only compressed disk image with '
413
+ 'the Install macOS app at the root. This is now the '
414
+ 'default. Use --raw to get a read-write sparse image '
415
+ 'with the app in the Applications directory.')
416
+ parser.add_argument('--raw', action='store_true',
417
+ help='Output a read-write sparse image '
418
+ 'with the app in the Applications directory. Requires '
419
+ 'less available disk space and is faster.')
420
+ parser.add_argument('--ignore-cache', action='store_true',
421
+ help='Ignore any previously cached files.')
422
+ args = parser.parse_args()
423
+
424
+ su_catalog_url = get_default_catalog()
425
+ if not su_catalog_url:
426
+ print('Could not find a default catalog url for this OS version.', file=sys.stderr)
427
+ exit(-1)
428
+
429
+ # download sucatalog and look for products that are for macOS installers
430
+ catalog = download_and_parse_sucatalog(
431
+ su_catalog_url, args.workdir, ignore_cache=args.ignore_cache)
432
+ product_info = os_installer_product_info(
433
+ catalog, args.workdir, ignore_cache=args.ignore_cache)
434
+
435
+ if not product_info:
436
+ print('No macOS installer products found in the sucatalog.', file=sys.stderr)
437
+ exit(-1)
438
+
439
+ product_id, product_title = determine_version(args.version, product_info)
440
+ print(product_id, product_title)
441
+
442
+ # download all the packages for the selected product
443
+ replicate_product(catalog, product_id, args.workdir, ignore_cache=args.ignore_cache, product_title=product_title)
444
+
445
+
446
+ if __name__ == '__main__':
447
+ main()
glibc-linux4-2.33-4-x86_64.pkg.tar.zst ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a89f4d23ae7cde78b4258deec4fcda975ab53c8cda8b5e0a0735255c0cdc05cc
3
+ size 10331197
helm/Chart.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ appVersion: "0.0.1.0"
3
+ description: "Containerized OSX! Run OSX in a pod, headlessly, or with Xvfb. Test your Apps and master CI/CD processes."
4
+ name: docker-osx
5
+ version: 0.2.0
6
+ keywords:
7
+ - docker-osx
8
+ - mac
9
+ - macos
10
+ - qemu
11
+ - cicd
12
+ - ios
13
+ - xnu
14
+ - darwin
15
+ - apple
16
+ - osx
helm/Dockerfile ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/docker
2
+ #
3
+ # This Dockerfile is to be consumed with the docker_osx helm templates. It consumes the
4
+ # Ubuntu image so that OpenCore.qcow2 can be re-generated (which happens in Kube itself),
5
+ # not to mention that OSX-KVM was written for Ubuntu. This was not designed to be run in Docker
6
+ # by itself.. very well anyway.
7
+ #
8
+
9
+ FROM ubuntu:21.04
10
+
11
+ SHELL ["/bin/bash", "-c"]
12
+
13
+ # this has to match .Values.image.userName in helm template
14
+ ARG USER=ubuntu
15
+ # this installs the kvm linux kernel in the docker container so that OpenCore.qcow2 boot images
16
+ # can be built.
17
+ ARG DOCKER_KERNEL_VERSION=linux-image-kvm
18
+
19
+ ENV TZ=America/Los_Angeles
20
+ ARG DEBIAN_FRONTEND=noninteractive
21
+
22
+ RUN DEBCONF_FRONTEND=noninteractive apt update \
23
+ && apt install \
24
+ bridge-utils \
25
+ fish \
26
+ git wget \
27
+ libguestfs-tools \
28
+ libvirt-daemon-system \
29
+ $DOCKER_KERNEL_VERSION \
30
+ p7zip-full \
31
+ qemu \
32
+ sudo \
33
+ uml-utilities \
34
+ virt-manager \
35
+ -y
36
+
37
+ # Configure SSH
38
+ RUN apt install git vim nano alsa-utils openssh-server -y
39
+
40
+ # Create user and grant sudo privledges
41
+ RUN adduser --disabled-password \
42
+ --gecos '' $USER \
43
+ && echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER \
44
+ && chmod 0440 /etc/sudoers.d/$USER
45
+
46
+ # Configure VNC for user
47
+ RUN apt install \
48
+ dbus-x11 \
49
+ openbox \
50
+ tigervnc-common \
51
+ tigervnc-standalone-server \
52
+ xfce4 \
53
+ xfce4-goodies \
54
+ x11-xserver-utils \
55
+ xdotool \
56
+ xorg \
57
+ xterm \
58
+ ufw \
59
+ -y
60
+
61
+ USER $USER
62
+
63
+ # only create ~/.vnc as helm will build out ~/.vnc/config
64
+ RUN mkdir -p ${HOME}/.vnc
65
+
66
+ RUN git clone --depth 1 https://github.com/kholia/OSX-KVM.git /home/$USER/OSX-KVM
67
+
68
+ VOLUME ["/tmp/.X11-unix"]
69
+
70
+ WORKDIR /home/$USER/OSX-KVM
71
+ # helm will build out ./Launch_custom.sh
72
+ CMD envsubst < ./Launch_custom.sh | bash
helm/INSTALL-QEMU-AND-GPU-IOMMU.md ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Install macOS Docker Virtualization
2
+ ## Setup
3
+ This walks through setting up QEMU virtualization for running macOS in Docker & Kubernetes
4
+
5
+ Please note, this guide assumes the host operation system is running Centos 7 (or ClearOS 7 more specifically). These commands can mostly be transferred to other distros, but there are a few areas that need commands (i.e. updating )
6
+
7
+ ### Host configuration
8
+
9
+ ## Build QEMU and libvirt from source
10
+
11
+ Since there is no official QEMU 5.X repo it appears, build from source.
12
+
13
+ ### QEMU Requirements
14
+
15
+ Python, glib2-devel, and pixman
16
+
17
+ ```
18
+ sudo yum install python glib2-devel cairo-devel -y
19
+ ```
20
+
21
+ Ninja
22
+
23
+ ```
24
+ pip3 install ninja
25
+ ```
26
+
27
+ ### Build QEMU from source steps
28
+
29
+ Clone the offical QEMU repo and build from source:
30
+
31
+ ```
32
+ git clone git://git.qemu-project.org/qemu.git
33
+ cd qemu
34
+ mkdir -p bin/debug/native
35
+ cd bin/debug/native
36
+ ../../../configure --enable-debug
37
+ make -j24
38
+ make install
39
+ ```
40
+
41
+ _Note: adjust make to use the desired number of threads avaliable on your system_
42
+
43
+ ### libvirt Requirements
44
+
45
+ Configure repo:
46
+
47
+ ```
48
+ yum-config-manager --nogpgcheck --add-repo http://mirror.centos.org/centos/7/virt/x86_64/libvirt-latest/
49
+ ```
50
+
51
+ ### Install libvirt
52
+
53
+ ```
54
+ yum install libvirt -y
55
+ ```
56
+
57
+ ### Update permissions
58
+
59
+ ```
60
+ chmod 660 -R /dev/kvm && chown 1000:1000 /dev/kvm
61
+ usermod -a -G kvm root
62
+ ```
63
+
64
+ _Note: these may not be required_
65
+
66
+ ### Verification
67
+
68
+ Ensure latest version installed
69
+
70
+ ```
71
+ virsh -c qemu:///system version --daemon
72
+ ```
73
+
74
+ * For example, should output something like:
75
+
76
+ ```
77
+ [root@server repos]# virsh -c qemu:///system version --daemon
78
+ Compiled against library: libvirt 5.0.0
79
+ Using library: libvirt 5.0.0
80
+ Using API: QEMU 5.0.0
81
+ Running hypervisor: QEMU 5.2.50
82
+ Running against daemon: 5.0.0
83
+ ```
84
+
85
+ ## Install IMMO for GPU passthrough
86
+
87
+ 1. Modify GRUB boot args:
88
+
89
+ Add the following to `/etc/default/grub` to the end of the `GRUB_CMDLINE_LINUX` parameter:
90
+
91
+ ```
92
+ GRUB_CMDLINE_LINUX="... iommu=pt intel_iommu=on"
93
+ ```
94
+
95
+ 1. Update GRUB2:
96
+
97
+ ```
98
+ grub2-mkconfig -o /boot/efi/EFI/clearos/grub.cfg
99
+ ```
100
+
101
+ _Note: this command may vary based on location of the grub.cfg for the boot entry_
102
+
103
+ 1. Reboot system
104
+
105
+ 1. Ensure that the kernel parameter changes worked:
106
+
107
+ ```
108
+ cat /proc/cmdline
109
+ ```
110
+
111
+ 1. Find GPU hardware ids with `lspci`
112
+
113
+ Example:
114
+ ```
115
+ lspci -nn | grep -i nvidia
116
+ ```
117
+
118
+ 1. Add the hardware ids to `/etc/modprobe.d/vfio.conf`
119
+
120
+ Example:
121
+ ```
122
+ options vfio-pci ids=10de:1b81,10de:10f0
123
+ ```
124
+
125
+ _Note: this is for the NVIDIA GTX 1070_
126
+
127
+ 1. Enable `vfio-pci`
128
+
129
+ ```
130
+ echo 'vfio-pci' > /etc/modules-load.d/vfio-pci.conf
131
+ ```
132
+
133
+ Make backup and rebuild `initramfs`:
134
+
135
+ ```
136
+ cp -p /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
137
+ dracut -f
138
+ ```
139
+
140
+ _Note: `dracut -f` may take awhile.._
141
+
142
+ 1. Increase ulimits
143
+
144
+ _This is done to avoid memory issues like `VFIO_MAP_DMA: -12` and etc_
145
+
146
+ Append the following to `/etc/security/limits.conf`:
147
+
148
+ ```
149
+ @kvm soft memlock unlimited
150
+ @kvm hard memlock unlimited
151
+ ```
152
+
153
+ Append the following to `/etc/docker/daemon.json`:
154
+
155
+ ```
156
+ {
157
+ "default-ulimits": {
158
+ "nofile": {
159
+ "name": "nofile",
160
+ "hard": 65536,
161
+ "soft": 1024
162
+ },
163
+ "memlock":
164
+ {
165
+ "name": "memlock",
166
+ "soft": -1,
167
+ "hard": -1
168
+ }
169
+ }
170
+ }
171
+ ```
172
+
173
+ Add `LimitMEMLOCK` to `/etc/systemd/system/multi-user.target.wants/libvirtd.service` like:
174
+
175
+ ```
176
+ [Unit]
177
+ Description=Virtualization daemon
178
+ ...
179
+
180
+ [Service]
181
+ ...
182
+ LimitMEMLOCK=infinity
183
+ ```
184
+
185
+ 1. Reload systemd after changing config
186
+
187
+ ```
188
+ systemctl daemon-reload
189
+ ```
190
+
191
+ 1. Reboot system
192
+
193
+ 1. Ensure that `vfio` worked
194
+
195
+ ```
196
+ dmesg | grep -i vfio
197
+ ```
198
+
199
+ # Issues
200
+
201
+ Many issues can rise up as a result of adding the complexity layers involved here. Some of the main areas are improperly loading the `vfio-pci` driver for the GPU and permission issues.
202
+
203
+ ## Modules for vfio not loading
204
+
205
+ When `vfio` does not load, errors such as the following can be seen:
206
+
207
+ ```
208
+ error getting device from group *: No such device
209
+ Verify all devices in group * are bound to vfio-<bus> or pci-stub and not already in use
210
+ ```
211
+
212
+ This can show up when `vfio-pci` driver is not loaded for the peripheral. Ensure that `vfio-pci` is loaded.
213
+
214
+ ```
215
+ dmesg | grep -i vfio
216
+ ```
217
+
218
+ If so, explicitly tell `vfio` modules to start
219
+
220
+ ```
221
+ echo 'vfio
222
+ vfio_iommu_type1
223
+ vfio_pci
224
+ vfio_virqfd' > /etc/modules
225
+ ```
226
+
227
+ Make backup and rebuild `initramfs`:
228
+
229
+ ```
230
+ cp -p /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
231
+ dracut -f
232
+ ```
233
+
234
+ _Note: `dracut -f` may take awhile.._
235
+
236
+ Do a system reboot
237
+
238
+ After rebooting, check on the gpu with `lspci` utilizing your gpu hardware id:
239
+
240
+ I.E.
241
+
242
+ ```
243
+ [root@server docker-docker-osx]# lspci -vvv -s 09:00.0
244
+ 09:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev c7) (prog-if 00 [VGA controller])
245
+ Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Radeon RX 480
246
+ Physical Slot: 5
247
+ Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
248
+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
249
+ Interrupt: pin A routed to IRQ 255
250
+ ...
251
+ Kernel driver in use: vfio-pci
252
+ Kernel modules: amdgpu
253
+ ```
254
+
255
+ _It does not matter if the host os loads a gpu module as seen with `Kernel modules: amdgpu` in the case above, the important part is that `vfio-pci` is the driver in use._
256
+
257
+ ## Permissions on vfio and kvm
258
+
259
+ One of the biggest areas of pain can be setting permissions on `/dev/kvm`, `/dev/vfio/vfio`, or `/dev/vfio/<iommu_group>`. If permission errors are seen, try the following commands:
260
+
261
+ ```
262
+ chmod 660 -R /dev/kvm && chown 1000:1000 /dev/kvm
263
+ chmod 777 -R /dev/vfio && chown 1000:1000 -R /dev/vfio
264
+ ```
265
+
266
+ # References
267
+
268
+ https://gist.github.com/dghubble/c2dc319249b156db06aff1d49c15272e
269
+
270
+ `Configure IOMMU and vfio`
271
+ https://www.server-world.info/en/note?os=CentOS_7&p=kvm&f=10
272
+
273
+ `Configuring GPU driver with vfio-pci binding`
274
+ https://github.com/intel/nemu/wiki/Testing-VFIO-with-GPU
275
+
276
+ `IOMMU Interrupt Mapping`
277
+ https://pve.proxmox.com/wiki/Pci_passthrough#IOMMU_Interrupt_Remapping
278
+
279
+ `Manual Graphics Driver Binding`
280
+ https://lwn.net/Articles/143397/
281
+
282
+ `QEMU Stdio Example`
283
+ https://lists.gnu.org/archive/html/qemu-devel/2017-08/msg04521.html
helm/README.md ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # docker-osx
2
+
3
+ Docker-OSX Helm Chart for Kubernetes.
4
+
5
+ Project page: https://github.com/sickcodes/docker-osx
6
+
7
+ Available now on Artifact HUB
8
+ [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/docker-osx)](https://artifacthub.io/packages/search?repo=docker-osx)
9
+
10
+ ## Information
11
+
12
+ This installs `docker-osx` in Kubernetes.
13
+
14
+ ## Features
15
+
16
+ ### What works
17
+ 1) Setting cpu/memory options
18
+ 1) Setting VNC password
19
+ 1) Persistance
20
+ 1) Setting SMBIOS
21
+ 1) QEMU/virtio cpu/software gpu changes
22
+ 1) Toggling Audio
23
+ 1) Additional port forwarding
24
+ 1) Kubernetes resource requests/limits
25
+ 1) Defining version of macOS to install
26
+ 1) Defining install partition size
27
+ 1) Defining a different version of macOS
28
+ 1) Additional QEMU parameters
29
+ 1) GPU support
30
+
31
+ ### What doesn't
32
+ 1) Simultaneous VNC + GPU IOMMU (this is a limitation of QEMU :( unfortunately)
33
+
34
+ ## Requirements
35
+
36
+ * Install [host machine requirements](#INSTALL-QEMU-AND-GPU-IOMMU.md)
37
+ * Ensure you are running QEMU 5.X
38
+ * Kubernetes
39
+ * Helm v2
40
+ * `sickcodes/docker-osx-vnc` Docker image
41
+
42
+ ### Build `sickcodes/docker-osx-vnc`
43
+
44
+ 1) Go back to the root directory
45
+ 1) Build docker image
46
+
47
+ ```
48
+ docker build \
49
+ -t sickcodes/docker-osx-vnc:latest \
50
+ -f helm/Dockerfile .
51
+ ```
52
+
53
+ _Please ensure you are using the Dockerfile in the `helm` folder_
54
+
55
+ _Do not worry about passing `CPU`, `RAM`, etc as they are handled in `values.yaml` now._
56
+
57
+ ### Installation
58
+
59
+ If planning on using a GPU with IOMMU passthrough it is recommended to configure it first and install macOS--otherwise installing may take a very long time depending on your hardware. Please see `qemu.systemInstaller.downloadDelay`, `qemu.systemInstaller.cache`, `qemu.systemDisk.downloadDelay`, and `qemu.systemDisk.cache` for possibly reducing installation time. It has taken me over three hours to install on some occasions with a NVMe secondary disk without GPU passthrough configured..
60
+
61
+ In `values.yaml`..
62
+
63
+ 1) Set a unique password for `vnc.password`.
64
+ 1) Re-generate SMBIOS `configPlist.MLB`, `configPlist.SystemSerialNumber`, and `configPlist.SystemUUID` for iServices to work.
65
+ 1) Update `serverName` to reflect the unique name (in the case more than one deployment is required).
66
+ 1) Configure `qemu.systemInstaller.downloadDelay` (in a period of seconds) that reflects how long your internet connection will download
67
+ around 500MB (BaseSystem.dmg) + uncompress the file (which took about the same time for me to download on a 1gig internet connection).
68
+ 1) Set `service.ip` to reflect an IP address of your choice, or use ingress.
69
+ 1) Update `extraVolumes.hostPath.path` to something useful for you.
70
+
71
+ Optionally..
72
+ 1) Install kexts to `kexts.path` and enable.
73
+ 1) Adjust `openCore.boot.timeout` if desire for macOS to load automatically.
74
+ 1) Add usb devices with `qemu.usb` or `qemu.extraArgs` if desired.
75
+ 1) Add more ports for portforwarding services if needed.
76
+
77
+ Afterwards..
78
+
79
+ 1) Launch your VNC viewer of choice and connect to the IP/hostname you defined + the port `8888` with the password specified
80
+ for `vnc.password`.
81
+ 1) Install macOS like usual.
82
+
83
+ _Please note, after you have installed macOS feel free to set `qemu.systemInstaller.downloadDelay` to nothing, as BaseSystem.dmg will be stored in the path defined for `extraVolumes.hostPath.path`_
84
+
85
+ #### Resources
86
+
87
+ Please note, resource limits may vary based on hardware. The ones currently defined are ones that worked for me personally.
helm/artifacthub-repo.yml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Artifact Hub repository metadata file
2
+ repositoryID: 7b2e9eeb-620a-43e8-b2cc-24ca33125bfc
3
+ owners: # (optional, used to claim repository ownership)
4
+ - name: sickcodes
5
+ email: info@sick.codes
helm/docker-osx-0.2.0.tgz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a62a9291b1494b9cfaa0708ab7bab9d13cca30adbeaced3d29a5bb6935caac9
3
+ size 28343
helm/helm-chart-generate.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Author: sick.codes
3
+ # License: GPLv3+
4
+ # Repo: https://github.com/sickcodes/Docker-OSX/
5
+ # cd ../helm
6
+
7
+ rm -f docker-osx-*.tgz
8
+ helm package .
9
+ helm repo index . --url https://sickcodes.github.io/Docker-OSX/helm/
helm/index.yaml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ entries:
3
+ docker-osx:
4
+ - apiVersion: v1
5
+ appVersion: 0.0.1.0
6
+ created: "2021-02-27T04:15:48.784861502Z"
7
+ description: Containerized OSX! Run OSX in a pod, headlessly, or with Xvfb. Test your Apps and master CI/CD processes.
8
+ digest: 5a62a9291b1494b9cfaa0708ab7bab9d13cca30adbeaced3d29a5bb6935caac9
9
+ keywords:
10
+ - docker-osx
11
+ - mac
12
+ - macos
13
+ - qemu
14
+ - cicd
15
+ - ios
16
+ - xnu
17
+ - darwin
18
+ - apple
19
+ - osx
20
+ name: docker-osx
21
+ urls:
22
+ - https://sickcodes.github.io/Docker-OSX/helm/docker-osx-0.2.0.tgz
23
+ version: 0.2.0
24
+ generated: "2021-02-27T04:15:48.782073839Z"
helm/templates/_helpers.tpl ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{/* vim: set filetype=mustache: */}}
2
+ {{/*
3
+ Expand the name of the chart.
4
+ */}}
5
+ {{- define "docker-osx.name" -}}
6
+ {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
7
+ {{- end -}}
8
+
9
+ {{/*
10
+ Create a default fully qualified app name.
11
+ We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
12
+ If release name contains chart name it will be used as a full name.
13
+ */}}
14
+ {{- define "docker-osx.fullname" -}}
15
+ {{- if .Values.fullnameOverride -}}
16
+ {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
17
+ {{- else -}}
18
+ {{- $name := default .Chart.Name .Values.nameOverride -}}
19
+ {{- if contains $name .Release.Name -}}
20
+ {{- .Release.Name | trunc 63 | trimSuffix "-" -}}
21
+ {{- else -}}
22
+ {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
23
+ {{- end -}}
24
+ {{- end -}}
25
+ {{- end -}}
26
+
27
+ {{/*
28
+ Create chart name and version as used by the chart label.
29
+ */}}
30
+ {{- define "docker-osx.chart" -}}
31
+ {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
32
+ {{- end -}}
helm/templates/configmap.yaml ADDED
@@ -0,0 +1,1299 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: ConfigMap
3
+ metadata:
4
+ name: {{ template "docker-osx.fullname" . }}-boot-components
5
+ data:
6
+ config.plist: |-
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
9
+ <plist version="1.0">
10
+ <dict>
11
+ <key>ACPI</key>
12
+ <dict>
13
+ <key>Add</key>
14
+ <array>
15
+ <dict>
16
+ <key>Comment</key>
17
+ <string>add DTGP method</string>
18
+ <key>Enabled</key>
19
+ <true/>
20
+ <key>Path</key>
21
+ <string>SSDT-DTGP.aml</string>
22
+ </dict>
23
+ <dict>
24
+ <key>Comment</key>
25
+ <string>Fake EC and USBX Power</string>
26
+ <key>Enåabled</key>
27
+ <true/>
28
+ <key>Path</key>
29
+ <string>SSDT-EC.aml</string>
30
+ </dict>
31
+ <dict>
32
+ <key>Comment</key>
33
+ <string>USB 2.0 Injection</string>
34
+ <key>Enabled</key>
35
+ <true/>
36
+ <key>Path</key>
37
+ <string>SSDT-EHCI.aml</string>
38
+ </dict>
39
+ <dict>
40
+ <key>Comment</key>
41
+ <string>CPU AGPM Plugin=1</string>
42
+ <key>Enabled</key>
43
+ <true/>
44
+ <key>Path</key>
45
+ <string>SSDT-PLUG.aml</string>
46
+ </dict>
47
+ </array>
48
+ <key>Delete</key>
49
+ <array>
50
+ <dict>
51
+ <key>All</key>
52
+ <false/>
53
+ <key>Comment</key>
54
+ <string>Delete CpuPm</string>
55
+ <key>Enabled</key>
56
+ <false/>
57
+ <key>OemTableId</key>
58
+ <data>Q3B1UG0AAAA=</data>
59
+ <key>TableLength</key>
60
+ <integer>0</integer>
61
+ <key>TableSignature</key>
62
+ <data>U1NEVA==</data>
63
+ </dict>
64
+ <dict>
65
+ <key>All</key>
66
+ <false/>
67
+ <key>Comment</key>
68
+ <string>Delete Cpu0Ist</string>
69
+ <key>Enabled</key>
70
+ <false/>
71
+ <key>OemTableId</key>
72
+ <data>Q3B1MElzdAA=</data>
73
+ <key>TableLength</key>
74
+ <integer>0</integer>
75
+ <key>TableSignature</key>
76
+ <data>U1NEVA==</data>
77
+ </dict>
78
+ </array>
79
+ <key>Patch</key>
80
+ <array>
81
+ <dict>
82
+ <key>Comment</key>
83
+ <string>_Q11 to XQ11</string>
84
+ <key>Count</key>
85
+ <integer>1</integer>
86
+ <key>Enabled</key>
87
+ <false/>
88
+ <key>Find</key>
89
+ <data>X1ExMQ==</data>
90
+ <key>Limit</key>
91
+ <integer>0</integer>
92
+ <key>Mask</key>
93
+ <data></data>
94
+ <key>OemTableId</key>
95
+ <data></data>
96
+ <key>Replace</key>
97
+ <data>WFExMQ==</data>
98
+ <key>ReplaceMask</key>
99
+ <data></data>
100
+ <key>Skip</key>
101
+ <integer>0</integer>
102
+ <key>TableLength</key>
103
+ <integer>0</integer>
104
+ <key>TableSignature</key>
105
+ <data></data>
106
+ </dict>
107
+ <dict>
108
+ <key>Comment</key>
109
+ <string>_Q12 to XQ12</string>
110
+ <key>Count</key>
111
+ <integer>1</integer>
112
+ <key>Enabled</key>
113
+ <false/>
114
+ <key>Find</key>
115
+ <data>X1ExMg==</data>
116
+ <key>Limit</key>
117
+ <integer>0</integer>
118
+ <key>Mask</key>
119
+ <data></data>
120
+ <key>OemTableId</key>
121
+ <data></data>
122
+ <key>Replace</key>
123
+ <data>WFExMg==</data>
124
+ <key>ReplaceMask</key>
125
+ <data></data>
126
+ <key>Skip</key>
127
+ <integer>0</integer>
128
+ <key>TableLength</key>
129
+ <integer>0</integer>
130
+ <key>TableSignature</key>
131
+ <data></data>
132
+ </dict>
133
+ </array>
134
+ <key>Quirks</key>
135
+ <dict>
136
+ <key>FadtEnableReset</key>
137
+ <false/>
138
+ <key>NormalizeHeaders</key>
139
+ <false/>
140
+ <key>RebaseRegions</key>
141
+ <false/>
142
+ <key>ResetHwSig</key>
143
+ <false/>
144
+ <key>ResetLogoStatus</key>
145
+ <false/>
146
+ </dict>
147
+ </dict>
148
+ <key>Booter</key>
149
+ <dict>
150
+ <key>MmioWhitelist</key>
151
+ <array/>
152
+ <key>Quirks</key>
153
+ <dict>
154
+ <key>AvoidRuntimeDefrag</key>
155
+ <true/>
156
+ <key>DevirtualiseMmio</key>
157
+ <false/>
158
+ <key>DisableSingleUser</key>
159
+ <false/>
160
+ <key>DisableVariableWrite</key>
161
+ <false/>
162
+ <key>DiscardHibernateMap</key>
163
+ <false/>
164
+ <key>EnableSafeModeSlide</key>
165
+ <true/>
166
+ <key>EnableWriteUnprotector</key>
167
+ <true/>
168
+ <key>ForceExitBootServices</key>
169
+ <false/>
170
+ <key>ProtectMemoryRegions</key>
171
+ <false/>
172
+ <key>ProtectSecureBoot</key>
173
+ <false/>
174
+ <key>ProtectUefiServices</key>
175
+ <false/>
176
+ <key>ProvideCustomSlide</key>
177
+ <true/>
178
+ <key>ProvideMaxSlide</key>
179
+ <integer>0</integer>
180
+ <key>RebuildAppleMemoryMap</key>
181
+ <false/>
182
+ <key>SetupVirtualMap</key>
183
+ <false/>
184
+ <key>SignalAppleOS</key>
185
+ <false/>
186
+ <key>SyncRuntimePermissions</key>
187
+ <false/>
188
+ </dict>
189
+ </dict>
190
+ <key>DeviceProperties</key>
191
+ <dict>
192
+ <key>Add</key>
193
+ <dict>
194
+ <key>PciRoot(0x1)/Pci(0x1F,0x0)</key>
195
+ <dict>
196
+ <key>compatible</key>
197
+ <string>pci8086,2916</string>
198
+ <key>device-id</key>
199
+ <data>
200
+ FikA
201
+ </data>
202
+ <key>name</key>
203
+ <string>pci8086,2916</string>
204
+ </dict>
205
+ </dict>
206
+ <key>Delete</key>
207
+ <dict>
208
+ <key>PciRoot(0x0)/Pci(0x1b,0x0)</key>
209
+ <array>
210
+ <string>MaximumBootBeepVolume</string>
211
+ </array>
212
+ </dict>
213
+ </dict>
214
+ <key>Kernel</key>
215
+ <dict>
216
+ <key>Add</key>
217
+ <array>
218
+ {{- if .Values.qemu.hardwareGpu.enabled }}
219
+ <dict>
220
+ <key>BundlePath</key>
221
+ <string>mXHCD.kext</string>
222
+ <key>Comment</key>
223
+ <string>Hello There</string>
224
+ <key>Enabled</key>
225
+ <true/>
226
+ <key>ExecutablePath</key>
227
+ <string>Contents/MacOS/mXHCD</string>
228
+ <key>MaxKernel</key>
229
+ <string></string>
230
+ <key>MinKernel</key>
231
+ <string></string>
232
+ <key>PlistPath</key>
233
+ <string>Contents/Info.plist</string>
234
+ </dict>
235
+ {{- end }}
236
+ <dict>
237
+ <key>Arch</key>
238
+ <string>x86_64</string>
239
+ <key>BundlePath</key>
240
+ <string>VoodooHDA.kext</string>
241
+ <key>Comment</key>
242
+ <string>Patch engine</string>
243
+ {{- if .Values.qemu.audio.enabled }}
244
+ <key>Enabled</key>
245
+ {{- else -}}
246
+ <key>Disabled</key>
247
+ {{- end }}
248
+ <false/>
249
+ <key>ExecutablePath</key>
250
+ <string>Contents/MacOS/VoodooHDA</string>
251
+ <key>MaxKernel</key>
252
+ <string></string>
253
+ <key>MinKernel</key>
254
+ <string>12.0.0</string>
255
+ <key>PlistPath</key>
256
+ <string>Contents/Info.plist</string>
257
+ </dict>
258
+ <dict>
259
+ <key>Arch</key>
260
+ <string>x86_64</string>
261
+ <key>BundlePath</key>
262
+ <string>Lilu.kext</string>
263
+ <key>Comment</key>
264
+ <string>Patch engine</string>
265
+ <key>Enabled</key>
266
+ <true/>
267
+ <key>ExecutablePath</key>
268
+ <string>Contents/MacOS/Lilu</string>
269
+ <key>MaxKernel</key>
270
+ <string></string>
271
+ <key>MinKernel</key>
272
+ <string>12.0.0</string>
273
+ <key>PlistPath</key>
274
+ <string>Contents/Info.plist</string>
275
+ </dict>
276
+ <dict>
277
+ <key>Arch</key>
278
+ <string>x86_64</string>
279
+ <key>BundlePath</key>
280
+ <string>VirtualSMC.kext</string>
281
+ <key>Comment</key>
282
+ <string>SMC emulator</string>
283
+ <key>Enabled</key>
284
+ <false/>
285
+ <key>ExecutablePath</key>
286
+ <string>Contents/MacOS/VirtualSMC</string>
287
+ <key>MaxKernel</key>
288
+ <string></string>
289
+ <key>MinKernel</key>
290
+ <string>12.0.0</string>
291
+ <key>PlistPath</key>
292
+ <string>Contents/Info.plist</string>
293
+ </dict>
294
+ <dict>
295
+ <key>Arch</key>
296
+ <string>x86_64</string>
297
+ <key>BundlePath</key>
298
+ <string>WhateverGreen.kext</string>
299
+ <key>Comment</key>
300
+ <string>Video patches</string>
301
+ <key>Enabled</key>
302
+ <true/>
303
+ <key>ExecutablePath</key>
304
+ <string>Contents/MacOS/WhateverGreen</string>
305
+ <key>MaxKernel</key>
306
+ <string></string>
307
+ <key>MinKernel</key>
308
+ <string>12.0.0</string>
309
+ <key>PlistPath</key>
310
+ <string>Contents/Info.plist</string>
311
+ </dict>
312
+ <dict>
313
+ <key>Arch</key>
314
+ <string>x86_64</string>
315
+ <key>BundlePath</key>
316
+ <string>AppleALC.kext</string>
317
+ <key>Comment</key>
318
+ <string>Audio patches</string>
319
+ <key>Enabled</key>
320
+ <true/>
321
+ <key>ExecutablePath</key>
322
+ <string>Contents/MacOS/AppleALC</string>
323
+ <key>MaxKernel</key>
324
+ <string></string>
325
+ <key>MinKernel</key>
326
+ <string>12.0.0</string>
327
+ <key>PlistPath</key>
328
+ <string>Contents/Info.plist</string>
329
+ </dict>
330
+ <dict>
331
+ <key>BundlePath</key>
332
+ <string>AGPMInjector.kext</string>
333
+ <key>Comment</key>
334
+ <string></string>
335
+ <key>Enabled</key>
336
+ <true/>
337
+ <key>ExecutablePath</key>
338
+ <string></string>
339
+ <key>MaxKernel</key>
340
+ <string></string>
341
+ <key>MinKernel</key>
342
+ <string></string>
343
+ <key>PlistPath</key>
344
+ <string>Contents/Info.plist</string>
345
+ </dict>
346
+ <dict>
347
+ <key>BundlePath</key>
348
+ <string>USBPorts.kext</string>
349
+ <key>Comment</key>
350
+ <string></string>
351
+ <key>Enabled</key>
352
+ <true/>
353
+ <key>ExecutablePath</key>
354
+ <string></string>
355
+ <key>MaxKernel</key>
356
+ <string></string>
357
+ <key>MinKernel</key>
358
+ <string></string>
359
+ <key>PlistPath</key>
360
+ <string>Contents/Info.plist</string>
361
+ </dict>
362
+ <dict>
363
+ <key>Arch</key>
364
+ <string>x86_64</string>
365
+ <key>BundlePath</key>
366
+ <string>MCEReporterDisabler.kext</string>
367
+ <key>Comment</key>
368
+ <string>AppleMCEReporter disabler</string>
369
+ <key>Enabled</key>
370
+ <true/>
371
+ <key>ExecutablePath</key>
372
+ <string></string>
373
+ <key>MaxKernel</key>
374
+ <string></string>
375
+ <key>MinKernel</key>
376
+ <string>19.0.0</string>
377
+ <key>PlistPath</key>
378
+ <string>Contents/Info.plist</string>
379
+ </dict>
380
+ {{- if .Values.macos.kexts.add }}
381
+ {{- range .Values.macos.kexts.kextsToAdd }}
382
+ <dict>
383
+ <key>Arch</key>
384
+ <string>Any</string>
385
+ <key>BundlePath</key>
386
+ <string>{{ .name }}</string>
387
+ <key>Comment</key>
388
+ <string></string>
389
+ <key>Enabled</key>
390
+ <true/>
391
+ <key>ExecutablePath</key>
392
+ <string>{{ .executablePath }}</string>
393
+ <key>MaxKernel</key>
394
+ <string></string>
395
+ <key>MinKernel</key>
396
+ <string></string>
397
+ <key>PlistPath</key>
398
+ <string>{{ .plistPath }}</string>
399
+ </dict>
400
+ {{- end }}
401
+ {{- end }}
402
+ </array>
403
+ <key>Block</key>
404
+ <array>
405
+ <dict>
406
+ <key>Arch</key>
407
+ <string>Any</string>
408
+ <key>Comment</key>
409
+ <string></string>
410
+ <key>Enabled</key>
411
+ <false/>
412
+ <key>Identifier</key>
413
+ <string>com.apple.driver.AppleTyMCEDriver</string>
414
+ <key>MaxKernel</key>
415
+ <string></string>
416
+ <key>MinKernel</key>
417
+ <string></string>
418
+ </dict>
419
+ </array>
420
+ <key>Emulate</key>
421
+ <dict>
422
+ {{- if .Values.qemu.hardwareGpu.enabled }}
423
+ <key>Cpuid1Data</key>
424
+ <data>
425
+ VwYFAAAAAAAAAAAAAAAAAA==
426
+ </data>
427
+ <key>Cpuid1Mask</key>
428
+ <data>
429
+ /////wAAAAAAAAAAAAAAAA==
430
+ </data>
431
+ {{- else -}}
432
+ <key>Cpuid1Data</key>
433
+ <data>
434
+ VAYFAAAAAAAAAAAAAAAAAA==
435
+ </data>
436
+ <key>Cpuid1Mask</key>
437
+ <data>
438
+ ////AAAAAAAAAAAAAAAAAA==
439
+ </data>
440
+ {{- end }}
441
+ </dict>
442
+ <key>Force</key>
443
+ <array>
444
+ {{- if .Values.qemu.hardwareGpu.enabled }}
445
+ <dict>
446
+ <key>Base</key>
447
+ <string></string>
448
+ <key>Comment</key>
449
+ <string>algrey - cpuid_set_generic_info - disable check to allow leaf7</string>
450
+ <key>Count</key>
451
+ <integer>1</integer>
452
+ <key>Enabled</key>
453
+ <true/>
454
+ <key>Find</key>
455
+ <data>ADoPgg==</data>
456
+ <key>Identifier</key>
457
+ <string>kernel</string>
458
+ <key>Limit</key>
459
+ <integer>0</integer>
460
+ <key>Mask</key>
461
+ <data></data>
462
+ <key>MaxKernel</key>
463
+ <string>19.99.99</string>
464
+ <key>MinKernel</key>
465
+ <string>17.0.0</string>
466
+ <key>Replace</key>
467
+ <data>AAAPgg==</data>
468
+ <key>ReplaceMask</key>
469
+ <data></data>
470
+ <key>Skip</key>
471
+ <integer>0</integer>
472
+ </dict>
473
+ {{- else -}}
474
+ <dict>
475
+ <key>Arch</key>
476
+ <string>Any</string>
477
+ <key>BundlePath</key>
478
+ <string>System/Library/Extensions/IONetworkingFamily.kext</string>
479
+ <key>Comment</key>
480
+ <string>Patch engine</string>
481
+ <key>Enabled</key>
482
+ <false/>
483
+ <key>Identifier</key>
484
+ <string>com.apple.iokit.IONetworkingFamily</string>
485
+ <key>ExecutablePath</key>
486
+ <string>Contents/MacOS/IONetworkingFamily</string>
487
+ <key>MaxKernel</key>
488
+ <string>13.99.99</string>
489
+ <key>MinKernel</key>
490
+ <string></string>
491
+ <key>PlistPath</key>
492
+ <string>Contents/Info.plist</string>
493
+ </dict>
494
+ {{- end }}
495
+ </array>
496
+ <key>Patch</key>
497
+ <array>
498
+ {{- if .Values.qemu.hardwareGpu.enabled }}
499
+ <dict>
500
+ <key>Base</key>
501
+ <string>_cpu_topology_sort</string>
502
+ <key>Comment</key>
503
+ <string>algrey - cpu_topology_sort -disable _x86_validate_topology</string>
504
+ <key>Count</key>
505
+ <integer>1</integer>
506
+ <key>Enabled</key>
507
+ <true/>
508
+ <key>Find</key>
509
+ <data>6AAA//8=</data>
510
+ <key>Identifier</key>
511
+ <string>kernel</string>
512
+ <key>Limit</key>
513
+ <integer>0</integer>
514
+ <key>Mask</key>
515
+ <data>/wAA//8=</data>
516
+ <key>MaxKernel</key>
517
+ <string>19.99.99</string>
518
+ <key>MinKernel</key>
519
+ <string>17.0.0</string>
520
+ <key>Replace</key>
521
+ <data>Dx9EAAA=</data>
522
+ <key>ReplaceMask</key>
523
+ <data></data>
524
+ <key>Skip</key>
525
+ <integer>0</integer>
526
+ </dict>
527
+ {{- else -}}
528
+ <dict>
529
+ <key>Base</key>
530
+ <string>_cpu_topology_sort</string>
531
+ <key>Comment</key>
532
+ <string>algrey - cpu_topology_sort -disable _x86_validate_topology</string>
533
+ <key>Count</key>
534
+ <integer>1</integer>
535
+ <key>Enabled</key>
536
+ <true/>
537
+ <key>Find</key>
538
+ <data>
539
+ 6AAA//8=
540
+ </data>
541
+ <key>Identifier</key>
542
+ <string>kernel</string>
543
+ <key>Limit</key>
544
+ <integer>0</integer>
545
+ <key>Mask</key>
546
+ <data>
547
+ /wAA//8=
548
+ </data>
549
+ <key>MaxKernel</key>
550
+ <string>20.99.99</string>
551
+ <key>MinKernel</key>
552
+ <string>17.0.0</string>
553
+ <key>Replace</key>
554
+ <data>
555
+ Dx9EAAA=
556
+ </data>
557
+ <key>ReplaceMask</key>
558
+ <data>
559
+ </data>
560
+ <key>Skip</key>
561
+ <integer>0</integer>
562
+ </dict>
563
+ {{- end }}
564
+ <dict>
565
+ <key>Base</key>
566
+ <string></string>
567
+ <key>Comment</key>
568
+ <string>algrey - cpuid_set_cpufamily - force CPUFAMILY_INTEL_PENRYN</string>
569
+ <key>Count</key>
570
+ <integer>1</integer>
571
+ <key>Enabled</key>
572
+ <true/>
573
+ {{- if .Values.qemu.hardwareGpu.enabled }}
574
+ <key>Find</key>
575
+ <data>
576
+ MduAPQAAAAAGdQA=
577
+ </data>
578
+ <key>Identifier</key>
579
+ <string>kernel</string>
580
+ <key>Limit</key>
581
+ <integer>0</integer>
582
+ <key>Mask</key>
583
+ <data>
584
+ /////wAAAP///wA=
585
+ </data>
586
+ {{- else -}}
587
+ <key>Find</key>
588
+ <data>
589
+ MduAPQAAAAAGdQA=
590
+ </data>
591
+ <key>Identifier</key>
592
+ <string>kernel</string>
593
+ <key>Limit</key>
594
+ <integer>0</integer>
595
+ <key>Mask</key>
596
+ <data>
597
+ /////wAAAP///wA=
598
+ </data>
599
+ {{- end }}
600
+ <key>MaxKernel</key>
601
+ <string>20.99.99</string>
602
+ <key>MinKernel</key>
603
+ <string>17.0.0</string>
604
+ <key>Replace</key>
605
+ <data>
606
+ u7xP6njpXQAAAJA=
607
+ </data>
608
+ <key>ReplaceMask</key>
609
+ <data>
610
+ </data>
611
+ <key>Skip</key>
612
+ <integer>0</integer>
613
+ </dict>
614
+ {{- if .Values.qemu.hardwareGpu.enabled }}
615
+ <dict>
616
+ <key>Base</key>
617
+ <string></string>
618
+ <key>Comment</key>
619
+ <string>algrey - - skip cpuid_cores_per_package test -10.15</string>
620
+ <key>Count</key>
621
+ <integer>0</integer>
622
+ <key>Enabled</key>
623
+ <true/>
624
+ <key>Find</key>
625
+ <data>gz0AAAAAAA8AAAAAAItdvA==</data>
626
+ <key>Identifier</key>
627
+ <string>kernel</string>
628
+ <key>Limit</key>
629
+ <integer>0</integer>
630
+ <key>Mask</key>
631
+ <data>//8AAAD///8AAAAA/////w==</data>
632
+ <key>MaxKernel</key>
633
+ <string>19.99.99</string>
634
+ <key>MinKernel</key>
635
+ <string>19.0.0</string>
636
+ <key>Replace</key>
637
+ <data>AAAAAAAAAQAAAAAAAAAAAA==</data>
638
+ <key>ReplaceMask</key>
639
+ <data>AAAAAAAADwAAAAAAAAAAAA==</data>
640
+ <key>Skip</key>
641
+ <integer>0</integer>
642
+ </dict>
643
+ <dict>
644
+ <key>Base</key>
645
+ <string></string>
646
+ <key>Comment</key>
647
+ <string>algrey - - skip cpuid_cores_per_package test</string>
648
+ <key>Count</key>
649
+ <integer>0</integer>
650
+ <key>Enabled</key>
651
+ <true/>
652
+ <key>Find</key>
653
+ <data>gz0AAAAAAHQAi128</data>
654
+ <key>Identifier</key>
655
+ <string>kernel</string>
656
+ <key>Limit</key>
657
+ <integer>0</integer>
658
+ <key>Mask</key>
659
+ <data>//8AAAD///8A////</data>
660
+ <key>MaxKernel</key>
661
+ <string>18.99.99</string>
662
+ <key>MinKernel</key>
663
+ <string>17.0.0</string>
664
+ <key>Replace</key>
665
+ <data>AAAAAAAAAQAAAAAA</data>
666
+ <key>ReplaceMask</key>
667
+ <data>AAAAAAAADwAAAAAA</data>
668
+ <key>Skip</key>
669
+ <integer>0</integer>
670
+ </dict>
671
+ {{- end }}
672
+ </array>
673
+ <key>Quirks</key>
674
+ <dict>
675
+ <key>AppleCpuPmCfgLock</key>
676
+ <false/>
677
+ <key>AppleXcpmCfgLock</key>
678
+ <false/>
679
+ <key>AppleXcpmExtraMsrs</key>
680
+ <false/>
681
+ <key>AppleXcpmForceBoost</key>
682
+ <false/>
683
+ <key>CustomSMBIOSGuid</key>
684
+ <false/>
685
+ <key>DisableIoMapper</key>
686
+ <false/>
687
+ <key>DisableLinkeditJettison</key>
688
+ <true/>
689
+ <key>DisableRtcChecksum</key>
690
+ <false/>
691
+ <key>DummyPowerManagement</key>
692
+ <true/>
693
+ <key>ExternalDiskIcons</key>
694
+ <false/>
695
+ <key>IncreasePciBarSize</key>
696
+ <false/>
697
+ <key>LapicKernelPanic</key>
698
+ <false/>
699
+ <key>PanicNoKextDump</key>
700
+ <false/>
701
+ <key>PowerTimeoutKernelPanic</key>
702
+ <false/>
703
+ <key>ThirdPartyDrives</key>
704
+ <false/>
705
+ <key>XhciPortLimit</key>
706
+ <false/>
707
+ </dict>
708
+ <key>Scheme</key>
709
+ {{- if not .Values.qemu.hardwareGpu.enabled }}
710
+ <dict>
711
+ <key>FuzzyMatch</key>
712
+ <true/>
713
+ <key>KernelArch</key>
714
+ <string>x86_64</string>
715
+ <key>KernelCache</key>
716
+ <string>Auto</string>
717
+ </dict>
718
+ {{- end }}
719
+ </dict>
720
+ <key>Misc</key>
721
+ <dict>
722
+ <key>BlessOverride</key>
723
+ <array/>
724
+ <key>Boot</key>
725
+ <dict>
726
+ <key>ConsoleAttributes</key>
727
+ <integer>0</integer>
728
+ <key>HibernateMode</key>
729
+ <string>Auto</string>
730
+ <key>HideAuxiliary</key>
731
+ <false/>
732
+ <key>PickerAttributes</key>
733
+ <integer>1</integer>
734
+ <key>PickerVariant</key>
735
+ <string>Modern</string>
736
+ <key>PickerAudioAssist</key>
737
+ <false/>
738
+ <key>PickerMode</key>
739
+ <string>External</string>
740
+ <key>PollAppleHotKeys</key>
741
+ <true/>
742
+ <key>ShowPicker</key>
743
+ <true/>
744
+ <key>TakeoffDelay</key>
745
+ <integer>0</integer>
746
+ <key>Timeout</key>
747
+ <integer>{{ .Values.macos.openCore.boot.timeout }}</integer>
748
+ </dict>
749
+ <key>Debug</key>
750
+ <dict>
751
+ <key>AppleDebug</key>
752
+ <false/>
753
+ <key>ApplePanic</key>
754
+ <false/>
755
+ <key>DisableWatchDog</key>
756
+ <false/>
757
+ <key>DisplayDelay</key>
758
+ <integer>0</integer>
759
+ <key>DisplayLevel</key>
760
+ <integer>2147483650</integer>
761
+ <key>SerialInit</key>
762
+ <false/>
763
+ <key>SysReport</key>
764
+ <false/>
765
+ <key>Target</key>
766
+ <integer>3</integer>
767
+ </dict>
768
+ <key>Entries</key>
769
+ <array/>
770
+ <key>Security</key>
771
+ <dict>
772
+ <key>AllowNvramReset</key>
773
+ <true/>
774
+ <key>AllowSetDefault</key>
775
+ <false/>
776
+ <key>ApECID</key>
777
+ <integer>0</integer>
778
+ <key>AuthRestart</key>
779
+ <false/>
780
+ <key>BootProtect</key>
781
+ <string>None</string>
782
+ <key>DmgLoading</key>
783
+ <string>Signed</string>
784
+ <key>EnablePassword</key>
785
+ <false/>
786
+ <key>ExposeSensitiveData</key>
787
+ <integer>6</integer>
788
+ <key>HaltLevel</key>
789
+ <integer>2147483648</integer>
790
+ <key>PasswordHash</key>
791
+ <data></data>
792
+ <key>PasswordSalt</key>
793
+ <data></data>
794
+ <key>ScanPolicy</key>
795
+ <integer>0</integer>
796
+ <key>SecureBootModel</key>
797
+ <string>Disabled</string>
798
+ <key>Vault</key>
799
+ <string>Optional</string>
800
+ </dict>
801
+ <key>Tools</key>
802
+ <array>
803
+ <dict>
804
+ <key>Arguments</key>
805
+ <string></string>
806
+ <key>Auxiliary</key>
807
+ <false/>
808
+ <key>Comment</key>
809
+ <string>Not signed for security reasons</string>
810
+ <key>Enabled</key>
811
+ <true/>
812
+ <key>Name</key>
813
+ <string>UEFI Shell</string>
814
+ <key>Path</key>
815
+ <string>OpenShell.efi</string>
816
+ </dict>
817
+ <dict>
818
+ <key>Arguments</key>
819
+ <string>Shutdown</string>
820
+ <key>Auxiliary</key>
821
+ <true/>
822
+ <key>Comment</key>
823
+ <string>Perform shutdown</string>
824
+ <key>Enabled</key>
825
+ <true/>
826
+ <key>Name</key>
827
+ <string>Shutdown</string>
828
+ <key>Path</key>
829
+ <string>ResetSystem.efi</string>
830
+ </dict>
831
+ </array>
832
+ </dict>
833
+ <key>NVRAM</key>
834
+ <dict>
835
+ <key>Add</key>
836
+ <dict>
837
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
838
+ <dict>
839
+ <key>DefaultBackgroundColor</key>
840
+ <data>AAAAAA==</data>
841
+ <key>UIScale</key>
842
+ <data>AQ==</data>
843
+ </dict>
844
+ <key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
845
+ <dict>
846
+ <key>rtc-blacklist</key>
847
+ <data></data>
848
+ </dict>
849
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
850
+ <dict>
851
+ <key>SystemAudioVolume</key>
852
+ <data>Rg==</data>
853
+ <key>boot-args</key>
854
+ <string>{{ .Values.macos.configPlist.bootArgs }}</string>
855
+ <key>run-efi-updater</key>
856
+ <string>No</string>
857
+ <key>csr-active-config</key>
858
+ <data>ZwAAAA==</data>
859
+ <key>prev-lang:kbd</key>
860
+ <data>ZW4tVVM6MA==</data>
861
+ </dict>
862
+ </dict>
863
+ <key>Delete</key>
864
+ <dict>
865
+ <key>4D1EDE05-38C7-4A6A-9CC6-4BCCA8B38C14</key>
866
+ <array>
867
+ <string>UIScale</string>
868
+ <string>DefaultBackgroundColor</string>
869
+ </array>
870
+ <key>4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102</key>
871
+ <array>
872
+ <string>rtc-blacklist</string>
873
+ </array>
874
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
875
+ <array>
876
+ <string>boot-args</string>
877
+ </array>
878
+ </dict>
879
+ <key>LegacyEnable</key>
880
+ <false/>
881
+ <key>LegacyOverwrite</key>
882
+ <false/>
883
+ <key>LegacySchema</key>
884
+ <dict>
885
+ <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
886
+ <array>
887
+ <string>EFILoginHiDPI</string>
888
+ <string>EFIBluetoothDelay</string>
889
+ <string>LocationServicesEnabled</string>
890
+ <string>SystemAudioVolume</string>
891
+ <string>SystemAudioVolumeDB</string>
892
+ <string>SystemAudioVolumeSaved</string>
893
+ <string>bluetoothActiveControllerInfo</string>
894
+ <string>bluetoothInternalControllerInfo</string>
895
+ <string>flagstate</string>
896
+ <string>fmm-computer-name</string>
897
+ <string>nvda_drv</string>
898
+ <string>prev-lang:kbd</string>
899
+ </array>
900
+ <key>8BE4DF61-93CA-11D2-AA0D-00E098032B8C</key>
901
+ <array>
902
+ <string>Boot0080</string>
903
+ <string>Boot0081</string>
904
+ <string>Boot0082</string>
905
+ <string>BootNext</string>
906
+ <string>BootOrder</string>
907
+ </array>
908
+ </dict>
909
+ <key>WriteFlash</key>
910
+ <true/>
911
+ </dict>
912
+ <key>PlatformInfo</key>
913
+ <dict>
914
+ <key>Automatic</key>
915
+ <true/>
916
+ <key>Generic</key>
917
+ <dict>
918
+ <key>AdviseWindows</key>
919
+ <false/>
920
+ <key>MLB</key>
921
+ <string>{{ .Values.macos.configPlist.MLB }}</string>
922
+ <key>ROM</key>
923
+ <data>
924
+ m7zhIYfl
925
+ </data>
926
+ <key>SpoofVendor</key>
927
+ <true/>
928
+ <key>SystemProductName</key>
929
+ <string>{{ .Values.macos.configPlist.SystemProductName }}</string>
930
+ <key>SystemSerialNumber</key>
931
+ <string>{{ .Values.macos.configPlist.SystemSerialNumber }}</string>
932
+ <key>SystemUUID</key>
933
+ <string>{{ .Values.macos.configPlist.SystemUUID }}</string>
934
+ </dict>
935
+ <key>UpdateDataHub</key>
936
+ <true/>
937
+ <key>UpdateNVRAM</key>
938
+ <true/>
939
+ <key>UpdateSMBIOS</key>
940
+ <true/>
941
+ <key>UpdateSMBIOSMode</key>
942
+ <string>Create</string>
943
+ </dict>
944
+ <key>UEFI</key>
945
+ <dict>
946
+ <key>APFS</key>
947
+ <dict>
948
+ <key>EnableJumpstart</key>
949
+ <true/>
950
+ <key>GlobalConnect</key>
951
+ <false/>
952
+ <key>HideVerbose</key>
953
+ <true/>
954
+ <key>JumpstartHotPlug</key>
955
+ <false/>
956
+ <key>MinDate</key>
957
+ <integer>-1</integer>
958
+ <key>MinVersion</key>
959
+ <integer>-1</integer>
960
+ </dict>
961
+ <key>Audio</key>
962
+ <dict>
963
+ <key>AudioCodec</key>
964
+ <integer>0</integer>
965
+ <key>AudioDevice</key>
966
+ <string>PciRoot(0x1)/Pci(0x1,0x0)/Pci(0x0,0x1)</string>
967
+ <key>AudioOut</key>
968
+ <integer>0</integer>
969
+ <key>AudioSupport</key>
970
+ <false/>
971
+ <key>MinimumVolume</key>
972
+ <integer>20</integer>
973
+ <key>PlayChime</key>
974
+ <false/>
975
+ <key>VolumeAmplifier</key>
976
+ <integer>0</integer>
977
+ </dict>
978
+ <key>ConnectDrivers</key>
979
+ <true/>
980
+ <key>Drivers</key>
981
+ <array>
982
+ <string>VBoxHfs.efi</string>
983
+ <string>OpenRuntime.efi</string>
984
+ <string>OpenCanopy.efi</string>
985
+ <string>#AudioDxe.efi</string>
986
+ <string>#OpenUsbKbDxe.efi</string>
987
+ <string>#UsbMouseDxe.efi</string>
988
+ <string>#Ps2KeyboardDxe.efi</string>
989
+ <string>#Ps2MouseDxe.efi</string>
990
+ <string>#HiiDatabase.efi</string>
991
+ <string>#NvmExpressDxe.efi</string>
992
+ <string>#XhciDxe.efi</string>
993
+ <string>#ExFatDxe.efi</string>
994
+ <string>#PartitionDxe.efi</string>
995
+ <string>#CrScreenshotDxe.efi</string>
996
+ </array>
997
+ <key>Input</key>
998
+ <dict>
999
+ <key>KeyFiltering</key>
1000
+ <false/>
1001
+ <key>KeyForgetThreshold</key>
1002
+ <integer>5</integer>
1003
+ <key>KeyMergeThreshold</key>
1004
+ <integer>2</integer>
1005
+ <key>KeySupport</key>
1006
+ <true/>
1007
+ <key>KeySupportMode</key>
1008
+ <string>Auto</string>
1009
+ <key>KeySwap</key>
1010
+ <false/>
1011
+ <key>PointerSupport</key>
1012
+ <false/>
1013
+ <key>PointerSupportMode</key>
1014
+ <string>ASUS</string>
1015
+ <key>TimerResolution</key>
1016
+ <integer>50000</integer>
1017
+ </dict>
1018
+ <key>Output</key>
1019
+ <dict>
1020
+ <key>ClearScreenOnModeSwitch</key>
1021
+ <false/>
1022
+ <key>ConsoleMode</key>
1023
+ <string></string>
1024
+ <key>DirectGopRendering</key>
1025
+ <false/>
1026
+ <key>IgnoreTextInGraphics</key>
1027
+ <false/>
1028
+ <key>ProvideConsoleGop</key>
1029
+ <true/>
1030
+ <key>ReconnectOnResChange</key>
1031
+ <false/>
1032
+ <key>ReplaceTabWithSpace</key>
1033
+ <false/>
1034
+ <key>Resolution</key>
1035
+ <string>{{ .Values.vnc.resolution }}</string>
1036
+ <key>SanitiseClearScreen</key>
1037
+ <false/>
1038
+ <key>TextRenderer</key>
1039
+ <string>BuiltinGraphics</string>
1040
+ <key>UgaPassThrough</key>
1041
+ <false/>
1042
+ </dict>
1043
+ <key>ProtocolOverrides</key>
1044
+ <dict>
1045
+ <key>AppleAudio</key>
1046
+ <false/>
1047
+ <key>AppleBootPolicy</key>
1048
+ <false/>
1049
+ <key>AppleDebugLog</key>
1050
+ <false/>
1051
+ <key>AppleEvent</key>
1052
+ <false/>
1053
+ <key>AppleFramebufferInfo</key>
1054
+ <false/>
1055
+ <key>AppleImageConversion</key>
1056
+ <false/>
1057
+ <key>AppleImg4Verification</key>
1058
+ <false/>
1059
+ <key>AppleKeyMap</key>
1060
+ <false/>
1061
+ <key>AppleRtcRam</key>
1062
+ <false/>
1063
+ <key>AppleSecureBoot</key>
1064
+ <false/>
1065
+ <key>AppleSmcIo</key>
1066
+ <false/>
1067
+ <key>AppleUserInterfaceTheme</key>
1068
+ <false/>
1069
+ <key>DataHub</key>
1070
+ <false/>
1071
+ <key>DeviceProperties</key>
1072
+ <false/>
1073
+ <key>FirmwareVolume</key>
1074
+ <false/>
1075
+ <key>HashServices</key>
1076
+ <false/>
1077
+ <key>OSInfo</key>
1078
+ <false/>
1079
+ <key>UnicodeCollation</key>
1080
+ <false/>
1081
+ </dict>
1082
+ <key>Quirks</key>
1083
+ <dict>
1084
+ <key>DeduplicateBootOrder</key>
1085
+ <true/>
1086
+ <key>ExitBootServicesDelay</key>
1087
+ <integer>0</integer>
1088
+ <key>IgnoreInvalidFlexRatio</key>
1089
+ <false/>
1090
+ <key>ReleaseUsbOwnership</key>
1091
+ <false/>
1092
+ <key>RequestBootVarRouting</key>
1093
+ <true/>
1094
+ <key>TscSyncTimeout</key>
1095
+ <integer>0</integer>
1096
+ <key>UnblockFsConnect</key>
1097
+ <false/>
1098
+ </dict>
1099
+ </dict>
1100
+ </dict>
1101
+ </plist>
1102
+ Launch_custom.sh: |-
1103
+ #/bin/sh
1104
+
1105
+ # Add extra kexts to EFI/OC/kexts
1106
+ {{- if .Values.macos.kexts.add }}
1107
+ {{- range .Values.macos.kexts.kextsToAdd }}
1108
+ {{- $rangeItem := . -}}
1109
+ {{- with $ }}
1110
+ echo 'Installing kext {{ $rangeItem.name }}..'
1111
+ cp -r "{{ .Values.macos.kexts.path }}/{{ $rangeItem.name }}" /home/{{ .Values.image.userName }}/OSX-KVM/OpenCore-Catalina/EFI/OC/Kexts/
1112
+ sudo chmod 755 /home/{{ .Values.image.userName }}/OSX-KVM/OpenCore-Catalina/EFI/OC/Kexts/{{ $rangeItem.name }}
1113
+ {{- end }}
1114
+ {{- end }}
1115
+ {{- end }}
1116
+
1117
+ # Rebuild Opencore.qcow2 after making changes to config.plist and etc..
1118
+ {{- if .Values.macos.openCore.rebuild }}
1119
+ echo 'Building new Opencore.qcow2..'
1120
+ pushd OpenCore-Catalina/
1121
+ mkdir -p EFI/OC/Resources
1122
+ rm -f OpenCore.qcow2
1123
+ sudo ./opencore-image-ng.sh \
1124
+ --cfg config.plist \
1125
+ --img OpenCore.qcow2
1126
+ sudo chown {{ .Values.image.userName }}:{{ .Values.image.userName }} OpenCore.qcow2
1127
+ popd
1128
+ {{- end }}
1129
+
1130
+ if ! [ -d "{{ .Values.macos.installerSettings.path }}" ]; then
1131
+ mkdir -p {{ .Values.macos.installerSettings.path }}
1132
+ fi
1133
+
1134
+ if ! [ -d "/system_image/{{ .Values.serverName }}" ]; then
1135
+ mkdir -p "/system_image/{{ .Values.serverName }}"
1136
+ fi
1137
+
1138
+ # Download and build installer image if no system drive found..
1139
+ if ! [ -f "{{ .Values.macos.installerSettings.path }}/BaseSystem{{ .Values.macos.installerSettings.version }}.img" ]; then
1140
+ echo "Downloading {{ .Values.macos.installerSettings.version }} base image.."
1141
+ python fetch-macOS.py --version {{ .Values.macos.installerSettings.version }}
1142
+ echo 'Converting downloaded BaseSystem.dmg into BaseSystem{{ .Values.macos.installerSettings.version }}.img and saving in {{ .Values.qemu.systemInstaller.path }}'
1143
+ qemu-img convert BaseSystem.dmg -O qcow2 -p -c {{ .Values.macos.installerSettings.path }}/BaseSystem{{ .Values.qemu.systemInstaller.version }}.img
1144
+ rm -f BaseSystem.dmg
1145
+ else
1146
+ echo 'Base Image downloaded and converted into img already..'
1147
+ fi
1148
+
1149
+ if ! [ -f "/system_image/{{ .Values.serverName }}/mac_hdd_ng.img" ]; then
1150
+ echo "Creating a {{ .Values.qemu.systemDisk.size }} /system_image/{{ .Values.serverName }}/mac_hdd_ng.img for system partition.."
1151
+ qemu-img create -f qcow2 /system_image/{{ .Values.serverName }}/mac_hdd_ng.img "{{ .Values.qemu.systemDisk.size }}"
1152
+ echo 'Finished creating system partition!'
1153
+ else
1154
+ echo 'Image already created. Skipping creation..'
1155
+ fi
1156
+
1157
+ # # Fix permissions on usb devices..
1158
+ # {{- if .Values.qemu.usb }}
1159
+ # {{- range .Values.qemu.usb }}
1160
+ # echo "Updating permissions to r/w for /dev/bus/usb/$(lsusb | grep {{ .vendorId}}:{{ .productId }} | grep -o -P 'Bus.{0,4}' | tail -c 4)/$(lsusb | grep {{ .vendorId}}:{{ .productId }} | grep -o -P 'Device.{0,4}' | tail -c 4).."
1161
+ # sudo chmod 666 /dev/bus/usb/$(lsusb | grep {{ .vendorId}}:{{ .productId }} | grep -o -P 'Bus.{0,4}' | tail -c 4)/$(lsusb | grep {{ .vendorId}}:{{ .productId }} | grep -o -P 'Device.{0,4}' | tail -c 4)
1162
+ # {{- end }}
1163
+ # {{- end }}
1164
+
1165
+ # Start VNC..
1166
+ {{- if .Values.vnc.enabled }}
1167
+ echo 'geometry={{ .Values.vnc.resolution }}
1168
+ localhost
1169
+ alwaysshared' > ~/.vnc/config
1170
+
1171
+ sudo rm -f /tmp/.X99-lock
1172
+ export DISPLAY=:99
1173
+ vncpasswd -f < vncpasswd_file > ${HOME}/.vnc/passwd
1174
+ /usr/bin/Xvnc -geometry {{ .Values.vnc.resolution }} -rfbauth "${HOME}/.vnc/passwd" :99 &\
1175
+ sudo chmod 600 ~/.vnc/passwd
1176
+ {{- end }}
1177
+
1178
+ sudo chown {{ .Values.image.userName }}:{{ .Values.image.userName }} /dev/kvm
1179
+ {{- if .Values.qemu.hardwareGpu.enabled }}
1180
+ sudo chown {{ .Values.image.userName }}:{{ .Values.image.userName }} -R /dev/vfio
1181
+ {{- end }}
1182
+
1183
+ # Start QEMU..
1184
+ echo 'Starting QEMU..'
1185
+ set -eu
1186
+ sudo chown $(id -u):$(id -g) /dev/kvm 2>/dev/null || true
1187
+ sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true
1188
+ exec qemu-system-x86_64 -m {{ .Values.resources.requests.memory | trimSuffix "i" }} \
1189
+ -cpu {{ .Values.qemu.cpu }} \
1190
+ -machine q35,accel=kvm:tcg \
1191
+ {{- if .Values.qemu.hardwareGpu.enabled }}
1192
+ -device pcie-root-port,bus=pcie.0,multifunction=on,port=1,chassis=1,id=port.1 \
1193
+ {{- if .Values.qemu.hardwareGpu.romfile }}
1194
+ -device vfio-pci,host={{ .Values.qemu.hardwareGpu.hardwareId }}.0,bus=port.1,multifunction=on,romfile={{ .Values.qemu.hardwareGpu.romfile}} \
1195
+ {{- else -}}
1196
+ -device vfio-pci,host={{ .Values.qemu.hardwareGpu.hardwareId }}.0,multifunction=on \
1197
+ {{- end }}
1198
+ -device vfio-pci,host={{ .Values.qemu.hardwareGpu.hardwareId }}.1,bus=port.1 \
1199
+ {{- else -}}
1200
+ -vga {{ .Values.qemu.softwareGpu }} \
1201
+ {{- end }}
1202
+ -smp {{ .Values.resources.requests.cpu }},cores={{ .Values.resources.requests.cpu }} \
1203
+ {{- if .Values.vnc.enabled }}
1204
+ -usb -device usb-kbd -device usb-tablet \
1205
+ {{- else -}}
1206
+ -vga none \
1207
+ -display none \
1208
+ {{- end }}
1209
+ -device isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal\(c\)AppleComputerInc \
1210
+ -drive if=pflash,format=raw,readonly,file=/home/{{ .Values.image.userName }}/OSX-KVM/OVMF_CODE.fd \
1211
+ -drive if=pflash,format=raw,file=/home/{{ .Values.image.userName }}/OSX-KVM/OVMF_VARS-1024x768.fd \
1212
+ -smbios type=2 \
1213
+ {{- if .Values.qemu.audio.enabled }}
1214
+ -audiodev {{ .Values.qemu.audio.driver }},id=hda \
1215
+ -device ich9-intel-hda \
1216
+ -device hda-duplex,audiodev=hda \
1217
+ {{- end }}
1218
+ -device ich9-ahci,id=sata \
1219
+ -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/{{ .Values.image.userName }}/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2 \
1220
+ -device ide-hd,bus=sata.2,drive=OpenCoreBoot \
1221
+ {{- if .Values.qemu.systemInstaller.enabled }}
1222
+ -device ide-hd,bus=sata.3,drive=InstallMedia \
1223
+ -drive id=InstallMedia,if=none,file={{ .Values.macos.installerSettings.path }}/BaseSystem{{ .Values.macos.installerSettings.version }}.img,format=qcow2 \
1224
+ {{- end }}
1225
+ -drive id=MacHDD,if=none,file=/system_image/{{ .Values.serverName }}/mac_hdd_ng.img,format=qcow2 \
1226
+ -device ide-hd,bus=sata.4,drive=MacHDD \
1227
+ -netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT:-10022}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT:-5900}-:5900,{{ .Values.qemu.netdev.extraPortForwarding }} \
1228
+ -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:09:49:17 \
1229
+ {{- range .Values.qemu.usb }}
1230
+ -usb -device usb-host,productid=0x{{ .productId }},vendorid=0x{{ .vendorId }} \
1231
+ {{- end }}
1232
+ {{- range .Values.qemu.extraArgs }}
1233
+ {{ . }} \
1234
+ {{- end }}
1235
+ ${EXTRA:-}
1236
+ vncpasswd_file: |-
1237
+ {{ .Values.vnc.password }}
1238
+ limits.conf: |-
1239
+ #This file sets the resource limits for the users logged in via PAM.
1240
+ #It does not affect resource limits of the system services.
1241
+ #
1242
+ #Also note that configuration files in /etc/security/limits.d directory,
1243
+ #which are read in alphabetical order, override the settings in this
1244
+ #file in case the domain is the same or more specific.
1245
+ #That means, for example, that setting a limit for wildcard domain here
1246
+ #can be overriden with a wildcard setting in a config file in the
1247
+ #subdirectory, but a user specific setting here can be overriden only
1248
+ #with a user specific setting in the subdirectory.
1249
+ #
1250
+ #Each line describes a limit for a user in the form:
1251
+ #
1252
+ #<domain> <type> <item> <value>
1253
+ #
1254
+ #Where:
1255
+ #<domain> can be:
1256
+ # - a user name
1257
+ # - a group name, with @group syntax
1258
+ # - the wildcard *, for default entry
1259
+ # - the wildcard %, can be also used with %group syntax,
1260
+ # for maxlogin limit
1261
+ #
1262
+ #<type> can have the two values:
1263
+ # - "soft" for enforcing the soft limits
1264
+ # - "hard" for enforcing hard limits
1265
+ #
1266
+ #<item> can be one of the following:
1267
+ # - core - limits the core file size (KB)
1268
+ # - data - max data size (KB)
1269
+ # - fsize - maximum filesize (KB)
1270
+ # - memlock - max locked-in-memory address space (KB)
1271
+ # - nofile - max number of open file descriptors
1272
+ # - rss - max resident set size (KB)
1273
+ # - stack - max stack size (KB)
1274
+ # - cpu - max CPU time (MIN)
1275
+ # - nproc - max number of processes
1276
+ # - as - address space limit (KB)
1277
+ # - maxlogins - max number of logins for this user
1278
+ # - maxsyslogins - max number of logins on the system
1279
+ # - priority - the priority to run user process with
1280
+ # - locks - max number of file locks the user can hold
1281
+ # - sigpending - max number of pending signals
1282
+ # - msgqueue - max memory used by POSIX message queues (bytes)
1283
+ # - nice - max nice priority allowed to raise to values: [-20, 19]
1284
+ # - rtprio - max realtime priority
1285
+ #
1286
+ #<domain> <type> <item> <value>
1287
+ #
1288
+
1289
+ #* soft core 0
1290
+ #* hard rss 10000
1291
+ #@student hard nproc 20
1292
+ #@faculty soft nproc 20
1293
+ #@faculty hard nproc 50
1294
+ #ftp hard nproc 0
1295
+ #@student - maxlogins 4
1296
+ @{{ .Values.image.userName }} soft memlock unlimited
1297
+ @{{ .Values.image.userName }} hard memlock unlimited
1298
+
1299
+ # End of file
helm/templates/data-pvc.yaml ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- if and .Values.persistence.data.enabled (not .Values.persistence.data.existingClaim) }}
2
+ apiVersion: v1
3
+ kind: PersistentVolumeClaim
4
+ metadata:
5
+ name: {{ template "docker-osx.fullname" . }}-config
6
+ labels:
7
+ app: {{ template "docker-osx.name" . }}
8
+ chart: {{ template "docker-osx.chart" . }}
9
+ release: {{ .Release.Name }}
10
+ heritage: {{ .Release.Service }}
11
+ {{- with .Values.persistence.annotations }}
12
+ annotations:
13
+ {{ toYaml . | indent 4 }}
14
+ {{- end }}
15
+ spec:
16
+ accessModes:
17
+ - {{ .Values.persistence.config.accessMode | quote }}
18
+ resources:
19
+ requests:
20
+ storage: {{ .Values.persistence.config.size | quote }}
21
+ {{- if .Values.persistence.config.storageClass }}
22
+ {{- if (eq "-" .Values.persistence.config.storageClass) }}
23
+ storageClassName: ""
24
+ {{- else }}
25
+ storageClassName: "{{ .Values.persistence.config.storageClass }}"
26
+ {{- end }}
27
+ {{- end }}
28
+ {{- end -}}
helm/templates/deployment.yaml ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: apps/v1
2
+ kind: Deployment
3
+ metadata:
4
+ name: {{ include "docker-osx.fullname" . }}
5
+ labels:
6
+ app.kubernetes.io/name: {{ include "docker-osx.name" . }}
7
+ helm.sh/chart: {{ include "docker-osx.chart" . }}
8
+ app.kubernetes.io/instance: {{ .Release.Name }}
9
+ app.kubernetes.io/managed-by: {{ .Release.Service }}
10
+ spec:
11
+ replicas: {{ .Values.replicaCount }}
12
+ selector:
13
+ matchLabels:
14
+ app.kubernetes.io/name: {{ include "docker-osx.name" . }}
15
+ app.kubernetes.io/instance: {{ .Release.Name }}
16
+ template:
17
+ metadata:
18
+ labels:
19
+ app.kubernetes.io/name: {{ include "docker-osx.name" . }}
20
+ app.kubernetes.io/instance: {{ .Release.Name }}
21
+ spec:
22
+ containers:
23
+ - name: {{ .Chart.Name }}
24
+ image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
25
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
26
+ securityContext:
27
+ allowPrivilegeEscalation: true
28
+ readOnlyRootFilesystem: false
29
+ privileged: true
30
+ capabilities:
31
+ add:
32
+ - net_raw
33
+ - NET_ADMIN
34
+ ports:
35
+ - name: http
36
+ containerPort: {{ .Values.service.port }}
37
+ protocol: TCP
38
+ livenessProbe:
39
+ tcpSocket:
40
+ port: http
41
+ {{- if .Values.qemu.systemInstaller.downloadDelay }}
42
+ initialDelaySeconds: {{ .Values.qemu.systemInstaller.downloadDelay }}
43
+ {{- end }}
44
+ readinessProbe:
45
+ tcpSocket:
46
+ port: http
47
+ {{- if .Values.qemu.systemInstaller.downloadDelay }}
48
+ initialDelaySeconds: {{ .Values.qemu.systemInstaller.downloadDelay }}
49
+ {{- end }}
50
+ env:
51
+ - name: CORES
52
+ value: "{{ .Values.resources.requests.cpu }}"
53
+ - name: SMP
54
+ value: "{{ .Values.resources.requests.cpu }}"
55
+ - name: RAM
56
+ value: "{{ .Values.resources.requests.memory | trimSuffix "Mi" }}"
57
+ - name: TZ
58
+ value: "{{ .Values.tz }}"
59
+ - name: DISPLAY
60
+ value: ':0.0'
61
+ resources:
62
+ {{ toYaml .Values.resources | indent 10 }}
63
+ volumeMounts:
64
+ - mountPath: /home/{{ .Values.image.userName }}/OSX-KVM/OpenCore-Catalina/config.plist
65
+ subPath: config.plist
66
+ name: boot-components
67
+ - mountPath: /home/{{ .Values.image.userName }}/OSX-KVM/Launch_custom.sh
68
+ subPath: Launch_custom.sh
69
+ name: boot-components
70
+ - mountPath: /home/{{ .Values.image.userName }}/OSX-KVM/vncpasswd_file
71
+ subPath: vncpasswd_file
72
+ name: boot-components
73
+ - mountPath: /dev/kvm
74
+ name: kvm
75
+ - mountPath: /dev/net/tun
76
+ name: tun
77
+ {{- if .Values.qemu.hardwareGpu.enabled }}
78
+ - mountPath: /etc/security/limits.conf
79
+ subPath: limits.conf
80
+ name: boot-components
81
+ - mountPath: /dev/vfio/vfio
82
+ name: vfio
83
+ - mountPath: /dev/vfio/{{ .Values.qemu.hardwareGpu.vfioGroup }}
84
+ name: vfio-group
85
+ - mountPath: /lib/modules
86
+ name: lib-modules
87
+ {{- end }}
88
+ - mountPath: /dev/snd
89
+ name: snd
90
+ - mountPath: /tmp/.X11-unix
91
+ name: x11
92
+ {{- if .Values.persistence.data.enabled }}
93
+ - name: data
94
+ mountPath: /mnt/data
95
+ {{- end }}
96
+ {{- if .Values.extraVolumeMounts }}{{ toYaml .Values.extraVolumeMounts | trim | nindent 8 }}{{ end }}
97
+ # args:
98
+ # -
99
+ volumes:
100
+ - name: boot-components
101
+ configMap:
102
+ name: {{ template "docker-osx.fullname" . }}-boot-components
103
+ items:
104
+ - key: config.plist
105
+ path: config.plist
106
+ - key: Launch_custom.sh
107
+ path: Launch_custom.sh
108
+ - key: vncpasswd_file
109
+ path: vncpasswd_file
110
+ {{- if .Values.qemu.hardwareGpu.enabled }}
111
+ - key: limits.conf
112
+ path: limits.conf
113
+ {{- end }}
114
+ - name: tun
115
+ hostPath:
116
+ path: /dev/net/tun
117
+ - name: kvm
118
+ hostPath:
119
+ path: /dev/kvm
120
+ {{- if .Values.qemu.hardwareGpu.enabled }}
121
+ - name: vfio
122
+ hostPath:
123
+ path: /dev/vfio/vfio
124
+ - name: vfio-group
125
+ hostPath:
126
+ path: /dev/vfio/{{ .Values.qemu.hardwareGpu.vfioGroup }}
127
+ - name: lib-modules
128
+ hostPath:
129
+ path: /lib/modules
130
+ {{- end }}
131
+ - name: snd
132
+ hostPath:
133
+ path: /dev/snd
134
+ - name: x11
135
+ hostPath:
136
+ path: /dev/ssd_data/default/{{ .Release.Name }}/.X11-unix
137
+ {{- if .Values.persistence.data.enabled }}
138
+ - name: data
139
+ persistentVolumeClaim:
140
+ claimName: {{ if .Values.persistence.data.existingClaim }}{{ .Values.persistence.data.existingClaim }}{{- else }}{{ template "docker-osx.fullname" . }}-data{{- end }}
141
+ {{- else }}
142
+ emptyDir: {}
143
+ {{- end }}
144
+ {{- if .Values.extraVolumes }}{{ toYaml .Values.extraVolumes | trim | nindent 6 }}{{ end }}
145
+ {{- if .Values.nodeSelector }}
146
+ nodeSelector:
147
+ {{ toYaml .Values.nodeSelector | indent 8 }}
148
+ {{- end }}
helm/templates/ingress.yaml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- if .Values.ingress.enabled -}}
2
+ {{- $fullName := include "docker-osx.fullname" . -}}
3
+ {{- $ingressPath := .Values.ingress.path -}}
4
+ apiVersion: extensions/v1
5
+ kind: Ingress
6
+ metadata:
7
+ name: {{ $fullName }}
8
+ labels:
9
+ app.kubernetes.io/name: {{ include "docker-osx.name" . }}
10
+ helm.sh/chart: {{ include "docker-osx.chart" . }}
11
+ app.kubernetes.io/instance: {{ .Release.Name }}
12
+ app.kubernetes.io/managed-by: {{ .Release.Service }}
13
+ {{- with .Values.ingress.annotations }}
14
+ annotations:
15
+ {{ toYaml . | indent 4 }}
16
+ {{- end }}
17
+
18
+ spec:
19
+ {{- if .Values.ingress.tls }}
20
+ tls:
21
+ {{- range .Values.ingress.tls }}
22
+ - hosts:
23
+ {{- range .hosts }}
24
+ - {{ . | quote }}
25
+ {{- end }}
26
+ secretName: {{ .secretName }}
27
+ {{- end }}
28
+ {{- end }}
29
+ rules:
30
+ {{- range .Values.ingress.hosts }}
31
+ - host: {{ . | quote }}
32
+ http:
33
+ paths:
34
+ - path: {{ $ingressPath }}
35
+ backend:
36
+ serviceName: {{ $fullName }}
37
+ servicePort: http
38
+ {{- end }}
39
+ {{- end }}
helm/templates/service.yaml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ apiVersion: v1
2
+ kind: Service
3
+ metadata:
4
+ name: {{ include "docker-osx.fullname" . }}
5
+ labels:
6
+ app.kubernetes.io/name: {{ include "docker-osx.name" . }}
7
+ helm.sh/chart: {{ include "docker-osx.chart" . }}
8
+ app.kubernetes.io/instance: {{ .Release.Name }}
9
+ app.kubernetes.io/managed-by: {{ .Release.Service }}
10
+ spec:
11
+ type: {{ .Values.service.type }}
12
+ ports:
13
+ - port: {{ .Values.service.port }}
14
+ targetPort: {{ .Values.service.targetPort }}
15
+ protocol: TCP
16
+ name: http
17
+ - port: 8888
18
+ targetPort: 5999
19
+ protocol: TCP
20
+ name: vnc
21
+ {{- range .Values.service.extraPorts }}
22
+ - port: {{ .port }}
23
+ targetPort: {{ .targetPort }}
24
+ protocol: {{ .protocol }}
25
+ name: {{ .name }}
26
+ {{- end }}
27
+ selector:
28
+ app.kubernetes.io/name: {{ include "docker-osx.name" . }}
29
+ app.kubernetes.io/instance: {{ .Release.Name }}
30
+ {{- if .Values.service.ip }}
31
+ loadBalancerIP: {{ .Values.service.ip }}
32
+ {{- end }}
helm/values.yaml ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is a YAML-formatted file.
2
+ # Declare variables to be passed into your templates.
3
+
4
+ replicaCount: 1
5
+
6
+ image:
7
+ repository: sickcodes/docker-osx-vnc
8
+ tag: latest
9
+ pullPolicy: IfNotPresent
10
+ userName: ubuntu
11
+
12
+ # Please note, this must be a directory name within `/system_image` mounted at the bottom in extraVolumeMounts
13
+ serverName: server
14
+
15
+ macos:
16
+ # add kexts to EFI/OC/kexts and update config.plist
17
+ # make sure your kexts are in kexts.path
18
+ kexts:
19
+ add: false
20
+ path: /system_image/kexts
21
+ kextsToAdd: {}
22
+ # - name: BrcmBluetoothInjector.kext
23
+ # executablePath: Contents/MacOS/BrcmBluetoothInjector
24
+ # plistPath: Contents/Info.plist
25
+ # - name: BrcmFirmwareData.kext
26
+ # executablePath: Contents/MacOS/BrcmFirmwareData
27
+ # plistPath: Contents/Info.plist
28
+ # - name: BrcmPatchRAM3.kext
29
+ # executablePath: Contents/MacOS/BrcmPatchRAM3
30
+ # plistPath: Contents/Info.plist
31
+ # SMBIOS settings
32
+ configPlist:
33
+ SystemProductName: iMacPro1,1
34
+ MLB: D25338500GUF8YLJA
35
+ SystemSerialNumber: D25LF7ZEF8JC
36
+ SystemUUID: 139C94D6-A533-47D2-874F-D365BFD8B047
37
+ bootArgs: '-v keepsyms=1 tlbto_us=0 vti=9 -wegoff agdpmod=pikera'
38
+ openCore:
39
+ # Rebuild OpenCore.qcow2: this can be disabled if none of the above parameters in kexts, configPlist changes, and changing the
40
+ # resolution are not desired, utilizing gpu passthrough and a few other things. Disabling is not recommended
41
+ rebuild: true
42
+ boot:
43
+ # set to zero to have OpenCore stay at boot menu
44
+ timeout: 0
45
+ installerSettings:
46
+ # if using more than one deployment, a write lock will be put on the system installer dmg, so this will need to be disabled
47
+ # for other pods
48
+ version: 10.15.7
49
+ path: /system_image/installers
50
+
51
+ # This section defines QEMU and virtlo parameters
52
+ #
53
+ # Note:
54
+ # *) Increase downloadDelay if the pod gets killed for readiness/liveliness check. The first time the pod is started,
55
+ # it will download the BaseSystem image and create a data partition to install the OS. If this value is really long,
56
+ # the pod will take very long to allow VNC connections if it is rebooted/killed.
57
+ # *) Big Sur (11.X) is currently broken, as it seems Apple reworked the packaging so that will have to be something fixed in
58
+ # https://github.com/kholia/OSX-KVM/blob/master/fetch-macOS-v2.py
59
+ # *) VNC and IOMMU GPU passthrough do not play together well. Disable one if using the other. This is a limitation of QEMU
60
+ # unfortunately, so this means VNC from macOS will have to be used to view the VM when not using a physical GPU.
61
+ # *) If using GPU passthrough, it is recommended to configure it first, as the installer will take way longer (several hours)
62
+ # to install macOS with a software GPU configured.
63
+ #
64
+ qemu:
65
+ cpu: Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+xsave,+xsaveopt,check
66
+ softwareGpu: vmware
67
+ hardwareGpu:
68
+ # when enabled, qemu.softwareGpu will be disabled automatically. disabling this will rely on softwareGpu instead
69
+ enabled: false
70
+ hardwareId: 09:00
71
+ # slot can be found with `lspci -v -s <hardware-id>`
72
+ slot: 05
73
+ # vfioGroup can be found with lsgroup.sh:
74
+ # https://github.com/kholia/OSX-KVM/blob/master/scripts/lsgroup.sh
75
+ vfioGroup: 50
76
+ # leave romfile blank if not using one to disable
77
+ romfile: /system_image/vbios/Sapphire.RX480.8192.160603.rom
78
+ systemInstaller:
79
+ # if using more than one deployment, a write lock will be put on the system installer dmg, so this will need to be disabled
80
+ # for other pods
81
+ enabled: false
82
+ downloadDelay: 15
83
+ # can be `writethrough`, `writeback`, or `none`
84
+ cache: none
85
+ # can be `native` or `threads`
86
+ io: threads
87
+ systemDisk:
88
+ size: 128G
89
+ # can be `writethrough`, `writeback`, or `none`
90
+ cache: writeback
91
+ # can be `native` or `threads`
92
+ io: threads
93
+ audio:
94
+ # this enables onboard audio, hdmi audio is handled with qemu.hardwareGpu
95
+ enabled: false
96
+ driver: alsa
97
+ netdev:
98
+ extraPortForwarding: hostfwd=tcp::5901-:5900
99
+ # for usb, pass host adapters like such:
100
+ # usb:
101
+ # - vendorId: 0a5c
102
+ # productId: 21e8
103
+ #
104
+ # please use lsgroup.sh to find your host ids:
105
+ # https://github.com/kholia/OSX-KVM/blob/master/scripts/lsgroup.sh
106
+ #
107
+ # for usb, may need to fix permissions:
108
+ # sudo chmod 666 /dev/bus/usb/<bus>/<device>
109
+ #
110
+ # if need to add a usb controller via vfio-pci, use qemu.extraArgs
111
+ #
112
+ usb: {}
113
+ # use the following formatting
114
+ # extraArgs:
115
+ # - -parallel none
116
+ # - -boot order=dc
117
+ extraArgs: {}
118
+
119
+ # Password for accessing vm over vnc
120
+ vnc:
121
+ enabled: true
122
+ resolution: 1920x1080
123
+ password: a5aeQbaPd4$jR80Q43
124
+
125
+ nameOverride: ""
126
+ fullnameOverride: ""
127
+
128
+ service:
129
+ type: LoadBalancer
130
+ ip: 192.168.1.10
131
+ targetPort: 50922
132
+ port: 10022
133
+ extraPorts:
134
+ - port: 5901
135
+ targetPort: 5901
136
+ protocol: TCP
137
+ name: os-level-vnc
138
+
139
+ ingress:
140
+ enabled: false
141
+ annotations: {}
142
+ # kubernetes.io/ingress.class: nginx
143
+ # kubernetes.io/tls-acme: "true"
144
+ paths:
145
+ - /
146
+ hosts:
147
+ - docker-osx.local
148
+ tls: []
149
+ # - secretName: chart-example-tls
150
+ # hosts:
151
+ # - chart-example.local
152
+
153
+ # Note: Resources can vary dramatically depending on disk caching and software GPU rendering. With disk
154
+ # caching and software rendering up to x5 the cpu and x9 memory can be consumed. With disk cache off
155
+ # and GPU passthrough enabled up to x3 the cpu and x1.5 memory can be consumed. Therefore, these settings
156
+ # really depend on hardware and configuration choices. Note, these values used a 1080p video resolution
157
+ # as well.
158
+ #
159
+ # Warning: do not perform unit conversion on cpu and memory requests, as these units
160
+ # are tied qemu and virtio settings. Also, only use intergers for cpu requests.
161
+ resources:
162
+ limits:
163
+ cpu: 15
164
+ memory: 32768Mi
165
+ requests:
166
+ cpu: 4
167
+ memory: 16384Mi
168
+
169
+ nodeSelector: {}
170
+
171
+ tolerations: []
172
+
173
+ affinity: {}
174
+
175
+ persistence:
176
+ data:
177
+ enabled: false
178
+ ## configuration data Persistent Volume Storage Class
179
+ ## If defined, storageClassName: <storageClass>
180
+ ## If set to "-", storageClassName: "", which disables dynamic provisioning
181
+ ## If undefined (the default) or set to null, no storageClassName spec is
182
+ ## set, choosing the default provisioner. (gp2 on AWS, standard on
183
+ ## GKE, AWS & OpenStack)
184
+ ##
185
+ # storageClass: "-"
186
+ ##
187
+ ## If you want to reuse an existing claim, you can pass the name of the PVC using
188
+ ## the existingClaim variable
189
+ existingClaim: docker-osx
190
+ accessMode: ReadWriteOnce
191
+ size: 5Gi
192
+
193
+ # Any extra volumes to define for the pod
194
+ extraVolumes:
195
+ - name: data
196
+ hostPath:
197
+ path: /mnt/data/default/docker_osx/
198
+ type: DirectoryOrCreate
199
+
200
+ # Any extra volume mounts to define for the containers
201
+ extraVolumeMounts:
202
+ - name: data
203
+ mountPath: /system_image
rankmirrors ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/bash
2
+ #
3
+ # rankmirrors - read a list of mirrors from a file and rank them by speed
4
+ # Generated from rankmirrors.sh.in; do not edit by hand.
5
+ #
6
+ # Copyright (c) 2009 Matthew Bruenig <matthewbruenig@gmail.com>
7
+ #
8
+ # This program is free software; you can redistribute it and/or modify
9
+ # it under the terms of the GNU General Public License as published by
10
+ # the Free Software Foundation; either version 3 of the License, or
11
+ # (at your option) any later version.
12
+ #
13
+ # This program is distributed in the hope that it will be useful,
14
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ # GNU General Public License for more details.
17
+ #
18
+ # You should have received a copy of the GNU General Public License
19
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+
21
+ # traps interrupt key to spit out pre-interrupt info
22
+ trap finaloutput INT
23
+
24
+ declare -r myname='rankmirrors'
25
+ declare -r myver='1.4.0'
26
+
27
+ usage() {
28
+ echo "${myname} v${myver}"
29
+ echo
30
+ echo "Ranks pacman mirrors by their connection and opening speed. Pacman mirror"
31
+ echo "files are located in /etc/pacman.d/. It can also rank one mirror if the URL is"
32
+ echo "provided."
33
+ echo
34
+ echo "Usage: ${myname} [options] MIRRORFILE | URL"
35
+ echo
36
+ echo "Options:"
37
+ echo " --version show program's version number and exit"
38
+ echo " -h, --help show this help message and exit"
39
+ echo " -n NUM number of servers to output, 0 for all"
40
+ echo " -m, --max-time NUM specify a ranking operation timeout, can be decimal number"
41
+ echo " -t, --times only output mirrors and their response times"
42
+ echo " -u, --url test a specific URL"
43
+ echo " -v, --verbose be verbose in output"
44
+ echo " -r, --repo specify a repository name instead of guessing"
45
+ exit 0
46
+ }
47
+
48
+ version() {
49
+ echo "${myname} (pacman) ${myver}"
50
+ echo "Copyright (c) 2009 Matthew Bruenig <matthewbruenig@gmail.com>."
51
+ echo
52
+ echo "This is free software; see the source for copying conditions."
53
+ echo "There is NO WARRANTY, to the extent permitted by law."
54
+ exit 0
55
+ }
56
+
57
+ err() {
58
+ echo "$1" >&2
59
+ exit 1
60
+ }
61
+
62
+ # gettime fetchurl (e.g gettime http://foo.com/core/os/i686/core.db.tar.gz)
63
+ # returns the fetching time, or timeout, or unreachable
64
+ gettime() {
65
+ IFS=' ' output=( $(curl -s -m $MAX_TIME -w "%{time_total} %{http_code}" "$1" -o/dev/null) )
66
+ (( $? == 28 )) && echo timeout && return
67
+ (( ${output[1]} >= 400 || ! ${output[1]} )) && echo unreachable && return
68
+ echo "${output[0]}"
69
+ }
70
+
71
+ # getfetchurl serverurl (e.g. getturl http://foo.com/core/os/i686)
72
+ # if $repo is in the line, then assumes core
73
+ # if $arch is in the line, then assumes $(uname -m)
74
+ # returns a fetchurl (e.g. http://foo.com/core/os/i686/core.db.tar.gz)
75
+ ARCH="$(uname -m)"
76
+ getfetchurl() {
77
+ local strippedurl="${1%/}"
78
+
79
+ local replacedurl="${strippedurl//'$arch'/$ARCH}"
80
+ if [[ ! $TARGETREPO ]]; then
81
+ replacedurl="${replacedurl//'$repo'/core}"
82
+ local tmp="${replacedurl%/*}"
83
+ tmp="${tmp%/*}"
84
+
85
+ local reponame="${tmp##*/}"
86
+ else
87
+ replacedurl="${replacedurl//'$repo'/$TARGETREPO}"
88
+ local reponame="$TARGETREPO"
89
+ fi
90
+
91
+ if [[ -z $reponame || $reponame = $replacedurl ]]; then
92
+ echo "fail"
93
+ else
94
+ local fetchurl="${replacedurl}/$reponame.db"
95
+ echo "$fetchurl"
96
+ fi
97
+ }
98
+
99
+ # This exists to remove the need for a separate interrupt function
100
+ finaloutput() {
101
+ IFS=$'\n' read -r -d '' -a sortedarray < \
102
+ <(printf '%s\n' "${timesarray[@]}" | LC_COLLATE=C sort)
103
+
104
+ # Final output for mirrorfile
105
+ numiterator="0"
106
+ if [[ $TIMESONLY ]]; then
107
+ echo
108
+ echo " Servers sorted by time (seconds):"
109
+ for line in "${sortedarray[@]}"; do
110
+ echo "${line#* } : ${line% *}"
111
+ ((numiterator++))
112
+ (( NUM && numiterator >= NUM )) && break
113
+ done
114
+ else
115
+ for line in "${sortedarray[@]}"; do
116
+ echo "Server = ${line#* }"
117
+ ((numiterator++))
118
+ (( NUM && numiterator >= NUM )) && break
119
+ done
120
+ fi
121
+ exit 0
122
+ }
123
+
124
+
125
+ # Argument parsing
126
+ [[ $1 ]] || usage
127
+ while [[ $1 ]]; do
128
+ if [[ ${1:0:2} = -- ]]; then
129
+ case "${1:2}" in
130
+ help) usage ;;
131
+ version) version ;;
132
+ max-time)
133
+ [[ $2 ]] || err "Must specify number.";
134
+ MAX_TIME="$2"
135
+ shift 2;;
136
+ times) TIMESONLY=1 ; shift ;;
137
+ verbose) VERBOSE=1 ; shift ;;
138
+ url)
139
+ CHECKURL=1;
140
+ [[ $2 ]] || err "Must specify URL.";
141
+ URL="$2";
142
+ shift 2;;
143
+ repo)
144
+ [[ $2 ]] || err "Must specify repository name.";
145
+ TARGETREPO="$2";
146
+ shift 2;;
147
+ *) err "'$1' is an invalid argument."
148
+ esac
149
+ elif [[ ${1:0:1} = - ]]; then
150
+
151
+ if [[ ! ${1:1:1} ]]; then
152
+ [[ -t 0 ]] && err "Stdin is empty."
153
+ IFS=$'\n' linearray=( $(</dev/stdin) )
154
+ STDIN=1
155
+ shift
156
+ else
157
+ snum=1
158
+ for ((i=1 ; i<${#1}; i++)); do
159
+ case ${1:$i:1} in
160
+ h) usage ;;
161
+ m)
162
+ [[ $2 ]] || err "Must specify number.";
163
+ MAX_TIME="$2"
164
+ snum=2;;
165
+ t) TIMESONLY=1 ;;
166
+ v) VERBOSE=1 ;;
167
+ u)
168
+ CHECKURL=1;
169
+ [[ $2 ]] || err "Must specify URL.";
170
+ URL="$2";
171
+ snum=2;;
172
+ r)
173
+ [[ $2 ]] || err "Must specify repository name.";
174
+ TARGETREPO="$2";
175
+ snum=2;;
176
+ n)
177
+ [[ $2 ]] || err "Must specify number.";
178
+ NUM="$2";
179
+ snum=2;;
180
+ *) err "'$1' is an invalid argument." ;;
181
+ esac
182
+ done
183
+ shift $snum
184
+ fi
185
+ elif [[ -f $1 ]]; then
186
+ FILE="1"
187
+ IFS=$'\n' linearray=( $(<$1) )
188
+ [[ $linearray ]] || err "File is empty."
189
+ shift
190
+ else
191
+ err "'$1' does not exist."
192
+ fi
193
+ done
194
+
195
+ # Some sanity checks
196
+ [[ $NUM ]] || NUM=0
197
+ [[ $MAX_TIME ]] || MAX_TIME=10
198
+ [[ $FILE && $CHECKURL ]] && err "Cannot specify a URL and mirrorfile."
199
+ [[ $FILE || $CHECKURL || $STDIN ]] || err "Must specify URL, mirrorfile, or stdin."
200
+
201
+ # Single URL handling
202
+ if [[ $CHECKURL ]]; then
203
+ url="$(getfetchurl "$URL")"
204
+ [[ $url = fail ]] && err "URL '$URL' is malformed."
205
+ [[ $VERBOSE ]] && echo "Testing $url..."
206
+ time=$(gettime "$url")
207
+ echo "$URL : $time"
208
+ exit 0
209
+ fi
210
+
211
+ # Get URL results from mirrorfile, fill up the array, and so on
212
+ if [[ $TIMESONLY ]]; then
213
+ echo "Querying servers. This may take some time..."
214
+ elif [[ $FILE ]]; then
215
+ echo "# Server list generated by rankmirrors on $(date +%Y-%m-%d)"
216
+ fi
217
+
218
+ timesarray=()
219
+ for line in "${linearray[@]}"; do
220
+ if [[ $line =~ ^[[:space:]]*# ]]; then
221
+ [[ $TIMESONLY ]] || echo $line
222
+ elif [[ $line =~ ^[[:space:]]*Server ]]; then
223
+
224
+ # Getting values and times and such
225
+ server="${line#*= }"
226
+ server="${server%%#*}"
227
+ url="$(getfetchurl "$server")"
228
+ [[ $url = fail ]] && err "URL '$URL' is malformed."
229
+ time=$(gettime "$url")
230
+ timesarray+=("$time $server")
231
+
232
+ # Output
233
+ if [[ $VERBOSE && $TIMESONLY ]]; then
234
+ echo "$server ... $time"
235
+ elif [[ $VERBOSE ]]; then
236
+ echo "# $server ... $time"
237
+ elif [[ $TIMESONLY ]]; then
238
+ echo -n " *"
239
+ fi
240
+ fi
241
+ done
242
+ finaloutput
243
+
244
+ # vim: set noet:
running-mac-inside-docker-qemu.png ADDED
tests/big-sur_master.png ADDED
tests/boot-images.sh ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Author: Sick.Codes https://twitter.com/sickcodes
3
+ # Contact: https://github.com/sickcodes, https://sick.codes
4
+ # Copyright: sickcodes (C) 2021
5
+ # License: GPLv3+
6
+ # Title: Docker-OSX (Mac on Docker)
7
+ # Repository: https://github.com/sickcodes/Docker-OSX
8
+ # Website: https://sick.codes
9
+ #
10
+ # Status: Used internally to run each image and take screenshots until they match the pngs in this folder.
11
+ #
12
+
13
+ # note to self: # to get master images, boot each image, then screen shot using DISPLAY=:99 in the test.sh script
14
+ # scrot -o high-sierra_master.png
15
+ # scrot -o mojave_master.png
16
+ # scrot -o catalina_master.png
17
+ # scrot -o big-sur_master.png
18
+ # scrot -o monterey_master.png
19
+ # scrot -o ventura_master.png
20
+ # pull off remote server to the tests folder
21
+ # REMOTE_SERVER=
22
+ # scp root@"${REMOTE_SERVER}":~/*_master.png .
23
+
24
+ export DISPLAY=:99
25
+
26
+ TESTS=(
27
+ high-sierra
28
+ mojave
29
+ catalina
30
+ big-sur
31
+ monterey
32
+ ventura
33
+ )
34
+
35
+ # test each docker image to see if they boot to their unique respective installation screens.
36
+
37
+ for TEST in "${TESTS[@]}"; do
38
+ # run the image detached
39
+ docker run --rm -d \
40
+ --device /dev/kvm \
41
+ -v /tmp/.X11-unix:/tmp/.X11-unix \
42
+ -e "DISPLAY=:99" \
43
+ "sickcodes/docker-osx:${TEST}"
44
+
45
+ # imcat the expected test screenshot to ./"${TEST}_master.txt"
46
+ imcat ~/Docker-OSX/tests/${TEST}_master.png > ./"${TEST}_master.txt"
47
+
48
+ # run until the screen matches the expected screen
49
+ while :; do
50
+ sleep 5
51
+ # screenshot the Xvfb
52
+ scrotcat > ./"${TEST}.txt"
53
+ # diff the low res txt files created from imcat
54
+ diff "./${TEST}.txt" ./"${TEST}_master.txt" && break
55
+ scrotcat
56
+ done
57
+
58
+ # kill any containers
59
+ docker kill "$(docker ps --format "{{.ID}}")"
60
+
61
+ # ensure all containers are dead
62
+ until [[ "$(docker ps | wc -l)" = 1 ]]; do
63
+ sleep 1
64
+ docker ps | xargs docker kill
65
+ done
66
+
67
+ done
68
+
69
+ exit 0
tests/catalina_master.png ADDED
tests/high-sierra_master.png ADDED
tests/mojave_master.png ADDED
tests/monterey_master.png ADDED
tests/test.sh ADDED
@@ -0,0 +1,348 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/bash
2
+ # ____ __ ____ ______ __
3
+ # / __ \____ _____/ /_____ _____/ __ \/ ___/ |/ /
4
+ # / / / / __ \/ ___/ //_/ _ \/ ___/ / / /\__ \| /
5
+ # / /_/ / /_/ / /__/ ,< / __/ / / /_/ /___/ / |
6
+ # /_____/\____/\___/_/|_|\___/_/ \____//____/_/|_| TESTS
7
+ #
8
+ # Title: Docker-OSX (Mac on Docker)
9
+ # Author: Sick.Codes https://twitter.com/sickcodes
10
+ # Version: 4.2
11
+ # License: GPLv3+
12
+ # Repository: https://github.com/sickcodes/Docker-OSX
13
+ # Website: https://sick.codes
14
+ #
15
+ # Status: Used internally to auto build, run and test images on DO.
16
+ #
17
+
18
+ help_text="Usage: ./test.sh --branch <string> --repo <string>
19
+
20
+ General options:
21
+ --branch, -b <string> Git branch, default is master
22
+ --repo, -r <url> Alternative link to build
23
+ --mirror-country, -m <SS> Two letter country code for Arch mirrors
24
+ --docker-username, -u <string> Docker hub username
25
+ --docker-password, -p <string> Docker hub password
26
+ --vnc-password, -v <string> Choose a VNC passwd.
27
+
28
+ Flags
29
+ --no-cache, -n Enable --no-cache (default already)
30
+ --no-no-cache, -nn Disable --no-cache docker builds
31
+ --help, -h, help Display this help and exit
32
+ "
33
+
34
+ # set -xeuf -o pipefail
35
+
36
+
37
+ # gather arguments
38
+ while (( "$#" )); do
39
+ case "${1}" in
40
+
41
+ --help | -h | h | help )
42
+ echo "${help_text}" && exit 0
43
+ ;;
44
+
45
+ --branch=* | -b=* )
46
+ export BRANCH="${1#*=}"
47
+ shift
48
+ ;;
49
+ --branch* | -b* )
50
+ export BRANCH="${2}"
51
+ shift
52
+ shift
53
+ ;;
54
+ --repo=* | -r=* )
55
+ export REPO="${1#*=}"
56
+ shift
57
+ ;;
58
+ --repo* | -r* )
59
+ export REPO="${2}"
60
+ shift
61
+ shift
62
+ ;;
63
+ --mirror-country=* | -m=* )
64
+ export MIRROR_COUNTRY="${1#*=}"
65
+ shift
66
+ ;;
67
+ --mirror-country* | -m* )
68
+ export MIRROR_COUNTRY="${2}"
69
+ shift
70
+ shift
71
+ ;;
72
+ --vnc-password=* | -v=* | --vnc-passwd=* )
73
+ export VNC_PASSWORD="${1#*=}"
74
+ shift
75
+ ;;
76
+ --vnc-password* | -v* | --vnc-passwd* )
77
+ export VNC_PASSWORD="${2}"
78
+ shift
79
+ shift
80
+ ;;
81
+ --docker-username=* | -u=* )
82
+ export DOCKER_USERNAME="${1#*=}"
83
+ shift
84
+ ;;
85
+ --docker-username* | -u* )
86
+ export DOCKER_USERNAME="${2}"
87
+ shift
88
+ shift
89
+ ;;
90
+ --docker-password=* | -p=* )
91
+ export DOCKER_PASSWORD="${1#*=}"
92
+ shift
93
+ ;;
94
+ --docker-password* | -p* )
95
+ export DOCKER_PASSWORD="${2}"
96
+ shift
97
+ shift
98
+ ;;
99
+ --no-cache | -n )
100
+ export NO_CACHE='--no-cache'
101
+ shift
102
+ ;;
103
+ --no-no-cache | -nn )
104
+ export NO_CACHE=
105
+ shift
106
+ ;;
107
+ *)
108
+ echo "Invalid option: ${1}"
109
+ exit 1
110
+ ;;
111
+
112
+ esac
113
+ done
114
+
115
+ BRANCH="${BRANCH:=master}"
116
+ REPO="${REPO:=https://github.com/sickcodes/Docker-OSX.git}"
117
+ VNC_PASSWORD="${VNC_PASSWORD:=testing}"
118
+ MIRROR_COUNTRY="${MIRROR_COUNTRY:=US}"
119
+ NO_CACHE="${NO_CACHE:=--no-cache}"
120
+
121
+
122
+ TEST_BUILDS=(
123
+ 'docker-osx:naked'
124
+ 'docker-osx:naked-auto'
125
+ 'docker-osx:auto'
126
+ )
127
+
128
+ TEST_BUILDS=(
129
+ 'docker-osx:naked'
130
+ 'docker-osx:naked-auto'
131
+ 'docker-osx:auto'
132
+ )
133
+
134
+ VERSION_BUILDS=(
135
+ 'high-sierra'
136
+ 'mojave'
137
+ 'catalina'
138
+ 'big-sur'
139
+ 'monterey'
140
+ 'ventura'
141
+ )
142
+
143
+ warning () {
144
+ clear
145
+ for j in {15..1}; do
146
+ echo "############# WARNING: THIS SCRIPT IS NOT INTENDED FOR USE BY ################"
147
+ echo "############# IT IS USED BY THE PROJECT TO BUILD AND PUSH TO DOCKERHUB #######"
148
+ echo ""
149
+ echo " Press Ctrl C to stop. "
150
+ MAX_COLS=$((${COLUMNS}/2))
151
+ printf "$j %.0s" {1..20}
152
+ echo
153
+ sleep 1
154
+ done
155
+ }
156
+
157
+ install_docker () {
158
+ apt remove docker docker-engine docker.io containerd runc -y \
159
+ ; apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y \
160
+ && curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
161
+ && apt-key fingerprint 0EBFCD88 \
162
+ && > /etc/apt/sources.list.d/docker.list \
163
+ && add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
164
+ && apt update -y \
165
+ && apt install docker-ce docker-ce-cli containerd.io -y \
166
+ && usermod -aG docker "${USER}" \
167
+ && su hook docker run --rm hello-world
168
+ }
169
+
170
+ install_vnc () {
171
+ apt update -y \
172
+ && apt install xorg openbox tigervnc-standalone-server tigervnc-common tigervnc-xorg-extension tigervnc-viewer -y \
173
+ && mkdir -p ${HOME}/.vnc \
174
+ && touch ~/.vnc/config \
175
+ && tee -a ~/.vnc/config <<< 'geometry=1920x1080' \
176
+ && tee -a ~/.vnc/config <<< 'localhost' \
177
+ && tee -a ~/.vnc/config <<< 'alwaysshared' \
178
+ && touch ./vnc.sh \
179
+ && printf '\n%s\n' \
180
+ 'sudo rm -f /tmp/.X99-lock' \
181
+ 'export DISPLAY=:99' \
182
+ '/usr/bin/Xvnc -geometry 1920x1080 -rfbauth ~/.vnc/passwd :99 &' > ./vnc.sh \
183
+ && tee vncpasswd_file <<< "${VNC_PASSWORD:=testing}" && echo "${VNC_PASSWORD:="$(tr -dc '[:graph:]' </dev/urandom | head -c8)"}" \
184
+ && vncpasswd -f < vncpasswd_file > ${HOME}/.vnc/passwd \
185
+ && chmod 600 ~/.vnc/passwd \
186
+ && apt install qemu qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager -y \
187
+ && sudo systemctl enable libvirtd.service \
188
+ && sudo systemctl enable virtlogd.service \
189
+ && echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs \
190
+ && sudo modprobe kvm \
191
+ && echo 'export DISPLAY=:99' >> ~/.bashrc \
192
+ && printf '\n\n\n\n%s\n%s\n\n\n\n' '===========VNC_PASSWORD========== ' "$(<vncpasswd_file)"
193
+ # ufw allow 5999
194
+ }
195
+
196
+ install_scrotcat () {
197
+ apt update -y
198
+ apt install git curl wget vim xvfb scrot build-essential sshpass -y
199
+ git clone https://github.com/stolk/imcat.git
200
+ make -C ./imcat
201
+ sudo cp ./imcat/imcat /usr/bin/imcat
202
+ touch /usr/bin/scrotcat
203
+ tee /usr/bin/scrotcat <<< '/usr/bin/imcat <(scrot -o /dev/stdout)'
204
+ chmod +x /usr/bin/scrotcat
205
+ }
206
+
207
+ export_display_99 () {
208
+ touch ~/.bashrc
209
+ tee -a ~/.bashrc <<< 'export DISPLAY=:99'
210
+ export DISPLAY=:99
211
+ }
212
+
213
+ start_xvfb () {
214
+ nohup Xvfb :99 -screen 0 1920x1080x16 &
215
+ }
216
+
217
+ start_vnc () {
218
+ nohup bash vnc.sh &
219
+ }
220
+
221
+ enable_kvm () {
222
+ echo 1 | tee /sys/module/kvm/parameters/ignore_msrs
223
+ }
224
+
225
+ clone_repo () {
226
+ git clone --branch="${1}" "${2}" Docker-OSX
227
+ }
228
+
229
+ docker-osx:naked () {
230
+ docker build ${NO_CACHE} \
231
+ --squash \
232
+ --build-arg RANKMIRRORS=true \
233
+ --build-arg MIRROR_COUNTRY="${MIRROR_COUNTRY}" \
234
+ -f ./Dockerfile.naked \
235
+ -t docker-osx:naked .
236
+ docker tag docker-osx:naked sickcodes/docker-osx:naked
237
+ }
238
+
239
+ docker-osx:naked-auto () {
240
+ docker build ${NO_CACHE} \
241
+ --squash \
242
+ --build-arg RANKMIRRORS=true \
243
+ --build-arg MIRROR_COUNTRY="${MIRROR_COUNTRY}" \
244
+ -f ./Dockerfile.naked-auto \
245
+ -t docker-osx:naked-auto .
246
+ docker tag docker-osx:naked-auto sickcodes/docker-osx:naked-auto
247
+ }
248
+
249
+ docker-osx:auto () {
250
+ docker build ${NO_CACHE} \
251
+ --build-arg RANKMIRRORS=true \
252
+ --build-arg MIRROR_COUNTRY="${MIRROR_COUNTRY}" \
253
+ -f ./Dockerfile.auto \
254
+ -t docker-osx:auto .
255
+ docker tag docker-osx:auto sickcodes/docker-osx:auto
256
+ }
257
+
258
+ # docker-osx:auto-big-sur () {
259
+ # docker build ${NO_CACHE} \
260
+ # --build-arg RANKMIRRORS=true \
261
+ # --build-arg MIRROR_COUNTRY="${MIRROR_COUNTRY}" \
262
+ # --build-arg IMAGE_URL='https://images.sick.codes/mac_hdd_ng_auto_big_sur.img' \
263
+ # -f ./Dockerfile.auto \
264
+ # -t docker-osx:auto-big-sur .
265
+ # docker tag docker-osx:auto-big-sur sickcodes/docker-osx:auto-big-sur
266
+ # }
267
+
268
+ docker-osx:version () {
269
+ SHORTNAME="${1}"
270
+ docker build ${NO_CACHE} \
271
+ --build-arg BRANCH="${BRANCH}" \
272
+ --build-arg RANKMIRRORS=true \
273
+ --build-arg SHORTNAME="${SHORTNAME}" \
274
+ --build-arg MIRROR_COUNTRY="${MIRROR_COUNTRY}" \
275
+ -f ./Dockerfile \
276
+ -t "docker-osx:${SHORTNAME}" .
277
+ docker tag "docker-osx:${SHORTNAME}" "sickcodes/docker-osx:${SHORTNAME}"
278
+ }
279
+
280
+ reset_docker_hard () {
281
+
282
+ tee /etc/docker/daemon.json <<'EOF'
283
+ {
284
+ "experimental": true
285
+ }
286
+ EOF
287
+ systemctl disable --now docker
288
+ systemctl disable --now docker.socket
289
+ systemctl stop docker
290
+ systemctl stop docker.socket
291
+ rm -rf /var/lib/docker
292
+ systemctl enable --now docker
293
+ }
294
+
295
+ warning
296
+ tee -a ~/.bashrc <<EOF
297
+ export DEBIAN_FRONTEND=noninteractive
298
+ export TZ=UTC
299
+ EOF
300
+ export DEBIAN_FRONTEND=noninteractive
301
+ export TZ=UTC
302
+ ln -snf "/usr/share/zoneinfo/${TZ}" /etc/localtime
303
+ tee -a /etc/timezone <<< "${TZ}"
304
+ apt update -y
305
+ apt-get install keyboard-configuration -y
306
+ docker -v | grep '\ 20\.\|\ 19\.' || install_docker
307
+ yes | apt install -y --no-install-recommends tzdata -y
308
+ install_scrotcat
309
+ yes | install_vnc
310
+ export_display_99
311
+ apt install xvfb -y
312
+ start_xvfb
313
+ # start_vnc
314
+ enable_kvm
315
+ reset_docker_hard
316
+ # echo killall Xvfb
317
+ clone_repo "${BRANCH}" "${REPO}"
318
+ cd ./Docker-OSX
319
+ git pull
320
+
321
+ for SHORTNAME in "${VERSION_BUILDS[@]}"; do
322
+ docker-osx:version "${SHORTNAME}"
323
+ done
324
+
325
+ docker tag docker-osx:catalina sickcodes/docker-osx:latest
326
+
327
+ for TEST_BUILD in "${TEST_BUILDS[@]}"; do
328
+ "${TEST_BUILD}"
329
+ done
330
+
331
+ # boot each image and test
332
+ bash ./tests/boot-images.sh || exit 1
333
+
334
+ if [[ "${DOCKER_USERNAME}" ]] && [[ "${DOCKER_PASSWORD}" ]]; then
335
+ docker login --username "${DOCKER_USERNAME}" --password "${DOCKER_PASSWORD}" \
336
+ && for SHORTNAME in "${VERSION_BUILDS[@]}"; do
337
+ docker push "sickcodes/docker-osx:${SHORTNAME}"
338
+ done \
339
+ && touch PUSHED
340
+ docker push sickcodes/docker-osx:naked
341
+ docker push sickcodes/docker-osx:auto
342
+ docker push sickcodes/docker-osx:naked-auto
343
+
344
+ fi
345
+
346
+ # connect remotely to your server to use VNC
347
+ # ssh -N root@1.1.1.1 -L 5999:127.0.0.1:5999
348
+
tests/ventura_master.png ADDED
vnc-version/Dockerfile ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/docker
2
+ # ____ __ ____ ______ __
3
+ # / __ \____ _____/ /_____ _____/ __ \/ ___/ |/ /
4
+ # / / / / __ \/ ___/ //_/ _ \/ ___/ / / /\__ \| /
5
+ # / /_/ / /_/ / /__/ ,< / __/ / / /_/ /___/ / |
6
+ # /_____/\____/\___/_/|_|\___/_/ \____//____/_/|_| VNC EDITION
7
+ #
8
+ # Title: Mac on Docker (Docker-OSX) [VNC EDITION]
9
+ # Author: Sick.Codes https://sick.codes/
10
+ # Version: 3.1
11
+ # License: GPLv3+
12
+ #
13
+ # All credits for OSX-KVM and the rest at Kholia's repo: https://github.com/kholia/osx-kvm
14
+ # OpenCore support go to https://github.com/Leoyzen/KVM-Opencore
15
+ # and https://github.com/thenickdude/KVM-Opencore/
16
+ #
17
+ # This Dockerfile automates the installation of Docker-OSX
18
+ # It will build a 32GB Mojave Disk, you can change the size using build arguments.
19
+ # This file builds on top of the work done by Dhiru Kholia and many others.
20
+ #
21
+ #
22
+ # Build:
23
+ #
24
+ # # write down the password at the end
25
+ # docker build -t docker-osx-vnc .
26
+ #
27
+ # Run:
28
+ #
29
+ # docker run --device /dev/kvm --device /dev/snd -p 8888:5999 -p 50922:10022 -d --privileged docker-osx-vnc:latest
30
+ #
31
+ #
32
+ # Optional:
33
+ #
34
+ # -v $PWD/disk.img:/image
35
+ #
36
+ # Connect locally (safe):
37
+ #
38
+ # VNC Host: localhost:8888
39
+ #
40
+ #
41
+ # Connect remotely (safe):
42
+ #
43
+ #
44
+ # # Open a terminal and make an SSH tunnel on port 8888 to your server
45
+ # ssh -N root@111.222.33.44 -L 8888:127.0.0.1:8888
46
+ #
47
+ # # now you can connect like a local
48
+ # VNC Host: localhost:8888
49
+ #
50
+ #
51
+ # Connect remotely (unsafe):
52
+ #
53
+ # VNC Host: remotehost:8888
54
+ #
55
+ #
56
+ # Security:
57
+ #
58
+ # - Think what would happen if someone was in your App Store.
59
+ # - Keep port 8888 closed to external internet traffic, allow local IP's only.
60
+ # - All traffic is insecurely transmitted in plain text, try to use an SSH tunnel.
61
+ # - Everything you write can be sniffed along the way.
62
+ # - VNC Password is only 8 characters.
63
+ #
64
+ # Show VNC password again:
65
+ #
66
+ # docker ps
67
+ # # copy container ID and then
68
+ # docker exec abc123fgh456 tail vncpasswd_file
69
+ #
70
+ # VNC Version
71
+ # Let's piggyback the other image:
72
+
73
+ ARG BASE_IMAGE=sickcodes/docker-osx:latest
74
+ FROM ${BASE_IMAGE}
75
+
76
+ MAINTAINER 'https://twitter.com/sickcodes' <https://sick.codes>
77
+
78
+ USER root
79
+
80
+ # OPTIONAL: Arch Linux server mirrors for super fast builds
81
+ # set RANKMIRRORS to any value other that nothing, e.g. -e RANKMIRRORS=true
82
+ ARG RANKMIRRORS
83
+ ARG MIRROR_COUNTRY=US
84
+ ARG MIRROR_COUNT=10
85
+ RUN if [[ "${RANKMIRRORS}" ]]; then { pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
86
+ ; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \
87
+ ; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \
88
+ | sed -e 's/^#Server/Server/' -e '/^#/d' \
89
+ | head -n "$((${MIRROR_COUNT:-10}+1))" \
90
+ | bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
91
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch' \
92
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
93
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch' \
94
+ && cat /etc/pacman.d/mirrorlist ; fi
95
+
96
+ # Fixes issue with invalid GPG keys: update the archlinux-keyring package to get the latest keys, then remove and regenerate gnupg keys
97
+ RUN pacman -Sy archlinux-keyring --noconfirm && rm -rf /etc/pacman.d/gnupg && pacman-key --init && pacman-key --populate
98
+
99
+ USER arch
100
+
101
+ RUN yes | sudo pacman -Syyuu --noconfirm \
102
+ && yes | sudo pacman -S tigervnc xterm xorg-xhost xdotool ufw --noconfirm \
103
+ && mkdir -p ${HOME}/.vnc \
104
+ && touch ~/.vnc/config \
105
+ && tee -a ~/.vnc/config <<< 'geometry=1920x1080' \
106
+ && tee -a ~/.vnc/config <<< 'localhost' \
107
+ && tee -a ~/.vnc/config <<< 'alwaysshared'
108
+
109
+ # this won't work if you have 99 monitors, 98 monitors is fine though
110
+ # don't forget to remove the lock file incase you shut down incorrectly or create an image.
111
+ RUN printf '\n%s\n' \
112
+ 'sudo rm -f /tmp/.X99-lock' \
113
+ 'export DISPLAY=:99' \
114
+ '/usr/bin/Xvnc -geometry 1920x1080 -rfbauth "${HOME}/.vnc/passwd" :99 &' > vnc.sh
115
+
116
+ RUN cat vnc.sh Launch.sh > Launch_custom.sh
117
+
118
+ RUN chmod +x Launch_custom.sh
119
+
120
+ RUN tee vncpasswd_file <<< "${VNC_PASSWORD:="$(tr -dc '[:graph:]' </dev/urandom | head -c8)"}"
121
+ RUN vncpasswd -f < vncpasswd_file > ${HOME}/.vnc/passwd
122
+
123
+ RUN chmod 600 ~/.vnc/passwd
124
+ RUN printf '\n\n\n\n%s\n%s\n\n\n\n' '===========VNC_PASSWORD========== ' "$(<vncpasswd_file)"
125
+
126
+ WORKDIR /home/arch/OSX-KVM
127
+
128
+ CMD ./enable-ssh.sh && envsubst < ./Launch_custom.sh | bash
vnc-version/Dockerfile.nakedvnc ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/docker
2
+ # ____ __ ____ ______ __
3
+ # / __ \____ _____/ /_____ _____/ __ \/ ___/ |/ /
4
+ # / / / / __ \/ ___/ //_/ _ \/ ___/ / / /\__ \| /
5
+ # / /_/ / /_/ / /__/ ,< / __/ / / /_/ /___/ / |
6
+ # /_____/\____/\___/_/|_|\___/_/ \____//____/_/|_| :NAKEDVNC
7
+ #
8
+ # Title: Docker-OSX (Mac on Docker)
9
+ # Author: Sick.Codes https://twitter.com/sickcodes
10
+ # Version: 4.4
11
+ # License: GPLv3+
12
+ # Repository: https://github.com/sickcodes/Docker-OSX
13
+ # Website: https://sick.codes
14
+ #
15
+ # This image won't run unless you supply a disk image using:
16
+ # -v ${PWD}/mac_hdd_ng.img:/image
17
+ #
18
+ # Take screenshots in the Arch container and display in terminal: scrotcat
19
+ #
20
+ # Build:
21
+ #
22
+ # docker build -t docker-osx:nakedvnc -f Dockerfile.nakedvnc .
23
+ #
24
+ # Run headless:
25
+ #
26
+ # docker run -it --device /dev/kvm -p 50922:10022 -v ${PWD}/mac_hdd_ng.img:/image docker-osx:nakedvnc
27
+ #
28
+ # Run with display:
29
+ #
30
+ # docker run -it --device /dev/kvm -p 50922:10022 -v ${PWD}/mac_hdd_ng.img:/image -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix docker-osx:nakedvnc
31
+ #
32
+
33
+ ARG BASE_IMAGE=sickcodes/docker-osx:latest
34
+ FROM ${BASE_IMAGE}
35
+
36
+ MAINTAINER 'https://twitter.com/sickcodes' <https://sick.codes>
37
+
38
+ USER root
39
+
40
+ WORKDIR /root
41
+
42
+ RUN rm -f /home/arch/OSX-KVM/mac_hdd_ng.img
43
+
44
+ # OPTIONAL: Arch Linux server mirrors for super fast builds
45
+ # set RANKMIRRORS to any value other that nothing, e.g. -e RANKMIRRORS=true
46
+ ARG RANKMIRRORS
47
+ ARG MIRROR_COUNTRY=US
48
+ ARG MIRROR_COUNT=10
49
+ RUN if [[ "${RANKMIRRORS}" ]]; then { pacman -Sy wget --noconfirm || pacman -Syu wget --noconfirm ; } \
50
+ ; wget -O ./rankmirrors "https://raw.githubusercontent.com/sickcodes/Docker-OSX/master/rankmirrors" \
51
+ ; wget -O- "https://www.archlinux.org/mirrorlist/?country=${MIRROR_COUNTRY:-US}&protocol=https&use_mirror_status=on" \
52
+ | sed -e 's/^#Server/Server/' -e '/^#/d' \
53
+ | head -n "$((${MIRROR_COUNT:-10}+1))" \
54
+ | bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
55
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch' \
56
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
57
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch' \
58
+ && cat /etc/pacman.d/mirrorlist ; fi
59
+
60
+ # For taking screenshots of the Xfvb screen, useful during development.
61
+ ARG SCROT
62
+
63
+ RUN pacman -Syu xorg-server-xvfb wget xterm xorg-xhost xorg-xrandr sshpass --noconfirm \
64
+ && if [[ "${SCROT}" ]]; then \
65
+ pacman -Syu scrot base-devel --noconfirm \
66
+ && git clone --recurse-submodules --depth 1 https://github.com/stolk/imcat.git \
67
+ && cd imcat \
68
+ && make \
69
+ && sudo cp imcat /usr/bin/imcat \
70
+ && touch /usr/bin/scrotcat \
71
+ && tee -a /usr/bin/scrotcat <<< '/usr/bin/imcat <(scrot -o /dev/stdout)' \
72
+ && chmod +x /usr/bin/scrotcat \
73
+ ; else \
74
+ touch /usr/bin/scrotcat \
75
+ && echo echo >> /usr/bin/scrotcat \
76
+ && chmod +x /usr/bin/scrotcat \
77
+ ; fi \
78
+ ; yes | pacman -Scc
79
+
80
+ USER arch
81
+
82
+ WORKDIR /home/arch/OSX-KVM
83
+
84
+ RUN mkdir -p ~/.ssh \
85
+ && touch ~/.ssh/authorized_keys \
86
+ && touch ~/.ssh/config \
87
+ && chmod 700 ~/.ssh \
88
+ && chmod 600 ~/.ssh/config \
89
+ && chmod 600 ~/.ssh/authorized_keys \
90
+ && tee -a ~/.ssh/config <<< 'Host *' \
91
+ && tee -a ~/.ssh/config <<< ' StrictHostKeyChecking no' \
92
+ && tee -a ~/.ssh/config <<< ' UserKnownHostsFile=/dev/null'
93
+
94
+ #### SPECIAL RUNTIME ARGUMENTS BELOW
95
+
96
+ ENV ADDITIONAL_PORTS=
97
+
98
+ # add additional QEMU boot arguments
99
+ ENV BOOT_ARGS=
100
+
101
+ ENV BOOTDISK=
102
+
103
+ # edit the CPU that is beign emulated
104
+ ENV CPU=Penryn
105
+
106
+ ENV DISPLAY=:99
107
+
108
+ ENV HEADLESS=false
109
+
110
+ ENV ENV=/env
111
+
112
+ # Boolean for generating a bootdisk with new random serials.
113
+ ENV GENERATE_UNIQUE=false
114
+
115
+ # Boolean for generating a bootdisk with specific serials.
116
+ ENV GENERATE_SPECIFIC=false
117
+
118
+ ENV IMAGE_PATH=/image
119
+ ENV IMAGE_FORMAT=qcow2
120
+
121
+ ENV KVM='accel=kvm:tcg'
122
+
123
+ # ENV MASTER_PLIST_URL="https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist"
124
+
125
+ # ENV NETWORKING=e1000-82545em
126
+ ENV NETWORKING=vmxnet3
127
+
128
+ ENV NOPICKER=true
129
+
130
+ # dynamic RAM options for runtime
131
+ ENV RAM=8
132
+ # ENV RAM=max
133
+ # ENV RAM=half
134
+
135
+ # The x and y coordinates for resolution.
136
+ # Must be used with either -e GENERATE_UNIQUE=true or -e GENERATE_SPECIFIC=true.
137
+ ENV WIDTH=1920
138
+ ENV HEIGHT=1080
139
+
140
+ # libguestfs verbose
141
+ ENV LIBGUESTFS_DEBUG=1
142
+ ENV LIBGUESTFS_TRACE=1
143
+
144
+ CMD sudo touch /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
145
+ ; sudo chown -R $(id -u):$(id -g) /dev/kvm /dev/snd "${IMAGE_PATH}" "${BOOTDISK}" "${ENV}" 2>/dev/null || true \
146
+ ; { [[ "${DISPLAY}" = ':99' ]] || [[ "${HEADLESS}" == true ]] ; } && { \
147
+ nohup Xvfb :99 -screen 0 1920x1080x16 \
148
+ & until [[ "$(xrandr --query 2>/dev/null)" ]]; do sleep 1 ; done \
149
+ ; } \
150
+ ; [[ "${NOPICKER}" == true ]] && { \
151
+ sed -i '/^.*InstallMedia.*/d' Launch.sh \
152
+ && export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore-nopicker.qcow2}" \
153
+ ; } \
154
+ || export BOOTDISK="${BOOTDISK:=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
155
+ ; [[ "${GENERATE_UNIQUE}" == true ]] && { \
156
+ ./Docker-OSX/osx-serial-generator/generate-unique-machine-values.sh \
157
+ --master-plist-url="${MASTER_PLIST_URL}" \
158
+ --count 1 \
159
+ --tsv ./serial.tsv \
160
+ --bootdisks \
161
+ --width "${WIDTH:-1920}" \
162
+ --height "${HEIGHT:-1080}" \
163
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
164
+ --output-env "${ENV:=/env}" \
165
+ || exit 1 ; } \
166
+ ; [[ "${GENERATE_SPECIFIC}" == true ]] && { \
167
+ source "${ENV:=/env}" 2>/dev/null \
168
+ ; ./Docker-OSX/osx-serial-generator/generate-specific-bootdisk.sh \
169
+ --master-plist-url="${MASTER_PLIST_URL}" \
170
+ --model "${DEVICE_MODEL}" \
171
+ --serial "${SERIAL}" \
172
+ --board-serial "${BOARD_SERIAL}" \
173
+ --uuid "${UUID}" \
174
+ --mac-address "${MAC_ADDRESS}" \
175
+ --width "${WIDTH:-1920}" \
176
+ --height "${HEIGHT:-1080}" \
177
+ --output-bootdisk "${BOOTDISK:=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2}" \
178
+ || exit 1 ; } \
179
+ # ; ./enable-ssh.sh && /bin/bash -c ./Launch.sh
180
+
181
+ WORKDIR /home/arch/OSX-KVM
182
+
183
+ RUN yes | sudo pacman -Syyuu --noconfirm \
184
+ && yes | sudo pacman -S tigervnc xterm xorg-xhost xdotool ufw --noconfirm \
185
+ && mkdir -p ${HOME}/.vnc \
186
+ && touch ~/.vnc/config \
187
+ && tee -a ~/.vnc/config <<< 'geometry=1920x1080' \
188
+ && tee -a ~/.vnc/config <<< 'localhost' \
189
+ && tee -a ~/.vnc/config <<< 'alwaysshared'
190
+
191
+ RUN printf '\n%s\n' \
192
+ 'sudo rm -f /tmp/.X99-lock' \
193
+ 'export DISPLAY=:99' \
194
+ '/usr/bin/Xvnc -geometry 1920x1080 -rfbauth "${HOME}/.vnc/passwd" :99 &' > vnc.sh
195
+
196
+ RUN cat vnc.sh Launch.sh > Launch_custom.sh
197
+
198
+ RUN chmod +x Launch_custom.sh
199
+
200
+ RUN tee vncpasswd_file <<< "${VNC_PASSWORD:="$(tr -dc '[:graph:]' </dev/urandom | head -c8)"}"
201
+ RUN vncpasswd -f < vncpasswd_file > ${HOME}/.vnc/passwd
202
+
203
+ RUN chmod 600 ~/.vnc/passwd
204
+ RUN printf '\n\n\n\n%s\n%s\n\n\n\n' '===========VNC_PASSWORD========== ' "$(<vncpasswd_file)"
205
+
206
+ CMD ./enable-ssh.sh && envsubst < ./Launch_custom.sh | bash
207
+