123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Running a MacOS 14 Sonoma VM in ProxMox VE</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Home Lab,Home Lab Ideas,Hypervisor,Install Guide,Apple MacOS,Debian,How To Install MacOS 14 On Proxmox,How To Install MacOS Sonoma On Proxmox,Mac OS 14,MacOS 14 Proxmox VE,MacOS Proxmox,MacOS Sonoma,MacOS Virtual Machine,OS 14,OpenCore,Proxmox,Proxmox Step By Step,VM,Sonoma,Sonoma VM,Sonoma Virtual Machine,Virtual Machine,Virtualization,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Running a MacOS 14 Sonoma VM in ProxMox VE">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="03/31/2024 06:24:00 AM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Running a MacOS 14 Sonoma VM in ProxMox VE</h1>
- </div>
- <div></div>
- <div id="content">
- <p>💡 <em>NOTE: MacOS higher than version 12 requires a CPU with AVX2 instruction support</em></p>
- <ol>
- <li>Download a MacOS Sonoma .iso <a href="https://archive.org/search.php?query=MacOS%20collection&and[]=mediatype%3A%22software%22" target="_blank">Download</a> OR create your own <a href="https://youtu.be/JFMvUpdCMwo" target="_blank">https://youtu.be/JFMvUpdCMwo</a></li>
- <li>Download KVM OpenCore bootloader <a href="https://github.com/thenickdude/KVM-Opencore/releases" target="_blank">Download</a></li>
- <li>Extract the downloaded KVM OpenCore bootloader .gz file</li>
- <li>Upload the Sonoma and KVM OpenCore .iso files to the Proxmox ISO library</li>
- <li>Log into the ProxMox web UI</li>
- <li>Right click the ProxMox node name > Create VM</li>
- <li>Type MacOSSonoma in the name field, set the VM ID to 1400 (unless 1400 is in use) > Next</li>
- <li>On the OS tab, set the Type field to Other and select the KVM OpenCore .iso in the ISO Image field > Next</li>
- <li>On the System tab, set the Graphic card field to VMware compatible, BIOS field to OVMF (UEFI), Uncheck the Pre-Enroll Keys checkbox, Check the Add EFI Disk checkbox, Machine field to q35 and the SCSI Controller to VirtIO SCSI > Next</li>
- <li>On the Hard Disk tab, set the Bus/Device field to VirtIO Block, Disk size field to 64, Cache field to Write back (unsafe) > Next</li>
- <li>On the CPU tab, set Cores field to 4, Type field to host > Next</li>
- <li>On the Memory tab, set the Memory to 4096 > Next</li>
- <li>On the Network tab, set the Model field to VMware vmxnet3 > Next</li>
- <li>Verify the summary and click Finish</li>
- <li>Click the MacOSSonoma VM > Select Hardware from the left sub-navigation menu</li>
- <li>Click Add > CD/DVD Drive</li>
- <li>Select the MacOS Sonoma .iso downloaded earlier > Click Create</li>
- <li>Select the MacOSSonoma VM > Options > Boot Order</li>
- <li>Set the KVM OpenCore disk as the first boot option > Click OK</li>
- <li>Right click the ProxMox node name > Console</li>
- <li>Run the following commands in the terminal
- <div class="codeBlock"># edit the VM conf file, change 1400 to the VM ID for the MacOSSonoma VM<br />
- nano /etc/pve/qemu-server/1400.conf</div>
- </li>
- <li>If running on an Intel CPU, add the following line to the bottom of the .conf file:
- <p class="masked">args: -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" -smbios type=2 -device qemu-xhci -device usb-kbd -device usb-tablet -global nec-usb-xhci.msi=off -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off -cpu host,vendor=GenuineIntel,+invtsc,+hypervisor,kvm=on,vmware-cpuid-freq=on</p>
- </li>
- <li>If running on an AMD CPU, add the following line to the bottom of the .conf file:
- <p class="masked">args: -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" -smbios type=2 -device qemu-xhci -device usb-kbd -device usb-tablet -global nec-usb-xhci.msi=off -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off -cpu Haswell-noTSX,vendor=GenuineIntel,+invtsc,+hypervisor,kvm=on,vmware-cpuid-freq=on</p>
- </li>
- <li>Press CTRL+W and search for ,media=cdrom</li>
- <li>Delete the ,media=cdrom from the two attached .iso files (KVM OpenCore and Sonoma) and add cache=unsafe</li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to the conf file</li>
- <li>Back in the Proxmox web UI, right click the MacOSSonoma VM in the left navigation pane > Start</li>
- <li>Click console in the left sub-navigation menu</li>
- <li>At the OpenCore menu, select UEFI Shell > Press Enter</li>
- <li>Type the following in the UEFI shell:
- <div class="codeBlock CMD"># change to the Sonoma.iso, the disk number may be different for you<br />
- fs0:<br />
- # launch the MacOS installer<br />
- System\Library\CoreServices\boot.efi</div>
- </li>
- <li>After a long initialization sequence the MAC OS Setup should start</li>
- <li>Select Disk Utility</li>
- <li>Select the VIRTIO Block Media > Click Erase</li>
- <li>Name the drive MacOS > Set the Format to APFS > Click Erase</li>
- <li>Click Done > Close Disk Utility</li>
- <li>Click Install macOS Sonoma</li>
- <li>Click Continue > Click Agree > Click Agree again</li>
- <li>Select the MacOS disk > Click Install</li>
- <li>Wait while Mac OS installs files, the VM will reboot several times</li>
- <li>Select your Country or Region > Click Continue</li>
- <li>Confirm your languages and keyboard layout > Click Continue</li>
- <li>Click Not Now on the Accessibility screen</li>
- <li>Click Continue on the Data & Privacy screen</li>
- <li>Select Not Now on the Migration Assistant screen</li>
- <li>Select Set Up Later and then Skip on the Apple ID screen</li>
- <li>Click Agree > Agree again</li>
- <li>Enter a name, user name, password > Click Continue</li>
- <li>Click Continue > Select Use or Don't Use for Location Services</li>
- <li>Pick a timezone > Click Continue</li>
- <li>Uncheck Share Mac Analytics with Apple > Click Continue</li>
- <li>Click Set Up Later on the Screen Time screen</li>
- <li>Pick a theme > Click Continue</li>
- <li>Welcome to MacOS 14 Sonoma</li>
- </ol>
- <h2>Configuring Booting Without OpenCore Mounted</h2>
- <ol>
- <li>Log into the MacOSSonoma VM</li>
- <li>Launch a web browser and download the KVM OpenCore EFI folder <a href="https://github.com/thenickdude/KVM-Opencore/releases" target="_blank">Download</a></li>
- <li>Download MountEFI from GitHub <a href="https://github.com/corpnewt/MountEFI" target="_blank">Download</a></li>
- <li>Start LaunchPad from the dock</li>
- <li>Search terminal > Click Terminal to launch it</li>
- <li>Run the following commands in the terminal window
- <div class="codeBlock CMD">cd ~/Downloads/MountEFI<br />
- chmod +x MountEFI.command<br />
- ./MountEFI.command</div>
- </li>
- <li>Enter the number that corresponds to the MacOS drive created during the installation > Press Enter</li>
- <li>Open a Finder window</li>
- <li>Navigate to the mounted EFI location</li>
- <li>If an existing EFI folder exists, rename the it to EFI.orig</li>
- <li>Copy the KVM OpenCoreEFI folder downloaded earlier to the mounted EFI partition</li>
- <li>Once the EFI folder is copied, shutdown the VM</li>
- <li>Click the MacOSSonoma VM > Select Hardware from the left sub-navigation menu</li>
- <li>Click the OpenCore Hard Disk to select it > Click Detach</li>
- <li>Click the detached OpenCore Hard Disk to select it again > Click Remove</li>
- <li>Right click the MacOSSonoma VM in the left navigation pane > Start</li>
- <li>Click console in the left sub-navigation menu to verify the VM still boots into Sonoma without the OpenCore disc image mounted</li>
- </ol> </div>
- </div>
- </body>
- </html>
-
|