0655.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running a MacOS Catalina 10.15 VM in ProxMox VE</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="MacOS Catalina Proxmox,Catalina Virtual Machine,MacOS Virtual Machine,MacOS Catalina,MacOS VM,Proxmox VE,Hypervisor,MacOS,Apple,Catalina,Mac OS 10,VM,Virtual Machine,Virtualization,Mac OSX,Catalina Proxmox,Catalina VM,Home Lab,Home Lab Ideas,Install Guide,OSX,Catalina Proxmox VE,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Running a MacOS Catalina 10.15 VM in ProxMox VE">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="05/25/2022 12:36:56 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Running a MacOS Catalina 10.15 VM in ProxMox VE</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <ol>
  26. <li>Download a MacOS Catalina .iso <a href="https://archive.org/search.php?query=Mac%20OS%20iso%20collection&amp;and[]=mediatype%3A%22software%22" target="_blank">Download</a></li>
  27. <li>Download KVM OpenCore bootloader <a href="https://github.com/thenickdude/KVM-Opencore/releases" target="_blank">Download</a></li>
  28. <li>Extract the downloaded KVM OpenCore bootloader .gz file</li>
  29. <li>Upload the Catalina and KVM OpenCore .iso files to the Proxmox ISO library</li>
  30. <li>Log into the ProxMox web UI</li>
  31. <li>Right click the ProxMox node name &gt; Create VM</li>
  32. <li>Type MacOSCatalina in the name field, set the VM ID to 1000 (unless 1000 is in use) &gt; Next</li>
  33. <li>On the OS tab, set the Type field to Other and select the KVM OpenCore .iso in the ISO Image field &gt; Next</li>
  34. <li>On the System tab, set the Graphic card field to VMware compatible, BIOS field to OVMF (UEFI), Check the Add EFI Disk checkbox, Uncheck the Pre-Enroll Keys checkbox, Machine field to q35 and the SCSI Controller to VirtIO SCSI &gt; Next</li>
  35. <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) &gt; Next</li>
  36. <li>On the CPU tab, set Cores field to 4, Type field to Penryn &gt; Next</li>
  37. <li>On the Memory tab, set the Memory to 4096 &gt; Next</li>
  38. <li>On the Network tab, set the Model field to VMware vmxnet3 &gt; Next</li>
  39. <li>Verify the summary and click Finish</li>
  40. <li>Click the MacOSCatalina VM &gt; Select Hardware from the left sub-navigation menu</li>
  41. <li>Click Add &gt; CD/DVD Drive</li>
  42. <li>Select the MacOS Catalina .iso downloaded earlier &gt; Click Create</li>
  43. <li>Select the MacOSCatalina VM &gt; Options &gt; Boot Order</li>
  44. <li>Set the KVM OpenCore disk as the first boot option &gt; Click OK</li>
  45. <li>Right click the ProxMox node name &gt; Console</li>
  46. <li>Run the following commands in the terminal
  47. <div class="codeBlock"># edit the VM conf file, change 1000 to the VM ID for the Catalina VM<br />
  48. nano /etc/pve/qemu-server/1000.conf</div>
  49. </li>
  50. <li>If running on an Intel CPU, add the following line to the bottom of the .conf file:
  51. <p class="masked">args: -device isa-applesmc,osk=&quot;ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc&quot; -smbios type=2 -device usb-kbd,bus=ehci.0,port=2 -cpu host,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc</p>
  52. </li>
  53. <li>If running on an AMD CPU, add the following line to the bottom of the .conf file:
  54. <p class="masked">args: -device isa-applesmc,osk=&quot;ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc&quot; -smbios type=2 -device usb-kbd,bus=ehci.0,port=2 -cpu Penryn,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+avx2,+aes,+fma,+fma4,+bmi1,+bmi2,+xsave,+xsaveopt,check</p>
  55. </li>
  56. <li>Press CTRL+W and search for ,media=cdrom</li>
  57. <li>Delete the ,media=cdrom from the two attached .iso files (KVM OpenCore and Catalina) and add cache=unsafe</li>
  58. <li>Press CTRL+O, Enter, CTRL+X to write the changes to the conf file</li>
  59. <li>Back in the Proxmox web UI, right click the MacOSCatalina VM in the left navigation pane &gt; Start</li>
  60. <li>Click console in the left sub-navigation menu</li>
  61. <li>At the OpenCore menu, select UEFI Shell &gt; Press Enter</li>
  62. <li>Type the following in the UEFI shell:
  63. <div class="codeBlock CMD"># change to the Catalina .iso, the disk number may be different for you<br />
  64. fs0:<br />
  65. # launch the MacOS installer<br />
  66. System\Library\CoreServices\boot.efi</div>
  67. </li>
  68. <li>After a long initialization sequence the MAC OS Setup should start</li>
  69. <li>Select Disk Utility</li>
  70. <li>Select the VIRTIO Block Media &gt; Click Erase</li>
  71. <li>Name the drive MacOS &gt; Set the Format to APFS &gt; Click Erase</li>
  72. <li>Click Done &gt; Close Disk Utility</li>
  73. <li>Click Install macOS</li>
  74. <li>Click Continue &gt; Click Agree &gt; Click Agree again</li>
  75. <li>Select the MacOS disk &gt; Click Install</li>
  76. <li>Wait while Mac OS installs files, the VM will reboot several times</li>
  77. <li>Select your Country &gt; Click Continue</li>
  78. <li>Confirm your languages and keyboard layout &gt; Click Continue</li>
  79. <li>Click Continue on the Data &amp; Privacy screen</li>
  80. <li>Select Don&#39;t transfer any information now &gt; Click Continue</li>
  81. <li>Select Set Up Later &gt; Click Continue &gt; Click Skip</li>
  82. <li>Click Agree &gt; Agree again</li>
  83. <li>Enter a name, user name, password &gt; Click Continue</li>
  84. <li>Click Customize Settings</li>
  85. <li>Click Continue &gt; Select Use or Don&#39;t Use for Location Services</li>
  86. <li>Pick a timezone &gt; Click Continue</li>
  87. <li>Uncheck the Send Mac Analytics box &gt; Click Continue</li>
  88. <li>Click Set Up Later on the Screen Time screen</li>
  89. <li>Uncheck the Enable Ask Siri box &gt; Click Continue</li>
  90. <li>Pick a theme &gt; Click Continue</li>
  91. <li>Welcome to MacOS 10.15 Catalina</li>
  92. </ol>
  93. <h2>Configuring Booting Without OpenCore Mounted</h2>
  94. <ol>
  95. <li>Log into the MacOSCatalina VM</li>
  96. <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>
  97. <li>Download MountEFI from GitHub <a href="https://github.com/corpnewt/MountEFI" target="_blank">Download</a></li>
  98. <li>Start LaunchPad from the dock</li>
  99. <li>Search terminal &gt; Click Terminal to launch it</li>
  100. <li>Run the following commands in the terminal window
  101. <div class="codeBlock CMD">cd ~/Downloads/MountEFI<br />
  102. chmod +x MountEFI.command<br />
  103. ./MountEFI.command</div>
  104. </li>
  105. <li>Enter the number that corresponds to the MacOS drive created during the installation &gt; Press Enter</li>
  106. <li>Open a Finder window</li>
  107. <li>Navigate to the mounted EFI location</li>
  108. <li>If an existing EFI folder exists, rename the it to EFI.orig</li>
  109. <li>Copy the KVM OpenCoreEFI folder downloaded earlier to the mounted EFI partition</li>
  110. <li>Once the EFI folder is copied, shutdown the VM</li>
  111. <li>Click the MacOSCatalina VM &gt; Select Hardware from the left sub-navigation menu</li>
  112. <li>Click the OpenCore Hard Disk to select it &gt; Click Detach</li>
  113. <li>Click the detached OpenCore Hard Disk to select it again &gt; Click Remove</li>
  114. <li>Right click the MacOSCatalina VM in the left navigation pane &gt; Start</li>
  115. <li>Click console in the left sub-navigation menu to verify the VM still boots into Catalina without the OpenCore disc image mounted</li>
  116. </ol>
  117. </div>
  118. </div>
  119. </body>
  120. </html>