As part of working with OS X VMs in and, I’ve regularly installed the and have even found ways to incorporate their installation into my build process. However, getting the latest VMware Tools installer into my VM building workflow has usually involved at least one manual step or having a system management tool handle the installation for me. I wanted something that was completely automated without needing to also install a system management client. My end goal was that I didn’t have to worry about doing anything; the latest VMware Tools for my OS X VM would just be installed into the VM as part of the build process. After doing some research and testing, I have a solution that looks like it does just that. For more details, see below the jump. VMware Workstation / VMware Player – VMware is the perfect virtualization program for virtualization. Though VMware doesn’t officially support macOS but actually if you do little tweaks, it will work with the essential tools such as Ethernet adapter, sound, full-screen resolution and more. ![]() ![]() My colleague had adapted using to install ‘ and tools into VMs, using the script available from the link below: Update – 5-10-2016: Joe let me know that his script was a fork of ‘s, so credit to Tim for the original idea. My colleague had written a VMware Tools provider for AutoPkg, which was designed to download the latest copy of VMware Tools for OS X: I had already used Jesse’s AutoPkg provider to build, so I decided to see if I could leverage Joe’s technique with my existing recipe for AutoPkg. I also wanted to make sure to clean all AutoPkg-related parts from the system, as I didn’t want to leave traces behind on what could otherwise be a completely unconfigured OS X VM. After some work, I have a script which does the following: • Downloads AutoPkg from GitHub using git. • Adds the AutoPkg recipe repo containing the VMwareTools.download and.pkg recipes • Redirects the AutoPkg cache to a temp location. • Downloads the current release version of VMware Tools for OS X using AutoPkg and extracts the installer package. • Installs the latest VMware Tools using the AutoPkg-generated installer package. Post-installation Once VMware Tools has been installed by the script, the OS X VM where VMware Tools has been installed must be restarted in order to enable VMware Tools’ functionality. Notes One thing I found in my testing is that would be needed for this process, so an essential pre-requisite for running this script is installing git. Pcfx emulator machine. This can be most easily accomplished by installing or the (CLT). Both will include git, so installing either should work. One gotcha I ran into during my testing is that Xcode / Xcode CLT usually require accepting Apple’s license before you’ll be able to use git, so make sure the license has been accepted prior to running this script. I’ve posted the script to my GitHub repo at the following address: This script is also available as a payload-free installer package, stored as a.zip file in the payload_free_installer directory. As far as I understand it, this move isn't supported by either Apple or VMware. However, there are many hackers on the Internet who have reported to successfully installed OS X either directly on their PC or in a VM like you're trying to do. One article at states in a comment (emphasis mine): Best fix for display resolution is to get the darwin.iso containing the Mac VMWare tools from a VMWare Fusion installation off a MAc (it’s under Library/ApplicationSupport/Images. It's actually under /Library/Application Support/VMware Fusion/isoimages on an OS X machine with VMware Fusion installed. If you can get your hands on that iso, you should be good.
0 Comments
Leave a Reply. |