Home

Awesome

<div align="center">

MacOS VM installation using Unraid as host OS

Hits

</div>

Acknowledgements

Authors of Guide / Code Contributors / Repo Maintainers

LEGAL DISCLAIMER

THIS INFORMATION/RESEARCH HAS BEEN SHARED PURELY FOR EXPERIMENTAL AND RESEARCH PURPOSES. IT IS IN NO WAY MEANT TO PROMOTE THE CIRCUMVENTION OF ANYTHING THAT BELONGS TO AND/OR ANYTHING THAT IS THE CREATION/PRIVATE PROPERTY OF ANY CORPORATE ENTITY. THE INFORMATION THAT IS DOCUMENTED AND TRANSCRIBED HERE IS PURELY FOR EDUCATIONAL PURPOSES, AND PROOF OF CONCEPT. SHOULD YOU (OR ANYONE ELSE) CHOOSE TO UTILIZE THE INFORMATION THAT YOU'VE OBTAINED FROM THIS HACKINABOX GITHUB REPOSITORY AND THAT IS WRITTEN HERE IN ANY WAY, KNOW THAT THIS DISCLAIMER SERVES AS A LEGAL PROTECTION TO US AS THE CODE REPOSITORY CREATORS/MAINTAINERS, AND THAT WE ABSOLVE OURSELVES AS SUCH FROM ANY AND ALL RESPONSIBILITIES OR SITUATIONS THAT MIGHT ARISE FROM YOUR HAVING CHOSEN TO UTILIZE ANYTHING DISCUSSED IN THIS HACKINABOX GITHUB REPOSITORY (LEGAL, OR OTHERWISE). WITH THIS BEING DISCLOSED, THE CREATOR(S) OF THIS HACKINABOX GITHUB REPOSITORY GUIDE EXPRESSLY DISCLAIM ANY AND ALL LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR OTHER DAMAGES, LOSSES, OR INJURIES RESULTING FROM THE USE, MISUSE, OR APPLICATION OF ANYTHING AT ALL DISCUSSED IN THIS HACKINABOX GITHUB REPOSITORY OR RELATED TO SUCH. THE READER AND USER ASSUMES FULL RESPONSIBILITY AND RISK FOR ANY ACTIONS TAKEN OR DECISIONS MADE BASED ON THE USE OF ANYTHING DISCUSSED IN THIS HACKINABOX GITHUB REPOSITORY, AND BY CHOOSING TO DO SO, THE USER AGREES TO INDEMNIFY, DEFEND, AND HOLD HARMLESS THE CREATORS FROM ANY CLAIMS, DEMANDS, OR DAMAGES ARISING OUT OF OR RELATING TO SUCH USE. THE CREATORS OF THIS HACKINABOX GITHUB REPOSITORY PROVIDE NO WARRANTIES OR GUARANTEE REGARDING THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE TOPICS DISCUSSED WITHIN THIS HACKINABOX GITHUB REPOSITORY FOR ANY PARTICIULAR PURPOSE, AND THE USER ACKNOWLEDGES AND AGREES THAT THEY ARE PROCEEDING WITH ATTEMPTING ANYTHING DISCUSSED HERE AT THEIR OWN RISK.

This guide is for the computer user who would like to run macOS 12 Monterey (or newer) as a VM from within Unraid Server OS.

There are growing reasons for why someone would want to do so, for example:

TABLE OF CONTENTS

<br>1) Requirements <br>2) Installation Procedurals <br>- 2.1) Getting Started <br>- 2.2) Making the UnRAID USB <br>- 2.3) Setting Up Your Unraid Server OS Host <br>- 2.4) Setting up your macOS VM <br>3) Making the Recovery based macOS Installer USB <br>4) Obtaining and placing the EFI on the macOS USB Installer <br>5) Installation of macOS from within your booted VM <br>6) Post-Installation Finalization <br>7) SSDT Setup Examples - Before & After <br>8) FAQ <br>- 8.1) This sounds great! Where do I begin? <br>- 8.2) This is great, but UnRaid says that it costs money on the website? <br>- 8.3) How do I access this server once I boot it up, and what's the deal with me not being able to boot into GUI mode? <br>- 8.4) Why won't my UnRaid installation boot after I install it the first time? <br>- 8.5) Why can't I access some devices attached to my SATA controllers? <br>- 8.6) Why don't some of my attached USB devices work? <br>- 8.7) Why am I getting "VM Creation Error - XML error: Attempted double use of PCI address 0000:03:00.0"? <br>- 8.8) If I don't have an existing macOS installation to use to create an offline installer of macOS, yet am already booted into unRAID, what can I do to achieve such? <br>- 8.9) If my VM freezes and I cannot restart it properly from within the unRAID backend and am faced with the choices of hard restarting my computer, what can/should I do? <br>9) Support

Requirements

Installation Procedurals

1) Getting Started:

2) Making the Unraid USB:

https://user-images.githubusercontent.com/67184728/198156236-db2e51e9-3bd4-4595-891c-16a8f1520ba6.mp4

https://user-images.githubusercontent.com/67184728/198155944-6af6bc2f-e946-4718-a72d-4125400828cf.mp4

https://user-images.githubusercontent.com/67184728/198157504-60163ad5-a1fb-44f7-8333-b324c92670e3.mp4

3) Setting Up Your Unraid Server OS Host:

https://user-images.githubusercontent.com/67184728/198149890-3da23bca-c436-45fa-9726-a382860e9005.mp4

https://user-images.githubusercontent.com/67184728/198150060-8770b470-4727-4f0e-a088-424d4457c44d.mp4

