Jump to content
InsanelyMac Forum

1 Screenshot

About This File

Mac OS X Unlocker for VMware V2.0

 

Please ask questions in this thread http://www.insanelymac.com/forum/topic/303311-workstation-1112-player-712-fusion-78-and-esxi-6-mac-os-x-unlocker-2/

1. Introduction

 

Unlocker 2 is designed for Workstation 11, Player 7, ESXi 6 and Fusion 7.

 

If you are using an earlier product please continue using Unlocker 1

 

Version 2 has been tested against:

  • Workstation 11/12 on Windows and Linux
  • Player 7 & Workstation Player 12 on Windows and Linux
  • Fusion 7/8 on Mavericks and Yosemite
  • ESXi 6.0

The patch code carries out the following modifications dependent on the product

being patched:

  • Fix vmware-vmx and derivatives to allow Mac OS X to boot
  • Fix vmwarebase .dll or .so to allow Apple to be selected during VM creation
  • Fix libvmkctl.so on ESXi 6 to allow use with vCenter

  • Download a copy of the latest VMware Tools for OS X

Note that not all products recognise the darwin.iso via install tools menu item.

You will have to manually mount the darwin.iso for example on Workstation 11 and Player 7.

 

The vmwarebase code does not need to be patched on OS X or ESXi so you will see a

message on those systems telling you that it will not be patched.

 

In all cases make sure VMware is not running, and any background guests have

been shutdown.

 

The code is now Python as it makes the Unlocker easier to run and maintain on ESXi.

There are some challenges to write the code as ESXi has a subset of Python 2.7 which

constrains some modules that can be used.

 

2. Prerequisites

 

The code requires Python 2.7 to work. Most Linux distros, ESXi and OS X ship with a compatible

Python interpreter and should work without requiring any additional software.

 

Windows has a packaged version of the Python script using PyInstaller, and so does not

require Python to be installed.

 

3. Limitations

 

If you are using VMware Player or Workstation on Windows you may get a core dump.

 

Latest Linux and ESXi products are OK and do not show this problem.

 

IMPORTANT:

 

If you create a new VM using version 11 hardware VMware will stop and create a core dump.There are two options to work around this issue:

1. Change the VM to be HW 10 - this does not affect performance.

2. Edit the VMX file and add:

smc.version = "0" |

4. Windows

 

On Windows you will need to either run cmd.exe as Administrator or using

Explorer right click on the command file and select "Run as administrator".

 

win-install.cmd - patches VMware

win-uninstall.cmd - restores VMware

win-update-tools.cmd - retrieves latest OS X guest tools

 

5. Linux

 

On Linux you will need to be either root or use sudo to run the scripts.

 

You may need to ensure the Linux scripts have execute permissions

by running chmod +x against the 2 files.

 

lnx-install.sh - patches VMware

lnx-uninstall.sh - restores VMware

lnx-update-tools.cmd - retrieves latest OS X guest tools

 

6. Mac OS X

 

On Mac OS X you will need to be either root or use sudo to run the scripts.

This is really only needed if you want to use client versions of Mac OS X.

 

You may need to ensure the OS X scripts have execute permissions

by running chmod +x against the 2 files.

 

osx-install.sh - patches VMware

osx-uninstall.sh - restores VMware

 

7. ESXi

 

You will need to transfer the zip file to the ESXi host either using vSphere client or SCP.

 

Once uploaded you will need to either use the ESXi support console or use SSH to

run the commands. Use the unzip command to extract the files.

 

<<< WARNING: use a datastore volume to run the scripts >>>

 

Please note that you will need to reboot the host for the patches to become active.

The patcher is embbedded in a shell script local.sh which is run at boot from /etc/rc.local.d.

 

You may need to ensure the ESXi scripts have execute permissions

by running chmod +x against the 2 files.

 

esxi-install.sh - patches VMware

esxi-uninstall.sh - restores VMware

 

