January 17th, 2012 // 9:44 pm @ Paraguin
If you haven’t read, please first see the following
[Update for quick links 3/15/2012]
ESXi 5.0 Update 1 has been released!!!! Thanks eloscurosecreto for the heads up!
VMware ESXi 5.0 Installable Update 1 is now available (https://downloads.vmware.com/d/details/esxi50u1/dHRAYndkZSpidHclZQ=)
[Update for quick links 1/30/2012]
To make linking to the other pages easier….
- The Mac Mini VMware ESXi 5 Server – Part 1 (Research)
- The Mac Mini VMware ESXi 5 Server – Part 2 (Installation)
- The Mac Mini VMware ESXi 5 Server – Part 3 (Follow Up)
- OS X on a Mac Mini with VMware ESXi 5
- This then leads us to the user comments and Matt asked a question about Mac OS X running virtualized within ESXi 5 ontop of the Mac Mini 2011…
Ok, so as Matt pointed out regarding the smcPresent variable. Based on this other blog that he so kindly referred to at Cloud-Buddy. There is indeed the value and it is True. So the next steps are to install OS X on the VMware ESXi 5 host and actually be able to obey the EULA that was set out. For all those previous X-serve fans, rejoice we all now have a new solution.
The following is what you’ll see when going to: https://address-of-your-host/?moid=ha-host&doPath=hardware
1) Accept the self signed certificate, unless you’re super fancy and paid up for one or use an internal CA server.
2) You’ll see the login prompt. If all else fails, use the root username and the password you assigned during installation
3) You’ll see the following and notice, smcPresent is now true instead of false as in the Cloud-Buddy blog.
Sources for Mac OS X Install on VMware ESXi
Here are the following sites used as reference to figuring out this whole mess.
- Tickett’s Blog – Mac OS X Lion on ESXi 5 –> This method was with Donk’s ESXi 5 Mac OS X Unlocker. Which is actually not needed since smcPresent is true. The commands were useful when testing a variety of DMG and ISO files and understanding what was going on the background.
- VMware OS X 10.7 –> VMware’s page on how to install OS X 10.7 in a virtual machine on ESXi 5 and VMware Fusion. Though brief, it was somewhat helpful.
- VMware OS X 10.7 Lion (12/15/2011) –> This blog entry is important as it has support for 10.7 in this patch update. This is the only link that we found related to this patch inforamtion. **Beware** Before you patch your Mac Mini, make sure you have a copy of your NIC card driver somewhere. You’ll see why later.
- VMware Patching –> How to patch ESXi though the commands are slightly out of date for ESXi 5.
- VMware Ethtool –> Utilizing the ethtool from the command line in order to determine that the NIC card driver was wrong.
- VMware ESXi 5.0 Driver CD for Broadcom NetXtreme I Gigabit Ethernet Driver – 3.120h.v50.2 –> Again, needed the driver post patching.
This wasn’t as fun initially to get going as it would seem since you would think that because VMware wrote a brief document on how it works, that it’d work out of by the box immediately since it was sitting on Apple hardware. The reality was that the brief VMware documentation and the scattered amounts of information everywhere on the internet was all fragmented due to the Unlocker program that’s been in use for Hackintosh. Though it’s fantastic to see the Hackintosh people going at it, it’s just makes it a little bit harder to find the nuggets of information to get this going when things are not going to specification.
After all the struggle, in the end, this probably has become the single most versatile in home dev / SOHO box for multi-platform testing without having to sort through parts and put it together yourself and can always return the Mac Mini back to its original form if you ever wanted to resell it or pass it on to other non-techie family members. So with that said, here’s how to get Mac OS X 10.7 running on VMware ESXi 5.
1. Materials Needed
- Mac OS X Lion (DMG or ISO) –> The first and foremost thing you need before you even start is Mac OS X Lion 10.7.0 or 10.7.1. Based on the VMware compatibility link along with their current patching, they have dedicated that this patch only works with 10.7.0 and 10.7.1. Also as a note, 10.6.x client is not supported if you read carefully. Only 10.6.x Server is supported and since we only have access to 10.7 client and 10.7 server, we decided to use 10.7 client since we had a MacBook Pro laying around that started its life in the 10.5.x days and has been updated. For those asking about 10.7.2, we tried it. No dice currently (1/22/2012) until the next VMware patch with support.
- Mac Mini 2011 with ESXi 5 Installed –> See Part 2 regarding this if you don’t have one already.
- VMware Broadcom NetXtreme I Gigabit Ethernet Driver –> You’ll need this after patching VMware.
- VMware PatchESXi500-201112001 –> This patch includes the support for 10.7.0 and 10.7.1
- Mac Mini 2011 accessible –> Make sure your box is accessible with keyboard, mouse, and monitor because the NIC driver make cut out on you.
2. Patching VMware ESXi 5
- Download the VMware Patch ESXi500-201112001.zip (This is as of 1/22/2012)
- Upload the file to the VMware datastore through VI Client.
- Also highly recommended that you upload the Broadcom NIC driver to the datastore as well
- While you’re at it, upload your DMG or ISO file of Mac OS X Lion 10.7.0 or 10.7.1 if you want a faster install.
At this point, make sure you have physical access to the box.
- Shut down any VMs that are running on your box
- Enter Maintenance Mode
Initiate an SSH Session to the ESXi Host or use the ESXi Shell Access with a keyboard and monitor.
Run the following command to patch: esxcli software vib install -d /vmfs/volumes/datastore_location/ESXi500-201112001.zip
In the first section of red, you can see the command run. The second block of red shows that the Broadcom TG3 NIC card driver being uninstalled by the patch update. After exiting the SSH session, you can immediately see that the local system is unable to ping the remote system. The driver has been updated and the system may not respond to pings. Never fear as the driver can be updated again.
3. Patching the Broadcom NIC Driver again
So after all the effort the first time around, it wouldn’t be fun unless you had to do it again right?
- See Part 2 again and read up on the how to update the driver as we won’t try to rehash it here.
- If you’re at the ESXi Shell, and uploaded your file ahead of time, then you’re ahead of the game. Good job!
- One key thing to remember is that if you’re trying to mount the CD again and you didn’t have your SuperDrive plugged into the system when it booted up, you’ll get an error when you try to mount the CD. Keep the SuperDrive plugged into the USB port and then reboot your Mac Mini again. Then try to access via the ESXi Shell and you’ll be able to mount and read the file again.
This is what the error will look like if you need to reboot your system with the SuperDrive plugged in first:VSHISHCmdSet():Set failed: Not supported
4. Getting Mac OS X Lion Installed
The current build level for ESXi will increase to: 515841. Next is to create a VM with the properties for a Mac OS X install. *Tip* If you want a faster install, then upload the DMG or ISO file to the local datastore…. YES, the VMware product can read the DMG file though it does default to *.iso during the browse. We did our install with DMG since it would be how the lazy people do it since converting it requires more effort.
5. Installing VMWare Tools on Mac OS X
After restarting, you will notice that it shows that 10.7.2 as the direct update from 10.7.0. Upgrading will cause the system to not boot anymore from our current testing. Please let us know your comments from your tests. So before you start, give it a VMware Snapshot and have some fun!