https://user-images.githubusercontent.com/67184728/198150015-6b475616-b2b8-4d3a-ba7b-bc8ef3acb4e2.mp4

https://user-images.githubusercontent.com/67184728/198157641-7816236b-13f6-4fec-ac36-3073dfbd016a.mp4

https://user-images.githubusercontent.com/67184728/198150094-00f75a70-935b-4a2a-8f59-69d3f6a352ec.mp4

https://user-images.githubusercontent.com/67184728/198150143-afab68af-bc41-44a6-9105-e074332e57d3.mp4

https://user-images.githubusercontent.com/67184728/198150182-a571460f-b46b-452d-a37e-7c40439c389f.mp4

https://user-images.githubusercontent.com/67184728/198005859-2fb95000-818e-4c16-ac3e-f688ceba477c.mov

4) Setting Up Your macOS VM

!! DISCLAIMER: DO TAKE NOTE OF LINE COUNT PLACINGS. YOURS MIGHT NOT BE THE SAME AS IN THE GUIDE DUE TO ANY POTENTIAL DIFFERENCES IN HARDWARE CONFIGURATION. TAKE NOTE OF THIS AND BE ON THE LOOK OUT FOR THE DIFFERENCES !!

https://user-images.githubusercontent.com/67184728/199256049-12d22033-fceb-4fcf-a3da-100dc5250d62.mov

https://user-images.githubusercontent.com/67184728/199256099-1ac0904d-06be-46e2-b848-cdada1c9f023.mov

https://user-images.githubusercontent.com/67184728/199256143-1f795f1e-9119-4941-9bd3-430f589ffd1f.mov

https://user-images.githubusercontent.com/67184728/199256187-a3b91c7a-03a1-4df9-8bb8-e98ea8a598b3.mov

https://user-images.githubusercontent.com/67184728/199256227-74b9d99a-86f6-442f-b339-5661fb188a82.mov

https://user-images.githubusercontent.com/67184728/199260805-f25efc51-8776-452b-9bb3-2b113fad944e.mov

https://user-images.githubusercontent.com/67184728/199260951-bb050823-f3a3-47a5-bd77-5380b89a8776.mov

https://user-images.githubusercontent.com/67184728/199261008-daaf98bb-edf2-460a-a09d-6720563d74fd.mov

https://user-images.githubusercontent.com/67184728/199261077-55b1900f-30d6-4499-ad06-7f9af89ee203.mov

https://user-images.githubusercontent.com/67184728/199261436-3adb9436-88d9-4d99-b747-b5986ff587e6.mov

https://user-images.githubusercontent.com/67184728/199261992-4571eed0-b8d8-4e68-a1a9-8d25d5ee9f3f.mov

    <qemu:commandline>
    <qemu:arg value='-global'/>
    <qemu:arg value='ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off'/>
    <qemu:arg value='-device'/>
    <qemu:arg value='isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc'/>
    <qemu:arg value='-cpu'/>
    <qemu:arg value='Cascadelake-Server,vendor=GenuineIntel'/>
  </qemu:commandline>

5) Making the Recovery based macOS Installer USB

6) Obtaining and placing the EFI on the macOS USB Installer

7) Installation of macOS from within your booted VM

8) Post Installation Finalization

9) SSDT Setup Examples - Before & After

FAQ

1) This sounds great! Where do I begin?

You can begin by making sure that you can adhere to the requirements outlined in this guide

2) This is great, but UnRaid says that it costs money on the website?

That is correct, however there is a 30 day free trial, and the cheapest version costs $60 USD. Gotta pay to play the game, right?

3) How do I access this server once I boot it up, and what's the deal with me not being able to boot into GUI mode?

In order to access your UnRaid Server OS page for the UnRaid server via tower.local (default name) or the IP address given by your network, you must connect to such from a browser on another device attached to the same network

4) Why won't my UnRaid installation boot after I install it the first time?

Due to requirements from the creators of UnRaid, the USB boot key created to boot UnRaid the first time around must be both booted from every time, and left inserted in the USB port at all times

5) Why can't I access some devices attached to my SATA controllers?

Per how UnRaid operates, 1 SATA controller must be allocated to the Host OS, thereby making it unsuable by a VM

6) Why don't some of my attached USB devices work?

Per how UnRaid operates, 1 USB controller must be allocated to the Host OS, thereby making it unusable by a VM

7) Why am I getting "VM Creation Error - XML error: Attempted double use of PCI address 0000:03:00.0"?

If you're seeing this error, maybe with a different number in the set of numbers as well, it's because function is set on the incorrect line, and bus might be set incorrectly as well. Double check your double check, and set them to the appropriate correct lines.

8) If I don't have an existing macOS installation to use to create an offline installer of macOS, yet am already booted into unRAID, what can I do to achieve such?

Use Macinabox from SpaceinvaderOne

9) If my VM freezes and I cannot restart it properly from within the unRAID backend and am faced with the choices of hard restarting my computer, what can/should I do?

Forcefully restarting the machine and or hard resetting your machine and not choosing to shut down using the option to do so in the unRAID backend can result in data corruption, and the potential need to remake the unRAID USB drive. At all costs, you should always make sure to use the SHUTDOWN button within the unRAID backend to shutdown your computer, instead of hard restarting. It also would be wise to make sure to have a 1/1 clone or backup of your unRAID installation, just in case the need should arise. However, if you do find yourself needing to hard restart your machine, there is a potential that the VM's tab will not be present when you go to look for it. If that ends up being the case/situation for you, just re-enable it from the appropriate location nested within Settings.

Support

For support, please join the Official UnRaid Discord Server or the UnRaid Forums.