Note:

1. Any changes you have made to local.sh will be lost. If you have made changes to

that file, you will need to merge them into the supplied local.sh file.

2. The unlocker runs at boot time to patch the relevant files and it now survives

an upgrade or patch to ESXi as local.sh is part of the persisted local state.

 

8. Thanks

 

Thanks to Zenith432 for originally building the C++ unlocker and Mac Son of Knife

(MSoK) for all the testing and support.

 

Thanks also to Sam B for finding the solution for ESXi 6 and helping me with

debugging expertise. Sam also wrote the code for patching ESXi ELF files.

 

 

History

 

12/12/14 2.0.0

  • First release

13/13/14 2.0.1

  • Removed need for Python for Windows

13/13/14 2.0.2

  • darwin.iso was missing from zip file

02/01/15 2.0.3

  • Added EFI firmware files to remove Server check
  • Refactored Python code

07/01/15 2.0.4

  • Added View USB Service to Windows batch files
  • Fixed broken GOS Table patching on Linux

18/06/15 2.0.5

  • ESXi 6 working
  • Latest tools from Fusion 7.1.2

20/06/15 2.0.6

  • ESXi 6 patch for smcPresent vCenter compatibility

16/09/15 2.0.7

  • Workstation 12 on Linux fixes

14/11/15 2.0.8

  • Player 12 on Linux fixes
  • Get latest VMware tools command
  • Removed firmware files
  • Moved to PyInstaller 3.0

 

© 2011-2015 Dave Parsons


What's New in Version 2.0.8   See changelog

Released

  • 12/12/14 2.0.0
  • - First release
  • 13/13/14 2.0.1
  • - Removed need for Python for Windows
  • 13/13/14 2.0.2
  • - darwin.iso was missing from zip file
  • 02/01/15 2.0.3
  • - Added EFI firmware files to remove Server check
  • - Refactored Python code
  • 07/01/15 2.0.4
  • - Added View USB Service to Windows batch files
  • - Fixed broken GOS Table patching on Linux
  • 18/06/15 2.0.5
  • - ESXi 6 working
  • - Latest tools from Fusion 7.1.2
  • 20/06/15 2.0.6
  • - ESXi 6 patch for smcPresent vCenter compatibility
  • 16/09/15 2.0.7
  • - Workstation 12 on Linux fixes
  • 14/11/15 2.0.8
  • - Player 12 on Linux fixes
  • - Get latest VMware tools command
  • - Removed firmware files
  • - Moved to PyInstaller 3.0



User Feedback

Recommended Comments



VMware Workstation 12 is out! Is it safe to upgrade from 11 to 12?

Will version 12 be able to get unlocked with latest Unlocker?

Or should be wait for a new Unlocker update?

Share this comment


Link to comment
Share on other sites

VMware Workstation 12 is out! Is it safe to upgrade from 11 to 12?

Will version 12 be able to get unlocked with latest Unlocker?

Or should be wait for a new Unlocker update?

 

I would like to know this also.  Thank you!

Share this comment


Link to comment
Share on other sites

Recently I installed vmware workstation 12, and I want open an vm version mac osx 10 that created in my early version vmware workstation 11, with unlocker v2.0.6, I success boot the vm.

Thanks, it worked, and I hope it will work with new install mac osx 10 in vmware workstation 12 too.

Share this comment


Link to comment
Share on other sites

VMware Workstation 12 is out! Is it safe to upgrade from 11 to 12?

Will version 12 be able to get unlocked with latest Unlocker?

Or should be wait for a new Unlocker update?

yes, it is safe to update from 11 to 12.

Share this comment


Link to comment
Share on other sites

Hi Anyone,

 

I am trying to unlock VMware workstation 11 Ubuntu 15.04 host following instruction given here and I got error. Full text below:

 
philip@philip-Ubuntu-Desktop:~/Downloads$ chmod +x lnx-install.sh
philip@philip-Ubuntu-Desktop:~/Downloads$ sudo ./lnx-install.sh
[sudo] password for philip: 
VMware Unlocker 2.0.6
===============================
Copyright: Dave Parsons 2011-15
Creating backup folder...
‘/usr/lib/vmware/bin/vmware-vmx’ -> ‘./backup/vmware-vmx’
‘/usr/lib/vmware/bin/vmware-vmx-debug’ -> ‘./backup/vmware-vmx-debug’
‘/usr/lib/vmware/bin/vmware-vmx-stats’ -> ‘./backup/vmware-vmx-stats’
‘/usr/lib/vmware/lib/libvmwarebase.so.0/libvmwarebase.so.0’ -> ‘./backup/libvmwarebase.so.0’
Patching...
python2: can't open file './unlocker.py': [Errno 2] No such file or directory
philip@philip-Ubuntu-Desktop:~/Downloads$ 
 
Any suggestion how to solve error issue?

Share this comment


Link to comment
Share on other sites

 

Hi Anyone,

 

I am trying to unlock VMware workstation 11 Ubuntu 15.04 host following instruction given here and I got error. Full text below:

 
philip@philip-Ubuntu-Desktop:~/Downloads$ chmod +x lnx-install.sh
philip@philip-Ubuntu-Desktop:~/Downloads$ sudo ./lnx-install.sh
[sudo] password for philip: 
VMware Unlocker 2.0.6
===============================
Copyright: Dave Parsons 2011-15
Creating backup folder...
‘/usr/lib/vmware/bin/vmware-vmx’ -> ‘./backup/vmware-vmx’
‘/usr/lib/vmware/bin/vmware-vmx-debug’ -> ‘./backup/vmware-vmx-debug’
‘/usr/lib/vmware/bin/vmware-vmx-stats’ -> ‘./backup/vmware-vmx-stats’
‘/usr/lib/vmware/lib/libvmwarebase.so.0/libvmwarebase.so.0’ -> ‘./backup/libvmwarebase.so.0’
Patching...
python2: can't open file './unlocker.py': [Errno 2] No such file or directory
philip@philip-Ubuntu-Desktop:~/Downloads$ 
 
Any suggestion how to solve error issue?
 

 

You also need to 'chmod +x' all python and other scripts, dude.
Greets.

Share this comment


Link to comment
Share on other sites

Hello,

 

First of all, thanks for the time you guys take for supporting this.

 

I have a problem with Unlocker 2.0.6, VMWare Workstation 11 and Yosemite.

 

2015-09-07T19:23:37.927+03:00| vcpu-0| I120: Triple fault.
2015-09-07T19:23:37.927+03:00| vcpu-0| I120: MsgHint: msg.monitorEvent.tripleFault
2015-09-07T19:23:37.927+03:00| vcpu-0| I120+ A fault has occurred causing a virtual CPU to enter the shutdown state. If this fault had occurred outside of a virtual machine, it would have caused the physical machine to restart. The shutdown state can be reached by incorrectly configuring the virtual machine, a bug in the guest operating system, or a problem in VMware Workstation.
 
This happens when booting Yosemite.
 
Mentions:
- Host OS is Windows 7 Ultimate SP 1, CPU is i5-2500 @ 3.30 GHz (VT-x is enabled), 8 GB RAM
- OS X Lion works fine
- I tried Workstation 10, Player, same result
- I tried HW version 10 and 11, same result
- I tried smc.version = "0" (btw, you have an extra "|" in there), same result
- I tried booting the vanilla Yosemite Installer, Yosemite Zone, a vmdk containing Yosemite, updating Lion... same result
- I tried older Unlocker versions, same result
 
I don't know what else to try, and I need a mac asap. (don't have a second box for a hackmac... poor, I know)
 
Please let me know if you need more info.
Thanks

Share this comment


Link to comment
Share on other sites

Can't boot my MacOS X 10.9 VM with the new VMWare Player 12 on Linux host (Fedora, Ubuntu). It hangs after some seconds as if the unlocker 2.0.6 was not installed. I think, a new unlocker version is needed.

Share this comment


Link to comment
Share on other sites

I am having the same problem with v2.0.6 on Workstation 12 on Fedora Linux. Is there any news on whether a new version is being worked on for linux?

Share this comment


Link to comment
Share on other sites
You also need to 'chmod +x' all python and other scripts, dude.

Greets.

@PhaneV,

Thanks for your good suggestion. Unlocker worked but I run into modules need recompile issue and VM ware won't startup. Found a patch on the internet but have not tried it yet because too late last night for me to try.

Question, should I install VMware first, unlock & patch kernel for reconpile kernel or install VMWare, patch Kernel & unlock? My instinct is to do the former? Any suggestion?

Share this comment


Link to comment
Share on other sites

hello, i'm trying to download the unlocker206 but for some reason the download just stop, can anyone please email me the zip file, so i can download it from gmail instead? Or suggest another download link...

Share this comment


Link to comment
Share on other sites

unlocker207 does work with WMware Workstation 12 with Linux as host BUT: there are some bugs in the Python script 'unlocker.py' at Linux fork. I have fixed that and now it runs successfully.

 

wrong:

        vmx_version = subprocess.check_output(["vmware", "-v"])
fixed:

        vmx_version = subprocess.check_output([vmx, "-v"], stderr=subprocess.STDOUT).splitlines()[2]
 

Thanx a lot

Share this comment


Link to comment
Share on other sites

i tested wmware workstation 12 pro on intel core i7 ,16 gb ram,ssd 120gb,on host windows 10 enterprise x64 ,and yosemite.iso (retail) but os x it's not working !

i think windows 10 x64 is the problem ?

Share this comment


Link to comment
Share on other sites

I just noticed I had python 2 and 3 installed.  Realized this program uses python so I will clean it up and install just Python 2.7 and install PyInstaller and see if that helps.

Share this comment


Link to comment
Share on other sites

unlocker207 does work with WMware Workstation 12 with Linux as host BUT: there are some bugs in the Python script 'unlocker.py' at Linux fork. I have fixed that and now it runs successfully.

 

wrong:

        vmx_version = subprocess.check_output(["vmware", "-v"])

fixed:

        vmx_version = subprocess.check_output([vmx, "-v"], stderr=subprocess.STDOUT).splitlines()[2]

 

Thanx a lot

I also had to patch installer.py as reported by dangermouse (thanks dude) to make it work on my ArchLinux box.

 

If you had already installed the vmware tools (darwin.iso) form a previous unlocker, remember to uninstall it before installing the new one (you can use the unistaller provided with the latest darwin.sio).

Share this comment


Link to comment
Share on other sites

i tested wmware workstation 12 pro on intel core i7 ,16 gb ram,ssd 120gb,on host windows 10 enterprise x64 ,and yosemite.iso (retail) but os x it's not working !

i think windows 10 x64 is the problem ?

 

I have win 10 pro x64 with vmware workstation 11 pro and it works perfectly (except a bit laggy on guest os x 10.10, while it is smooth in 10.9)

Share this comment


Link to comment
Share on other sites

>>If you create a new VM using version 11 hardware VMware will stop and create a core dump.There are two options to work around this issue

 

Does this apply to all VMs or just the OSX VM?

Share this comment


Link to comment
Share on other sites

The version of 2.0.7 doesn't work on VMware Workstation 12 Pro (build 2985596), Windows 10. There is not appear the Mac OS X option on New Virtual Machine Wizard.

Share this comment


Link to comment
Share on other sites

Unlocker 1 contains the source code.

but Unlocker 2 not, why? Is there at somewhere i can download it!

Thanks!

Share this comment


Link to comment
Share on other sites

×