OSX-KVM - October 2021 Batch Update

Changes:

- Add Makefile to improve usability (thiagokokada)

- Typo fix (cclauss)

- Update to OpenCore-0.7.4 (via Nick)
This commit is contained in:
Dhiru Kholia 2021-10-22 02:03:36 +02:00 committed by Dhiru Kholia
parent 3cd6d6bf69
commit 1cc6430f96
97 changed files with 423 additions and 334 deletions

View File

@ -2,6 +2,8 @@
- [UPSTREAM] https://github.com/acidanthera/OpenCorePkg + https://dortania.github.io/ - for making all this possible! - [UPSTREAM] https://github.com/acidanthera/OpenCorePkg + https://dortania.github.io/ - for making all this possible!
- [UPSTREAM] https://github.com/thenickdude/KVM-Opencore - Thanks Nick!
* RehabMan, th3joker and others - FakeSMC.kext, https://bitbucket.org/RehabMan * RehabMan, th3joker and others - FakeSMC.kext, https://bitbucket.org/RehabMan
* Chuck Remes (chuckremes) - better documentation * Chuck Remes (chuckremes) - better documentation
@ -122,4 +124,8 @@
- Kian Kasad (kdkasad) - Use grep instead of egrep - Kian Kasad (kdkasad) - Use grep instead of egrep
- https://github.com/cclauss - Typo fix
- https://github.com/thiagokokada - Makefile to improve usability
Note: Individual files have more specific 'credits' in them. Note: Individual files have more specific 'credits' in them.

View File

@ -1,2 +1,15 @@
DISK_SIZE := 128G
all: BaseSystem.img mac_hdd_ng.img
BaseSystem.img: BaseSystem.dmg
qemu-img convert BaseSystem.dmg -O raw BaseSystem.img
BaseSystem.dmg:
./fetch-macOS-v2.py
mac_hdd_ng.img:
qemu-img create -f qcow2 mac_hdd_ng.img ${DISK_SIZE}
clean: clean:
rm -rf content || true rm -rf BaseSystem{.dmg,.img,.chunklist}

View File

@ -1,6 +1,6 @@
Current OVMF blobs are borrowed from the following URL(s), Current OVMF blobs are borrowed from the following URL(s),
- http://ftp.debian.org/debian/pool/main/e/edk2/ (ovmf_2021.08-1_all.deb) - http://ftp.debian.org/debian/pool/main/e/edk2/ (ovmf_2021.08-2_all.deb)
Building OVMF Building OVMF
------------- -------------

View File

