From e469b613588f6dbeed390d56b7d4efa24b4d2051 Mon Sep 17 00:00:00 2001 From: jaminmc <1310376+jaminmc@users.noreply.github.com> Date: Sat, 19 Jul 2025 02:41:44 -0400 Subject: [PATCH 1/3] Remove Enterprise sources in Proxmox 9 Preliminary Proxmox 9 support! APT uses a new .sources format and extension in trixie. --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index ab59d38..9f5457b 100755 --- a/install.sh +++ b/install.sh @@ -41,6 +41,8 @@ log_message "Cleaning up existing files..." [ -d "/root/OSX-PROXMOX" ] && rm -rf "/root/OSX-PROXMOX" [ -f "/etc/apt/sources.list.d/pve-enterprise.list" ] && rm -f "/etc/apt/sources.list.d/pve-enterprise.list" [ -f "/etc/apt/sources.list.d/ceph.list" ] && rm -f "/etc/apt/sources.list.d/ceph.list" +[ -f "/etc/apt/sources.list.d/pve-enterprise.sources" ] && rm -f "/etc/apt/sources.list.d/pve-enterprise.sources" +[ -f "/etc/apt/sources.list.d/ceph.sources" ] && rm -f "/etc/apt/sources.list.d/ceph.sources" log_message "Preparing to install OSX-PROXMOX..." @@ -79,4 +81,4 @@ else exit 1 fi -log_message "Installation completed successfully" \ No newline at end of file +log_message "Installation completed successfully" From 578e77f0d0a90c5f2121a2b773de8239d0b0b365 Mon Sep 17 00:00:00 2001 From: jaminmc <1310376+jaminmc@users.noreply.github.com> Date: Sat, 19 Jul 2025 02:51:52 -0400 Subject: [PATCH 2/3] Fix init_dirs before loging, and preliminary Proxmox 9 Beta support There was an error where the log dir wasn't created before the script would write to a log, so the script would fail if the folder was missing. I enabled preliminary Proxmox 9 Beta support. Install works for me, and all the functions seem to work. Installing pve-no-subscription repo will give warnings in apt update, as Proxmox doesn't have trixie packages in there but is using the pve-testing repo instead. --- setup | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/setup b/setup index b1b6e4c..9b4326a 100755 --- a/setup +++ b/setup @@ -271,7 +271,15 @@ init_dirs() { # Function to check Proxmox version check_proxmox_version() { - pveversion | grep -qE "pve-manager/[7,8]" || log_and_exit "Unsupported Proxmox version. Use 7.x or 8.x" "${LOGDIR}/proxmox-version.log" + local version_log="${LOGDIR}/proxmox-version.log" + if ! pveversion | grep -qE "pve-manager/[7-9]"; then + log_and_exit "Unsupported Proxmox version. Use 7.x, 8.x, or 9.x" "$version_log" + fi + + if pveversion | grep -q "pve-manager/9"; then + echo "Proxmox 9 is in preliminary testing. Use at your own risk." + sleep 5 + fi } # Function to detect CPU platform @@ -302,7 +310,7 @@ setup_prerequisites() { grub_cmd="quiet intel_iommu=on iommu=pt video=vesafb:off video=efifb:off" printf "options kvm-intel nested=Y\n" > /etc/modprobe.d/kvm-intel.conf fi - pveversion | grep -qE "pve-manager/(7.[2-4]|8.[0-4])" && grub_cmd="$grub_cmd initcall_blacklist=sysfb_init" + pveversion | grep -qE "pve-manager/(7.[2-4]|8.[0-4]|9)" && grub_cmd="$grub_cmd initcall_blacklist=sysfb_init" sed -i "s/GRUB_CMDLINE_LINUX_DEFAULT=\"quiet\"/GRUB_CMDLINE_LINUX_DEFAULT=\"$grub_cmd\"/g" /etc/default/grub printf "vfio\nvfio_iommu_type1\nvfio_pci\nvfio_virqfd\n" >> /etc/modules printf "blacklist nouveau\nblacklist nvidia\nblacklist snd_hda_codec_hdmi\nblacklist snd_hda_intel\nblacklist snd_hda_codec\nblacklist snd_hda_core\nblacklist radeon\nblacklist amdgpu\n" >> /etc/modprobe.d/pve-blacklist.conf @@ -393,6 +401,9 @@ add_no_subscription_repo() { printf "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription\n" > /etc/apt/sources.list.d/pve-no-sub.list elif pveversion | grep -q "pve-manager/[8]"; then printf "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription\n" > /etc/apt/sources.list.d/pve-no-sub.list + elif pveversion | grep -q "pve-manager/[9]"; then + printf "Types: deb\nURIs: http://download.proxmox.com/debian/pve\nSuites: trixie\nComponents: pve-no-subscription\nSigned-By: /usr/share/keyrings/proxmox-archive-keyring.gpg +\n" > /etc/apt/sources.list.d/pve-no-sub.sources else log_and_exit "Unsupported Proxmox version" "$logfile" fi @@ -409,7 +420,7 @@ update_opencore_iso() { wget -q https://github.com/luchina-gabriel/OSX-PROXMOX/raw/main/EFI/opencore-osx-proxmox-vm.iso >>"$logfile" 2>&1 || log_and_exit "Failed to download OpenCore ISO" "$logfile" cd ~ echo "OpenCore ISO updated" | tee -a "$logfile" - read -n 1 -sp "Press any key to return to menu..." + sleep 5 } # Function to clear recovery images @@ -1033,6 +1044,7 @@ main_menu() { # Main script clear +init_dirs check_proxmox_version set_isodir # Check if OpenCore ISO exists, and install if not in the ISODIR. @@ -1041,6 +1053,5 @@ if [ ! -f "${ISODIR}/opencore-osx-proxmox-vm.iso" ]; then fi sleep 4 OSX_PLATFORM=$(detect_cpu_platform) -init_dirs [[ ! -e /etc/pve/qemu-server/.osx-proxmox ]] && setup_prerequisites -main_menu \ No newline at end of file +main_menu From 8eb47bd0dba34f0e23956bd83f490d7b0ec787f3 Mon Sep 17 00:00:00 2001 From: jaminmc <1310376+jaminmc@users.noreply.github.com> Date: Sat, 19 Jul 2025 03:00:10 -0400 Subject: [PATCH 3/3] Preliminary support for Proxmox added to README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 08ec192..7614ee2 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Easily install macOS on Proxmox VE with just a few steps! This guide provides th ## 🛠 Installation Guide 1. Install a **FRESH/CLEAN** version of Proxmox VE (v7.0.XX ~ 8.4.XX) - just follow the Next, Next & Finish (NNF) approach. + * Preliminary support for Proxmox VE V9.0.0 BETA. 2. Open the **Proxmox Web Console** → Navigate to `Datacenter > YOUR_HOST_NAME > Shell`. 3. Copy, paste, and execute the command below: