mirror of
https://github.com/LongQT-sea/OpenCore-ISO
synced 2026-11-26 17:28:19 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee8901da4a | ||
|
|
d5be512f7d | ||
|
|
12c31081e6 | ||
|
|
567ea1ca33 | ||
|
|
55fb2143a0 | ||
|
|
4165b0a01f | ||
|
|
630802f587 | ||
|
|
7f54d9c08e | ||
|
|
96c2369b1d | ||
|
|
6dc3c1d0ba | ||
|
|
fb87d98a5a | ||
|
|
48d854fd8a | ||
|
|
2aa5b41c36 | ||
|
|
140ac918eb | ||
|
|
b6b480be7d | ||
|
|
adca6ad1c9 | ||
|
|
c95471c781 | ||
|
|
e8d1e1f353 | ||
|
|
c8ab208baa | ||
|
|
2183821f54 | ||
|
|
b140fd8983 | ||
|
|
e5b7db00c0 | ||
|
|
d67508561b | ||
|
|
c05183e80a | ||
|
|
1b807c98cb | ||
|
|
c985b8f7a5 | ||
|
|
92aee784b6 | ||
|
|
e9ec2fa32f | ||
|
|
8940b0298c | ||
|
|
2c0535644f | ||
|
|
2dc18cc798 | ||
|
|
141c791cbf | ||
|
|
8d971f291e | ||
|
|
5ba5be3f84 | ||
|
|
8aecdc272c | ||
|
|
877ad380b9 | ||
|
|
922379beef | ||
|
|
61f9266b9c | ||
|
|
eb5b0c0aa2 | ||
|
|
5406140441 | ||
|
|
48d9c4d8e0 | ||
|
|
c89db3af65 | ||
|
|
27971d5903 | ||
|
|
72c5d39687 | ||
|
|
7e82d4285e | ||
|
|
0c2f0d9679 | ||
|
|
04ddfd5801 |
No files matched your search
@@ -0,0 +1,14 @@
|
||||
blank_issues_enabled: false
|
||||
contact_links:
|
||||
- name: Discussions
|
||||
url: https://github.com/LongQT-sea/OpenCore-ISO/discussions
|
||||
about: For general questions, tips sharing, and community help
|
||||
- name: Dortania OpenCore Guide
|
||||
url: https://dortania.github.io/OpenCore-Install-Guide/
|
||||
about: Comprehensive OpenCore documentation and troubleshooting
|
||||
- name: Proxmox VE Forum
|
||||
url: https://forum.proxmox.com/
|
||||
about: For Proxmox-specific questions and issues
|
||||
- name: Intel iGPU Passthrough Guide
|
||||
url: https://github.com/LongQT-sea/intel-igpu-passthru
|
||||
about: Guide for Intel iGPU passthrough configuration
|
||||
@@ -0,0 +1,60 @@
|
||||
name: Feature Request
|
||||
description: Suggest a new feature or improvement for OpenCore-ISO
|
||||
title: "[FEATURE] "
|
||||
labels: ["enhancement"]
|
||||
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Thanks for suggesting a feature for OpenCore-ISO!
|
||||
Your ideas help make this project better for everyone.
|
||||
|
||||
**Have you starred this repo yet?** Show your support by giving it a star!
|
||||
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Prerequisites
|
||||
options:
|
||||
- label: I searched existing issues - this hasn't been requested
|
||||
required: true
|
||||
- label: This relates to OpenCore-ISO specifically
|
||||
required: true
|
||||
- label: I've starred the repo ⭐ (or will star it later!)
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Feature Description
|
||||
description: What would you like to see?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Problem It Solves
|
||||
description: What issue does this address?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Proposed Implementation
|
||||
description: How should this work?
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional Context
|
||||
description: Any other details or alternatives?
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: I can help with
|
||||
options:
|
||||
- label: Testing
|
||||
- label: Documentation
|
||||
- label: Implementation
|
||||
@@ -0,0 +1,97 @@
|
||||
name: Get Help & Support
|
||||
description: Get help with OpenCore-ISO setup or configuration
|
||||
title: "[HELP] "
|
||||
labels: ["question", "help wanted"]
|
||||
|
||||
body:
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Need help with OpenCore-ISO?
|
||||
Before asking for help, please check:
|
||||
- The [README](https://github.com/LongQT-sea/OpenCore-ISO#readme) and its troubleshooting section
|
||||
- [Existing issues](https://github.com/LongQT-sea/OpenCore-ISO/issues) for similar problems
|
||||
- [Discussions](https://github.com/LongQT-sea/OpenCore-ISO/discussions) for community solutions
|
||||
|
||||
**Have you starred this repo yet?** Show your support by giving it a star!
|
||||
|
||||
- type: checkboxes
|
||||
attributes:
|
||||
label: Prerequisites
|
||||
options:
|
||||
- label: I have read the [README.md](https://github.com/LongQT-sea/OpenCore-ISO?#about)
|
||||
required: true
|
||||
- label: I have searched existing issues and discussions
|
||||
required: true
|
||||
- label: I've starred the repo ⭐ (or will star it later!)
|
||||
required: false
|
||||
|
||||
- type: dropdown
|
||||
attributes:
|
||||
label: macOS Version
|
||||
options:
|
||||
- macOS 26 Tahoe
|
||||
- macOS 15 Sequoia
|
||||
- macOS 14 Sonoma
|
||||
- macOS 13 Ventura
|
||||
- macOS 12 Monterey
|
||||
- macOS 11 Big Sur
|
||||
- macOS 10.15 Catalina
|
||||
- macOS 10.14 Mojave
|
||||
- Other/Legacy (specify below)
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: System Info
|
||||
description: Host OS and hardware specs info
|
||||
placeholder: |
|
||||
Host OS: e.g. Proxmox, QEMU/KVM, UTM, TrueNAS, Unraid
|
||||
Mainboard: Z490
|
||||
CPU: i7-10700K
|
||||
RAM: 32GB
|
||||
dGPU: None
|
||||
render: shell
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: VM Config or QEMU cmdline
|
||||
description: Proxmox VM config (`qm config VMID`) or QEMU command line used to start the VM
|
||||
placeholder: |
|
||||
# qm config VMID
|
||||
bios: ovmf
|
||||
machine: q35
|
||||
cpu: Skylake-Client-v4
|
||||
|
||||
# QEMU cmdline
|
||||
/usr/bin/qemu-system-x86_64 -accel kvm -machine q35 -m 4096 \
|
||||
-cpu Skylake-Client-noTSX-IBRS,vendor=GenuineIntel \
|
||||
-usb -device usb-tablet -device usb-kbd \
|
||||
render: shell
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Problem Description
|
||||
description: What's the issue?
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: What You've Tried
|
||||
description: Steps taken to resolve
|
||||
validations:
|
||||
required: false
|
||||
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: Additional Context
|
||||
description: Screenshots or other details (relevant errors or logs)
|
||||
validations:
|
||||
required: false
|
||||
@@ -0,0 +1,61 @@
|
||||
name: Build ISO
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release_tag:
|
||||
description: 'Optional: Tag the build to upload it to Releases'
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
build-opencore-iso:
|
||||
runs-on: macos-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install xorriso
|
||||
run: |
|
||||
echo "Installing xorriso ..."
|
||||
brew install xorriso
|
||||
|
||||
- name: Download ProperTree and GenSMBIOS
|
||||
run: |
|
||||
git clone --depth 1 https://github.com/corpnewt/GenSMBIOS
|
||||
curl -OL https://github.com/LongQT-sea/OpenCore-ISO/releases/download/v0.2/ProperTree.zip
|
||||
unzip -qq ProperTree.zip && rm ProperTree.zip && rm -rf GenSMBIOS/.git
|
||||
|
||||
- name: Make OpenCore-ISO
|
||||
run: |
|
||||
echo "Making ISO ..."
|
||||
bash Make_ISO.command
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: OpenCore-ISO
|
||||
path: ~/Desktop/LongQT-OpenCore*.iso
|
||||
|
||||
- name: Create Release
|
||||
if: github.event.inputs.release_tag != ''
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
tag=${{ github.event.inputs.release_tag }}
|
||||
title="$tag"
|
||||
|
||||
cat > release_notes.md << 'EOF'
|
||||
> [!Tip]
|
||||
> For macOS Installer ISO and Recovery ISO:
|
||||
> https://github.com/LongQT-sea/macos-iso-builder
|
||||
|
||||
> [!CAUTION]
|
||||
> These iso are **true CD/DVD ISO image**. Do **NOT** modify VM config to change **`media=cdrom`** to **`media=disk`**.
|
||||
EOF
|
||||
|
||||
gh release create "$tag" \
|
||||
--title "$title" \
|
||||
--notes-file release_notes.md \
|
||||
~/Desktop/LongQT-OpenCore*.iso
|
||||
@@ -0,0 +1,18 @@
|
||||
name: Close stale issues
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # runs daily at midnight
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
days-before-stale: 30
|
||||
days-before-close: 7
|
||||
close-issue-reason: 'completed'
|
||||
stale-issue-message: 'This issue has been automatically marked as stale due to inactivity.'
|
||||
close-issue-message: 'Closing this issue due to prolonged inactivity.'
|
||||
exempt-issue-labels: 'keep-open'
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2024-2025, LongQT-sea
|
||||
# macOS Recovery ISO Creator
|
||||
# Downloads macOS recovery images and converts them to bootable ISO files
|
||||
# Downloads macOS recovery images from Apple and converts them to bootable DVD ISO files
|
||||
|
||||
set -e
|
||||
|
||||
@@ -23,18 +23,9 @@ fi
|
||||
get_version_info() {
|
||||
local key=$1
|
||||
case $key in
|
||||
lion1) echo "Mac-2E6FAB96566FE58C:00000000000F25Y00:Lion:" ;;
|
||||
lion2) echo "Mac-C3EC7CD22292981F:00000000000F0HM00:Lion:" ;;
|
||||
mountain_lion) echo "Mac-7DF2A3B5E5D671ED:00000000000F65100:Mountain_Lion:" ;;
|
||||
mavericks) echo "Mac-F60DEB81FF30ACF6:00000000000FNN100:Mavericks:" ;;
|
||||
yosemite) echo "Mac-E43C1C25D4880AD6:00000000000GDVW00:Yosemite:" ;;
|
||||
el_capitan) echo "Mac-FFE5EF870D7BA81A:00000000000GQRX00:El_Capitan:" ;;
|
||||
sierra) echo "Mac-77F17D7DA9285301:00000000000J0DX00:Sierra:" ;;
|
||||
high_sierra1) echo "Mac-7BA5B2D9E42DDD94:00000000000J80300:High_Sierra:" ;;
|
||||
high_sierra2) echo "Mac-BE088AF8C5EB4FA2:00000000000J80300:High_Sierra:" ;;
|
||||
high_sierra) echo "Mac-7BA5B2D9E42DDD94:00000000000J80300:High_Sierra:" ;;
|
||||
mojave) echo "Mac-7BA5B2DFE22DDD8C:00000000000KXPG00:Mojave:" ;;
|
||||
catalina1) echo "Mac-CFF7D910A743CAAF:00000000000PHCD00:Catalina:" ;;
|
||||
catalina2) echo "Mac-00BE6ED71E35EB86:00000000000000000:Catalina:" ;;
|
||||
catalina) echo "Mac-CFF7D910A743CAAF:00000000000PHCD00:Catalina:" ;;
|
||||
big_sur) echo "Mac-2BD1B31983FE1663:00000000000000000:Big_Sur:" ;;
|
||||
monterey) echo "Mac-E43C1C25D4880AD6:00000000000000000:Monterey:" ;;
|
||||
ventura) echo "Mac-B4831CEBD52A0C4C:00000000000000000:Ventura:" ;;
|
||||
@@ -64,6 +55,7 @@ check_python() {
|
||||
print_error "Python3 is not installed on your system."
|
||||
echo "Please install Python3:"
|
||||
echo "Download it from: https://www.python.org/downloads/"
|
||||
echo "Or use Install_Python3.command to do it automatically"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
@@ -94,38 +86,6 @@ cleanup_recovery() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Function to determine recovery image filename based on version
|
||||
get_recovery_filename() {
|
||||
local version_name=$1
|
||||
|
||||
# macOS 10.4 to 10.12 use RecoveryImage.dmg
|
||||
# macOS 10.13+ use BaseSystem.dmg
|
||||
case $version_name in
|
||||
Lion|Mountain_Lion|Mavericks|Yosemite|El_Capitan|Sierra)
|
||||
echo "RecoveryImage.dmg"
|
||||
;;
|
||||
*)
|
||||
echo "BaseSystem.dmg"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Function to determine hdiutil options based on version
|
||||
get_hdiutil_options() {
|
||||
local version_name=$1
|
||||
|
||||
# macOS 10.7 to 10.9 require -hfs -iso -joliet
|
||||
# macOS 10.10+ use -hfs -udf
|
||||
case $version_name in
|
||||
Lion|Mountain_Lion|Mavericks)
|
||||
echo "-hfs -iso -joliet"
|
||||
;;
|
||||
*)
|
||||
echo "-hfs -udf"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# Function to download macOS recovery
|
||||
download_recovery() {
|
||||
local board_id=$1
|
||||
@@ -141,8 +101,8 @@ download_recovery() {
|
||||
python3 macrecovery.py -b "$board_id" -m "$model" download
|
||||
fi
|
||||
|
||||
# Check which recovery image was downloaded
|
||||
if [ ! -f "com.apple.recovery.boot/BaseSystem.dmg" ] && [ ! -f "com.apple.recovery.boot/RecoveryImage.dmg" ]; then
|
||||
# Check if BaseSystem.dmg was downloaded (all versions 10.13+ use BaseSystem.dmg)
|
||||
if [ ! -f "com.apple.recovery.boot/BaseSystem.dmg" ]; then
|
||||
print_error "Failed to download recovery image"
|
||||
exit 1
|
||||
fi
|
||||
@@ -154,11 +114,9 @@ download_recovery() {
|
||||
create_iso() {
|
||||
local version_name=$1
|
||||
local output_path="$HOME/Desktop/macOS_${version_name}_Recovery.iso"
|
||||
local recovery_filename=$(get_recovery_filename "$version_name")
|
||||
local recovery_path="com.apple.recovery.boot/$recovery_filename"
|
||||
local hdiutil_opts=$(get_hdiutil_options "$version_name")
|
||||
local recovery_path="com.apple.recovery.boot/BaseSystem.dmg"
|
||||
|
||||
# Check if the expected recovery file exists
|
||||
# Check if the recovery file exists
|
||||
if [ ! -f "$recovery_path" ]; then
|
||||
print_error "Recovery image not found at: $recovery_path"
|
||||
# List available files for debugging
|
||||
@@ -169,7 +127,8 @@ create_iso() {
|
||||
|
||||
print_info "Creating bootable ISO..."
|
||||
|
||||
hdiutil makehybrid -ov $hdiutil_opts \
|
||||
# All versions 10.13+ use -hfs -udf options
|
||||
hdiutil makehybrid -ov -hfs -udf \
|
||||
-default-volume-name "${version_name}_Recovery" \
|
||||
-o "$output_path" \
|
||||
"$recovery_path"
|
||||
@@ -187,21 +146,15 @@ show_versions() {
|
||||
echo ""
|
||||
echo "Available macOS versions:"
|
||||
echo "========================="
|
||||
echo " 1. Lion (10.7)"
|
||||
echo " 2. Mountain Lion (10.8)"
|
||||
echo " 3. Mavericks (10.9)"
|
||||
echo " 4. Yosemite (10.10)"
|
||||
echo " 5. El Capitan (10.11)"
|
||||
echo " 6. Sierra (10.12)"
|
||||
echo " 7. High Sierra (10.13)"
|
||||
echo " 8. Mojave (10.14)"
|
||||
echo " 9. Catalina (10.15)"
|
||||
echo " 10. Big Sur (11)"
|
||||
echo " 11. Monterey (12)"
|
||||
echo " 12. Ventura (13)"
|
||||
echo " 13. Sonoma (14)"
|
||||
echo " 14. Sequoia (15)"
|
||||
echo " 15. Tahoe (Latest)"
|
||||
echo " 1. High Sierra (10.13)"
|
||||
echo " 2. Mojave (10.14)"
|
||||
echo " 3. Catalina (10.15)"
|
||||
echo " 4. Big Sur (11)"
|
||||
echo " 5. Monterey (12)"
|
||||
echo " 6. Ventura (13)"
|
||||
echo " 7. Sonoma (14)"
|
||||
echo " 8. Sequoia (15)"
|
||||
echo " 9. Tahoe (Latest)"
|
||||
echo ""
|
||||
}
|
||||
|
||||
@@ -210,49 +163,31 @@ process_version() {
|
||||
local version=$1
|
||||
|
||||
case $version in
|
||||
1|lion)
|
||||
key="lion1"
|
||||
1|high_sierra)
|
||||
key="high_sierra"
|
||||
;;
|
||||
2|mountain_lion)
|
||||
key="mountain_lion"
|
||||
;;
|
||||
3|mavericks)
|
||||
key="mavericks"
|
||||
;;
|
||||
4|yosemite)
|
||||
key="yosemite"
|
||||
;;
|
||||
5|el_capitan)
|
||||
key="el_capitan"
|
||||
;;
|
||||
6|sierra)
|
||||
key="sierra"
|
||||
;;
|
||||
7|high_sierra)
|
||||
key="high_sierra1"
|
||||
;;
|
||||
8|mojave)
|
||||
2|mojave)
|
||||
key="mojave"
|
||||
;;
|
||||
9|catalina)
|
||||
key="catalina1"
|
||||
3|catalina)
|
||||
key="catalina"
|
||||
;;
|
||||
10|big_sur)
|
||||
4|big_sur)
|
||||
key="big_sur"
|
||||
;;
|
||||
11|monterey)
|
||||
5|monterey)
|
||||
key="monterey"
|
||||
;;
|
||||
12|ventura)
|
||||
6|ventura)
|
||||
key="ventura"
|
||||
;;
|
||||
13|sonoma)
|
||||
7|sonoma)
|
||||
key="sonoma"
|
||||
;;
|
||||
14|sequoia)
|
||||
8|sequoia)
|
||||
key="sequoia"
|
||||
;;
|
||||
15|tahoe)
|
||||
9|tahoe)
|
||||
key="tahoe"
|
||||
;;
|
||||
*)
|
||||
@@ -283,12 +218,12 @@ show_usage() {
|
||||
Usage: $0 [OPTIONS]
|
||||
|
||||
Options:
|
||||
-v, --version <number|name> macOS version to download (1-15 or name)
|
||||
-v, --version <number|name> macOS version to download (1-9 or name)
|
||||
-h, --help Show this help message
|
||||
|
||||
Examples:
|
||||
$0 # Interactive mode
|
||||
$0 -v 9 # Download Catalina
|
||||
$0 -v 3 # Download Catalina
|
||||
$0 -v catalina # Download Catalina by name
|
||||
$0 -v sonoma # Download Sonoma by name
|
||||
|
||||
@@ -317,7 +252,7 @@ main() {
|
||||
if [ $# -eq 0 ]; then
|
||||
# Interactive mode
|
||||
show_versions
|
||||
read -p "Select version (1-15): " version_choice
|
||||
read -p "Select version (1-9): " version_choice
|
||||
echo ""
|
||||
process_version "$version_choice"
|
||||
else
|
||||
Executable
+34
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env bash
|
||||
# Simple launcher for mkmaciso
|
||||
set -e
|
||||
MKMACISO_URL="https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/mkmaciso"
|
||||
LOCAL_BIN="$HOME/.local/bin"
|
||||
TARGET="$LOCAL_BIN/mkmaciso"
|
||||
EXPORT_LINE='export PATH="$HOME/.local/bin:$PATH"'
|
||||
|
||||
# Check kernel version and set curl options accordingly
|
||||
KERNEL_VERSION=$(uname -r | cut -d. -f1)
|
||||
if [[ "$KERNEL_VERSION" -ge 15 ]]; then
|
||||
CURL_OPTS="-fsSL"
|
||||
else
|
||||
CURL_OPTS="-fsSL --insecure"
|
||||
fi
|
||||
|
||||
# Install mkmaciso if missing
|
||||
if [[ ! -f "$TARGET" ]]; then
|
||||
mkdir -p "$LOCAL_BIN"
|
||||
curl $CURL_OPTS "$MKMACISO_URL" -o "$TARGET"
|
||||
chmod +x "$TARGET"
|
||||
fi
|
||||
# Ensure ~/.local/bin is in PATH
|
||||
if [[ ":$PATH:" != *":$LOCAL_BIN:"* ]]; then
|
||||
case "$SHELL" in
|
||||
*/zsh) RC="$HOME/.zprofile" ;;
|
||||
*/bash) RC="$HOME/.bash_profile" ;;
|
||||
*) RC="$HOME/.profile" ;;
|
||||
esac
|
||||
|
||||
touch "$RC"
|
||||
grep -qxF "$EXPORT_LINE" "$RC" || printf '\n%s\n' "$EXPORT_LINE" >> "$RC"
|
||||
fi
|
||||
exec "$TARGET" "$@"
|
||||
@@ -6,7 +6,7 @@ GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m'
|
||||
|
||||
|
||||
clear
|
||||
echo -e "${GREEN}=== Disable GateKeeper Script ===${NC}"
|
||||
echo ""
|
||||
echo -e "${YELLOW}Administrator privileges required.${NC}"
|
||||
@@ -14,7 +14,6 @@ echo -e "${YELLOW}Administrator privileges required.${NC}"
|
||||
sudo spctl --master-disable
|
||||
|
||||
echo ""
|
||||
echo "────────────────────────────"
|
||||
echo "Press CMD + Q to quit..."
|
||||
echo "────────────────────────────"
|
||||
echo ""
|
||||
echo "────────────────────────────────────"
|
||||
echo "Press Command-W to close this window"
|
||||
echo "────────────────────────────────────"
|
||||
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.
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.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -208,7 +208,7 @@
|
||||
<key>EnableSafeModeSlide</key>
|
||||
<false/>
|
||||
<key>EnableWriteUnprotector</key>
|
||||
<false/>
|
||||
<true/>
|
||||
<key>FixupAppleEfiImages</key>
|
||||
<false/>
|
||||
<key>ForceBooterSignature</key>
|
||||
@@ -226,9 +226,9 @@
|
||||
<key>ProvideMaxSlide</key>
|
||||
<integer>0</integer>
|
||||
<key>RebuildAppleMemoryMap</key>
|
||||
<true/>
|
||||
<false/>
|
||||
<key>ResizeAppleGpuBars</key>
|
||||
<integer>-1</integer>
|
||||
<integer>0</integer>
|
||||
<key>SetupVirtualMap</key>
|
||||
<false/>
|
||||
<key>SignalAppleOS</key>
|
||||
@@ -241,6 +241,11 @@
|
||||
<dict>
|
||||
<key>Add</key>
|
||||
<dict>
|
||||
<key>PciRoot(0x0)/Pci(0x2,0x0)</key>
|
||||
<dict>
|
||||
<key>AAPL,ig-platform-id</key>
|
||||
<data></data>
|
||||
</dict>
|
||||
<key>PciRoot(0x0)/Pci(0x1b,0x0)</key>
|
||||
<dict>
|
||||
<key>layout-id</key>
|
||||
@@ -446,7 +451,7 @@
|
||||
<key>Comment</key>
|
||||
<string></string>
|
||||
<key>Enabled</key>
|
||||
<true/>
|
||||
<false/>
|
||||
<key>ExecutablePath</key>
|
||||
<string>Contents/MacOS/IONetworkingFamily</string>
|
||||
<key>Identifier</key>
|
||||
@@ -461,6 +466,36 @@
|
||||
</array>
|
||||
<key>Patch</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>Arch</key>
|
||||
<string>Any</string>
|
||||
<key>Base</key>
|
||||
<string></string>
|
||||
<key>Comment</key>
|
||||
<string>Enable TRIM/discard on QEMU SATA SSD - 10.7+</string>
|
||||
<key>Count</key>
|
||||
<integer>0</integer>
|
||||
<key>Enabled</key>
|
||||
<true/>
|
||||
<key>Find</key>
|
||||
<data>AEFQUExFIFNTRAA=</data>
|
||||
<key>Identifier</key>
|
||||
<string>com.apple.iokit.IOAHCIBlockStorage</string>
|
||||
<key>Limit</key>
|
||||
<integer>0</integer>
|
||||
<key>Mask</key>
|
||||
<data></data>
|
||||
<key>MaxKernel</key>
|
||||
<string></string>
|
||||
<key>MinKernel</key>
|
||||
<string>11.0.0</string>
|
||||
<key>Replace</key>
|
||||
<data>AAAAAAAAAAAAAAA=</data>
|
||||
<key>ReplaceMask</key>
|
||||
<data></data>
|
||||
<key>Skip</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Arch</key>
|
||||
<string>Any</string>
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
<key>EnableSafeModeSlide</key>
|
||||
<false/>
|
||||
<key>EnableWriteUnprotector</key>
|
||||
<false/>
|
||||
<true/>
|
||||
<key>FixupAppleEfiImages</key>
|
||||
<false/>
|
||||
<key>ForceBooterSignature</key>
|
||||
@@ -226,9 +226,9 @@
|
||||
<key>ProvideMaxSlide</key>
|
||||
<integer>0</integer>
|
||||
<key>RebuildAppleMemoryMap</key>
|
||||
<true/>
|
||||
<false/>
|
||||
<key>ResizeAppleGpuBars</key>
|
||||
<integer>-1</integer>
|
||||
<integer>0</integer>
|
||||
<key>SetupVirtualMap</key>
|
||||
<false/>
|
||||
<key>SignalAppleOS</key>
|
||||
@@ -241,6 +241,11 @@
|
||||
<dict>
|
||||
<key>Add</key>
|
||||
<dict>
|
||||
<key>PciRoot(0x0)/Pci(0x2,0x0)</key>
|
||||
<dict>
|
||||
<key>AAPL,ig-platform-id</key>
|
||||
<data></data>
|
||||
</dict>
|
||||
<key>PciRoot(0x0)/Pci(0x1b,0x0)</key>
|
||||
<dict>
|
||||
<key>layout-id</key>
|
||||
@@ -461,6 +466,36 @@
|
||||
</array>
|
||||
<key>Patch</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>Arch</key>
|
||||
<string>Any</string>
|
||||
<key>Base</key>
|
||||
<string></string>
|
||||
<key>Comment</key>
|
||||
<string>Enable TRIM/discard on QEMU SATA SSD - 10.7+</string>
|
||||
<key>Count</key>
|
||||
<integer>0</integer>
|
||||
<key>Enabled</key>
|
||||
<true/>
|
||||
<key>Find</key>
|
||||
<data>AEFQUExFIFNTRAA=</data>
|
||||
<key>Identifier</key>
|
||||
<string>com.apple.iokit.IOAHCIBlockStorage</string>
|
||||
<key>Limit</key>
|
||||
<integer>0</integer>
|
||||
<key>Mask</key>
|
||||
<data></data>
|
||||
<key>MaxKernel</key>
|
||||
<string></string>
|
||||
<key>MinKernel</key>
|
||||
<string>11.0.0</string>
|
||||
<key>Replace</key>
|
||||
<data>AAAAAAAAAAAAAAA=</data>
|
||||
<key>ReplaceMask</key>
|
||||
<data></data>
|
||||
<key>Skip</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Arch</key>
|
||||
<string>Any</string>
|
||||
|
||||
+138
-113
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (c) 2024-2025, LongQT-sea
|
||||
# macOS Python3 Silent Installer
|
||||
# Installs appropriate Python3 version based on macOS version
|
||||
# Checks if installer exists in current directory first; if not, downloads from python.org
|
||||
@@ -7,190 +7,220 @@
|
||||
|
||||
set -e
|
||||
|
||||
# Color codes
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m' # No Color
|
||||
NC='\033[0m'
|
||||
|
||||
# Function to print colored messages
|
||||
print_info() {
|
||||
echo -e "${GREEN}[INFO]${NC} $1"
|
||||
}
|
||||
print_info() { echo -e "${GREEN}[INFO]${NC} $1"; }
|
||||
print_warning() { echo -e "${YELLOW}[WARNING]${NC} $1" >&2; }
|
||||
print_error() { echo -e "${RED}[ERROR]${NC} $1" >&2; }
|
||||
|
||||
print_warning() {
|
||||
echo -e "${YELLOW}[WARNING]${NC} $1"
|
||||
}
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo ""
|
||||
echo -e "${YELLOW}[INFO]${NC} Administrator privileges required..."
|
||||
exec sudo "$0" "$@"
|
||||
exit
|
||||
fi
|
||||
|
||||
print_error() {
|
||||
echo -e "${RED}[ERROR]${NC} $1"
|
||||
}
|
||||
API_URL="https://www.python.org/api/v2/downloads/release/?version=3&pre_release=false&is_published=true"
|
||||
|
||||
# Get macOS version
|
||||
get_macos_version() {
|
||||
sw_vers -productVersion
|
||||
}
|
||||
|
||||
# Determine Python version and download URL based on macOS version
|
||||
fetch_url() {
|
||||
[ -z "$1" ] && return 1
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -sfL --connect-timeout 10 --max-time 20 "$1"
|
||||
elif command -v wget >/dev/null 2>&1; then
|
||||
wget -qO- --timeout=20 "$1"
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
get_latest_version() {
|
||||
local branch="$1" fallback="$2" raw="" latest="" filter='^[0-9]+\.[0-9]+\.[0-9]+$'
|
||||
|
||||
[ -n "$branch" ] && filter="^${branch//./\\.}\\.[0-9]+$"
|
||||
|
||||
raw="$(fetch_url "$API_URL" || true)"
|
||||
if [ -n "$raw" ]; then
|
||||
latest="$(printf '%s' "$raw" \
|
||||
| grep -oE '"name"[[:space:]]*:[[:space:]]*"Python [0-9][^"]*"' \
|
||||
| sed -E 's/.*"Python //; s/"$//' \
|
||||
| grep -E "$filter" \
|
||||
| sort -t. -k1,1n -k2,2n -k3,3n \
|
||||
| tail -n 1)"
|
||||
fi
|
||||
|
||||
if [ -n "$latest" ]; then
|
||||
echo "$latest"
|
||||
elif [ -n "$fallback" ]; then
|
||||
print_warning "Version lookup failed. Using fallback: $fallback"
|
||||
echo "$fallback"
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
determine_python_version() {
|
||||
local macos_version=$1
|
||||
local major=$(echo "$macos_version" | cut -d. -f1)
|
||||
local minor=$(echo "$macos_version" | cut -d. -f2)
|
||||
|
||||
local major
|
||||
local minor
|
||||
major=$(echo "$macos_version" | cut -d. -f1)
|
||||
minor=$(echo "$macos_version" | cut -d. -f2)
|
||||
|
||||
if [ "$major" -eq 10 ]; then
|
||||
if [ "$minor" -ge 13 ]; then
|
||||
# macOS 10.13 and later
|
||||
PYTHON_VERSION="3.13.7"
|
||||
PYTHON_PKG="python-3.13.7-macos11.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/3.13.7/python-3.13.7-macos11.pkg"
|
||||
if [ "$minor" -ge 15 ]; then
|
||||
print_info "Fetching latest Python 3 release..."
|
||||
PYTHON_VERSION=$(get_latest_version "" "3.14.7")
|
||||
PYTHON_PKG="python-${PYTHON_VERSION}-macos11.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/${PYTHON_VERSION}/${PYTHON_PKG}"
|
||||
elif [ "$minor" -ge 13 ] && [ "$minor" -le 14 ]; then
|
||||
# 3.13 is the last branch supporting macOS 10.13-10.14
|
||||
print_info "Fetching latest Python 3.13 release..."
|
||||
PYTHON_VERSION=$(get_latest_version "3.13" "3.13.12")
|
||||
PYTHON_PKG="python-${PYTHON_VERSION}-macos11.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/${PYTHON_VERSION}/${PYTHON_PKG}"
|
||||
elif [ "$minor" -ge 9 ] && [ "$minor" -le 12 ]; then
|
||||
# macOS 10.9 to 10.12
|
||||
# EOL — 3.9.13 is the last release with a macosx10.9 pkg
|
||||
PYTHON_VERSION="3.9.13"
|
||||
PYTHON_PKG="python-3.9.13-macosx10.9.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/3.9.13/python-3.9.13-macosx10.9.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/3.9.13/${PYTHON_PKG}"
|
||||
elif [ "$minor" -ge 6 ] && [ "$minor" -le 8 ]; then
|
||||
# macOS 10.6 to 10.8
|
||||
PYTHON_VERSION="3.6.6"
|
||||
PYTHON_PKG="python-3.6.6-macosx10.6.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/3.6.6/python-3.6.6-macosx10.6.pkg"
|
||||
# EOL — 3.6.8 is the last release with a macosx10.6 pkg
|
||||
PYTHON_VERSION="3.6.8"
|
||||
PYTHON_PKG="python-3.6.8-macosx10.6.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/3.6.8/${PYTHON_PKG}"
|
||||
else
|
||||
print_error "Unsupported macOS version: $macos_version"
|
||||
exit 1
|
||||
fi
|
||||
elif [ "$major" -ge 11 ]; then
|
||||
# macOS 11 (Big Sur) and later
|
||||
PYTHON_VERSION="3.13.7"
|
||||
PYTHON_PKG="python-3.13.7-macos11.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/3.13.7/python-3.13.7-macos11.pkg"
|
||||
print_info "Fetching latest Python 3 release..."
|
||||
PYTHON_VERSION=$(get_latest_version "" "3.14.7")
|
||||
PYTHON_PKG="python-${PYTHON_VERSION}-macos11.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/${PYTHON_VERSION}/${PYTHON_PKG}"
|
||||
else
|
||||
print_error "Unsupported macOS version: $macos_version"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Check if installer exists in current directory
|
||||
check_local_installer() {
|
||||
local pattern=$1
|
||||
local script_dir="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
# Use ls and grep to find matching files (more compatible)
|
||||
local found_file=""
|
||||
|
||||
# First, try to find exact match
|
||||
if [ -f "$script_dir/$PYTHON_PKG" ]; then
|
||||
echo "$script_dir/$PYTHON_PKG"
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Then try pattern matching with ls
|
||||
found_file=$(ls -1 "$script_dir" 2>/dev/null | grep -E "^python-${PYTHON_VERSION}.*\.pkg$" | head -n 1)
|
||||
|
||||
if [ -n "$found_file" ]; then
|
||||
echo "$script_dir/$found_file"
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Also check current working directory if different from script dir
|
||||
local current_dir="$(pwd)"
|
||||
if [ "$current_dir" != "$script_dir" ]; then
|
||||
if [ -f "$current_dir/$PYTHON_PKG" ]; then
|
||||
echo "$current_dir/$PYTHON_PKG"
|
||||
find_pkg_in_dir() {
|
||||
local dir=$1
|
||||
local f
|
||||
for f in "$dir"/python-"${PYTHON_VERSION}"*.pkg; do
|
||||
if [ -f "$f" ]; then
|
||||
echo "$f"
|
||||
return 0
|
||||
fi
|
||||
|
||||
found_file=$(ls -1 "$current_dir" 2>/dev/null | grep -E "^python-${PYTHON_VERSION}.*\.pkg$" | head -n 1)
|
||||
|
||||
if [ -n "$found_file" ]; then
|
||||
echo "$current_dir/$found_file"
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
check_local_installer() {
|
||||
local script_dir
|
||||
local current_dir
|
||||
script_dir="$(cd "$(dirname "$0")" && pwd)"
|
||||
current_dir="$(pwd)"
|
||||
local found
|
||||
if found=$(find_pkg_in_dir "$script_dir"); then
|
||||
echo "$found"
|
||||
return 0
|
||||
fi
|
||||
if [ "$current_dir" != "$script_dir" ]; then
|
||||
if found=$(find_pkg_in_dir "$current_dir"); then
|
||||
echo "$found"
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
# Download installer
|
||||
download_installer() {
|
||||
local url=$1
|
||||
local output=$2
|
||||
|
||||
print_info "Downloading Python installer from: $url"
|
||||
|
||||
if command -v curl &> /dev/null; then
|
||||
if curl -L -o "$output" "$url" --connect-timeout 30 --max-time 600; then
|
||||
return 0
|
||||
else
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -fL -o "$output" "$url" --connect-timeout 30 --max-time 600 || {
|
||||
rm -f "$output"
|
||||
return 1
|
||||
fi
|
||||
elif command -v wget &> /dev/null; then
|
||||
if wget -O "$output" "$url" --timeout=30; then
|
||||
return 0
|
||||
else
|
||||
}
|
||||
elif command -v wget >/dev/null 2>&1; then
|
||||
wget -O "$output" "$url" --timeout=30 || {
|
||||
rm -f "$output"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
else
|
||||
print_error "Neither curl nor wget found. Cannot download installer."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Install Python silently
|
||||
install_python() {
|
||||
local pkg_path=$1
|
||||
|
||||
print_info "Installing Python from: $pkg_path"
|
||||
|
||||
if [ ! -f "$pkg_path" ]; then
|
||||
print_error "Installer file not found: $pkg_path"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Silent installation using installer command
|
||||
if sudo installer -pkg "$pkg_path" -target / -verbose; then
|
||||
if installer -pkg "$pkg_path" -target / -verbose; then
|
||||
print_info "Python installed successfully!"
|
||||
return 0
|
||||
else
|
||||
print_error "Installation failed!"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Main installation process
|
||||
install_certificates() {
|
||||
local vers_folder
|
||||
vers_folder="Python $(echo "$PYTHON_VERSION" | cut -d. -f1,2)"
|
||||
if [ -f "/Applications/$vers_folder/Install Certificates.command" ]; then
|
||||
print_info "Updating certificates..."
|
||||
"/Applications/$vers_folder/Install Certificates.command" || \
|
||||
print_warning "Certificate update failed; pip/ssl may not verify HTTPS."
|
||||
else
|
||||
print_warning "Install Certificates.command not found for $vers_folder."
|
||||
fi
|
||||
}
|
||||
|
||||
main() {
|
||||
print_info "macOS Python Silent Installer"
|
||||
echo ""
|
||||
|
||||
# Get macOS version
|
||||
|
||||
local MACOS_VERSION
|
||||
MACOS_VERSION=$(get_macos_version)
|
||||
print_info "Detected macOS version: $MACOS_VERSION"
|
||||
|
||||
# Determine appropriate Python version
|
||||
|
||||
determine_python_version "$MACOS_VERSION"
|
||||
print_info "Target Python version: $PYTHON_VERSION"
|
||||
print_info "Installer package: $PYTHON_PKG"
|
||||
echo ""
|
||||
|
||||
# Check if installer exists locally
|
||||
|
||||
print_info "Checking for local installer..."
|
||||
print_info "Script directory: $(cd "$(dirname "$0")" && pwd)"
|
||||
print_info "Current directory: $(pwd)"
|
||||
|
||||
LOCAL_PKG=""
|
||||
|
||||
# Extract version pattern for search (e.g., "python-3.9.13*")
|
||||
VERSION_PATTERN="python-${PYTHON_VERSION}*"
|
||||
|
||||
if LOCAL_PKG=$(check_local_installer "$VERSION_PATTERN"); then
|
||||
|
||||
local INSTALLER_PATH
|
||||
local LOCAL_PKG
|
||||
if LOCAL_PKG=$(check_local_installer); then
|
||||
print_info "Found local installer: $LOCAL_PKG"
|
||||
INSTALLER_PATH="$LOCAL_PKG"
|
||||
else
|
||||
print_warning "Local installer not found. Attempting to download..."
|
||||
# Save to current user's Downloads folder
|
||||
DOWNLOADS_DIR="$HOME/Downloads"
|
||||
local DOWNLOADS_DIR
|
||||
if [ -n "$SUDO_USER" ]; then
|
||||
DOWNLOADS_DIR="$(eval echo "~$SUDO_USER")/Downloads"
|
||||
else
|
||||
DOWNLOADS_DIR="$HOME/Downloads"
|
||||
fi
|
||||
mkdir -p "$DOWNLOADS_DIR"
|
||||
INSTALLER_PATH="$DOWNLOADS_DIR/$PYTHON_PKG"
|
||||
|
||||
print_info "Will save installer to: $INSTALLER_PATH"
|
||||
|
||||
|
||||
if ! download_installer "$DOWNLOAD_URL" "$INSTALLER_PATH"; then
|
||||
print_error "Download failed!"
|
||||
echo ""
|
||||
@@ -203,19 +233,16 @@ main() {
|
||||
print_info "Looking for: $PYTHON_PKG"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
print_info "Download completed successfully!"
|
||||
fi
|
||||
|
||||
|
||||
echo ""
|
||||
|
||||
# Install Python
|
||||
if install_python "$INSTALLER_PATH"; then
|
||||
install_certificates
|
||||
echo ""
|
||||
print_info "Installation complete!"
|
||||
|
||||
# Verify installation
|
||||
if command -v python3 &> /dev/null; then
|
||||
if command -v python3 >/dev/null 2>&1; then
|
||||
local INSTALLED_VERSION
|
||||
INSTALLED_VERSION=$(python3 --version 2>&1)
|
||||
print_info "Installed: $INSTALLED_VERSION"
|
||||
fi
|
||||
@@ -224,7 +251,5 @@ main() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Run main function
|
||||
main
|
||||
|
||||
exit 0
|
||||
@@ -1,17 +1,21 @@
|
||||
Copyright (c) 2016-2017, The HermitCrabs Lab
|
||||
Copyright (c) 2016-2020, Download-Fritz
|
||||
Copyright (c) 2017-2020, savvas
|
||||
Copyright (c) 2016-2020, vit9696
|
||||
Copyright (c) 2024-2025, LongQT
|
||||
MIT License
|
||||
|
||||
All rights reserved.
|
||||
Copyright (c) 2024-2025, LongQT-sea
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,16 @@
|
||||
Copyright (c) 2016-2017, The HermitCrabs Lab
|
||||
Copyright (c) 2016-2020, Download-Fritz
|
||||
Copyright (c) 2017-2020, savvas
|
||||
Copyright (c) 2016-2020, vit9696
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
+5
-4
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ISO_FILE_NAME=LongQT-OpenCore-v0.1.iso
|
||||
ISO_FILE_NAME=LongQT-OpenCore-v0.7.iso
|
||||
VOL_NAME=LongQT-OpenCore
|
||||
SOURCE_DIR=./
|
||||
BOOT_IMG=BOOT.img
|
||||
@@ -30,13 +30,14 @@ xorriso -rockridge off -as mkisofs \
|
||||
-iso-level 3 \
|
||||
-V "${VOL_NAME}" \
|
||||
-J -joliet-long\
|
||||
-eltorito-alt-boot \
|
||||
-e "${BOOT_IMG}" \
|
||||
-no-emul-boot \
|
||||
-isohybrid-gpt-basdat \
|
||||
--boot-catalog-hide \
|
||||
-m ".git*" \
|
||||
-m "README.md" \
|
||||
-m "Make_ISO*" \
|
||||
-m "LICENSE" \
|
||||
-m "LICENSE*" \
|
||||
-m "cpu-models.conf" \
|
||||
-m "Create_Recovery_ISO*" \
|
||||
-output ~/Desktop/${ISO_FILE_NAME} \
|
||||
${SOURCE_DIR}
|
||||
+4
-4
@@ -8,6 +8,7 @@ GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m'
|
||||
|
||||
clear
|
||||
echo -e "${GREEN}=== EFI Partition Mount Script ===${NC}"
|
||||
echo ""
|
||||
|
||||
@@ -32,7 +33,6 @@ else
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "────────────────────────────"
|
||||
echo "Press CMD + Q to quit..."
|
||||
echo "────────────────────────────"
|
||||
echo ""
|
||||
echo "────────────────────────────────────"
|
||||
echo "Press Command-W to close this window"
|
||||
echo "────────────────────────────────────"
|
||||
@@ -1,96 +1,162 @@
|
||||
## About
|
||||
## OpenCore-ISO - OpenCore for Proxmox VE / QEMU
|
||||
|
||||
A properly configured OpenCore **DVD/CD-format ISO file** for use with Proxmox VE's web GUI to create a macOS virtual machine.
|
||||
A carefully crafted [OpenCore](https://github.com/acidanthera/opencorepkg) **ISO** image for running macOS virtual machines on **Proxmox VE** and **QEMU/KVM**.
|
||||
Built from scratch with a clean, efficient architecture — no legacy configurations, no OVMF patches, no kernel patches, true vanilla macOS.
|
||||
|
||||
Supports all Intel-based versions of macOS, from **Mac OS X 10.4** to **macOS 26**.
|
||||
Supports every Intel-based macOS release from **[Mac OS X 10.4 Tiger](https://dortania.github.io/OpenCore-Install-Guide/installer-guide/mac-install-dmg.html#acidanthera-images)** through **[macOS 26 Tahoe](https://github.com/LongQT-sea/macos-iso-builder)**.
|
||||
|
||||
> [!TIP]
|
||||
> This is likely the best way to run macOS on AMD hardware while retaining full hypervisor access for other VMs.
|
||||
> Also overcomes a lot of AMD CPU limitations listed in the [Dortania guide](https://dortania.github.io/Anti-Hackintosh-Buyers-Guide/CPU.html#cpus-to-avoid).
|
||||
|
||||
Looking to run macOS on **VMware**? See https://github.com/DrDonk/OC4VM by David Parsons.
|
||||
|
||||
---
|
||||
|
||||
## 📦 Download
|
||||
<details>
|
||||
<summary>Table of Contents</summary>
|
||||
|
||||
Grab the latest OpenCore ISO and macOS Recovery here:
|
||||
👉 [Release page](https://github.com/LongQT-sea/OpenCore-ISO/releases)
|
||||
- [Download](#download)
|
||||
- [Quick Start Guide](#quick-start-guide)
|
||||
- [1. Create a New VM](#1-create-a-new-vm)
|
||||
- [2. General](#2-general)
|
||||
- [3. OS](#3-os)
|
||||
- [4. System](#4-system)
|
||||
- [5. Hard Disk](#5-hard-disk)
|
||||
- [6. CPU](#6-cpu)
|
||||
- [7. Memory](#7-memory)
|
||||
- [8. Network](#8-network)
|
||||
- [9. Finalize](#9-finalize)
|
||||
- [10. Troubleshooting](#10-troubleshooting)
|
||||
- [Post-Install](#post-install)
|
||||
- [macOS Tahoe Cursor Freeze Fix](#macos-tahoe-cursor-freeze-fix)
|
||||
- [Contributing](#contributing)
|
||||
- [Credits](#credits)
|
||||
- [License & Attribution](#license--attribution)
|
||||
- [Disclaimer](#disclaimer)
|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
## ⚡ Quick Start Guide
|
||||
## Download
|
||||
|
||||
### 1. Create a New VM in the Proxmox VE web interface
|
||||
* Latest OpenCore-ISO: [LongQT-OpenCore-v0.7.iso](https://github.com/LongQT-sea/OpenCore-ISO/releases/download/v0.7/LongQT-OpenCore-v0.7.iso)
|
||||
* macOS installers and recovery ISOs (only supported source): [macos-iso-builder](https://github.com/LongQT-sea/macos-iso-builder)
|
||||
|
||||
> [!IMPORTANT]
|
||||
> These ISOs are **true CD/DVD ISO images**. Add them to your VM as a **CD/DVD drive**.<br>
|
||||
> Do **NOT** change **`media=cdrom`** to **`media=disk`** in the VM config.
|
||||
|
||||
> [!TIP]
|
||||
> Run [`Create_macOS_ISO.command`](/Create_macOS_ISO.command) inside your VM to download the full macOS installer from Apple and generate a proper DVD-format macOS installer ISO.
|
||||
|
||||
---
|
||||
|
||||
## Quick Start Guide
|
||||
|
||||
### 1. Create a New VM
|
||||
Open the Proxmox VE web interface and create a new VM.
|
||||
|
||||
### 2. General
|
||||
|
||||
* **VM ID**: Any available ID
|
||||
* **Name**: Any name you like for the macOS VM
|
||||
|
||||
---
|
||||
* **Name**: Any name you like
|
||||
|
||||
### 3. OS
|
||||
|
||||
* **ISO Image**: Select `LongQT-OpenCore-v0.X.iso`
|
||||
* **Guest OS Type**: Leave as default (`Linux`)
|
||||
|
||||
---
|
||||
|
||||
### 4. System
|
||||
|
||||
* **Machine Type**: `q35`
|
||||
* **BIOS**: UEFI (OVMF)
|
||||
* **Add EFI Disk**: ✅ Enabled
|
||||
* **Pre-Enroll Keys**: ❌ **Untick to disable Secure Boot**
|
||||
* **Machine Type**: q35
|
||||
* **BIOS**: OVMF (UEFI)
|
||||
* **Add EFI Disk**: [✓] Enabled
|
||||
* **Pre-Enroll Keys**: [✗] Untick to disable Secure Boot
|
||||
* **QEMU Guest Agent**:
|
||||
|
||||
* ✅ Enable for macOS 10.14 – macOS 26
|
||||
* ❌ Leave disabled for macOS 10.4 – macOS 10.13
|
||||
|
||||
---
|
||||
* [✓] Enable for macOS 10.14 – macOS 26
|
||||
* [✗] Leave as default for macOS 10.4 – macOS 10.13
|
||||
|
||||
### 5. Hard Disk
|
||||
|
||||
Disk **Bus Type** depends on your macOS version:
|
||||
The **disk bus type** depends on your needs:
|
||||
|
||||
| macOS Version | Bus Type |
|
||||
| ------------------------ | -------------- |
|
||||
| macOS 10.15 – macOS 26 | `VirtIO Block` |
|
||||
| macOS 10.4 – macOS 10.14 | `SATA` |
|
||||
* **VirtIO** – Better performance
|
||||
* **SATA** – Supports TRIM/Discard for more efficient storage usage
|
||||
|
||||
---
|
||||
| macOS Version | Supports Bus Type |
|
||||
| ------------------------ | ----------------------- |
|
||||
| macOS 10.15 – macOS 26 | `SATA` / `VirtIO Block` |
|
||||
| macOS 10.4 – macOS 10.14 | `SATA` |
|
||||
|
||||
> [!TIP]
|
||||
> Using SATA with **SSD emulation** and **Discard** enabled automatically enables TRIM — no need to run `trimforce enable`.
|
||||
|
||||
### 6. CPU
|
||||
|
||||
> [!CAUTION]
|
||||
> Follow these CPU settings carefully! Incorrect CPU configuration will cause boot failure.
|
||||
|
||||
#### Type (Model)
|
||||
|
||||
| macOS Version | Recommended CPU Type |
|
||||
| ------------------------ | -------------------------------------------------- |
|
||||
| macOS 10.11 – macOS 26 | `Skylake-Client-v4`, `Skylake-Server-v4` (AVX-512) |
|
||||
| macOS 10.4 – macOS 10.10 | `Nehalem` |
|
||||
|
||||
#### Cores
|
||||
Choose based on your hardware (`power of 2`): 1 / 2 / 4 / 8 / 16 / 32 / 64
|
||||
> [!TIP]
|
||||
> For non-power-of-2 counts, use multiple sockets:
|
||||
> | Target Cores | Cores | Sockets |
|
||||
> |---|---|---|
|
||||
> | 6 | 2 | 3 |
|
||||
> | 12 | 4 | 3 |
|
||||
> | 20 | 4 | 5 |
|
||||
> | 24 | 8 | 3 |
|
||||
|
||||
Choose based on your hardware: 1 / 2 / 4 / 8 / 16 / 32
|
||||
> [!NOTE]
|
||||
> **AMD CPUs:**
|
||||
> * **macOS 10.4 – macOS 12**, tick [✓] **Advanced**, under **Extra CPU Flags**, turn off `pcid` and `spec-ctrl`. [^amdcpu1]
|
||||
> * **macOS 13 – macOS 26**, you need to set the CPU manually via the Proxmox VE Shell[^amdcpu2], example:
|
||||
>
|
||||
> ```
|
||||
> # For CPUs with AVX2 support
|
||||
> qm set [VMID] --args "-cpu Skylake-Client-v4,vendor=GenuineIntel"
|
||||
>
|
||||
> # For CPUs with AVX-512 support
|
||||
> qm set [VMID] --args "-cpu Skylake-Server-v4,vendor=GenuineIntel"
|
||||
> ```
|
||||
> * If the VM fails to boot with more than 1 core, add `tsc=reliable` to the host kernel command line (`/etc/default/grub`).
|
||||
> ---
|
||||
> **Intel CPUs:**
|
||||
> * Intel HEDT / E5-2xxx v3/v4 require overriding the CPUID `model`[^intel-hedt], example:
|
||||
>
|
||||
> ```
|
||||
> qm set [VMID] --args "-cpu Broadwell-noTSX,model=158"
|
||||
> qm set [VMID] --args "-cpu Haswell-noTSX,model=158"
|
||||
> ```
|
||||
> * Intel Haswell desktops need to override `stepping` when using `Haswell-noTSX`[^haswell]:
|
||||
> ```
|
||||
> qm set [VMID] --args "-cpu Haswell-noTSX,stepping=3"
|
||||
> ```
|
||||
> * If you need to run nested virtualization software (such as Docker Desktop, VMware Fusion, or VirtualBox) inside the macOS VM, use QEMU named CPU model with the `+vmx` CPU flag, example:
|
||||
> ```
|
||||
> qm set [VMID] --args "-cpu Skylake-Client-v4,+vmx"
|
||||
> ```
|
||||
> * Avoid using `host` passthrough CPU types[^hostcpu] — they can be [**~30% slower (single-core)** and **~44% slower (multi-core)**](https://browser.geekbench.com/v6/cpu/compare/14205183?baseline=14313138) compared to recommended CPU types.
|
||||
|
||||
#### Type (Model):
|
||||
|
||||
| macOS Version | Recommended CPU Type |
|
||||
| ------------------------ | --------------------------------------------------------------------- |
|
||||
| macOS 10.11 – macOS 26 | `Broadwell-noTSX`, `Skylake-Client-v4`, `Skylake-Server-v4` (AVX-512) |
|
||||
| macOS 10.4 – macOS 10.10 | `Penryn` |
|
||||
|
||||
> ⚠️ **Notes for AMD CPUs**:
|
||||
- Tick ✅ Advanced, under **Extra CPU Flags**, turn off `pcid` and `spec-ctrl`.
|
||||
- For macOS 13–26, instead of using the GUI, you need to set the CPU manually using the qm command, e.g.:
|
||||
- `qm set [VMID] --args "-cpu Broadwell-noTSX,vendor=GenuineIntel"`
|
||||
- `qm set [VMID] --args "-cpu Skylake-Client-v4,vendor=GenuineIntel"`
|
||||
|
||||
> ⚠️ **Notes for Intel CPUs**:
|
||||
- Avoid using `host` or `max` CPU types — these can be **~30% slower** (single-core) and **~44% slower** (multi-core) compared to the recommended models.
|
||||
|
||||
---
|
||||
For more details, see [QEMU CPU Guide – macOS Guests](https://github.com/LongQT-sea/qemu-cpu-guide?#macos-guests).
|
||||
|
||||
### 7. Memory
|
||||
|
||||
* **RAM**: Minimum 2 GB (4 GB or more recommended)
|
||||
* **Ballooning Device**: ❌ **Disable**
|
||||
|
||||
---
|
||||
* **RAM**: Minimum 2 GB (4 GB or more recommended)
|
||||
* [✗] Disable **Ballooning Device**
|
||||
|
||||
### 8. Network
|
||||
|
||||
Use the correct network adapter based on the macOS version:
|
||||
Choose the correct adapter based on macOS version:
|
||||
|
||||
| macOS Version | Network Adapter |
|
||||
| ------------------- | ------------------ |
|
||||
@@ -98,35 +164,128 @@ Use the correct network adapter based on the macOS version:
|
||||
| macOS 10.11 – 10.15 | `VMware vmxnet3` |
|
||||
| macOS 10.4 – 10.10 | `Intel E1000` |
|
||||
|
||||
---
|
||||
|
||||
### 9. Finalize
|
||||
|
||||
Don’t forget to add an **additional CD/DVD drive** for the macOS installer or macOS Recovery iso.
|
||||
Add an **additional CD/DVD drive** for the macOS installer or Recovery ISO, then start the VM to begin installation.
|
||||
|
||||
> [!TIP]
|
||||
> * First-time installing macOS? Format the disk in **Disk Utility** before installing macOS.
|
||||
> * **Skip iCloud login** during setup (configure it later, see [Post-Install](#post-install))
|
||||
|
||||
**Got it running?** Maybe give the repo a star... nah nevermind, do whatever.
|
||||
|
||||
### 10. Troubleshooting
|
||||
|
||||
If you encounter boot issues, check:
|
||||
* Secure Boot is **disabled** (`Pre-Enroll Keys` unchecked)
|
||||
* The ISO is mounted as a **CD/DVD**, not a disk
|
||||
* Try a different **CPU model**
|
||||
* For Mac OS X 10.4 Tiger, choose machine type q35, version 10.0 or older
|
||||
|
||||
Legacy OS X no-keyboard issue:
|
||||
* Either add `-device usb-kbd` to the QEMU args or run `device_add usb-kbd` in the VM Monitor tab.
|
||||
|
||||
---
|
||||
|
||||
## ⚠️ Important Notes
|
||||
## Post-Install
|
||||
|
||||
### ISO Image Format
|
||||
### 1. Install OpenCore onto the macOS startup disk (macOS 10.11 – macOS 26)
|
||||
* Open **`LongQT-OpenCore`** on the Desktop and run **`Mount_EFI.command`** to mount the EFI partition.
|
||||
* Copy the **EFI** folder from **`LongQT-OpenCore/EFI_RELEASE/`** into that EFI partition. The VM will then boot from its own disk.
|
||||
* Run **`Install_Python3.command`**. Many apps and scripts need Python 3.
|
||||
* Copy **`Mount_EFI.command`**, **`ProperTree`**, and **`GenSMBIOS`** to the Desktop. You will need them to edit **`config.plist`**.
|
||||
* Remove the **LongQT-OpenCore** ISO from the VM **Hardware** tab.
|
||||
|
||||
This is a **true DVD ISO image**.
|
||||
Do **NOT** modify the VM config to change `media=cdrom` to `media=disk`.
|
||||
### 2. To enable iCloud, iMessage, and other iServices
|
||||
* Follow [Dortania iServices](https://dortania.github.io/OpenCore-Post-Install/universal/iservices.html) guide to generate your own SMBIOS.
|
||||
* On macOS 15 and macOS 26, install [VMHide.kext](https://github.com/Carnations-Botanica/VMHide)
|
||||
|
||||
### 3. For smooth GUI performance and 3D acceleration
|
||||
* Pass through a supported Intel iGPU or dGPU:
|
||||
* **Intel iGPU passthrough:** see [LongQT-sea/intel-igpu-passthru](https://github.com/LongQT-sea/intel-igpu-passthru)
|
||||
* **dGPU passthrough:** make sure your dGPU is supported, see [Dortania GPU Buyers Guide](https://dortania.github.io/GPU-Buyers-Guide/modern-gpus/amd-gpu.html#native-amd-gpus)
|
||||
|
||||
> [!IMPORTANT]
|
||||
> For PCIe/dGPU passthrough on a **q35** machine:
|
||||
> * Disable Resizable BAR / Smart Access Memory in UEFI/BIOS.
|
||||
> * Disable QEMU ACPI-based PCI hotplug (revert to native PCIe hotplug). Run this in the Proxmox shell:
|
||||
> ```sh
|
||||
> clear; read -p "Enter your macOS VM ID number: " VMID; \
|
||||
> ARGS="$(qm config $VMID | grep ^args: | cut -d' ' -f2-)"; \
|
||||
> qm set $VMID -args "$ARGS -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off"
|
||||
> ```
|
||||
|
||||
> [!TIP]
|
||||
> If you need ReBAR enabled (for multi-GPU systems), set **BAR 0** of the dGPU you want to pass through to **256 MB**:
|
||||
> ```sh
|
||||
> # List current GPUs and resizable BAR sizes:
|
||||
> lspci -d ::0300 -vv | grep -E 'VGA|BAR 0'
|
||||
>
|
||||
> # Unbind from whichever driver currently owns it (amdgpu, vfio-pci, ...):
|
||||
> echo 0000:01:00.0 > /sys/bus/pci/drivers/vfio-pci/unbind
|
||||
>
|
||||
> # Set BAR 0 size: 8 = 256MB, 9 = 512MB, 10 = 1GB
|
||||
> echo 8 > /sys/bus/pci/devices/0000:01:00.0/resource0_resize
|
||||
> ```
|
||||
|
||||
> [!TIP]
|
||||
> For a dummy sound device on modern macOS (e.g. for Parsec, Sunshine/Moonlight), run this in the Proxmox shell:
|
||||
> ```sh
|
||||
> clear; read -p "Enter your macOS VM ID number: " VMID; \
|
||||
> ARGS="$(qm config $VMID | grep ^args: | cut -d' ' -f2-)"; \
|
||||
> qm set $VMID -args "$ARGS -device virtio-sound,audiodev=dummy -audiodev none,id=dummy"
|
||||
> ```
|
||||
|
||||
> [!TIP]
|
||||
> To disable SIP, press <kbd>Spacebar</kbd> in the OpenCore boot menu and select **Toggle SIP**.
|
||||
|
||||
---
|
||||
|
||||
## 🛠️ Troubleshooting
|
||||
## macOS Tahoe Cursor Freeze Fix
|
||||
|
||||
Having issues? Check the following:
|
||||
On **macOS 26**, the cursor may randomly freeze. Quick workaround: toggle **Use tablet for pointer** in the VM's **Options** tab.
|
||||
|
||||
* Secure Boot is **disabled** (`Pre-Enroll Keys` is unticked)
|
||||
* ISO is mounted as a **CD/DVD**, not a disk
|
||||
* You’re using a supported CPU model
|
||||
Better fix: disable **Use tablet for pointer** in the VM's **Options** tab, then run this in the Proxmox shell to use **`virtio-tablet-pci`** instead:
|
||||
```sh
|
||||
clear; read -p "Enter your macOS VM ID number: " VMID; \
|
||||
ARGS="$(qm config $VMID | grep ^args: | cut -d' ' -f2-)"; \
|
||||
qm set $VMID -args "$ARGS -device virtio-tablet"
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> With **`virtio-tablet-pci`**, middle-click acts as right-click in the VM.
|
||||
|
||||
Most reliable: pass through a physical mouse and keyboard along with an iGPU or dGPU. Otherwise, use remote desktop, e.g. **VNC Screen Sharing** (Settings → General → Sharing) or **Chrome Remote Desktop**.
|
||||
|
||||
---
|
||||
|
||||
## 🤝 Support & Contributions
|
||||
## Contributing
|
||||
Contributions are welcome! Please feel free to submit a pull request. For major changes, open a **Discussion** first to discuss what you would like to change.
|
||||
|
||||
Need help or want to contribute?
|
||||
Visit the project on GitHub:
|
||||
🔗 [**LongQT-OpenCore-ISO**](https://github.com/LongQT-sea/OpenCore-ISO)
|
||||
## Credits
|
||||
- [Acidanthera](https://github.com/acidanthera) team for OpenCorePkg and kexts.
|
||||
- [CorpNewt](https://github.com/corpnewt) for ProperTree, GenSMBIOS.
|
||||
- [Dortania](https://dortania.github.io/) for comprehensive guides.
|
||||
|
||||
## License & Attribution
|
||||
|
||||
This project is licensed under the MIT License (see [LICENSE](LICENSE) file).
|
||||
|
||||
It also includes components from Acidanthera and other developers, each with their own licenses. All third-party components retain their original licenses.
|
||||
|
||||
**If you create content using this project** (videos, blog posts, tutorials, articles):
|
||||
- Please link back to this repository: `https://github.com/LongQT-sea/OpenCore-ISO`
|
||||
- Mention that detailed **instructions** are in this GitHub repo.
|
||||
|
||||
Thank you for respecting the work that went into this project!
|
||||
|
||||
## Disclaimer
|
||||
This project is provided "as is", without any warranties, and is intended for educational, research, and security testing purposes. In no event shall the authors or contributors be liable for any direct, indirect, incidental, special, or consequential damages arising from use of the project, even if advised of the possibility of such damages.
|
||||
|
||||
All product names, trademarks, and registered trademarks are property of their respective owners. All company, product, and service names used in this repository are for identification purposes only.
|
||||
|
||||
[^amdcpu1]: The `pcid` and `spec-ctrl` flags are Intel-only CPU features.
|
||||
[^amdcpu2]: On macOS 13–26 running on AMD processors, these CPU flags `enforce,+kvm_pv_eoi,+kvm_pv_unhalt` (the default in Proxmox) prevent macOS from booting, so we override them with custom `-cpu` args.
|
||||
[^intel-hedt]: Override the CPUID model to one used in real Macs (e.g., `model=158`, which corresponds to the Coffee Lake CPUID model).
|
||||
[^haswell]: QEMU Haswell-noTSX CPU model has `stepping=4`, but macOS expects an earlier stepping (below 4).
|
||||
[^hostcpu]: This is one of the main reasons I created this project. All other project use `host` when running on supported Intel CPUs.
|
||||
+4
-5
@@ -1,7 +1,7 @@
|
||||
{\rtf1\ansi\ansicpg1252\cocoartf2865
|
||||
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\froman\fcharset0 Times-Bold;\f1\froman\fcharset0 Times-Roman;}
|
||||
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
|
||||
{\*\expandedcolortbl;;\cssrgb\c0\c0\c0;}
|
||||
{\colortbl;\red255\green255\blue255;}
|
||||
{\*\expandedcolortbl;;}
|
||||
{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}}
|
||||
{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}}
|
||||
\margl1440\margr1440\vieww18700\viewh10820\viewkind0
|
||||
@@ -13,9 +13,8 @@ Note:\
|
||||
\pard\tx220\tx720\pardeftab720\li720\fi-720\sa240\partightenfactor0
|
||||
\ls1\ilvl0
|
||||
\f1\b0 \cf0 \kerning1\expnd0\expndtw0 {\listtext \uc0\u8226 }\expnd0\expndtw0\kerning0
|
||||
For macOS 10.10 or older: Use the ISO to boot, or use the EFI inside BOOT.img.\
|
||||
For macOS 10.10 or older: Keep using this ISO to boot, or use the EFI inside BOOT.img.\
|
||||
\ls1\ilvl0\kerning1\expnd0\expndtw0 {\listtext \uc0\u8226 }\expnd0\expndtw0\kerning0
|
||||
For macOS 10.11 or newer: Use either EFI_RELEASE or EFI_DEBUG.\
|
||||
\pard\tx720\pardeftab720\sa240\partightenfactor0
|
||||
\cf0 \
|
||||
Source: https://github.com/LongQT-sea/OpenCore-ISO}
|
||||
\cf0 Source: https://github.com/LongQT-sea/OpenCore-ISO}
|
||||
@@ -0,0 +1,25 @@
|
||||
# Proxmox VE custom CPU models for macOS on i440fx machine type (iGPU passthrough)
|
||||
# Location: /etc/pve/virtual-guest/cpu-models.conf
|
||||
# Usage: qm set [VMID] --cpu Skylake-Client-with-invtsc
|
||||
# Use host-with-invtsc as a last resort
|
||||
|
||||
cpu-model: host-with-invtsc
|
||||
flags +invtsc
|
||||
phys-bits host
|
||||
hidden 0
|
||||
hv-vendor-id intel
|
||||
reported-model host
|
||||
|
||||
cpu-model: Skylake-Client-with-invtsc
|
||||
flags +invtsc
|
||||
phys-bits host
|
||||
hidden 0
|
||||
hv-vendor-id intel
|
||||
reported-model Skylake-Client-v4
|
||||
|
||||
cpu-model: Broadwell-with-invtsc
|
||||
flags +invtsc
|
||||
phys-bits host
|
||||
hidden 0
|
||||
hv-vendor-id intel
|
||||
reported-model Broadwell-noTSX
|
||||
Reference in new issue
Block a user