3JL Posted January 4, 2019 Share Posted January 4, 2019 (edited) Hi all, This was originally a post asking for the definitive guide. Since I did not get a response, I continued tinkering. I eventually was able to patch something together based on other tutorials. Below what I have done. If you run into issues or mistakes from my end, or certain steps don’t turn out to be necessary, please comment below so we can make this guide complete! Starting point ESXi 6.7 installed and working My hardware: Fujitsu D3417-B2 (Intel C236), Xeon E3-1245 v6, 32GB RAM, 1250 GB SSDs and 8 TB HDDs This guide assumes that all steps are executed on a mac; most can be done on most other operating systems as well, except for Step 3. Aim Installing fully functional version of macOS Mojave on ESXi. Why would one want this? I upgraded my server and installed ESXi (a virtualisation hypervisor) to run several operating systems side by side. Since the server is now located near my desk, I wanted to use the opportunity to also use that system as a workstation for some of my photo hobby stuff, rather than using my work MBP. High-level steps Install ESXi (not covered here) Install Unlocker Create a bootable ISO Create a new virtual machine Install macOS Install VMware Tools Required files Unlocker. Latest version verified for ESXi is v.3.0.0 (https://www.insanelymac.com/forum/files/file/964-macos-unlocker-v30-for-vmware-esxi/ ; credits to @Donk; you need to be logged in to download) MacOS Mojave (See instructions below. For this, you need a macOS machine) VMware Tools for macOS (https://www.insanelymac.com/forum/files/file/31-vmware-tools-for-os-x-darwiniso/ ; credits to @MSoK; you need to be logged in to download) Step 2: Install Unlocker Normally, macOS can only be installed on Apple hardware. The unlocker will modify ESXi to accept non-Apple hardware for macOS VMs. Using the link above, download Unlocker and upload the file to your ESXi systems Enable SSH in ESXi Open a terminal window SSH into ESXi (“ssh login_name@ESXi_IP”) Navigate to the folder where you uploaded the unlocker (datastores are located in “/vmfs/volumes/“ Unpack the Unlocker (“tar xzvf esxi-unlocker-xxx.tgz”) You may need to make the script executable. This can by done by typing “sudo chmod -x esxi-install.sh” (you will likely be asked for your password) Run the script using “./esxi-install.sh” Reboot ESXi Step 3a: Download MacOS Mojave This is easy if you have a MacOS machine. There are other sources, but I would not recommend using them for security reasons Within the Mac App Store find MacOS Mojave: https://itunes.apple.com/us/app/macos-mojave/id1398502828?ls=1&mt=12 Click “Get” and the update process starts Depending on the version of macOS installed, the update process will automatically halt after download or you will need to press CMD+Q as soon as the download is finished As a result you will find a new ‘app’ in your applications folder: “Install macOS Mojave.app” Step 3b: Create a bootable ISO From the file above, we need to create a bootable ISO. Bill Plein made an excellent script for this that you can use one-on-one: https://blog.plein.org/2018/09/28/creating-a-macos-10-14-mojave-installation-iso/ Open the Textedit app and create a new file In the app’s preferences choose ‘Plain text’ as the document format Paste the script and save as “mk-mojave-iso.sh” Open a Terminal window and navigate to the folder with the script You may need to make the script executable. This can by done by typing “sudo chmod -x mk-mojave-iso.sh” (you will likely be asked for your password) Then run the script: “./mk-mojave-iso.sh” The script will run for a couple of minutes and as a result a file named “Mojave.iso” will be placed on your desktop Upload the file to ESXi NB: the file will be stored on your Desktop and hence possibly automatically synced with your iCloud, make sure to remove/delete it to save iCloud space Step 4: Create a new virtual machine Log into the ESXi web interface From the Virtual Machines section click “Create / Register VM” Click “Create a new virtual machine” Give it whatever name you like Choose “Mac OS” as the guest OS Choose “Apple Mac OS X 10.14 (64-bit)” as the guest OS version Choose the datastore you want to use I opted to use 2 cores, 100GB and 4GB in RAM Make sure to give the VM a unique MAC address by setting it to manual under Network Adapter 1 (I took the server’s MAC address and added ‘1’ to the last digit) I chose adapter type E1000e for no particular reason, other than that one was required in one of my other OSs As CD/DVD Drive 1, choose Datastore ISO file, make sure “Connect at power on” is checked and choose the bootable ISO that you uploaded Click “Finish” to create the VM Step 5: Install MacOS Run the VM you have just created If everything worked correctly, the VM will boot from the bootable ISO (The screen will say it is “attempting to start up from … Virtual SATA CDROM Drive (1.0)”). If not, the ISO file was likely not created correctly (Step 3) or it was not properly mounted in Step 4. You will see the white Apple logo and a progress bar You will be asked to select your language Then you will enter the setup menu, choose “Disk Utility” Select the “VMware Virtual S..” on the left and choose “Erase”, this will format your virtual drive. You can give it any name you want (I went traditional with “Macintosh HD”, I chose “Mac OS Extended (Journaled)” as the format and “GUID Partition Map” as the scheme). When formatted, you can continue the installation process (this mostly speaks for itself). You are asked several questions. I opted out of all things that would send data to Apple (location services, Apple ID) as I do not want to load their infrastructure with my system. Please share whether you succeeded if you have chosen otherwise. You should now be able to boot into a working version of MacOS Step 6: Install VMware Tools Finally, it is recommended to install VMware Tools. More info: https://www.vmware.com/support/ws5/doc/new_guest_tools_ws.html. It can be downloaded here: https://www.insanelymac.com/forum/files/file/31-vmware-tools-for-os-x-darwiniso/ (com.vmware.fusion.tools.darwin.zip.tar; extract and find darwin.iso) Upload Darwin.iso to an ESXi datastore Shut down the running MacOS VM (if you hadn’t done so already) Edit the settings of the VM and navigate to the CD/DVD drive: replace the MacOS bootable ISO with the Darwin.iso file Save and start the MacOS VM When started, the darwin.iso should be mounted and you should be able to install VMware Tools Acknowledgements To tinker together the above, I used (amongst others) the below: https://ithinkvirtual.com/2017/02/12/create-macos-os-x-vm-on-vmware-esxi-6-5-vmware-workstation-12-x/ (older version of macOS and ESXi) https://blog.plein.org/2018/09/28/creating-a-macos-10-14-mojave-installation-iso/ https://www.youtube.com/watch?v=RM_YcTbsC8k (this one uses modified files from a service I do not know one can trust) Open questions / TODO’s How to realise video passthrough? Add screenshots I hope this is helpful; please share your experience so we can refine this guide if needed! Thanks! J Edited January 15, 2019 by 3JL Link to comment Share on other sites More sharing options...
EmotionalAmo Posted January 15, 2019 Share Posted January 15, 2019 (edited) questions:How to realise video passthrough? Step 1: Goto Navigator --> Manage --> Hardware --> PCI Device , Selet Videocard Toggle passthrough and reboot ESXI Step 2: Edit Virtual Machines settings --> Add other device --> PCI device Step 3: Power on Virtual Machines to install MacOS , In the installer, you can see that your monitor is working Step 4: After the installation is complete, you will find that the system is stuck in the apple progress bar. Now you need to turn off the mac power and remove the graphics card from the settings. Step 5: Turn on the system again, after completing the wizard, turn on the automatic login in the settings (otherwise you will not see anything) and put the system settings window on the far right (do not close), open the window when you open the login again when you shut down. Step 6: Go back to set up pcie again,Power on Virtual Machines ,set second screen to main screen。 Step 7: now you can use video card do everything Note: you need to pass through a usb port to enter the virtual machine, otherwise you will not be able to move the mouse to the second screen. I tried setting svga.present = "TRUE" to FALSE in vmx to turn off the virtual display, which caused the graphics card to fail to output. Add in vmx: hw.model = "MacPro6,1" (set mac model) uuid.action = "keep" questions:How to set CPU model? My hardware: Dell R710 (Intel 5520), X5650*2 , 64GB RAM, GT730 pcie x8 , 250 GB SSD and 300 GB SAS Edited January 16, 2019 by EmotionalAmo Add Note and questions 1 1 Link to comment Share on other sites More sharing options...
3JL Posted January 21, 2019 Author Share Posted January 21, 2019 Hi @EmotionalAmo, thanks for your contribution! I have tried to follow your instructions, but it failed do you have any clue what I am doing wrong? (see attached images) (I tried modifying an existing installation, that should work as well, right?) Second question: Do I understand correctly that video passthrough can only work with auto login? Link to comment Share on other sites More sharing options...
vlgngrbrdmn Posted May 1, 2019 Share Posted May 1, 2019 Does this work with vSphere? Is it as simple as installing the unlocker on each host? Link to comment Share on other sites More sharing options...
neeiro Posted May 5, 2019 Share Posted May 5, 2019 I'm getting -bash: ./mk-mojave-iso.sh: Permission denied when trying to run the script? Link to comment Share on other sites More sharing options...
GraFfiX Posted May 13, 2019 Share Posted May 13, 2019 This worked well for me, I tried this a few years back and was never able to get the VM to boot, this worked right away. The only thing that did not work for me was iso creation, I had to track down some other instructions and do it manually. Link to comment Share on other sites More sharing options...
yeahman45 Posted June 2, 2019 Share Posted June 2, 2019 On 5/5/2019 at 3:17 PM, neeiro said: I'm getting -bash: ./mk-mojave-iso.sh: Permission denied when trying to run the script? same here although I chmod -x it Link to comment Share on other sites More sharing options...
maxneko Posted June 4, 2019 Share Posted June 4, 2019 @3JLThanks for this guide. Before I take the plunge, I just want to check whether it will work with the free license for vSphere or if I need all the features. If it's the latter, it would probably be cost-prohibitive, although VMware does have a 60 day evaluation for the paid license. Link to comment Share on other sites More sharing options...
yeahman45 Posted June 5, 2019 Share Posted June 5, 2019 On 5/5/2019 at 3:17 PM, neeiro said: I'm getting -bash: ./mk-mojave-iso.sh: Permission denied when trying to run the script? run this command: sudo chmod a+x mk-mojave-iso.sh Link to comment Share on other sites More sharing options...
yeahman45 Posted June 5, 2019 Share Posted June 5, 2019 On 1/15/2019 at 10:34 PM, EmotionalAmo said: questions:How to realise video passthrough? Step 1: Goto Navigator --> Manage --> Hardware --> PCI Device , Selet Videocard Toggle passthrough and reboot ESXI Step 2: Edit Virtual Machines settings --> Add other device --> PCI device Step 3: Power on Virtual Machines to install MacOS , In the installer, you can see that your monitor is working Step 4: After the installation is complete, you will find that the system is stuck in the apple progress bar. Now you need to turn off the mac power and remove the graphics card from the settings. Step 5: Turn on the system again, after completing the wizard, turn on the automatic login in the settings (otherwise you will not see anything) and put the system settings window on the far right (do not close), open the window when you open the login again when you shut down. Step 6: Go back to set up pcie again,Power on Virtual Machines ,set second screen to main screen。 Step 7: now you can use video card do everything Note: you need to pass through a usb port to enter the virtual machine, otherwise you will not be able to move the mouse to the second screen. I tried setting svga.present = "TRUE" to FALSE in vmx to turn off the virtual display, which caused the graphics card to fail to output. Add in vmx: hw.model = "MacPro6,1" (set mac model) uuid.action = "keep" questions:How to set CPU model? My hardware: Dell R710 (Intel 5520), X5650*2 , 64GB RAM, GT730 pcie x8 , 250 GB SSD and 300 GB SAS thx man! it worked with my GT 730 but not with my GTX 750... it sees the GTX 750 but it is as if the GTX 750 is not connected... same thing as https://www.insanelymac.com/forum/topic/337101-the-almost-definitive-guide-for-installing-macos-1014-mojave-on-esxi-67-wip/?do=findComment&comment=2660527 1 Link to comment Share on other sites More sharing options...
agpastore Posted August 24, 2019 Share Posted August 24, 2019 I also got permission denied from the script. All I had to do was to replace the occurrences of this path: /Volumes/OS\ X\ Base\ System/ with the correct one: /Volumes/macOS\ Base\ System/ then it works Link to comment Share on other sites More sharing options...
cdoublejj Posted August 29, 2019 Share Posted August 29, 2019 On 5/1/2019 at 11:09 AM, vlgngrbrdmn said: Does this work with vSphere? Is it as simple as installing the unlocker on each host? Yes and Yes 1 Link to comment Share on other sites More sharing options...
zitter Posted September 15, 2019 Share Posted September 15, 2019 (edited) After installing the Unlocker I get the following error message, when I try to connect to the VM: 503 Service Unavailable (Failed to connect to endpoint: [N7Vmacore4Http16LocalServiceSpecE:0x6b1050a8] _serverNamespace = / _isRedirect = false _port = 8309) Running ESXi-6.0.0-20170604001-standard. Edited September 15, 2019 by zitter Link to comment Share on other sites More sharing options...
zitter Posted September 15, 2019 Share Posted September 15, 2019 9 minutes ago, zitter said: After installing the Unlocker I get the following error message, when I try to connect to the VM: 503 Service Unavailable (Failed to connect to endpoint: [N7Vmacore4Http16LocalServiceSpecE:0x6b1050a8] _serverNamespace = / _isRedirect = false _port = 8309) Running ESXi-6.0.0-20170604001-standard. Hmmm. Since this is the guide for ESXI 6.7 I should probably use this instead: https://www.insanelymac.com/forum/files/file/339-unlocker/ Yes, that worked. I'll show myself out... Link to comment Share on other sites More sharing options...
area51tazz Posted September 15, 2019 Share Posted September 15, 2019 G'day! I posted this question here but I think this may be a better place for it... My VMs, no matter how I configure them, just boot loop halfway through the initial loading screen. I tried the steps/script in the blog post here on InsanelyMac, as well as the ones here in your post, (one disc is ~6gb, one is close to 9gb) but they both loop Is there a way to be able to see the logs when MacOS is attempting to load so I can see where it's failing? ESXi 6.7u2 Unlocker 3.0 Mojave 14.6 (JUST created the ISOs) 1 Link to comment Share on other sites More sharing options...
OmarEQMS Posted October 8, 2019 Share Posted October 8, 2019 (edited) Hello, I use this guide. I am using ESXi 6.7 and Mojave 10.14.0 I can boot, format the disk, select the installation disk, but when it boots again, it get stuck at 99% for 2 hours. What can I do? Edited October 8, 2019 by OmarEQMS Link to comment Share on other sites More sharing options...
Ratfish Posted October 8, 2019 Share Posted October 8, 2019 (edited) Works for Catalina too thanks. Made the boot iso from this, but changed all the "Mojave" to "Catalina". https://blog.petehouston.com/download-and-convert-macos-mojave-installer-into-iso-file/ Then followed this guide to get ESXi to boot from the iso (crazy, but it works). https://communities.vmware.com/thread/611961 Edited October 8, 2019 by Ratfish 1 Link to comment Share on other sites More sharing options...
eddlogg Posted November 1, 2019 Share Posted November 1, 2019 No matter what I do, I get Quote -sh: ./esxi-install.sh: Operation not permitted chmod doesn't work. Using 6.7.0.u2 Any help would be great 1 Link to comment Share on other sites More sharing options...
lpt2007 Posted December 3, 2019 Share Posted December 3, 2019 (edited) When I start VM I stuck on black screen with apple logo (no progres bar) any idea? HP ProLiant DL585 AMD OPTERON ESXi 6.7.0 (Build 9484548) Edited December 4, 2019 by lpt2007 1 Link to comment Share on other sites More sharing options...
lpt2007 Posted December 4, 2019 Share Posted December 4, 2019 On 11/1/2019 at 11:44 PM, eddlogg said: No matter what I do, I get chmod doesn't work. Using 6.7.0.u2 Any help would be great try sudo ./esxi-install.sh 1 Link to comment Share on other sites More sharing options...
Ragheb Posted December 20, 2019 Share Posted December 20, 2019 All worked perfectly well on ESXI 6.7.0 U3 on Dell poweredge system. I just have one question after I erase the volume and which I need to install Mojave I get in the options Reinstall MacOS which fails when I press it with the error that it cannot contact MacOS recovery server. It does not have an option that read install macOS. Any idea how to fix this? Sincerely, Ragheb 1 Link to comment Share on other sites More sharing options...
MrCake Posted February 29, 2020 Share Posted February 29, 2020 On 10/8/2019 at 1:05 AM, Ratfish said: Works for Catalina too thanks. Made the boot iso from this, but changed all the "Mojave" to "Catalina". https://blog.petehouston.com/download-and-convert-macos-mojave-installer-into-iso-file/ Then followed this guide to get ESXi to boot from the iso (crazy, but it works). https://communities.vmware.com/thread/611961 Did you follow the second set of settings for Fusion, or did something similar in ESXI? 1 Link to comment Share on other sites More sharing options...
flagtuck Posted March 7, 2020 Share Posted March 7, 2020 Any updates to this in March 2020? I'm just setting up my ESXi 6.7 server with 2x Xeon E5-2650 v2 and would love to move my hackintosh desktop to it. Is there a recommended video card for basic hardware acceleration? Thanks! 1 Link to comment Share on other sites More sharing options...
m0bilitee Posted March 24, 2020 Share Posted March 24, 2020 On 12/20/2019 at 7:39 AM, Ragheb said: All worked perfectly well on ESXI 6.7.0 U3 on Dell poweredge system. I just have one question after I erase the volume and which I need to install Mojave I get in the options Reinstall MacOS which fails when I press it with the error that it cannot contact MacOS recovery server. It does not have an option that read install macOS. Any idea how to fix this? Sincerely, Ragheb In case anyone else has this problem, I had it, and it was due to the system not having internet access. After I fixed that then I was able to "reinstall" without the error coming up. 1 Link to comment Share on other sites More sharing options...
AnonA2 Posted April 26, 2020 Share Posted April 26, 2020 (edited) I don't want vanilla installation. I want to install mac Os from Niresh's dmg (preferably old one 10.8.5 to not buy service for patent for battery percentage in Sierra + no sleep issues due to XCPM on Sandy Bridge). I have working, unlocked and connected with host ESXI via manual routing and I want to install it from USB. Do I need to install mojave (30GB max is fine), restore whole niresh disk using acronis or sth and then I would have not contrived working distro with gpu and all stuff on Hypervisor Type-0 better than QEMU? Edit: Added smc.version = 0 in advanced edit configuration, usb device, forced mac os to boot to bios, selected usb devices and it installed no problem. However vmware tools darwin.iso is missing, where can I download ESXI vmware tools ????????????????? 10.3 darwin.iso would not work from there on ESXI 6.5? I get freaking bootloop after adding gpu pci, esxi is worthless. Avoid it. Edited April 29, 2020 by AnonA2 Link to comment Share on other sites More sharing options...
Recommended Posts