Jump to content

Mac OS X on ESXI Server


  • Please log in to reply
22 replies to this topic

#1
Zimboy

Zimboy

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
I am new to virtualization so my questions may seem basic but I still need to ask.

I want to to run a Mac Os on my EsSXI 5.5 server. It does have support for Mac OS but it is not a Mac Server.

So my questions are:
Do i still need to use the unlocker?
Can I use my OSX 10.6 Install DVD with the internal DVD or do I need to create an install DVD?
If I need to create an install DVD how do I do that and should it be an ISO?
Do I need to make any changes in the bios

What would the steps be that I would need to follow to set up the Mac OSX on my non Mac environment?

This will be used as a test environment only.

Thank you very much for you help as I enter the world of virtualization.

#2
MSoK

MSoK

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 943 posts
  • Gender:Male
  • Location:Darlington UK

I am new to virtualization so my questions may seem basic but I still need to ask.

I want to to run a Mac Os on my EsSXI 5.5 server. It does have support for Mac OS but it is not a Mac Server.

So my questions are:
Do i still need to use the unlocker?
Can I use my OSX 10.6 Install DVD with the internal DVD or do I need to create an install DVD?
If I need to create an install DVD how do I do that and should it be an ISO?
Do I need to make any changes in the bios

What would the steps be that I would need to follow to set up the Mac OSX on my non Mac environment?

This will be used as a test environment only.

Thank you very much for you help as I enter the world of virtualization.

Zimboy,

 

Welcome to InsanelyMac, definately the right place to be for help running OS X under ESXi. OS X 10.6 to 10.9 all run well on ESXi 5.5, so to answer your questions:

 

1. Yes, you still need the unlocker if you are not running ESXi on Apple hardware, ESXi checks for Apple hardware (SMC) and disables OS X if it is not Apple hardware, the unlocker removes this check.

2. Yes, but only if your OS X 10.6 Install DVD is a retail copy, not one supplied with Apple Mac hardware. Alternatively if you have a running Mac download Mavericks (10.9) "free" from the App Store, you can create a DMG file from the download which can be used to install Mavericks under ESXi 5.5, see link at the bottom of this post.

3. ESXi supports installing OS X from Retail DVD, ISO or DMG.

4. In terms of the ESXi host it must have an Intel processor, and have VT-x enabled in BIOS.

 

Below find a couple of links which will help you getting OS X up and running in ESXi:

 

Link to Donk's Unlocker thread:

http://www.insanelym...-os-x-unlocker/

 

Link to MSoK's How to thread, not written specifically for ESXi but still plenty of helpful information, including creating a bootable OS X 10.9 DMG image:

http://www.insanelym...0-or-player-56/

 

Link to MSoK's Nested OS X under ESXi thread, if you ignore the bit about installing ESXi under Workstation, the rest should be helpful:

http://www.insanelym...workstation-10/

 

Link to Zenith432's Enhanced Graphics thread:

http://www.insanelym...v125/?p=1971067

 

Link to Zenith432's Graphics files:

http://sourceforge.n.../files/Display/

 

Special thanks to Donk and Zenith432 for all the effort in getting OS X running in VMware.



#3
Zimboy

Zimboy

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts

MSoK

 

This is what I have tried so far and here is where I am at.

 

  • I installed the unlocker by using SSH and going to the directory where the files where located and using ./install.sh
  • The install appears to have completed
  • Now when I try to install the MAC OS I get the gray VMWare screen then I get a gray screen with the apple logo then it flashes back to the VMWare screen again and it just keeps looping.
  • Before attempting to do the install from the ISO I created a new virtual machine with a new  virtual disk
  • I then set the virtual machine to boot from the ISO and set the virtual CD ROM to connect when the VM was powered up
  • When it startes the boot process is when it loops between VMware and the apple logo screens
  • Should I not have created the virtual disk or did I miss something else?

Also my connection to the ESXI server seems to be much slower now as I am getting time out errors now but I am not sure if this has anything to do with the MAC OS or if it is a different issue all together.

 

I will go back and read through the threads that you link to but could sure use some help.

 

Thanks.



#4
subcan

subcan

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

Zimboy,

 

Welcome to InsanelyMac, definately the right place to be for help running OS X under ESXi. OS X 10.6 to 10.9 all run well on ESXi 5.5, so to answer your questions:

 

1. Yes, you still need the unlocker if you are not running ESXi on Apple hardware, ESXi checks for Apple hardware (SMC) and disables OS X if it is not Apple hardware, the unlocker removes this check.

2. Yes, but only if your OS X 10.6 Install DVD is a retail copy, not one supplied with Apple Mac hardware. Alternatively if you have a running Mac download Mavericks (10.9) "free" from the App Store, you can create a DMG file from the download which can be used to install Mavericks under ESXi 5.5, see link at the bottom of this post.

