MacOS Sequoia on VMware Workstation 17 on x64 Windows 11 on Lenovo Laptop !!! Illegal !!! - dcasota/Lenovo83BY GitHub Wiki

VMware Workstation and Fusion support a wide range of operating systems.

Virtualizing Apple MacOS on non-Apple Hardware is prohibited by Apple. Hence, you are not allowed to install MacOS e.g. on VMware Workstation. Mike Roy, Product Manager at Broadcom (Vmware), clearly emphasized during the last couple of years why VMware Workstation did not take the same step e.g. as Parallels Computing to allow a MacOS installation on the desktop hypervisor.

So, buy Apple hardware. Without an Apple MacBook Pro/M4/.. you should not take advantage of the capability of VMware Workstation as described in the following blog entry.

  1. You need:

    • Your laptop, installed with Windows 11 x64, enough CPU, RAM and storage for virtual machines
    • Your personal Apple OS image iso
    • Broadcom (VMware) Workstation
    • Unlocker-Tool
  2. Install VMware Workstation on Windows 11 on Lenovo Laptop

  3. Unlocker-Tool: https://github.com/BDisp/unlocker It is prohibited to modify original VMware software! VMware Workstation can be patched by third party programs, to allow MacOS as os selection. Run .\win-install.cmd

  4. Create a MacOS virtual machine After the patch, in Virtual Machine Wizard, in Guest Operating System selection there is a new option "Apple macOS". Select the version of your personal Apple OS image. Choose wisely the specification for the vm e.g. enough storage space, RAM, CPU, etc. Attach the Apple OS image iso as cdrom.

  5. Edit MacOS VMX File

    Smc.version = 0
    
  6. Boot from your MacOS on VMware on Windows 11 On one of the first welcome screens, go to the disk utility and format the foreseen disk using the Apple File System (APFS). Continue with the setup.

  7. Install VMware Tools (optional, but recommended)

  8. Proceed with MacOS Software Updates

    image

  9. Install software e.g. brew, docker, etc.

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    brew install docker
    
    brew install python
    open -e ~/.zprofile
    # add
    # export PATH="$(brew --prefix python)/libexec/bin:$PATH"
    source ~/.zprofile
    python --version
    python -m venv ./env
    source ./env/bin/activate
    
    # install conda
    # https://docs.conda.io/projects/conda/en/stable/user-guide/install/macos.html#
    curl -J -L -O https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
    chmod a+x ./Miniconda3-latest-MacOSX-x86_64.sh
    ./Miniconda3-latest-MacOSX-x86_64.sh -b -p $HOME/miniconda
    source ./env/bin/activate
    export PATH=/Users/dcasota/miniconda/bin:$PATH
    /Users/dcasota/miniconda/bin/conda init --all
    
    # install pytorch does not work brew install pytorch 
    # Example how to  build on macOS
    # https://github.com/pytorch/pytorch?tab=readme-ov-file#install-dependencies
    git clone https://github.com/pytorch/pytorch
    cd pytorch
    # if you are updating an existing checkout
    git submodule sync
    git submodule update --init --recursive
    
    conda install cmake ninja
    # Run this command from the PyTorch directory after cloning the source code using the “Get the PyTorch Source“ section below
    pip install -r requirements.txt  
    # Add this package on intel x86 processor machines only
    pip install mkl-static mkl-include
    # Add these packages if torch.distributed is needed
    conda install pkg-config libuv
    python3 setup.py develop
    # Building pytorch on macOS x64
    # https://discuss.pytorch.org/t/building-pytorch-2-6-0-from-source-on-macos-x86-64-intel/216283/2
    
    # Brew example using Ollama
    brew install ollama
    
  10. At the end, cleanup the environment.

    • Wipe out the virtual machine and backups,
    • Apply .\win-uninstall.cmd
    • Uninstall VMware Workstation and reinstall from scratch.

Legal

This blog entry is not for wrong understood education! Apple, Broadcom (VMware) and Microsoft - respect their Software License Agreement.