38 Commits
Author SHA1 Message Date
Tieu Long ee8901da4a Fix version lookup and harden installer 2026-08-18 17:28:42 +07:00
Tieu Long d5be512f7d docs: drop --current from qm config args snippets 2026-08-09 03:55:48 +07:00
Tieu Long 12c31081e6 docs: fix grammar, alert markers, and code blocks in README 2026-08-08 08:24:47 +07:00
Tieu Long 567ea1ca33 fix: handle TLS issues on older macOS when downloading mkmaciso 2026-03-21 16:39:04 +07:00
Tieu Long 55fb2143a0 feat: dynamic Python version lookup, README cleanup
- Query python.org API for latest 3.13/3.14 patch instead of hardcoding
- Fall back to hardcoded version if API is unreachable
- Wrap Table of Contents in collapsible <details> block
- Simplify CPU benchmark link formatting in README
2026-03-21 15:57:29 +07:00
Tieu Long 4165b0a01f fix: add back vendor=GenuineIntel to resolve boot failure on AMD CPUs 2026-02-26 01:21:47 +07:00
Tieu Long 630802f587 docs: add hyperlinks, AMD tip, and q35 Tiger troubleshooting 2026-02-25 12:22:45 +07:00
Tieu Long 7f54d9c08e docs: update README 2026-02-21 17:31:12 +07:00
Tieu Long 96c2369b1d docs: formatting, CPU model fixes, and content updates 2026-02-21 16:28:54 +07:00
Tieu Long 6dc3c1d0ba chore: bump and release v0.7 2026-02-21 13:47:12 +07:00
Tieu Long fb87d98a5a fix: bash compatibility on older macOS 2026-01-22 22:38:26 +07:00
Tieu Long 48d854fd8a refactor: Create_Recovery_ISO now support only macOS 10.13+
For older versions, users should use the full installer instead.
2026-01-22 21:37:31 +07:00
Tieu Long 2aa5b41c36 refactor: turn Create_macOS_ISO into mkmaciso launcher
Remove USBToolBox kext (no license - All rights reserved)
2026-01-22 21:16:16 +07:00
Tieu Long 140ac918eb update issue template 2025-11-21 11:12:10 +07:00
Tieu Long b6b480be7d Update README.md 2025-11-17 21:28:49 +07:00
Tieu Long adca6ad1c9 update README 2025-11-17 21:27:14 +07:00
Tieu Long c95471c781 fix issue template labels 2025-11-17 20:50:53 +07:00
Tieu Long e8d1e1f353 Add issue templates 2025-11-17 20:39:55 +07:00
Tieu Long c8ab208baa update README 2025-11-12 16:13:27 +07:00
Tieu Long 2183821f54 Update README.md 2025-11-12 02:02:09 +07:00
Tieu Long b140fd8983 macOS Tiger need -device usb-kbd 2025-11-12 01:57:54 +07:00
Tieu Long e5b7db00c0 update README 2025-11-12 01:50:55 +07:00
Tieu Long d67508561b add workflow to automatically mark and close stale issues 2025-11-10 18:40:00 +07:00
Tieu Long c05183e80a Update build-iso.yml 2025-11-10 08:40:46 +07:00
Tieu Long 1b807c98cb add workflow for building and releasing 2025-11-10 02:48:57 +07:00
LongQT-sea c985b8f7a5 update README and cleanup unuse OC theme 2025-11-09 21:15:15 +07:00
Tieu Long 92aee784b6 update README 2025-11-09 13:51:50 +07:00
Tieu Long e9ec2fa32f update cpu-models.conf 2025-11-09 13:39:00 +07:00
Tieu Long 8940b0298c note for Haswell desktop 2025-11-09 13:12:54 +07:00
Tieu Long 2c0535644f update README 2025-11-09 12:22:35 +07:00
Tieu Long 2dc18cc798 add ToC 2025-11-09 12:04:25 +07:00
Tieu Long 141c791cbf typo 2025-11-08 19:37:29 +07:00
Tieu Long 8d971f291e update README 2025-11-08 18:12:29 +07:00
Tieu Long 5ba5be3f84 Update README.md 2025-11-04 19:00:00 +07:00
LongQT-sea 8aecdc272c update Python version and docs 2025-11-04 14:46:12 +07:00
LongQT-sea 877ad380b9 simplify Booter quirks, update README and some comments 2025-10-30 00:08:13 +07:00
LongQT-sea 922379beef add Create_macOS_ISO script 2025-10-17 01:55:49 +07:00
LongQT-sea 61f9266b9c bump version 2025-10-16 05:40:18 +07:00
66 changed files with 676 additions and 354 deletions

No files matched your search

