Jump to content

ESXi 5 Mac OS X Unlocker


  • Please log in to reply
752 replies to this topic

#341
madmax14304

madmax14304

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
Thanks for the info MSoK!

#342
mattpayerle

mattpayerle

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts

Just for clarification, VMware ESXi 5.1 Supports OS X including Mountain Lion, but ONLY on Apple hardware, in fact officially MacPro5,1 (Intel Xeon 56x Series) and Xserve3,1 (Intel Xeon 55xx Series), the MacPro was added with the release of 5.1.

So if you install ESXi 5.1 on any other hardware you will need the "Unlocker" currently v1.1.0, it removes the Apple hardware check amongst other things.

Hope this helps, MSoK.


So I am working on a small project at our office - we have a Mid2011 MacMini5,3 and got 5.1 installed on it without any issues (well, minor issue - Ethernet didn't work, enter: http://paraguin.com/...2-installation/) In any case, got it working, logged into the console view and tried first booting to a USB installer of Mountain Lion (but in reality the USB installer had all three, more to come on this) - but when I start the VM it shows the vmware gray screen, it then shows the apple and about 5 seconds later it reboots. (over and over again). I installed the patch just for giggles and it keeps rebooting.

I am currently copying the InstallESD.dmg to the datastore to boot from this as I heard this is now a feature? But any thoughts here? Something simple I missed? As always, very much appreciated! Have a good one!


---Edit---
I'm good now - it did accept the DMG without issues. Going through the install process now.

Edited by mattpayerle, 11 December 2012 - 06:10 PM.


#343
MSoK

MSoK

    InsanelyMac Legend

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

So I am working on a small project at our office - we have a Mid2011 MacMini5,3 and got 5.1 installed on it without any issues (well, minor issue - Ethernet didn't work, enter: http://paraguin.com/...2-installation/) In any case, got it working, logged into the console view and tried first booting to a USB installer of Mountain Lion (but in reality the USB installer had all three, more to come on this) - but when I start the VM it shows the vmware gray screen, it then shows the apple and about 5 seconds later it reboots. (over and over again). I installed the patch just for giggles and it keeps rebooting.

I am currently copying the InstallESD.dmg to the datastore to boot from this as I heard this is now a feature? But any thoughts here? Something simple I missed? As always, very much appreciated! Have a good one!


---Edit---
I'm good now - it did accept the DMG without issues. Going through the install process now.

Matt,
As you have found ESXi 5.1 supports booting from DMG as well as ISO, not the case in W9 or P5. Also you should not need the "Unlocker" as ESXi should recognise your 2011 Mac Mini hardware, although some issues with the new 2012 Mac Mini 6,2, see the VMware link below which has a relevant work around, pending an official VMware patch release:

http://communities.v...tart=0&tstart=0

#344
mattpayerle

mattpayerle

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts

Matt,
As you have found ESXi 5.1 supports booting from DMG as well as ISO, not the case in W9 or P5. Also you should not need the "Unlocker" as ESXi should recognise your 2011 Mac Mini hardware, although some issues with the new 2012 Mac Mini 6,2, see the VMware link below which has a relevant work around, pending an official VMware patch release:

http://communities.v...tart=0&tstart=0



Thanks MSoK! The issue I found was trying to boot the VM from the attached USB drive - once I booted to the DMG it worked beautifully!

#345
MSoK

MSoK

    InsanelyMac Legend

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

Thanks MSoK! The issue I found was trying to boot the VM from the attached USB drive - once I booted to the DMG it worked beautifully!

Matt,
Great news, again just for information OS X ML 10.8.3 and Lion 10.7.5 are running fine using the latest ESXi 5.1 build 838463, with the "Unlocker" v1.1.0 if not on Apple hardware.

#346
SaiTech

SaiTech

    InsanelyMac Protégé

  • Members
  • Pip
  • 1 posts
Hi, I have successed to run OSx 10.7.5 on Vmware Workstation 8 and 9. I think I have control over the setup of OS X unlocker on ESXi 5.1 but I only get running wheel under the apple wthe the OSX boot. How to troubleshoot this.

#347
oli-j

oli-j

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts
  • Gender:Male
  • Location:High Wycombe, UK
Hi, Anyone got an up to date link for the unlocker? The file is no longer available... :(

(I've been googling like crazy all morning and with no success!)

#348
Donk

Donk

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,954 posts
  • Gender:Male
  • Location:Manchester UK
Link at top of first post still works. The direct link is http://www.mediafire...761goegm1e25cw2

#349
oli-j

oli-j

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts
  • Gender:Male
  • Location:High Wycombe, UK
That's really odd - the page would skip to a 404 error really quickly in win /mac and multiple browsers. Had to use a well timed press of the escape key to stop the page so I could download it. cheers for the quick reply.

#350
daft

daft

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
I noticed there are so many posts of different attempts to install Lion or Mountain Lion into ESXi 5.0 or 5.0u1 or 5.1. It's rather quite confusing.

I'm wondering if someone could just simply post whether or not they've successfully installed Mountain Lion on 5.1 (fresh install) or must I have to downgrade my ESXi to some earlier release first? would hate to since I've already got plenty of VMs running in 5.1.

On a side note, someone mentioned creating a VM in version 9 via vCenter. Is there really a need to do so? Seems someone had succesfully installed 10.8.x on VM9 and I'm wondering if VM9 is truly a prerequisite to getting it successfully installed.

thanks.

#351
Ken73

Ken73

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts
Just wanted to stop in and say "THANKS!" to all involved in making this work! A day of reading this thread multiple times and Googling several tricks led me to a successful install of ML on ESXi 5.1!

Specs on my ESXi play box:

White box ESXi server: Supermicro X7DBN, twin Intel E5450 Xeon 3 gHz procs. 32gb RAM, 1tb of RAID 5 storage (including the hypervisor.) Been running this setup for a good 3+ years now as my test/play box at home. This box had originally started out life as an ESXi 3.x box and I've upgraded it over the years. Going from 5.0 to 5.1, I just downloaded the ISO and burned a copy; let the installer do the work for me. (And yes, the procs are E5450's, which from my understanding is some of the first Xeon's to have the VT-X bit, which I verified was on in BIOS.)

Figured I would share what I went through (and hopefully give a few of you a laugh.)

First, I found this thread - read all 18 pages over a few days in my "spare time" - well worth reading as you pick up lots of tricks through the way.

Second, got enough nerve up to download it and realize others had had success. Copied the contents (the esxi folder within the download) to my datastore. OK! Great! Now how the heck do I execute this? Read somewhere in here where I should probably do chmod +x at the command line.. how do I get to a command line on this thing? (Did I mention I've never used a command line on this machine?) Googling it finally leads me to turn on SSH under the Configuration>Security Profile. Got it - now to use PuTTY to SSH into the box. Where the heck is this stuff? I've used Linux before (my first stint was on 386's back in the day) so I had an idea of how to get around, finally found the /vmfs directory and made my way to where I had copied the files. Ran the "chmod +x *" trick just to be sure.

So then the dunce cap went on; I typed "install" (n00b mistake) and the ESXi installer came up. YIKES! This doesn't look right.. exit out of that! Now I try install.sh - that doesn't work either, can't find it. Can't find it? It's right there! Google some more.. forgot my old Linux.. okay, so it's "./install.sh" ..... finally! Patched just fine and dropped me back at a prompt. Reboot the host. Crossed my fingers but it booted up just fine and my auto-load VM's came up as normal.

Did I mention I have a Mac Mini? Great! I've got the install DVD here somewhere.. a quick search reveals 10.6.2 Snow Leopard on DVD! Let's give that a shot. Make a new VM, set the CD to the host device and let's go! I get a gray Apple screen and the twirly thing at the lower part of the screen is whizzing around. Looks good so far. Screen pops up with a language setting, I choose English. Progress bar appears and BAM! "Cannot install OSX on this computer." Really? I went through all that for nothing? Google some more.. turns out, the discs you get with your Mac are hardware-specific and looking for specific hardware. They won't work. Fine. Gotta be a way to get a generic DVD, right? Apple sells Snow Leopard for $20 on a DVD.. would really rather have the latest.

I haven't upgraded my Mac Mini to Lion or Mountain Lion yet - wonder if I can use those? Google some more - come to find out you can't get L or ML on DVD, so you have to download it. OK, so I do a little more reading about making a disc for it and turns out, you can download it right from the App store but instead of installing it right off (cancel the install after you've spent the $20 and 10 hours downloading it) copy the installESX.dmg file out of the installer, and put it in your datastore. Got it - hope like heck this is bootable!

So I whacked the other VM I made, let's make a new one; 1 proc 1 core (just as a test) - 2gb RAM, 40gb drive. Using installESD.dmg as the CD image. For some reason my ESXi 5.1 only shows up to Lion (10.7) so I chose that as the OS. Power on.. boots up to the CD... looks good! I get the menu for installing, restoring, disk util.. select install! Agree, agree, agree..... select disk to install to... but no disk shown? Wrong SCSI controller? Shutdown, try another one. Boot up, no go. Shutdown, try another one. Boot up, no go. Did this three times (yea I know, n00b err) .. still no go. Read through this thread again - someone else used the standard SCSI controller? WTH am I doing wrong? Maybe you have to partition it manually (?) before it sees the disk. Change back to default SCSI controller, boot up and choose the disk utility, create a partition, then try the installer.

VIOLA! Installed ML 10.8.2, seems to run fine other than when I click on "launchpad" to see what that was, it froze the machine. Installed VMWare Tools from the darwin.iso in the downloaded patch file. Now I'm having to remember all my tricks that I used to setup my Mini, but that's not a bad thing.

So there you have it, if a long-winded old country boy on a tractor can do it, you can too. Latest version of Mountain Lion (10.8.2.) on ESXi 5.1, fresh install, no problem. Thanks again to everyone on here that made it possible!

p.s. - Daft, YES.

#352
oli-j

oli-j

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts
  • Gender:Male
  • Location:High Wycombe, UK
Richard post - have bookmarked it and will give it a go in the new year! Thanks!

#353
daft

daft

    InsanelyMac Protégé

  • Members
  • Pip
  • 2 posts
IM Protoge,

ahhhhh, thanks. you gave me the clue i needed. after making several attempts to install the Mac OS 10.8.2 image onto ESXi, i was finally clued in that i could install the OS via choosing the DMG image directly and not having to convert it via hdiutil. this was implied since ESXi installer would always prompt for an ISO image and nothing else. but by choosing the drop down menu to list "all files" i could choose the DMG image and it works.

so here's the breakdown for those that are interested and don't want to be confused as i by having to read into each one of these posts prior to mine.

steps i took:

- install ESXi 5.1, fresh install.
- enable the SSH and ESXi shell in 'security profile' (you can easily google this to figure out how)
- copy over the unlocker 1.1.0 into the datastore. (your default is ideal) make sure not to run all this within the root directory ('/') but in some other sub directory (such as '/tmp'), otherwise you will blow away your /bin directory like someone had done since they have no understanding of unix filesystems and what the general hierarchy is like.
- run './install.sh' within the esxi subfolder of the unlocker folder.
- reboot ESXi
- create new VM, I generally choose the default settings (as ESXi will recommend).
- before finishing the creation of the VM, you'll choose to edit settings near the end. modify CD/DVD drive and choose Datastore ISO file by clicking browse. choose the pull down menu and allow it to display 'all files' instead of just ISO Image. choose your DMG image.
- make sure you clicked on 'Connect at power on'
- click 'Ok' to close, and start the VM. it'll read the DMG image for install.
- make sure you erase your partition, and the installer will create a new MacOS partition for you, exit and install.
- it'll reboot and you're good to go.

simple.

#354
Ken73

Ken73

    InsanelyMac Protégé

  • Members
  • Pip
  • 5 posts

ahhhhh, thanks. you gave me the clue i needed. after making several attempts to install the Mac OS 10.8.2 image onto ESXi, i was finally clued in that i could install the OS via choosing the DMG image directly and not having to convert it via hdiutil. this was implied since ESXi installer would always prompt for an ISO image and nothing else. but by choosing the drop down menu to list "all files" i could choose the DMG image and it works.


Yep, I just went full steam ahead and chose "all files" and gave it a shot. I think it was MsoK that said you could just use it straight without any conversion, so that's what I did and it worked! I was originally going to try making a ML DVD, but everything I read said it was too big to fit on a single-layer disc, and I didn't have any dual-layer discs around so I just copied the DMG straight to the datastore. No ISO conversion necessary.

I should have a new license for Workstation 9 after the holidays, will give it a try on there as well.

#355
MSoK

MSoK

    InsanelyMac Legend

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

Yep, I just went full steam ahead and chose "all files" and gave it a shot. I think it was MsoK that said you could just use it straight without any conversion, so that's what I did and it worked! I was originally going to try making a ML DVD, but everything I read said it was too big to fit on a single-layer disc, and I didn't have any dual-layer discs around so I just copied the DMG straight to the datastore. No ISO conversion necessary.

I should have a new license for Workstation 9 after the holidays, will give it a try on there as well.

Ken and Daft,
Thanks for sharing your experiences installing ML on ESXi 5.1, welcome to the club, LoL! Just a heads up, the DMG you have of ML will not work with Workstation 9 or Player 5 mounting the .DMG, (ONLY Fusion 5 and ESXi 5.1 currently support mounting a .DMG), they still need to be in an ISO image format. So you can use hdiutil convert InstallESD.dmg -format UDTO -o InstallESD.iso on your MiniMac or your virtual instance of OS X, although this creates a .CDR file this can be renamed to .ISO, alternatively in Windows use MagicISO or ImgBurn to convert the .DMG file. The ISO image you have created will also work with ESXi 5.1 and unlike the DMG image will also work with ESXi 5.0 and 5.0u1.

#356
b419kid

b419kid

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
I found about the VMware Unlocker elsewhere when trying to run Mountain Lion in a vm. Worked perfectly. I wonder though: Do system updates work?

#357
MSoK

MSoK

    InsanelyMac Legend

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

I found about the VMware Unlocker elsewhere when trying to run Mountain Lion in a vm. Worked perfectly. I wonder though: Do system updates work?

What do you mean by system updates, if you mean OS X, i.e. 10.8.2 to 10.8.3, then yes, but better to download the combo update and install rather than doing a software update. If you mean VMware then you always need to re-apply the "Unlocker" following an update or patch.

#358
oli-j

oli-j

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts
  • Gender:Male
  • Location:High Wycombe, UK
Followed all the above steps but I keep getting the message: "The CPU has been disabled by the guest operating system. Power off or reset the virtual machine."

I'm running ESXi 5.1 + unlocker on an HP Proliant Microserver. It's an AMD Turion II Neo N40L cpu.

Starting to think that this isn't going to be possible...

#359
Donk

Donk

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,954 posts
  • Gender:Male
  • Location:Manchester UK
OS X does not run natively on AMD processors. There is work on this forum on a new kernel for AMD which may help. http://www.insanelym...th-amd-yes-amd/

#360
pip11

pip11

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts
  • Gender:Male

The vmware.log files for the machines themselves weren't written to by the power on attempts, so they won't be much use, that snippet came from hostd.log...I'll send it your way shortly.

I also just saw this in the kernel logs:

2012-11-06T04:30:40.418Z cpu0:6003)VmkAccess: 637: hostd-vix-poll: access denied:: dom:appDom(2), obj:vmxSys(66), mode:syscall_allow(2)
2012-11-06T04:37:19.983Z cpu0:6003)VmkAccess: 637: hostd-vix-poll: access denied:: dom:appDom(2), obj:vmxSys(66), mode:syscall_allow(2)
2012-11-06T05:21:12.758Z cpu5:6003)VmkAccess: 637: hostd-vix-poll: access denied:: dom:appDom(2), obj:vmxSys(66), mode:syscall_allow(2)
2012-11-06T05:36:40.141Z cpu5:1037388)VmkAccess: 637: vmx: access denied:: dom:appDom(2), obj:vmxSys(66), mode:syscall_allow(2)
2012-11-06T05:36:46.002Z cpu3:1041489)VmkAccess: 637: vmx: access denied:: dom:appDom(2), obj:vmxSys(66), mode:syscall_allow(2)

Yes, it is a cluster -- though that host just got kicked out of it. We upgraded, re-applied unlocker, unapplied unlocker, and re-applied unlocker. :)
Thanks for the swift response!


I just updated my ESXi host to 5.1.0b (build 914609, released 12/20/2012) and I'm having the same problem. My host is a single host, no cluster or vCenter. With the unlocker applied, the system works fine for the first couple of VM power-ups, but then power-ups fail.

Once power-ups start failing, if I run /bin/vmx from the command line:
/var/log # /bin/vmx
Error during version check: Failed to get vmkernel version: 0xffffffff

And these lines appear in vmkernel.log every time I try to run /bin/vmx
2013-01-04T19:09:35.149Z cpu0:88884)VmkAccess: 637: vmx: access denied:: dom:appDom(2), obj:vmxSys(66), mode:syscall_allow(2)
2013-01-04T19:09:35.149Z cpu0:88884)VmkAccess: 922: VMkernel syscall invalid (16384)

Uninstalling the unlocker fixes the problem. I've tried installing/uninstalling the unlocker twice since updating to 5.1.0b.





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