3. ESXi supports installing OS X from Retail DVD, ISO or DMG.

4. In terms of the ESXi host it must have an Intel processor, and have VT-x enabled in BIOS.

 

Below find a couple of links which will help you getting OS X up and running in ESXi:

 

Link to Donk's Unlocker thread:

http://www.insanelym...-os-x-unlocker/

 

Link to MSoK's How to thread, not written specifically for ESXi but still plenty of helpful information, including creating a bootable OS X 10.9 DMG image:

http://www.insanelym...0-or-player-56/

 

Link to MSoK's Nested OS X under ESXi thread, if you ignore the bit about installing ESXi under Workstation, the rest should be helpful:

http://www.insanelym...workstation-10/

 

Link to Zenith432's Enhanced Graphics thread:

http://www.insanelym...v125/?p=1971067

 

Link to Zenith432's Graphics files:

http://sourceforge.n.../files/Display/

 

Special thanks to Donk and Zenith432 for all the effort in getting OS X running in VMware.

 

Hey MSoK,

 

I have been pulling my hair out trying to install OSX 10.6 on an ESXi 5.5 machine. 

 

I first tested the installation process on my personal desktop with I7 processor using ESXi 5.5 installed in Workstation 10. I had no problems with this. 

 

Now I have been trying on a bare-metal ESXi 5.5 machine and I continue to get a boot loop.

 

I noticed that you said in #4 "ESXi host it must have an Intel processor, and have VT-x enabled in BIOS" 

 

This machine I have been working on has a AMD 8 core processor. Could this be my issue?

 

Thanks for any advice,

SUB



#5
Donk

Donk

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,951 posts
  • Gender:Male
  • Location:Manchester UK

 

This machine I have been working on has a AMD 8 core processor. Could this be my issue?

 

 

Yes- you will need to find an AMD kernel for OS X. Apple do not support non-Intel CPUs, and so a recomplied mach_kernel is needed to boot on AMD. MSoK and myself do not have any AMD equipment but look in the developers sub-fourm here and you may find some help.



#6
subcan

subcan

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

Yes- you will need to find an AMD kernel for OS X. Apple do not support non-Intel CPUs, and so a recomplied mach_kernel is needed to boot on AMD. MSoK and myself do not have any AMD equipment but look in the developers sub-fourm here and you may find some help.

 

Hey there Donk,

 

Thank you for the quick reply. You pointed me in the right direction.

 

This is a great forum... full of great info.

 

I ended up finding a working solution the installation of OSX 10.6 on a bare-metal ESXi 5.5 AMD machine.

 

This is what I did: (for those pulling their hair out too)

 

For ESXi 5.5:
Create ISO image of OSX 10.6 Installation Disk
- use Linux (windows does not create full ISO image due to inability to read format)
$ sudo dd if=/dev/cdrom of=cd.iso  -- link for info
 
In vSphere 5.5 Client create a new VM 
Do not start VM 
 
Then add VMware Unlocker for OS X 1.2.0 to datastore
- from InsanelyMac... Link
 
SSH into ESXi (with putty or similar) and go to /vmfs/... and find location of datastore where VMware Unlocker was saved.
chmod +x all three files that came with VMware Unlocker download
./install.sh   (to run unlocker script)
Restart ESXi
 
For ESXi 5.5 on AMD Processor
Click "Edit VM settings" and choose "Options" tab, then "General" and then "Configuration Parameters..."
Insert the following "between quotes" on appropriate lines
 
smc.present = "FALSE"
ich7m.present = "TRUE"
firmware = "efi"
usb.present = "TRUE"
hostCPUID.0 = "0000000668747541444d416369746e65"
hostCPUID.1 = "00500f100002080000802209178bfbff"
hostCPUID.80000001 = "00500f1000001242000035ff2fd3fbff"
guestCPUID.0 = "00000006756e65476c65746e49656e69"
guestCPUID.1 = "000006f10000080080802209078bfbff"
guestCPUID.80000001 = "00500f1000001242000003e92bd3fbff"
userCPUID.0 = "0000000668747541444d416369746e65"
userCPUID.1 = "00500f100002080080802209078bfbff"
userCPUID.80000001 = "00500f1000001242000003e92bd3fbff"
 
Then in "CPUID Mask" add the following "between quotes" on appropriate lines to "AMD override" tab. Makes OSX thinks that it is installing on Intel Processor.
 
cpuid.0.ebx="0111:0101:0110:1110:0110:0101:0100:0111"
cpuid.0.edx="0100:1001:0110:0101:0110:1110:0110:1001"
cpuid.0.ecx="0110:1100:0110:0101:0111:0100:0110:1110"
cpuid.1.eax="0000:0000:0000:0000:0000:0110:1111:0001"
 