+14
View File
@@ -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
+97
View File
@@ -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
+61
View File
@@ -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
+18
View File
@@ -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'
BIN
View File
Binary file not shown.
+33 -98
View File
@@ -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
+34
View File
@@ -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" "$@"
+4 -5
View File
@@ -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 "────────────────────────────────────"
+4 -4
View File
@@ -206,7 +206,7 @@
<key>DiscardHibernateMap</key>
<false/>
<key>EnableSafeModeSlide</key>
<true/>
<false/>
<key>EnableWriteUnprotector</key>
<true/>
<key>FixupAppleEfiImages</key>
@@ -222,13 +222,13 @@
<key>ProtectUefiServices</key>
<false/>
<key>ProvideCustomSlide</key>
<true/>
<false/>
<key>ProvideMaxSlide</key>
<integer>0</integer>
<key>RebuildAppleMemoryMap</key>
<false/>
<key>ResizeAppleGpuBars</key>
<integer>-1</integer>
<integer>0</integer>
<key>SetupVirtualMap</key>
<false/>
<key>SignalAppleOS</key>
@@ -451,7 +451,7 @@
<key>Comment</key>
<string></string>
<key>Enabled</key>
<true/>
<false/>
<key>ExecutablePath</key>
<string>Contents/MacOS/IONetworkingFamily</string>
<key>Identifier</key>
+3 -3
View File
@@ -206,7 +206,7 @@
<key>DiscardHibernateMap</key>
<false/>
<key>EnableSafeModeSlide</key>
<true/>
<false/>
<key>EnableWriteUnprotector</key>
<true/>
<key>FixupAppleEfiImages</key>
@@ -222,13 +222,13 @@
<key>ProtectUefiServices</key>
<false/>
<key>ProvideCustomSlide</key>
<true/>
<false/>
<key>ProvideMaxSlide</key>
<integer>0</integer>
<key>RebuildAppleMemoryMap</key>
<false/>
<key>ResizeAppleGpuBars</key>
<integer>-1</integer>
<integer>0</integer>
<key>SetupVirtualMap</key>
<false/>
<key>SignalAppleOS</key>
+137 -113
View File
@@ -1,6 +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
@@ -8,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 ""
@@ -204,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
@@ -225,7 +251,5 @@ main() {
fi
}
# Run main function
main
exit 0
+1 -15
View File
@@ -18,18 +18,4 @@ 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.
---
THIRD-PARTY COMPONENTS
This EFI includes components from Acidanthera and other developers,
each with their own licenses (primarily BSD-3-Clause):
- OpenCore Bootloader (see LICENSE-OpenCore.txt)
- Lilu, WhateverGreen, AppleALC, VirtualSMC, and other kexts
Full license texts and sources: https://github.com/acidanthera
All third-party components retain their original licenses.
SOFTWARE.
+3 -3
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
ISO_FILE_NAME=LongQT-OpenCore-v0.3.iso
ISO_FILE_NAME=LongQT-OpenCore-v0.7.iso
VOL_NAME=LongQT-OpenCore
SOURCE_DIR=./
BOOT_IMG=BOOT.img
@@ -30,14 +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 "cpu-models.conf" \
-m "Create_Recovery_ISO*" \
-output ~/Desktop/${ISO_FILE_NAME} \
${SOURCE_DIR}
+4 -4
View File
@@ -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 "────────────────────────────────────"
+197 -82
View File
@@ -1,54 +1,82 @@
## About
## OpenCore-ISO - OpenCore for Proxmox VE / QEMU
A properly configured OpenCore **DVD/CD-format ISO file** for Proxmox VE to create macOS virtual machines.
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 macOS versions — 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]
> **For AMD users:**
> Enjoy a true **vanilla macOS** experience with no kernel patches required for stable operation.
> This is likely the best way to run macOS on AMD hardware while still retaining full hypervisor access to run other VMs.
> 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>
Get 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` *(if you must use `i440fx`, [cpu-models.conf](https://github.com/LongQT-sea/OpenCore-ISO/blob/main/cpu-models.conf) is required)*
* **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 as default 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
@@ -62,58 +90,69 @@ The **disk bus type** depends on your needs:
| macOS 10.15 – macOS 26 | `SATA` / `VirtIO Block` |
| macOS 10.4 – macOS 10.14 | `SATA` |
> [!Tip]
> Choosing `SATA` with ✅ SSD emulation and ✅ Discard enabled is recommended, as it automatically supports TRIM for more efficient storage usage.
---
> [!TIP]
> Using SATA with **SSD emulation** and **Discard** enabled automatically enables TRIM — no need to run `trimforce enable`.
### 6. CPU
#### Cores
* Choose based on your hardware: 1 / 2 / 4 / 8 / 16 / 32 / 64
> [!TIP]
> * For 6 cores: choose 2 cores and 3 sockets
> * For 12 cores: choose 4 cores and 3 sockets
> * For 20 cores: choose 4 cores and 5 sockets
> * For 24 cores: choose 8 cores and 3 sockets
> [!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 | `Broadwell-noTSX`, `Skylake-Client-v4`, `Skylake-Server-v4` (AVX-512) |
| macOS 10.4 – macOS 10.10 | `Penryn` |
| 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 |
> [!NOTE]
> **AMD CPUs:**
> * Tick ✅ **Advanced**, and under **Extra CPU Flags**, turn off `pcid` and `spec-ctrl`.
> * For **macOS 13 – macOS 26**, set the CPU manually via the Proxmox VE Shell, example:
> * **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:
>
> ```
> qm set [VMID] --args "-cpu Broadwell-noTSX,vendor=GenuineIntel"
> # 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 set the CPU manually via the Proxmox VE Shell, example:
> **Intel CPUs:**
> * Intel HEDT / E5-2xxx v3/v4 require overriding the CPUID `model`[^intel-hedt], example:
>
> ```
> qm set [VMID] --args "-cpu Broadwell-noTSX,vendor=GenuineIntel,model=158"
> qm set [VMID] --args "-cpu Skylake-Client-v4,vendor=GenuineIntel,model=158"
> qm set [VMID] --args "-cpu Broadwell-noTSX,model=158"
> qm set [VMID] --args "-cpu Haswell-noTSX,model=158"
> ```
> * Avoid using [`host` or `max`](https://browser.geekbench.com/v6/cpu/14313138) CPU types — they can be **~30% slower (single-core)** and **~44% slower (multi-core)** compared to [`recommended`](https://browser.geekbench.com/v6/cpu/14205183) CPU types.
> * 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.
---
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
---
* [✗] Disable **Ballooning Device**
### 8. Network
@@ -125,52 +164,128 @@ Choose the correct adapter based on macOS version:
| macOS 10.11 – 10.15 | `VMware vmxnet3` |
| macOS 10.4 – 10.10 | `Intel E1000` |
---
### 9. Finalize
Add an **additional CD/DVD drive** for the macOS installer or Recovery ISO, then start the VM to proceed with the installation of macOS.
---
### 10. Post-Install
* After macOS is installed, open `LongQT-OpenCore` on the Desktop and run `Mount_EFI.command` to mount the EFI partition on your macOS disk. Then copy the EFI folder from `LongQT-OpenCore/EFI_RELEASE/` to the mounted EFI partition. This way, next time it will boot using the EFI inside your macOS disk.
* Run `Install_Python3.command` to install Python 3 - many apps and scripts need it.
* Finally, copy `Mount_EFI.command` and `ProperTree` to the Desktop for later use when you need to edit `config.plist`.
Add an **additional CD/DVD drive** for the macOS installer or Recovery ISO, then start the VM to begin installation.
> [!TIP]
> Use `Create_Recovery_ISO.command` to download macOS Recovery from Apple and convert it to an ISO CD/DVD file.
> * 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.
---
## Post-Install
### 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.
### 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 **q35**, you have to disable ACPI-based PCI hotplug (revert to PCIe native hotplug)
> - Open Proxmox VE Shell and run:
> ```bash
> read -p "Enter VMID: " VMID; \
> ARGS="$(qm config $VMID --current | grep ^args: | cut -d' ' -f2-)"; \
> 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"
> ```
> [!CAUTION]
> These iso are **true CD/DVD ISO image**.
> Do **NOT** modify the VM config to change ***`media=cdrom`*** to ***`media=disk`***.
> [!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
If you encounter issues, check:
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` unticked)
* The 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
View File
@@ -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}
+2 -22
View File
@@ -1,5 +1,6 @@
# 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
@@ -16,30 +17,9 @@ cpu-model: Skylake-Client-with-invtsc
hv-vendor-id intel
reported-model Skylake-Client-v4
cpu-model: Skylake-Server-with-invtsc
flags +invtsc
phys-bits host
hidden 0
hv-vendor-id intel
reported-model Skylake-Server-v4
cpu-model: Broadwell-with-invtsc
flags +invtsc
phys-bits host
hidden 0
hv-vendor-id intel
reported-model Broadwell-noTSX
cpu-model: Haswell-with-invtsc
flags +invtsc
phys-bits host
hidden 0
hv-vendor-id intel
reported-model Haswell-noTSX
cpu-model: Penryn-with-invtsc
flags +invtsc
phys-bits host
hidden 0
hv-vendor-id intel
reported-model Penryn
reported-model Broadwell-noTSX