@ -42,7 +42,7 @@ args=(
-smbios type=2 -smbios type=2
-device ich9-intel-hda -device hda-duplex -device ich9-intel-hda -device hda-duplex
-device ich9-ahci,id=sata -device ich9-ahci,id=sata
-drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file="$REPO_PATH/OpenCore-Catalina/OpenCore.qcow2" -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file="$REPO_PATH/OpenCore/OpenCore.qcow2"
-device ide-hd,bus=sata.2,drive=OpenCoreBoot -device ide-hd,bus=sata.2,drive=OpenCoreBoot
-device ide-hd,bus=sata.3,drive=InstallMedia -device ide-hd,bus=sata.3,drive=InstallMedia
-drive id=InstallMedia,if=none,file="$REPO_PATH/os.dmg",format=raw -drive id=InstallMedia,if=none,file="$REPO_PATH/os.dmg",format=raw

View File

@ -40,12 +40,12 @@ args=(
# -device usb-mouse,bus=ehci.0 # -device usb-mouse,bus=ehci.0
# -device nec-usb-xhci,id=xhci # -device nec-usb-xhci,id=xhci
-device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
-drive if=pflash,format=raw,readonly,file="$REPO_PATH/$OVMF_DIR/OVMF_CODE.fd" -drive if=pflash,format=raw,readonly=true,file="$REPO_PATH/$OVMF_DIR/OVMF_CODE.fd"
-drive if=pflash,format=raw,file="$REPO_PATH/$OVMF_DIR/OVMF_VARS-1024x768.fd" -drive if=pflash,format=raw,file="$REPO_PATH/$OVMF_DIR/OVMF_VARS-1024x768.fd"
-smbios type=2 -smbios type=2
-device ich9-intel-hda -device hda-duplex -device ich9-intel-hda -device hda-duplex
-device ich9-ahci,id=sata -device ich9-ahci,id=sata
-drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file="$REPO_PATH/OpenCore-Catalina/OpenCore.qcow2" -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file="$REPO_PATH/OpenCore/OpenCore.qcow2"
-device ide-hd,bus=sata.2,drive=OpenCoreBoot -device ide-hd,bus=sata.2,drive=OpenCoreBoot
-device ide-hd,bus=sata.3,drive=InstallMedia -device ide-hd,bus=sata.3,drive=InstallMedia
-drive id=InstallMedia,if=none,file="$REPO_PATH/BaseSystem.img",format=raw -drive id=InstallMedia,if=none,file="$REPO_PATH/BaseSystem.img",format=raw

View File

@ -1,149 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>15G31</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>VoodooHDA</string>
<key>CFBundleIdentifier</key>
<string>org.voodoo.driver.VoodooHDA</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>VoodooHDA</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleShortVersionString</key>
<string>2.9.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>2.9.2</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7D1014</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>15E60</string>
<key>DTSDKName</key>
<string>macosx10.11</string>
<key>DTXcode</key>
<string>0731</string>
<key>DTXcodeBuild</key>
<string>7D1014</string>
<key>IOKitPersonalities</key>
<dict>
<key>VoodooHDA</key>
<dict>
<key>AllowMSI</key>
<true/>
<key>Boost</key>
<integer>1</integer>
<key>CFBundleIdentifier</key>
<string>org.voodoo.driver.VoodooHDA</string>
<key>DisableInputMonitor</key>
<true/>
<key>IOClass</key>
<string>VoodooHDADevice</string>
<key>IOMatchCategory</key>
<string>VoodooHDADevice</string>
<key>IOPCIClassMatch</key>
<string>0x04020000&amp;0xfffe0000</string>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
<key>IOUserClientClass</key>
<string>VoodooHDAUserClient</string>
<key>InhibitCache</key>
<false/>
<key>MixerValues</key>
<dict>
<key>PCM</key>
<integer>100</integer>
<key>Rec</key>
<integer>90</integer>
<key>iGain</key>
<integer>90</integer>
<key>iMix</key>
<integer>100</integer>
</dict>
<key>NodesToPatch</key>
<array>
<dict>
<key>Caps</key>
<string>0x373e</string>
<key>Codec</key>
<integer>4</integer>
<key>Comment</key>
<string>Example of possible values</string>
<key>Config</key>
<string>0x90a70120</string>
<key>Conns</key>
<string>12,13,24</string>
<key>Control</key>
<string>20</string>
<key>DAC</key>
<string>2</string>
<key>Enable</key>
<string>1</string>
<key>Node</key>
<integer>12</integer>
<key>Select</key>
<string>13</string>
<key>SwitchCh</key>
<string>0</string>
<key>Type</key>
<string>4</string>
</dict>
<dict>
<key>Codec</key>
<integer>2</integer>
<key>Comment</key>
<string>To disable back sound on ALC codec set enable=0</string>
<key>Enable</key>
<string>1</string>
<key>Node</key>
<integer>11</integer>
</dict>
</array>
<key>Noise</key>
<integer>0</integer>
<key>Vectorize</key>
<true/>
<key>VoodooHDAEnableHalfMicVolumeFix</key>
<false/>
<key>VoodooHDAEnableHalfVolumeFix</key>
<false/>
<key>VoodooHDAEnableMuteFix</key>
<false/>
<key>VoodooHDAEnableVolumeChangeFix</key>
<false/>
<key>VoodooHDAVerboseLevel</key>
<integer>0</integer>
</dict>
</dict>
<key>OSBundleLibraries</key>
<dict>
<key>com.apple.iokit.IOAudioFamily</key>
<string>1.1fc9</string>
<key>com.apple.iokit.IOPCIFamily</key>
<string>2.1</string>
<key>com.apple.kpi.iokit</key>
<string>9.0.0</string>
<key>com.apple.kpi.libkern</key>
<string>9.0.0</string>
<key>com.apple.kpi.mach</key>
<string>9.0.0</string>
<key>com.apple.kpi.unsupported</key>
<string>9.0.0</string>
</dict>
</dict>
</plist>

View File

@ -1,105 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict/>
<key>files2</key>
<dict/>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>

View File

@ -0,0 +1 @@
OpenCore

Binary file not shown.

View File

@ -0,0 +1 @@
OpenCore

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -3,7 +3,7 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>BuildMachineOSBuild</key> <key>BuildMachineOSBuild</key>
<string>19H524</string> <string>19H1323</string>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>en</string> <string>en</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
@ -17,7 +17,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>KEXT</string> <string>KEXT</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.5.3</string> <string>1.5.6</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleSupportedPlatforms</key> <key>CFBundleSupportedPlatforms</key>
@ -25,7 +25,7 @@
<string>MacOSX</string> <string>MacOSX</string>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.5.3</string> <string>1.5.6</string>
<key>DTCompiler</key> <key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string> <string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key> <key>DTPlatformBuild</key>
@ -55,7 +55,7 @@
<key>IOProviderClass</key> <key>IOProviderClass</key>
<string>IOResources</string> <string>IOResources</string>
<key>IOResourceMatch</key> <key>IOResourceMatch</key>
<string>IOKit</string> <string>IOBSD</string>
</dict> </dict>
</dict> </dict>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>
@ -65,6 +65,21 @@
<key>OSBundleCompatibleVersion</key> <key>OSBundleCompatibleVersion</key>
<string>1.2.0</string> <string>1.2.0</string>
<key>OSBundleLibraries</key> <key>OSBundleLibraries</key>
<dict>
<key>com.apple.kernel.6.0</key>
<string>7.9.9</string>
<key>com.apple.kpi.bsd</key>
<string>8.0.0</string>
<key>com.apple.kpi.iokit</key>
<string>8.0.0</string>
<key>com.apple.kpi.libkern</key>
<string>8.0.0</string>
<key>com.apple.kpi.mach</key>
<string>8.0.0</string>
<key>com.apple.kpi.unsupported</key>
<string>8.0.0</string>
</dict>
<key>OSBundleLibraries_x86_64</key>
<dict> <dict>
<key>com.apple.kpi.bsd</key> <key>com.apple.kpi.bsd</key>
<string>10.0.0</string> <string>10.0.0</string>

Binary file not shown.

View File

@ -3,7 +3,7 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>BuildMachineOSBuild</key> <key>BuildMachineOSBuild</key>
<string>19H1217</string> <string>19H1323</string>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>en</string> <string>en</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
@ -17,7 +17,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>KEXT</string> <string>KEXT</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.2.4</string> <string>1.2.7</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleSupportedPlatforms</key> <key>CFBundleSupportedPlatforms</key>
@ -25,7 +25,7 @@
<string>MacOSX</string> <string>MacOSX</string>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.2.4</string> <string>1.2.7</string>
<key>DTCompiler</key> <key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string> <string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key> <key>DTPlatformBuild</key>
@ -390,14 +390,31 @@
<key>OSBundleCompatibleVersion</key> <key>OSBundleCompatibleVersion</key>
<string>1.0</string> <string>1.0</string>
<key>OSBundleLibraries</key> <key>OSBundleLibraries</key>
<dict>
<key>as.vit9696.Lilu</key>
<string>1.2.0</string>
<key>com.apple.iokit.IOACPIFamily</key>
<string>1.0.0d1</string>
<key>com.apple.kernel.6.0</key>
<string>7.9.9</string>
<key>com.apple.kpi.bsd</key>
<string>8.0.0</string>
<key>com.apple.kpi.iokit</key>
<string>8.0.0</string>
<key>com.apple.kpi.libkern</key>
<string>8.0.0</string>
<key>com.apple.kpi.mach</key>
<string>8.0.0</string>
<key>com.apple.kpi.unsupported</key>
<string>8.0.0</string>
</dict>
<key>OSBundleLibraries_x86_64</key>
<dict> <dict>
<key>as.vit9696.Lilu</key> <key>as.vit9696.Lilu</key>
<string>1.2.0</string> <string>1.2.0</string>
<key>com.apple.iokit.IOACPIFamily</key> <key>com.apple.iokit.IOACPIFamily</key>
<string>1.0.0d1</string> <string>1.0.0d1</string>
<key>com.apple.kpi.bsd</key> <key>com.apple.kpi.bsd</key>
<string>10.0.0</string>
<key>com.apple.kpi.dsep</key>
<string>10.0.0</string> <string>10.0.0</string>
<key>com.apple.kpi.iokit</key> <key>com.apple.kpi.iokit</key>
<string>10.0.0</string> <string>10.0.0</string>

View File

@ -3,7 +3,7 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>BuildMachineOSBuild</key> <key>BuildMachineOSBuild</key>
<string>19H1217</string> <string>19H1417</string>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>en</string> <string>en</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
@ -17,7 +17,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>KEXT</string> <string>KEXT</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.5.0</string> <string>1.5.4</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleSupportedPlatforms</key> <key>CFBundleSupportedPlatforms</key>
@ -25,7 +25,7 @@
<string>MacOSX</string> <string>MacOSX</string>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.5.0</string> <string>1.5.4</string>
<key>DTCompiler</key> <key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string> <string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key> <key>DTPlatformBuild</key>
@ -76,7 +76,7 @@
</dict> </dict>
</dict> </dict>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>
<string>10.8</string> <string>10.6</string>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>
<string>Copyright © 2018 vit9696. All rights reserved.</string> <string>Copyright © 2018 vit9696. All rights reserved.</string>
<key>OSBundleCompatibleVersion</key> <key>OSBundleCompatibleVersion</key>
@ -88,17 +88,17 @@
<key>com.apple.iokit.IOPCIFamily</key> <key>com.apple.iokit.IOPCIFamily</key>
<string>1.0.0b1</string> <string>1.0.0b1</string>
<key>com.apple.kpi.bsd</key> <key>com.apple.kpi.bsd</key>
<string>12.0.0</string> <string>10.0.0</string>
<key>com.apple.kpi.dsep</key> <key>com.apple.kpi.dsep</key>
<string>12.0.0</string> <string>10.0.0</string>
<key>com.apple.kpi.iokit</key> <key>com.apple.kpi.iokit</key>
<string>12.0.0</string> <string>10.0.0</string>
<key>com.apple.kpi.libkern</key> <key>com.apple.kpi.libkern</key>
<string>12.0.0</string> <string>10.0.0</string>
<key>com.apple.kpi.mach</key> <key>com.apple.kpi.mach</key>
<string>12.0.0</string> <string>10.0.0</string>
<key>com.apple.kpi.unsupported</key> <key>com.apple.kpi.unsupported</key>
<string>12.0.0</string> <string>10.0.0</string>
</dict> </dict>
<key>OSBundleRequired</key> <key>OSBundleRequired</key>
<string>Root</string> <string>Root</string>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -2,16 +2,14 @@
Catalina installs the same way as Mojave. Catalina installs the same way as Mojave.
Tested with macOS Catalina 10.15.7 with OpenCore-0.7.0-RELEASE.zip release Tested with macOS Big sur with OpenCore-0.7.4-RELEASE.zip release in October,
(June, 2021). 2021.
Note: Our `config.plist` is buggy and we need to fix it!
Note: Use `create_iso_catalina.sh` for generating a macOS Catalina based "ISO" Note: Use `create_iso_catalina.sh` for generating a macOS Catalina based "ISO"
(actually DMG) image. (actually DMG) image.
Attention: Use 64-bit Ubuntu 20.04 LTS as the host OS for "best" results. Attention: Use 64-bit Ubuntu 20.04 LTS or later as the host OS for "best"
Guestfish output results may vary across platforms. results. Guestfish output results may vary across platforms.
``` ```
# Normal OpenCore Image # Normal OpenCore Image

View File

@ -8,11 +8,51 @@
<array> <array>
<dict> <dict>
<key>Comment</key> <key>Comment</key>
<string>add DTGP method</string> <string>My custom DSDT</string>
<key>Enabled</key> <key>Enabled</key>
<true/> <false/>
<key>Path</key> <key>Path</key>
<string>SSDT-DTGP.aml</string> <string>DSDT.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>My custom SSDT</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-1.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-ALS0.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-AWAC-DISABLE.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-BRG0.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-EC-USBX.aml</string>
</dict> </dict>
<dict> <dict>
<key>Comment</key> <key>Comment</key>
@ -24,11 +64,19 @@
</dict> </dict>
<dict> <dict>
<key>Comment</key> <key>Comment</key>
<string>USB 2.0 Injection</string> <string>Read the comment in dsl sample</string>
<key>Enabled</key> <key>Enabled</key>
<true/> <false/>
<key>Path</key> <key>Path</key>
<string>SSDT-EHCI.aml</string> <string>SSDT-EHCx-DISABLE.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-IMEI.aml</string>
</dict> </dict>
<dict> <dict>
<key>Comment</key> <key>Comment</key>
@ -38,6 +86,78 @@
<key>Path</key> <key>Path</key>
<string>SSDT-PLUG.aml</string> <string>SSDT-PLUG.aml</string>
</dict> </dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-PMC.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-PNLF.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-PNLFCFL.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-RTC0-RANGE.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-RTC0.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-SBUS-MCHC.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>Read the comment in dsl sample</string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>SSDT-UNC.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>add DTGP method</string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>SSDT-DTGP.aml</string>
</dict>
<dict>
<key>Comment</key>
<string>USB 2.0 Injection</string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>SSDT-EHCI.aml</string>
</dict>
</array> </array>
<key>Delete</key> <key>Delete</key>
<array> <array>
@ -145,6 +265,8 @@
<false/> <false/>
<key>ResetLogoStatus</key> <key>ResetLogoStatus</key>
<true/> <true/>
<key>SyncTableIds</key>
<false/>
</dict> </dict>
</dict> </dict>
<key>Booter</key> <key>Booter</key>
@ -218,7 +340,7 @@
<array> <array>
<dict> <dict>
<key>Arch</key> <key>Arch</key>
<string>x86_64</string> <string>Any</string>
<key>BundlePath</key> <key>BundlePath</key>
<string>Lilu.kext</string> <string>Lilu.kext</string>
<key>Comment</key> <key>Comment</key>
@ -230,13 +352,13 @@
<key>MaxKernel</key> <key>MaxKernel</key>
<string></string> <string></string>
<key>MinKernel</key> <key>MinKernel</key>
<string>10.0.0</string> <string>8.0.0</string>
<key>PlistPath</key> <key>PlistPath</key>
<string>Contents/Info.plist</string> <string>Contents/Info.plist</string>
</dict> </dict>
<dict> <dict>
<key>Arch</key> <key>Arch</key>
<string>x86_64</string> <string>Any</string>
<key>BundlePath</key> <key>BundlePath</key>
<string>VirtualSMC.kext</string> <string>VirtualSMC.kext</string>
<key>Comment</key> <key>Comment</key>
@ -248,7 +370,7 @@
<key>MaxKernel</key> <key>MaxKernel</key>
<string></string> <string></string>
<key>MinKernel</key> <key>MinKernel</key>
<string>10.0.0</string> <string>8.0.0</string>
<key>PlistPath</key> <key>PlistPath</key>
<string>Contents/Info.plist</string> <string>Contents/Info.plist</string>
</dict> </dict>
@ -266,7 +388,7 @@
<key>MaxKernel</key> <key>MaxKernel</key>
<string></string> <string></string>
<key>MinKernel</key> <key>MinKernel</key>
<string>12.0.0</string> <string>10.0.0</string>
<key>PlistPath</key> <key>PlistPath</key>
<string>Contents/Info.plist</string> <string>Contents/Info.plist</string>
</dict> </dict>
@ -274,17 +396,17 @@
<key>Arch</key> <key>Arch</key>
<string>Any</string> <string>Any</string>
<key>BundlePath</key> <key>BundlePath</key>
<string>VoodooHDA.kext</string> <string>AppleALC.kext</string>
<key>Comment</key> <key>Comment</key>
<string></string> <string>Audio patches</string>
<key>Enabled</key> <key>Enabled</key>
<true/> <true/>
<key>ExecutablePath</key> <key>ExecutablePath</key>
<string>Contents/MacOS/VoodooHDA</string> <string>Contents/MacOS/AppleALC</string>
<key>MaxKernel</key> <key>MaxKernel</key>
<string></string> <string></string>
<key>MinKernel</key> <key>MinKernel</key>
<string></string> <string>8.0.0</string>
<key>PlistPath</key> <key>PlistPath</key>
<string>Contents/Info.plist</string> <string>Contents/Info.plist</string>
</dict> </dict>
@ -302,7 +424,7 @@
<key>MaxKernel</key> <key>MaxKernel</key>
<string></string> <string></string>
<key>MinKernel</key> <key>MinKernel</key>
<string></string> <string>13.0.0</string>
<key>PlistPath</key> <key>PlistPath</key>
<string>Contents/Info.plist</string> <string>Contents/Info.plist</string>
</dict> </dict>
@ -433,6 +555,8 @@
<string>Contents/Info.plist</string> <string>Contents/Info.plist</string>
</dict> </dict>
<dict> <dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key> <key>BundlePath</key>
<string>USBPorts.kext</string> <string>USBPorts.kext</string>
<key>Comment</key> <key>Comment</key>
@ -449,6 +573,8 @@
<string>Contents/Info.plist</string> <string>Contents/Info.plist</string>
</dict> </dict>
<dict> <dict>
<key>Arch</key>
<string>x86_64</string>
<key>BundlePath</key> <key>BundlePath</key>
<string>AGPMInjector.kext</string> <string>AGPMInjector.kext</string>
<key>Comment</key> <key>Comment</key>
@ -526,7 +652,7 @@
<array> <array>
<dict> <dict>
<key>Arch</key> <key>Arch</key>
<string>Any</string> <string>x86_64</string>
<key>Base</key> <key>Base</key>
<string></string> <string></string>
<key>Comment</key> <key>Comment</key>
@ -563,7 +689,7 @@
</dict> </dict>
<dict> <dict>
<key>Arch</key> <key>Arch</key>
<string>Any</string> <string>x86_64</string>
<key>Base</key> <key>Base</key>
<string></string> <string></string>
<key>Comment</key> <key>Comment</key>
@ -644,10 +770,12 @@
</dict> </dict>
<key>Scheme</key> <key>Scheme</key>
<dict> <dict>
<key>CustomKernel</key>
<false/>
<key>FuzzyMatch</key> <key>FuzzyMatch</key>
<true/> <true/>
<key>KernelArch</key> <key>KernelArch</key>
<string>x86_64</string> <string>Auto</string>
<key>KernelCache</key> <key>KernelCache</key>
<string>Auto</string> <string>Auto</string>
</dict> </dict>
@ -789,7 +917,7 @@
<key>Comment</key> <key>Comment</key>
<string>Perform shutdown</string> <string>Perform shutdown</string>
<key>Enabled</key> <key>Enabled</key>
<true/> <false/>
<key>Flavour</key> <key>Flavour</key>
<string>Auto</string> <string>Auto</string>
<key>Name</key> <key>Name</key>
@ -821,6 +949,8 @@
</dict> </dict>
<key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key> <key>7C436110-AB2A-4BBB-A880-FE41995C9F82</key>
<dict> <dict>
<key>ForceDisplayRotationInEFI</key>
<integer>0</integer>
<key>SystemAudioVolume</key> <key>SystemAudioVolume</key>
<data>Rg==</data> <data>Rg==</data>
<key>boot-args</key> <key>boot-args</key>
@ -833,8 +963,6 @@
<data>ZW4tVVM6MA==</data> <data>ZW4tVVM6MA==</data>
<key>run-efi-updater</key> <key>run-efi-updater</key>
<string>No</string> <string>No</string>
<key>ForceDisplayRotationInEFI</key>
<integer>0</integer>
</dict> </dict>
</dict> </dict>
<key>Delete</key> <key>Delete</key>
@ -952,6 +1080,8 @@
<string>Builtin</string> <string>Builtin</string>
<key>CustomDelays</key> <key>CustomDelays</key>
<false/> <false/>
<key>GraphicsInputMirroring</key>
<true/>
<key>KeyInitialDelay</key> <key>KeyInitialDelay</key>
<integer>50</integer> <integer>50</integer>
<key>KeySubsequentDelay</key> <key>KeySubsequentDelay</key>
@ -986,20 +1116,166 @@
<true/> <true/>
<key>Drivers</key> <key>Drivers</key>
<array> <array>
<string>VBoxHfs.efi</string> <dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string>HFS+ Driver</string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>OpenHfsPlus.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>OpenRuntime.efi</string> <string>OpenRuntime.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>OpenCanopy.efi</string> <string>OpenCanopy.efi</string>
<string>#AudioDxe.efi</string> </dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>AudioDxe.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<true/>
<key>Path</key>
<string>OpenPartitionDxe.efi</string> <string>OpenPartitionDxe.efi</string>
<string>#OpenUsbKbDxe.efi</string> </dict>
<string>#UsbMouseDxe.efi</string> <dict>
<string>#Ps2KeyboardDxe.efi</string> <key>Arguments</key>
<string>#Ps2MouseDxe.efi</string> <string></string>
<string>#HiiDatabase.efi</string> <key>Comment</key>
<string>#NvmExpressDxe.efi</string> <string></string>
<string>#XhciDxe.efi</string> <key>Enabled</key>
<string>#ExFatDxe.efi</string> <false/>
<string>#CrScreenshotDxe.efi</string> <key>Path</key>
<string>OpenUsbKbDxe.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>UsbMouseDxe.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>Ps2KeyboardDxe.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>Ps2MouseDxe.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>HiiDatabase.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>NvmExpressDxe.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>XhciDxe.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>ExFatDxe.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>CrScreenshotDxe.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>ext4_x64.efi</string>
</dict>
<dict>
<key>Arguments</key>
<string></string>
<key>Comment</key>
<string></string>
<key>Enabled</key>
<false/>
<key>Path</key>
<string>OpenLinuxBoot.efi</string>
</dict>
</array> </array>
<key>Input</key> <key>Input</key>
<dict> <dict>
@ -1098,6 +1374,8 @@
<true/> <true/>
<key>ExitBootServicesDelay</key> <key>ExitBootServicesDelay</key>
<integer>0</integer> <integer>0</integer>
<key>ForceOcWriteFlash</key>
<false/>
<key>ForgeUefiSupport</key> <key>ForgeUefiSupport</key>
<false/> <false/>
<key>IgnoreInvalidFlexRatio</key> <key>IgnoreInvalidFlexRatio</key>

View File

@ -73,7 +73,7 @@ Phenom II X3 720 does not. Ryzen processors work just fine.
``` ```
sudo apt-get install qemu uml-utilities virt-manager git \ sudo apt-get install qemu uml-utilities virt-manager git \
wget libguestfs-tools p7zip-full -y wget libguestfs-tools p7zip-full make -y
``` ```
This step may need to be adapted for your Linux distribution. This step may need to be adapted for your Linux distribution.
@ -84,6 +84,8 @@ Phenom II X3 720 does not. Ryzen processors work just fine.
sudo usermod -aG kvm $(whoami) sudo usermod -aG kvm $(whoami)
``` ```
Note: Re-login after executing this command.
* Clone this repository on your QEMU system. Files from this repository are * Clone this repository on your QEMU system. Files from this repository are
used in the following steps. used in the following steps.
@ -121,7 +123,7 @@ Phenom II X3 720 does not. Ryzen processors work just fine.
``` ```
Note: Modern NVIDIA GPUs are supported on HighSierra but not on later Note: Modern NVIDIA GPUs are supported on HighSierra but not on later
versions. versions of macOS.
* Convert the downloaded `BaseSystem.dmg` file into the `BaseSystem.img` file. * Convert the downloaded `BaseSystem.dmg` file into the `BaseSystem.img` file.
@ -173,6 +175,13 @@ Phenom II X3 720 does not. Ryzen processors work just fine.
virsh --connect qemu:///system define macOS.xml virsh --connect qemu:///system define macOS.xml
``` ```
- If needed, grant necessary permissions to libvirt-qemu user,
```
sudo setfacl -m u:libvirt-qemu:rx /home/$USER
sudo setfacl -R -m u:libvirt-qemu:rx /home/$USER/OSX-KVM
```
- Launch `virt-manager` and start the `macOS` virtual machine. - Launch `virt-manager` and start the `macOS` virtual machine.
Note: You may need to run `sudo ip link delete tap0` command before Note: You may need to run `sudo ip link delete tap0` command before

View File

@ -20,7 +20,7 @@ Ensure you have VM support and passthrough parameters prepared (VFIO devices, PC
## Preparing the VM ## Preparing the VM
Below are sample instructions for setting up the VM. We will keep the necessary files in the same directory for simplicity. Below are sample instructions for setting up the VM. We will keep the necessary files in the same directory for simplicity.
* Place these 3 files `BaseSystem.img`, `mac_hdd_ng.img` and `OSX-KVM/OpenCore-Catalina/OpenCore.qcow2` into the directory of your VM * Place these 3 files `BaseSystem.img`, `mac_hdd_ng.img` and `OSX-KVM/OpenCore/OpenCore.qcow2` into the directory of your VM
* ie: Into `/mnt/user/domains/BigSur`, where domains is the folder for your VMs * ie: Into `/mnt/user/domains/BigSur`, where domains is the folder for your VMs
* Create a new VM and edit the XML. Use the OSX-KVM repository's `macOS-libvirt-Catalina.xml` as a guide * Create a new VM and edit the XML. Use the OSX-KVM repository's `macOS-libvirt-Catalina.xml` as a guide
* ie: You also have the option to use the GUI to adjust the CPUs, RAM, setting the OS installation media and disk images, as well as the devices you wish to pass into the VM. However, each time the template is edited via the GUI, you must go in the XML editor and paste the qemu args at the bottom of the XML file. * ie: You also have the option to use the GUI to adjust the CPUs, RAM, setting the OS installation media and disk images, as well as the devices you wish to pass into the VM. However, each time the template is edited via the GUI, you must go in the XML editor and paste the qemu args at the bottom of the XML file.

View File

@ -54,7 +54,7 @@ args=(
-drive if=pflash,format=raw,snapshot=on,file="$REPO_PATH/$OVMF_DIR/OVMF_VARS-1024x768.fd" -drive if=pflash,format=raw,snapshot=on,file="$REPO_PATH/$OVMF_DIR/OVMF_VARS-1024x768.fd"
-smbios type=2 -smbios type=2
-device ich9-ahci,id=sata -device ich9-ahci,id=sata
# -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file="$REPO_PATH/OpenCore-Catalina/OpenCore.qcow2" # -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file="$REPO_PATH/OpenCore/OpenCore.qcow2"
-device ide-hd,bus=sata.2,drive=OpenCoreBoot -device ide-hd,bus=sata.2,drive=OpenCoreBoot
-device ide-hd,bus=sata.3,drive=InstallMedia -device ide-hd,bus=sata.3,drive=InstallMedia
-drive id=InstallMedia,if=none,file="$REPO_PATH/BaseSystem.img",format=raw -drive id=InstallMedia,if=none,file="$REPO_PATH/BaseSystem.img",format=raw

View File

@ -49,7 +49,7 @@ args=(
-smbios type=2 -smbios type=2
-device ich9-intel-hda -device hda-duplex -device ich9-intel-hda -device hda-duplex
-device ich9-ahci,id=sata -device ich9-ahci,id=sata
# -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file="$REPO_PATH/OpenCore-Catalina/OpenCore.qcow2" # -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file="$REPO_PATH/OpenCore/OpenCore.qcow2"
-device ide-hd,bus=sata.2,drive=OpenCoreBoot -device ide-hd,bus=sata.2,drive=OpenCoreBoot
-device ide-hd,bus=sata.3,drive=InstallMedia -device ide-hd,bus=sata.3,drive=InstallMedia
-drive id=InstallMedia,if=none,file="$REPO_PATH/BaseSystem.img",format=raw -drive id=InstallMedia,if=none,file="$REPO_PATH/BaseSystem.img",format=raw

View File

@ -62,7 +62,7 @@
<emulator>/usr/bin/qemu-system-x86_64</emulator> <emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'> <disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='writeback' io='threads'/> <driver name='qemu' type='qcow2' cache='writeback' io='threads'/>
<source file='/home/CHANGEME/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2'/> <source file='/home/CHANGEME/OSX-KVM/OpenCore/OpenCore.qcow2'/>
<target dev='sda' bus='sata'/> <target dev='sda' bus='sata'/>
<boot order='2'/> <boot order='2'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/>
@ -139,11 +139,11 @@
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
</controller> </controller>
<!-- Make sure you put your nic in bus 0x0 and slot 0x0y(y is numeric), this will make nic built-in and apple-store work--> <!-- Make sure you put your nic in bus 0x0 and slot 0x0y(y is numeric), this will make nic built-in and apple-store work-->
<interface type='bridge'> <interface type="bridge">
<mac address='52:54:00:8e:e2:66'/> <mac address="52:54:00:e6:85:40"/>
<source bridge='virbr0'/> <source bridge="virbr0"/>
<target dev='tap0'/> <model type="vmxnet3"/>
<model type='vmxnet3'/> <address type="pci" domain="0x0000" bus="0x00" slot="0x00" function="0x0"/>
</interface> </interface>
<serial type='pty'> <serial type='pty'>
<target type='isa-serial' port='0'> <target type='isa-serial' port='0'>

View File

@ -19,10 +19,10 @@ Also tweaking the `smbios.plist` file can help (?).
### Change resolution in OpenCore ### Change resolution in OpenCore
```diff ```diff
diff --git a/OpenCore-Catalina/config.plist b/OpenCore-Catalina/config.plist diff --git a/OpenCore/config.plist b/OpenCore/config.plist
index 4754e8c..489570f 100644 index 4754e8c..489570f 100644
--- a/OpenCore-Catalina/config.plist --- a/OpenCore/config.plist
+++ b/OpenCore-Catalina/config.plist +++ b/OpenCore/config.plist
@@ -692,7 +692,7 @@ @@ -692,7 +692,7 @@
<key>ConsoleMode</key> <key>ConsoleMode</key>
<string></string> <string></string>
@ -144,7 +144,7 @@ AMD RX 570 GPU (May 2021).
01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] [1002:aaf0] (rev ff) 01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] [1002:aaf0] (rev ff)
``` ```
* Fix permisions for the `/dev/vfio/1` device (modify as needed): * Fix permissions for the `/dev/vfio/1` device (modify as needed):
``` ```
sudo cp vfio-kvm.rules /etc/udev/rules.d/vfio-kvm.rules sudo cp vfio-kvm.rules /etc/udev/rules.d/vfio-kvm.rules
@ -393,7 +393,12 @@ get some performance gain.
### Permission problems with libvirt / qemu? ### Permission problems with libvirt / qemu?
``` ```
sudo setfacl -m u:libvirt-qemu:rx <path> # fix virt-manager perm problems sudo setfacl -m u:libvirt-qemu:rx /home/$USER
sudo setfacl -R -m u:libvirt-qemu:rx /home/$USER/OSX-KVM
In general,
sudo setfacl -R -m u:libvirt-qemu:rx <path> # fix virt-manager perm problems
``` ```

@ -1 +1 @@
Subproject commit 6dd2d92383edee522052ebbe2c634c92894b37e6 Subproject commit dcf5032351154034e7c8ef6fd15674b1c71e3d92