9 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
5 changed files with 242 additions and 223 deletions

No files matched your search

+2 -2
View File
@@ -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
BIN
View File
Binary file not shown.
+10 -5
View File
@@ -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" "$@"
+130 -119
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,26 +7,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" >&2; }
print_error() { echo -e "${RED}[ERROR]${NC} $1" >&2; }
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 +23,204 @@ if [ "$EUID" -ne 0 ]; then
exit
fi
# Get macOS version
API_URL="https://www.python.org/api/v2/downloads/release/?version=3&pre_release=false&is_published=true"
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 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 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
# 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"
# 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.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 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 ""
@@ -217,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
@@ -238,7 +251,5 @@ main() {
fi
}
# Run main function
main
exit 0
+100 -97
View File
@@ -1,20 +1,24 @@
## About
## OpenCore-ISO - OpenCore for Proxmox VE / QEMU
A carefully crafted OpenCore **ISO** image that makes creating macOS virtual machines on **Proxmox VE** and **QEMU/KVM** straightforward.
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.
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 in the [Dortania guide](https://dortania.github.io/Anti-Hackintosh-Buyers-Guide/CPU.html#cpus-to-avoid).
## Table of Contents
Looking to run macOS on **VMware**? See https://github.com/DrDonk/OC4VM by David Parsons.
---
<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,51 +34,49 @@ 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)
* 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.
> 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
### 3. OS
* **ISO Image**: Select `LongQT-OpenCore-v0.X.iso`
* **Guest OS Type**: Leave as default (`Linux`)
---
### 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
### 5. Hard Disk
@@ -88,37 +90,36 @@ 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
> [!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
> [!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
#### 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` |
#### 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:**
> * **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:
> * **macOS 10.4 – macOS 12**, tick [✓] **Advanced**, under **Extra CPU Flags**, turn off `pcid` and `spec-ctrl`. [^amdcpu1]
> * **macOS 13 – macOS 26**, you need to set the CPU manually via the Proxmox VE Shell[^amdcpu2], example:
>
> ```
> # For CPUs with AVX2 support
@@ -127,30 +128,31 @@ 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:
> **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 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 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)
* Disable ❌ Ballooning Device
---
* [✗] Disable **Ballooning Device**
### 8. Network
@@ -162,13 +164,11 @@ 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 begin installation.
> [!Tip]
> [!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))
@@ -180,8 +180,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 or older
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.
---
@@ -189,70 +190,72 @@ macOS 10.4 Tiger no-keyboard issue:
## Post-Install
### 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.
* 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:
### 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)
* 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:** 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)
* **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]
> PCIe/dGPU passthrough on a **q35** machine requires:
> 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 --current | grep ^args: | cut -d' ' -f2-)"; \
> ARGS="$(qm config $VMID | grep ^args: | cut -d' ' -f2-)"; \
> qm set $VMID -args "$ARGS -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off"
> ```
> [!Tip]
> If you need ReBAR enabled for another GPU then you need to set **BAR 0** of the dGPU you want to passthrough to **256MB**, e.g.
> [!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
> ```
> 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:
> ```
> [!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 --current | grep ^args: | cut -d' ' -f2-)"; \
> 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 the "Toggle SIP" option.
> [!TIP]
> To disable SIP, press <kbd>Spacebar</kbd> in the OpenCore boot menu and select **Toggle SIP**.
---
## macOS Tahoe Cursor Freeze Fix
On **macOS 26**, the cursor may randomly freeze. A temporary workaround is to toggle **Use tablet for pointer** in VM’s **Options** tab.
On **macOS 26**, the cursor may randomly freeze. Quick workaround: toggle **Use tablet for pointer** in the VM's **Options** tab.
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.
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"
```
Alternatively, use a remote desktop solution, e.g. **VNC Screen Sharing** (Settings → General → Sharing) or **Chrome Remote Desktop**.
> [!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**.
---
@@ -277,7 +280,7 @@ It also includes components from Acidanthera and other developers, each with the
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.
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.