Now "Power on the VM" and install should work correctly.
 
After installation completed, run updates a few times to get yourself completely up to date
 
Enjoy your new OSX 10.6 operating system!
 
This may work the same for newer OSX variations. Let me know
 
Have a day,
SUB


#7
Donk

Donk

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,951 posts
  • Gender:Male
  • Location:Manchester UK

Hi SUB

 

That's an interesting approach which I haven't tried. I think you can remove the hostCPUID, guestCPUID and userCPUID values as they are for information only. (Go that from VMware engineer on their forums). To help me look at this would you be prepared to send me the vmx and vmware.log files for you guest please? There should not be any private information in them. If you could attach them to a post or create a GIST it would potentially help the community.

 

Thanks



#8
wingshigh.g

wingshigh.g

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts

Subcan, I applied your trick on my machine but it didn't work. the system gives me an error message (something like BSD cannot fine its thread, sorry I did't really memorize it) and rebooted itself.

 

What is the CPU on your system?

 

Thanks,


MSoK,

 

You mentioned "ESXi supports installing OS X from Retail DVD, ISO or DMG", I did not find option for the DMG, could you let me know where that option is? Thanks.



#9
Donk

Donk

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,951 posts
  • Gender:Male
  • Location:Manchester UK

Subcan, I applied your trick on my machine but it didn't work. the system gives me an error message (something like BSD cannot fine its thread, sorry I did't really memorize it) and rebooted itself.

 

What is the CPU on your system?

 

Thanks,


MSoK,

 

You mentioned "ESXi supports installing OS X from Retail DVD, ISO or DMG", I did not find option for the DMG, could you let me know where that option is? Thanks.

 

What is your AMD CPU? As for DMG, just mount it as an ISO and it should work.



#10
wingshigh.g

wingshigh.g

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts

Mine is FX-8320. Sorry I didn't mention that. My motherboard is the GA-FX990-UD5 Rev1.0.



#11
Donk

Donk

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,951 posts
  • Gender:Male
  • Location:Manchester UK

Mine is FX-8320. Sorry I didn't mention that. My motherboard is the GA-FX990-UD5 Rev1.0.

Can you attach (not post inline) the vmware.log file please? I am gathering information for some tests. It would be great to have had one form an AMD system that worked.



#12
wingshigh.g

wingshigh.g

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts

Donk, I have switched the ESXi back to its original. But I will find a time to do the test again and send you the error log. Thanks.



#13
subcan

subcan

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

Can you attach (not post inline) the vmware.log file please? I am gathering information for some tests. It would be great to have had one form an AMD system that worked.


Donk,
I have been away from my computer. I will be home later tonight and will post the log file then.

Sorry for the delay.

This should work on any AMD system. It did not appear that anything was system specific.

I had posted exactly what I did (documented as I did it) in order.

SUB

#14
Donk

Donk

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,951 posts
  • Gender:Male
  • Location:Manchester UK

Donk,
I have been away from my computer. I will be home later tonight and will post the log file then.

Sorry for the delay.

This should work on any AMD system. It did not appear that anything was system specific.

I had posted exactly what I did (documented as I did it) in order.

SUB

 

 

That would be great. Also with the same log from wingshigh.g could help us come up with some guidelines for AMD CPUs without needing modified kernels. I personally do not have access to AMD based system, so am reliant on others to help out here.



#15
subcan

subcan

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

That would be great. Also with the same log from wingshigh.g could help us come up with some guidelines for AMD CPUs without needing modified kernels. I personally do not have access to AMD based system, so am reliant on others to help out here.

 

Hey there Donk,

 

The vmware.log file is attached to this post as vmware.log.txt. 

 

I have also edited some of the IP and file paths, just for my own comfort sake. Should not impact what you are looking for though.

 

I had some difficulty installing the vmware tools (which I believe explains all the excess stuff in last half of log) but later figured out how to do it with the darwin_snow.iso file.

 

Hopefully wingshigh.g also posts his log file so that we can compare.

 

I hope that it helps.

 

Please post anything of note. 

 

SUB

Attached Files



#16
wingshigh.g

wingshigh.g

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts

Donk, attached is my vmware.log. I created a new VM, put in all the code suggested by Subcan, took one of my Lion virtual disk attached to the VM which I know it worked on Intel CPU ESXi. Powered on the machine, it could gave kernel panic if I chose Guest system being Mac OS X; it will go into reboot loop if I chose FreeBSD 64bit.

 

Let me know if you need more information.

Attached Files



#17
subcan

subcan

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

