20 Commits
Author SHA1 Message Date
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
61 changed files with 577 additions and 107 deletions

No files matched your search

+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@v5
- 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@v5
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
+17
View File
@@ -0,0 +1,17 @@
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
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.
+2 -1
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
@@ -64,6 +64,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
}
+302
View File
@@ -0,0 +1,302 @@
#!/bin/bash
# Copyright (c) 2024–2025, LongQT-sea
# macOS Full Installer ISO Creator
# Downloads official macOS installers from Apple servers and create a true DVD-format macOS installer ISO file.
# Intended for use with Proxmox, QEMU, VirtualBox, and VMware.
set -e # Exit on error
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
# Global variables
selected_idx=0
# Function to print colored output
print_color() {
color=$1
shift
echo -e "${color}$@${NC}"
}
# Function to check if the script has sudo privileges
check_sudo() {
if ! sudo -n true 2>/dev/null; then
print_color $YELLOW "This script requires sudo privileges to run createinstallmedia."
print_color $YELLOW "You’ll be prompted for password after the macOS installer finishes downloading."
echo ""
fi
}
# Function to get available installers
get_installers() {
print_color $GREEN "Fetching available macOS installers from Apple server..."
installers=$(softwareupdate --list-full-installers 2>/dev/null | grep "* Title:" | sed 's/^[[:space:]]*//')
if [ -z "$installers" ]; then
print_color $RED "No installers found. Please check your internet connection."
exit 1
fi
# Parse installer information into arrays
IFS=$'\n'
installer_array=($installers)
unset IFS
# Initialize arrays
titles=()
versions=()
sizes=()
builds=()
for installer in "${installer_array[@]}"; do
# Extract information using sed
title=$(echo "$installer" | sed -n 's/.*Title: \([^,]*\).*/\1/p')
version=$(echo "$installer" | sed -n 's/.*Version: \([^,]*\).*/\1/p')
size=$(echo "$installer" | sed -n 's/.*Size: \([^,]*\).*/\1/p')
build=$(echo "$installer" | sed -n 's/.*Build: \([^,]*\).*/\1/p')
titles+=("$title")
versions+=("$version")
sizes+=("$size")
builds+=("$build")
done
}
# Function to display installer menu
display_menu() {
print_color $YELLOW "\nAvailable macOS Installers:\n"
for i in "${!titles[@]}"; do
# Convert size from KiB to GB for readability
size_kb="${sizes[$i]//KiB/}"
size_gb=$(echo "scale=1; $size_kb / 1048576" | bc)
printf "${BLUE}%2d)${NC} %-20s ${GREEN}v%-8s${NC} (${YELLOW}%.1f GB${NC}, Build: %s)\n" \
$((i+1)) "${titles[$i]}" "${versions[$i]}" "$size_gb" "${builds[$i]}"
done
echo
print_color $YELLOW "0) Exit"
echo
}
# Function to get user selection
get_selection() {
local max_option=${#titles[@]}
local selection
while true; do
read -p "Enter your choice (0-$max_option): " selection
if [[ "$selection" =~ ^[0-9]+$ ]]; then
if [ "$selection" -eq 0 ]; then
print_color $YELLOW "Exiting..."
exit 0
elif [ "$selection" -ge 1 ] && [ "$selection" -le "$max_option" ]; then
selected_idx=$((selection - 1))
return 0
fi
fi
print_color $RED "Invalid selection. Please enter a number between 0 and $max_option."
done
}
# Function to download installer
download_installer() {
local idx=$1
local version="${versions[$idx]}"
local title="${titles[$idx]}"
print_color $GREEN "\nDownloading $title version $version..."
print_color $YELLOW "This may take a while depending on your internet connection..."
# Run the download command
if softwareupdate --fetch-full-installer --full-installer-version "$version"; then
print_color $GREEN "Download completed successfully!"
return 0
else
print_color $RED "Download failed. Please try again."
return 1
fi
}
# Function to create ISO
create_iso() {
local idx=$1
local title="${titles[$idx]}"
local version="${versions[$idx]}"
# Determine installer app name based on title
local installer_name
case "$title" in
"macOS Tahoe")
installer_name="Install macOS Tahoe"
;;
"macOS Sequoia")
installer_name="Install macOS Sequoia"
;;
"macOS Sonoma")
installer_name="Install macOS Sonoma"
;;
"macOS Ventura")
installer_name="Install macOS Ventura"
;;
"macOS Monterey")
installer_name="Install macOS Monterey"
;;
"macOS Big Sur")
installer_name="Install macOS Big Sur"
;;
"macOS Catalina")
installer_name="Install macOS Catalina"
;;
"macOS Mojave")
installer_name="Install macOS Mojave"
;;
"macOS High Sierra")
installer_name="Install macOS High Sierra"
;;
*)
installer_name="Install $title"
;;
esac
local installer_path="/Applications/${installer_name}.app"
local iso_name="${title// /_}_${version}"
local sparse_image="$HOME/Desktop/${iso_name}.sparseimage"
local iso_file="$HOME/Desktop/${iso_name}.iso"
local volume_name="${iso_name}_installer"
# Check if ISO already exists and ask user
if [ -f "$iso_file" ]; then
print_color $YELLOW "ISO file already exists: $iso_file"
read -p "Do you want to overwrite it? (y/n): " overwrite
if [[ "$overwrite" =~ ^[Yy]$ ]]; then
print_color $YELLOW "Removing existing ISO file..."
rm -f "$iso_file"
else
print_color $YELLOW "Operation cancelled. Exiting."
return 1
fi
fi
# Check if sparse image already exists and remove it
if [ -f "$sparse_image" ]; then
print_color $YELLOW "Removing existing sparse image..."
rm -f "$sparse_image"
fi
# Check if installer exists
if [ ! -d "$installer_path" ]; then
print_color $RED "Installer not found at: $installer_path"
print_color $RED "Please ensure the installer downloaded correctly."
return 1
fi
print_color $GREEN "\nCreating ISO for $title version $version..."
# Step 1: Create sparse image
print_color $BLUE "Step 1/4: Creating sparse image..."
if hdiutil create -size 20g -volname "$volume_name" -fs HFS+ -type SPARSE -attach "$sparse_image"; then
print_color $GREEN "Sparse image created and mounted"
else
print_color $RED "Failed to create sparse image"
return 1
fi
# Step 2: Create install media
print_color $BLUE "Step 2/4: Creating install media (this requires sudo)..."
if sudo "${installer_path}/Contents/Resources/createinstallmedia" --volume "/Volumes/$volume_name" --nointeraction; then
print_color $GREEN "Install media created"
else
print_color $RED "Failed to create install media"
hdiutil detach "/Volumes/$volume_name" 2>/dev/null || true
rm -f "$sparse_image" 2>/dev/null || true
return 1
fi
# Step 3: Detach volume
print_color $BLUE "Step 3/4: Detaching volume..."
# After createinstallmedia, the volume is renamed to the installer name
if hdiutil detach "/Volumes/$installer_name" 2>/dev/null || hdiutil detach "/Volumes/$installer_name" -force 2>/dev/null; then
print_color $GREEN "Volume detached successfully"
else
print_color $RED "Failed to detach volume automatically"
print_color $YELLOW "Please manually eject the '$installer_name' volume from Finder"
read -p "Press Enter when ready to continue..."
fi
# Give the system a moment to complete the unmount
sleep 2
# Step 4: Create hybrid ISO
print_color $BLUE "Step 4/4: Creating hybrid ISO ..."
if hdiutil makehybrid -hfs -udf -o "$iso_file" "$sparse_image"; then
print_color $GREEN "ISO created successfully"
else
print_color $RED "Failed to create ISO"
rm -f "$sparse_image" 2>/dev/null || true
return 1
fi
# Clean up sparse image
print_color $BLUE "Cleaning up temporary files..."
rm -f "$sparse_image"
print_color $GREEN "\n=========================================="
print_color $GREEN "ISO creation completed successfully!"
print_color $GREEN "ISO file location: $iso_file"
print_color $GREEN "Installer preserved at: $installer_path"
print_color $GREEN "=========================================="
# Show ISO file info
if [ -f "$iso_file" ]; then
local iso_size=$(du -h "$iso_file" | cut -f1)
print_color $YELLOW "\nISO file size: $iso_size"
fi
return 0
}
# Main script execution
main() {
clear
print_color $GREEN "macOS Full Installer ISO Creator"
print_color $GREEN "============================"
# Check for required tools
for tool in softwareupdate hdiutil diskutil bc; do
if ! command -v $tool &> /dev/null; then
print_color $RED "Error: Required tool $tool is not found."
exit 1
fi
done
# Check sudo access early
check_sudo
# Get available installers
get_installers
# Display menu and get selection
display_menu
get_selection
# Download installer
if download_installer $selected_idx; then
# Create ISO
create_iso $selected_idx
else
print_color $RED "Download failed. Exiting."
exit 1
fi
}
# Run main function
main
+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>
+21 -8
View File
@@ -27,6 +27,14 @@ 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..."
exec sudo "$0" "$@"
exit
fi
# Get macOS version
get_macos_version() {
sw_vers -productVersion
@@ -39,11 +47,16 @@ determine_python_version() {
local 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
# 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"
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"
elif [ "$minor" -ge 9 ] && [ "$minor" -le 12 ]; then
# macOS 10.9 to 10.12
PYTHON_VERSION="3.9.13"
@@ -60,9 +73,9 @@ determine_python_version() {
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"
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"
else
print_error "Unsupported macOS version: $macos_version"
exit 1
+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.
+4 -4
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
ISO_FILE_NAME=LongQT-OpenCore-v0.3.iso
ISO_FILE_NAME=LongQT-OpenCore-v0.5.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}
${SOURCE_DIR}
+156 -45
View File
@@ -1,23 +1,57 @@
## About
A properly configured OpenCore **DVD/CD-format ISO file** for Proxmox VE to create macOS virtual machines.
A carefully crafted OpenCore **ISO** image that makes creating macOS virtual machines on **Proxmox VE** and **QEMU/KVM** straightforward.
Supports all Intel-based macOS versions — from **Mac OS X 10.4** to **macOS 26**.
Completely redesigned from scratch with a clean, efficient architecture that eliminates outdated methods and legacy configurations.[^legacy]
Supports every Intel-based macOS release, from **Mac OS X 10.4 Tiger** through **macOS 26 Tahoe**.[^osx]
Also compatible with **libvirt** and **Virt-Manager**.
> [!TIP]
> **For AMD users:**
> Enjoy a true **vanilla macOS** experience with no kernel patches required for stable operation.
> Enjoy a 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.
>
> **Found this useful?** Give it a ⭐ star so others can find it too!
## Table of Contents
- [Download](#download)
- [Quick Start Guide](#quick-start-guide)
- [1. Create a New VM](#1-create-a-new-vm-in-the-proxmox-ve-web-interface)
- [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)
---
## 📦 Download
## Download
Get the latest OpenCore ISO and macOS Recovery here: 👉 [Release page](https://github.com/LongQT-sea/OpenCore-ISO/releases)
* 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)
> [!CAUTION]
> These iso are **true CD/DVD ISO image**.
> Add them to your VM as a **CD/DVD drive**, not as a disk. 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
## Quick Start Guide
### 1. Create a New VM in the Proxmox VE web interface
@@ -39,8 +73,8 @@ Get the latest OpenCore ISO and macOS Recovery here: 👉 [Release page](https:/
### 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)
* **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))
* **BIOS**: OVMF (UEFI)
* **Add EFI Disk**: ✅ Enabled
* **Pre-Enroll Keys**: ❌ Untick to disable Secure Boot
* **QEMU Guest Agent**:
@@ -65,11 +99,13 @@ The **disk bus type** depends on your needs:
> [!Tip]
> Choosing `SATA` with ✅ SSD emulation and ✅ Discard enabled is recommended, as it automatically supports TRIM for more efficient storage usage.
---
### 6. CPU
> [!CAUTION]
> 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
@@ -82,36 +118,45 @@ The **disk bus type** depends on your needs:
#### 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 | `Penryn` |
> [!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**, 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"
> ```
> ---
> **Intel CPUs:**
> * Intel HEDT / E5-2xxx v3/v4 set the CPU manually via the Proxmox VE Shell, example:
> * 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 Skylake-Client-v4,vendor=GenuineIntel,model=158"
> qm set [VMID] --args "-cpu Haswell-noTSX,vendor=GenuineIntel,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,vendor=GenuineIntel,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.
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
---
@@ -129,48 +174,114 @@ Choose the correct adapter based on macOS version:
### 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.
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))
### 10. Troubleshooting
If you encounter boot issues, check:
* Secure Boot is **disabled** (`Pre-Enroll Keys` unticked)
* The ISO is mounted as a **CD/DVD**, not a disk
* Try different **CPU model**
* macOS 10.4 Tiger need `-device usb-kbd`. Run this in the VM Monitor tab: `device_add usb-kbd`
---
### 10. Post-Install
## 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`.
### 1. Install OpenCore onto the macOS startup disk (macOS 10.11 – macOS 26)
* After macOS installation is complete, open **`LongQT-OpenCore`** on the Desktop and run **`Mount_EFI.command`** to mount the EFI partition on the macOS startup disk.
* Copy the **EFI** folder from **`LongQT-OpenCore/EFI_RELEASE/`** to the mounted EFI partition. This ensures that macOS will boot using the OpenCore EFI stored on the macOS startup disk in future startups.
* Run **`Install_Python3.command`** to install Python 3, many apps and scripts need it.
* 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.
> [!TIP]
> Use `Create_Recovery_ISO.command` to download macOS Recovery from Apple and convert it to an ISO CD/DVD file.
### 2. To enable iCloud, iMessage, and other iServices:
* Follow [Dortania iServices guide](https://dortania.github.io/OpenCore-Post-Install/universal/iservices.html) to generate your own SMBIOS.
* For macOS 15 and macOS 26, need to 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:** ensure you have a supported dGPU, 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; \
> PCIe/dGPU passthrough on a **q35** machine requires:
> * Disable Resizable BAR / Smart Access Memory in UEFI/BIOS.
> * Disable QEMU’s ACPI-based PCI hotplug (revert to native PCIe hotplug) by running this in the Proxmox shell:
> ```
> clear; read -p "Enter your macOS VM ID number: " VMID; \
> ARGS="$(qm config $VMID --current | 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]
> On modern macOS versions, if you need a dummy virtual sound device (e.g., for **Parsec, Sunshine/MoonLight**), run this in Proxmox shell:
> ```
> clear; read -p "Enter your macOS VM ID number: " VMID; \
> ARGS="$(qm config $VMID --current | 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 the "Toggle SIP" option.
---
## 🛠️ Troubleshooting
## macOS Tahoe Cursor Freeze Fix
If you encounter issues, check:
On **macOS 26**, the cursor may randomly freeze. A temporary workaround is to toggle **Use tablet for pointer** in 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**
A better fix is to use **`virtio-tablet-pci`**. To do this, disable **Use tablet for pointer** in VM’s **Options** tab, then run this in Proxmox shell:
```
clear; read -p "Enter your macOS VM ID number: " VMID; \
ARGS="$(qm config $VMID --current | grep ^args: | cut -d' ' -f2-)"; \
qm set $VMID -args "$ARGS -device virtio-tablet"
```
> [!Note]
> With **`virtio-tablet-pci`**, middle-click on your real mouse acts as a right-click in the VM.
The most reliable solution is to passthrough a physical mouse and keyboard together with an iGPU or dGPU.
Alternatively, use a remote desktop solution, 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.
[^legacy]: No messy custom args needed (no OSK strings, no lengthy `-cpu` parameters) and freely configure CPU core count on AMD CPUs.
[^osx]: Tested on Proxmox VE 9.
[^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