mirror of
https://github.com/LongQT-sea/OpenCore-ISO
synced 2026-11-27 17:58:18 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d8c3f3292 | ||
|
|
567ea1ca33 | ||
|
|
55fb2143a0 | ||
|
|
4165b0a01f | ||
|
|
630802f587 | ||
|
|
7f54d9c08e | ||
|
|
96c2369b1d |
No files matched your search
@@ -14,7 +14,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install xorriso
|
||||
run: |
|
||||
@@ -33,7 +33,7 @@ jobs:
|
||||
bash Make_ISO.command
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v5
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: OpenCore-ISO
|
||||
path: ~/Desktop/LongQT-OpenCore*.iso
|
||||
|
||||
@@ -1,19 +1,25 @@
|
||||
#!/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 -fsSL "$MKMACISO_URL" -o "$TARGET"
|
||||
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
|
||||
@@ -25,5 +31,4 @@ if [[ ":$PATH:" != *":$LOCAL_BIN:"* ]]; then
|
||||
touch "$RC"
|
||||
grep -qxF "$EXPORT_LINE" "$RC" || printf '\n%s\n' "$EXPORT_LINE" >> "$RC"
|
||||
fi
|
||||
|
||||
exec "$TARGET" "$@"
|
||||
exec "$TARGET" "$@"
|
||||
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildMachineOSBuild</key>
|
||||
<string>23H626</string>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>CryptexFixup</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.khronokernel.CryptexFixup</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>CryptexFixup</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>KEXT</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0.5</string>
|
||||
<key>CFBundleSupportedPlatforms</key>
|
||||
<array>
|
||||
<string>MacOSX</string>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0.5</string>
|
||||
<key>DTCompiler</key>
|
||||
<string>com.apple.compilers.llvm.clang.1_0</string>
|
||||
<key>DTPlatformBuild</key>
|
||||
<string></string>
|
||||
<key>DTPlatformName</key>
|
||||
<string>macosx</string>
|
||||
<key>DTPlatformVersion</key>
|
||||
<string>14.2</string>
|
||||
<key>DTSDKBuild</key>
|
||||
<string>23C53</string>
|
||||
<key>DTSDKName</key>
|
||||
<string>macosx14.2</string>
|
||||
<key>DTXcode</key>
|
||||
<string>1520</string>
|
||||
<key>DTXcodeBuild</key>
|
||||
<string>15C500b</string>
|
||||
<key>IOKitPersonalities</key>
|
||||
<dict>
|
||||
<key>CryptexFixup</key>
|
||||
<dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.khronokernel.CryptexFixup</string>
|
||||
<key>IOClass</key>
|
||||
<string>CryptexFixup</string>
|
||||
<key>IOMatchCategory</key>
|
||||
<string>CryptexFixup</string>
|
||||
<key>IOProviderClass</key>
|
||||
<string>IOResources</string>
|
||||
<key>IOResourceMatch</key>
|
||||
<string>IOKit</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>10.14</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Copyright © 2021 Khronokernel. All rights reserved.</string>
|
||||
<key>OSBundleLibraries</key>
|
||||
<dict>
|
||||
<key>as.vit9696.Lilu</key>
|
||||
<string>1.4.7</string>
|
||||
<key>com.apple.kpi.bsd</key>
|
||||
<string>12.0.0</string>
|
||||
<key>com.apple.kpi.dsep</key>
|
||||
<string>12.0.0</string>
|
||||
<key>com.apple.kpi.iokit</key>
|
||||
<string>12.0.0</string>
|
||||
<key>com.apple.kpi.libkern</key>
|
||||
<string>12.0.0</string>
|
||||
<key>com.apple.kpi.mach</key>
|
||||
<string>12.0.0</string>
|
||||
<key>com.apple.kpi.unsupported</key>
|
||||
<string>12.0.0</string>
|
||||
</dict>
|
||||
<key>OSBundleRequired</key>
|
||||
<string>Root</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
@@ -392,6 +392,24 @@
|
||||
<key>PlistPath</key>
|
||||
<string>Contents/Info.plist</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>Arch</key>
|
||||
<string>Any</string>
|
||||
<key>BundlePath</key>
|
||||
<string>CryptexFixup.kext</string>
|
||||
<key>Comment</key>
|
||||
<string>CryptexFixup.kext</string>
|
||||
<key>Enabled</key>
|
||||
<true/>
|
||||
<key>ExecutablePath</key>
|
||||
<string>Contents/MacOS/CryptexFixup</string>
|
||||
<key>MaxKernel</key>
|
||||
<string></string>
|
||||
<key>MinKernel</key>
|
||||
<string>22.0.0</string>
|
||||
<key>PlistPath</key>
|
||||
<string>Contents/Info.plist</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>Block</key>
|
||||
<array>
|
||||
|
||||
+116
-115
@@ -8,26 +8,15 @@
|
||||
|
||||
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"; }
|
||||
print_error() { echo -e "${RED}[ERROR]${NC} $1"; }
|
||||
|
||||
print_warning() {
|
||||
echo -e "${YELLOW}[WARNING]${NC} $1"
|
||||
}
|
||||
|
||||
print_error() {
|
||||
echo -e "${RED}[ERROR]${NC} $1"
|
||||
}
|
||||
|
||||
# Check if running as root, if not, re-execute with sudo
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo ""
|
||||
echo -e "${YELLOW}[INFO]${NC} Administrator privileges required..."
|
||||
@@ -35,176 +24,190 @@ if [ "$EUID" -ne 0 ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
# Get macOS version
|
||||
get_macos_version() {
|
||||
sw_vers -productVersion
|
||||
}
|
||||
|
||||
# Determine Python version and download URL based on macOS version
|
||||
get_latest_version() {
|
||||
local branch=$1
|
||||
local fallback=$2
|
||||
local api_url="https://www.python.org/api/v2/downloads/release/?version=3&pre_release=false&is_published=true"
|
||||
local raw=""
|
||||
|
||||
if command -v curl &> /dev/null; then
|
||||
raw=$(curl -sf --connect-timeout 10 --max-time 20 "$api_url" 2>/dev/null || true)
|
||||
elif command -v wget &> /dev/null; then
|
||||
raw=$(wget -qO- --timeout=20 "$api_url" 2>/dev/null || true)
|
||||
fi
|
||||
|
||||
if [ -z "$raw" ]; then
|
||||
print_warning "Could not reach python.org API. Using fallback version: $fallback"
|
||||
echo "$fallback"
|
||||
return
|
||||
fi
|
||||
|
||||
local latest=""
|
||||
latest=$(echo "$raw" \
|
||||
| grep -o '"name":"Python [^"]*"' \
|
||||
| sed 's/"name":"Python //;s/"//' \
|
||||
| grep -E "^${branch//./\\.}\\.[0-9]+$" \
|
||||
| sort -t. -k3 -n \
|
||||
| tail -n 1)
|
||||
|
||||
if [ -z "$latest" ]; then
|
||||
print_warning "Could not parse version for branch ${branch}. Using fallback: $fallback"
|
||||
echo "$fallback"
|
||||
else
|
||||
echo "$latest"
|
||||
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 15 ]; then
|
||||
# macOS 10.15
|
||||
PYTHON_VERSION="3.14.0"
|
||||
PYTHON_PKG="python-3.14.0-macos11.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/3.14.0/python-3.14.0-macos11.pkg"
|
||||
print_info "Fetching latest Python 3.14 release..."
|
||||
PYTHON_VERSION=$(get_latest_version "3.14" "3.14.3")
|
||||
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
|
||||
# macOS 10.13 to 10.14
|
||||
PYTHON_VERSION="3.13.9"
|
||||
PYTHON_PKG="python-3.13.9-macos11.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/3.13.9/python-3.13.9-macos11.pkg"
|
||||
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.14.0"
|
||||
PYTHON_PKG="python-3.14.0-macos11.pkg"
|
||||
DOWNLOAD_URL="https://www.python.org/ftp/python/3.14.0/python-3.14.0-macos11.pkg"
|
||||
print_info "Fetching latest Python 3.14 release..."
|
||||
PYTHON_VERSION=$(get_latest_version "3.14" "3.14.3")
|
||||
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
|
||||
return 1
|
||||
fi
|
||||
curl -L -o "$output" "$url" --connect-timeout 30 --max-time 600
|
||||
elif command -v wget &> /dev/null; then
|
||||
if wget -O "$output" "$url" --timeout=30; then
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
wget -O "$output" "$url" --timeout=30
|
||||
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
|
||||
print_info "Python installed successfully!"
|
||||
return 0
|
||||
else
|
||||
print_error "Installation failed!"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
# Main installation process
|
||||
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="$HOME/Downloads"
|
||||
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 ""
|
||||
@@ -217,19 +220,18 @@ 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
|
||||
echo ""
|
||||
print_info "Installation complete!"
|
||||
|
||||
# Verify installation
|
||||
|
||||
if command -v python3 &> /dev/null; then
|
||||
local INSTALLED_VERSION
|
||||
INSTALLED_VERSION=$(python3 --version 2>&1)
|
||||
print_info "Installed: $INSTALLED_VERSION"
|
||||
fi
|
||||
@@ -238,7 +240,6 @@ main() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Run main function
|
||||
main
|
||||
|
||||
exit 0
|
||||
@@ -1,20 +1,22 @@
|
||||
## About
|
||||
|
||||
A carefully crafted OpenCore **ISO** image that makes creating macOS virtual machines on **Proxmox VE** and **QEMU/KVM** straightforward.
|
||||
A carefully crafted OpenCore **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.
|
||||
|
||||
Completely redesigned from scratch with a clean, efficient architecture that eliminates outdated methods and legacy configurations.
|
||||
|
||||
Supports every Intel-based macOS release, from **Mac OS X 10.4 Tiger** through **macOS 26 Tahoe**.
|
||||
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]
|
||||
> Enjoy true **vanilla macOS** experience with no kernel patches.
|
||||
> 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 on [Dortania guide](https://dortania.github.io/Anti-Hackintosh-Buyers-Guide/CPU.html#cpus-to-avoid).
|
||||
|
||||
## Table of Contents
|
||||
---
|
||||
|
||||
<details>
|
||||
<summary>Table of Contents</summary>
|
||||
|
||||
- [Download](#download)
|
||||
- [Quick Start Guide](#quick-start-guide)
|
||||
- [1. Create a New VM](#1-create-a-new-vm-in-the-proxmox-ve-web-interface)
|
||||
- [1. Create a New VM](#1-create-a-new-vm)
|
||||
- [2. General](#2-general)
|
||||
- [3. OS](#3-os)
|
||||
- [4. System](#4-system)
|
||||
@@ -30,29 +32,35 @@ Supports every Intel-based macOS release, from **Mac OS X 10.4 Tiger** through *
|
||||
- [Credits](#credits)
|
||||
- [License & Attribution](#license--attribution)
|
||||
- [Disclaimer](#disclaimer)
|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
## Download
|
||||
|
||||
* Get the latest OpenCore-ISO: 👉 [Release page](https://github.com/LongQT-sea/OpenCore-ISO/releases)
|
||||
* For macOS installers and recovery ISOs: 👉 [LongQT-sea/macos-iso-builder](https://github.com/LongQT-sea/macos-iso-builder)
|
||||
* Latest OpenCore-ISO: [LongQT-OpenCore-v0.7.iso](https://github.com/LongQT-sea/OpenCore-ISO/releases/download/v0.7/LongQT-OpenCore-v0.7.iso)
|
||||
* For legit macOS installers and recovery ISOs: [LongQT-sea/macos-iso-builder](https://github.com/LongQT-sea/macos-iso-builder)
|
||||
|
||||
> [!CAUTION]
|
||||
> These iso are **true CD/DVD ISO image**.
|
||||
> Add them to your VM as a **CD/DVD drive**. 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.
|
||||
> 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 in the Proxmox VE web interface
|
||||
### 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
|
||||
|
||||
---
|
||||
|
||||
@@ -65,14 +73,14 @@ Supports every Intel-based macOS release, from **Mac OS X 10.4 Tiger** through *
|
||||
|
||||
### 4. System
|
||||
|
||||
* **Machine Type**: q35 (if using **i440fx**, add `+invtsc` CPU flag, see [cpu-models.conf](https://github.com/LongQT-sea/OpenCore-ISO/blob/main/cpu-models.conf))
|
||||
* **Machine Type**: q35
|
||||
* **BIOS**: OVMF (UEFI)
|
||||
* **Add EFI Disk**: ✅ Enabled
|
||||
* **Pre-Enroll Keys**: ❌ Untick to disable Secure Boot
|
||||
* **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
|
||||
|
||||
---
|
||||
|
||||
@@ -89,7 +97,7 @@ The **disk bus type** depends on your needs:
|
||||
| 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.
|
||||
> Using SATA with **SSD emulation** and **Discard** enabled automatically enables TRIM — no need to run `trimforce enable`.
|
||||
|
||||
---
|
||||
|
||||
@@ -99,25 +107,26 @@ The **disk bus type** depends on your needs:
|
||||
> Follow these CPU settings carefully! Incorrect CPU configuration will cause boot failure.
|
||||
|
||||
#### Cores
|
||||
|
||||
* Choose based on your hardware: 1 / 2 / 4 / 8 / 16 / 32 / 64
|
||||
|
||||
Choose based on your hardware (`power of 2`): 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
|
||||
> 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 |
|
||||
|
||||
#### 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 | `Penryn` |
|
||||
| macOS 10.4 – macOS 10.10 | `Nehalem` |
|
||||
|
||||
> [!NOTE]
|
||||
> **AMD CPUs:**
|
||||
> * **macOS 10.4 – macOS 12**, tick ✅ **Advanced**, under **Extra CPU Flags**, turn off `pcid` and `spec-ctrl`. [^amdcpu1]
|
||||
> * **macOS 10.4 – macOS 12**, tick [✓] **Advanced**, under **Extra CPU Flags**, turn off `pcid` and `spec-ctrl`. [^amdcpu1]
|
||||
> * **macOS 13 – macOS 26**, need to set the CPU manually via the Proxmox VE Shell[^amdcpu2], example:
|
||||
>
|
||||
> ```
|
||||
@@ -127,19 +136,24 @@ The **disk bus type** depends on your needs:
|
||||
> # 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 need to override CPUID `model`[^intel-hedt], example:
|
||||
>
|
||||
> ```
|
||||
> qm set [VMID] --args "-cpu Broadwell-noTSX,vendor=GenuineIntel,model=158"
|
||||
> qm set [VMID] --args "-cpu Haswell-noTSX,vendor=GenuineIntel,model=158"
|
||||
> 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,vendor=GenuineIntel,stepping=3"
|
||||
> qm set [VMID] --args "-cpu Haswell-noTSX,stepping=3"
|
||||
> ```
|
||||
> * Avoid using [`host`](https://browser.geekbench.com/v6/cpu/14313138) passthrough CPU types[^hostcpu] — they can be **~30% slower (single-core)** and **~44% slower (multi-core)** compared to [`recommended`](https://browser.geekbench.com/v6/cpu/14205183) CPU types.
|
||||
> * If you need to run nested virtualization software (such as Docker Desktop, VMware Fusion, or VirtualBox) inside 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).
|
||||
|
||||
@@ -148,7 +162,7 @@ For more details, see [QEMU CPU Guide – macOS Guests](https://github.com/LongQ
|
||||
### 7. Memory
|
||||
|
||||
* **RAM**: Minimum 2 GB (4 GB or more recommended)
|
||||
* Disable ❌ Ballooning Device
|
||||
* Disable [✗] Ballooning Device
|
||||
|
||||
---
|
||||
|
||||
@@ -180,8 +194,9 @@ 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
|
||||
|
||||
macOS 10.4 Tiger no-keyboard issue:
|
||||
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.
|
||||
|
||||
---
|
||||
@@ -195,7 +210,7 @@ macOS 10.4 Tiger no-keyboard issue:
|
||||
* Copy **`Mount_EFI.command`**, **`ProperTree`**, and **`GenSMBIOS`** to the Desktop for later use when you need to edit **`config.plist`**.
|
||||
* You can now remove the **LongQT-OpenCore** ISO CD/DVD from the VM **Hardware** tab.
|
||||
|
||||
### 2. To enable iCloud, iMessage, and other iServices:
|
||||
### 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.
|
||||
* macOS 15 and macOS 26 need to install [VMHide.kext](https://github.com/Carnations-Botanica/VMHide)
|
||||
|
||||
@@ -217,12 +232,14 @@ macOS 10.4 Tiger no-keyboard issue:
|
||||
> ```
|
||||
|
||||
> [!Tip]
|
||||
> If you need ReBAR enabled for another GPU then you need to set **BAR 0** of the dGPU you want to passthrough to **256MB**, e.g.
|
||||
> If you need ReBAR enabled (for multi-GPU systems), set **BAR 0** of the dGPU you intend to passthrough to **256 MB**, example:
|
||||
> ```
|
||||
> # Unbind from the current driver:
|
||||
> echo 0000:01:00.0 > /sys/bus/pci/drivers/amdgpu/unbind
|
||||
> echo 0000:01:00.0 > /sys/bus/pci/drivers/vfio-pci/unbind
|
||||
> # Set BAR 0 to 256MB:
|
||||
> echo 8 > /sys/bus/pci/devices/0000:04:00.0/resource0_resize
|
||||
> ```
|
||||
> For details on changing BAR size at the OS level, see:
|
||||
> https://angrysysadmins.tech/index.php/2023/08/grassyloki/vfio-how-to-enable-resizeable-bar-rebar-in-your-vfio-virtual-machine/
|
||||
|
||||
> [!Tip]
|
||||
> On modern macOS versions, if you need a dummy virtual sound device (e.g., for **Parsec, Sunshine/MoonLight**), run this in Proxmox shell:
|
||||
|
||||
Reference in new issue
Block a user