Donk, attached is my vmware.log. I created a new VM, put in all the code suggested by Subcan, took one of my Lion virtual disk attached to the VM which I know it worked on Intel CPU ESXi. Powered on the machine, it could gave kernel panic if I chose Guest system being Mac OS X; it will go into reboot loop if I chose FreeBSD 64bit.

 

Let me know if you need more information.

 

Hey there wingshigh.g,

 

I just went through your log file next to mine.

 

There are a few differences.

 

The big one I saw was on line 280 (your log): <2014-03-08T03:09:49.807Z| vmx| I120: DICT               smc.present = TRUE>

 

This is supposed to be set to FALSE.

 

From google search on smc: smc - The System Management Controller (SMC) is an internal subsystem introduced by Apple Inc. with the introduction of their new Intel processor based machines in 2006. It takes over the functions of the SMU. Apple has released updates for this system in order to address power or sleep issues in several recent models.

 

I don't know how I missed that on my directions posting. (must have been tired when I typed it out)

 

Your log shows failure just after line 880. On my log this is line 890. 

 

My log; line 892: <2014-02-17T00:05:29.729Z| vcpu-0| W110: AppleSMC_SetCheckForServer(1) called without an SMC.> shows that the SMC is being ignored.

 

Can you give this a try again but change that the "smc.present" to FALSE?

 

I also assigned 4GB of ram for the install. Some post somewhere suggested that, but I really don't think that that could cause an issue. I just have lots of ram so I didn't care.

 

I hope that this helps.

 

Sorry for the mistake in my direction list.

 

SUB


To All,

 

I edited my original instructions to fix the mistake of smc.present="TRUE" to smc.present="FALSE"

 

Sorry for the typo.

 

SUB

Attached Files



#18
wingshigh.g

wingshigh.g

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts

Subcan,

 

Please see my log below. I am still getting the kernel panic.


Subcan, when I went back to the configuration, I found that all the code I put in got changed by the system, this is what I have after I powered on and powered off the VM after getting the kernel panic:

 

hostCPUID.0 = "0000000d68747541444d416369746e65"
hostCPUID.1 = "00600f20000808003698320b178bfbff"
hostCPUID.80000001 = "00600f201000000001ebbfff2fd3fbff"
guestCPUID.0 = "0000000d756e65476c65746e49656e69"
guestCPUID.1 = "000006f1000208009698320b178bfbff"
guestCPUID.80000001 = "00600f201000000000010be92bd3fbff"
userCPUID.0 = "0000000d68747541444d416369746e65"
userCPUID.1 = "00600f20000808009698320b178bfbff"
userCPUID.80000001 = "00600f201000000000010be92bd3fbff"
 
I did it twice just to confirm I didn't mis-type. Is there anything I missed?

Attached Files



#19
rtangwai

rtangwai

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts

This is going to sound stupid but I got this to work installing OS X 10.6 on my AMD host using ESXi 5.5 Build 1474528 by setting smc.present="TRUE".

 

I had tried this last Wednesday (using the original "flawed" instructions) not knowing it shouldn't work on a USB key boot.  Strangely enough it kinda worked - OS X installed fine but for the non-OS X VMs the console in vSphere Client remained blank.

 

I put in a small hard drive today to replace the USB key as the boot device for ESXi so I can run the patch on it.  I also installed another drive to act as the datastore for this VM.  Instead of copying the VM from it's original datastore I figured it was easier to simply create a new VM and possibly avoid any weirdness due to the incomplete nature of the previous patch.  When I tried to install OS X 10.6 it got stuck on the loading screen (grey, coloured wheel spinning).

 

Tried repatching, uninstalling and reinstalling the patch, using an ISO instead of a DMG, recheck the edits very very carefully, nothing.

 

Did some Googling, found nothing other than unlocker should work with this build.

 

Finally I decided to re-read this entire thread in case someone experienced something similar when I came across the smc.present edit - since that was *TODAY* it meant that I had put it to "TRUE" on my semi-successful attempt but "FALSE" today.  Put it to "TRUE" in the VMX file and it works!

 

My ESXi host hardware is an AMD FX8350 @stock clock, GA-990FXA-UD5 Rev. 3 motherboard w/latest BIOS, 32GB RAM.

 

Just a note for anyone trying this.  I did *NOT* get a kernel panic with either setting.



#20
Donk

Donk

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,951 posts
  • Gender:Male
  • Location:Manchester UK

 

The big one I saw was on line 280 (your log): <2014-03-08T03:09:49.807Z| vmx| I120: DICT               smc.present = TRUE>

 

This is supposed to be set to FALSE.

 

 

Actually you need it on, as my unlocker fixes it up so that there is an SMC present. Thanks for the other details I ill take a look at the CPUID details as that is where the "secret suace" will be.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy