Skip to content

Commit

Permalink
Unlocker 2.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDonk committed Nov 29, 2015
1 parent 490cb90 commit c59b11a
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 176 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ tools/
unlocker/build
unlocker/dist
dumpsmc/build
dumpsmc/dist
dumpsmc/dist
gettools/build
gettools/dist
2 changes: 1 addition & 1 deletion gettools.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def main():
shutil.move(convertPath(dir + '/tools/payload/darwin.iso'), convertPath(dir + '/tools/darwin.iso'))
shutil.move(convertPath(dir + '/tools/payload/darwin.iso.sig'), convertPath(dir + '/tools/darwin.iso.sig'))

# Cleanup workiong files and folders
# Cleanup working files and folders
shutil.rmtree(convertPath(dir + '/tools/payload'), True)
os.remove(convertPath(dir + '/tools/com.vmware.fusion.tools.darwin.zip.tar'))
os.remove(convertPath(dir + '/tools/com.vmware.fusion.tools.darwin.zip'))
Expand Down
2 changes: 2 additions & 0 deletions lnx-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ fi
echo Patching...
python2 ./unlocker.py

echo Getting VMware Tools...
python2 gettools.py
cp ./tools/darwin.* /usr/lib/vmware/isoimages/

echo Finished!
Expand Down
1 change: 1 addition & 0 deletions lnx-uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ fi

echo Removing backup files...
rm -rf ./backup
rm -rf ./tools
rm -f /usr/lib/vmware/isoimages/darwin.*

echo Finished!
22 changes: 22 additions & 0 deletions lnx-update-tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
set -e

echo VMware Get OS X Tools 2.0.8
echo ===============================
echo Copyright: Dave Parsons 2011-15

# Ensure we only use unmodified commands
export PATH=/bin:/sbin:/usr/bin:/usr/sbin

# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi

echo Getting VMware Tools...
python2 gettools.py
cp ./tools/darwin.* /usr/lib/vmware/isoimages/

echo Finished!

166 changes: 0 additions & 166 deletions readme-bbcode.txt

This file was deleted.

15 changes: 10 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ 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
* A copy of the latest VMware Tools for OS X is included
* 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 and Player.
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.
Expand Down Expand Up @@ -56,8 +56,8 @@ Latest Linux and ESXi products are OK and do not show this problem.
| IMPORTANT: |
| ========== |
| |
| If you create a new VM using version 11 or 12 hardware VMware will stop and |
| create a core dump.There are two options to work around this issue: |
| If you create a new VM using version 11 or 12 hardware VMware may 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: |
Expand All @@ -72,6 +72,7 @@ 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
---------
Expand All @@ -82,6 +83,7 @@ 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
-----------
Expand Down Expand Up @@ -141,6 +143,9 @@ History
- 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
19/09/15 2.0.8 - Player 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

(c) 2011-2015 Dave Parsons
4 changes: 3 additions & 1 deletion win-install.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
setlocal ENABLEEXTENSIONS
echo VMware Unlocker 2.0.7
echo VMware Unlocker 2.0.8
echo ========================
echo (c) Dave Parsons 2011-15

Expand Down Expand Up @@ -36,6 +36,8 @@ xcopy /F /Y "%InstallPath%vmwarebase.dll" .\backup\
echo Patching...
unlocker.exe

echo Getting VMware Tools...
gettools.exe
xcopy /F /Y .\tools\darwin.* "%InstallPath%"

echo Starting VMware services...
Expand Down
4 changes: 3 additions & 1 deletion win-test-install.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
setlocal ENABLEEXTENSIONS
echo VMware Unlocker 2.0.7
echo VMware Unlocker 2.0.8
echo ========================
echo (c) Dave Parsons 2011-15

Expand Down Expand Up @@ -36,6 +36,8 @@ xcopy /F /Y "%InstallPath%vmwarebase.dll" .\backup\
echo Patching...
python unlocker.py

echo Getting VMware Tools...
python gettools.py
xcopy /F /Y .\tools\darwin.* "%InstallPath%"

echo Starting VMware services...
Expand Down
3 changes: 2 additions & 1 deletion win-uninstall.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
setlocal ENABLEEXTENSIONS
echo VMware Unlocker 2.0.7
echo VMware Unlocker 2.0.8
echo ========================
echo (c) Dave Parsons 2011-15

Expand Down Expand Up @@ -35,6 +35,7 @@ del /f "%InstallPath%"darwin.*

echo Removing backup files...
rd /s /q .\backup > NUL 2>&1
rd /s /q .\tools > NUL 2>&1

echo Starting VMware services...
net start VMUSBArbService > NUL 2>&1
Expand Down
26 changes: 26 additions & 0 deletions win-update-tools.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@echo off
setlocal ENABLEEXTENSIONS
echo VMware Get OS X Tools 2.0.8
echo ===========================
echo (c) Dave Parsons 2011-15

net session >NUL 2>&1
if %errorlevel% neq 0 (
echo Administrator privileges required!
exit
)

pushd %~dp0

set KeyName="HKLM\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Workstation"
:: delims is a TAB followed by a space
for /F "tokens=2* delims= " %%A in ('REG QUERY %KeyName% /v InstallPath') do set InstallPath=%%B
echo VMware is installed at: %InstallPath%

echo Getting VMware Tools...
gettools.exe
xcopy /F /Y .\tools\darwin.* "%InstallPath%"

popd

echo Finished!

0 comments on commit c59b11a

Please sign in to comment.