First, i tested it a year ago and im not sure about it anymore – but I will try it again in the next weeks (Pictures will follow).

Create the Boot-ISO

  1. Open the Apple Store on your mac and download the OSX El Capitan – https://itunes.apple.com/app/os-x-el-capitan/id1147835434?mt=12
  2. Create a ISO on the Mac, copy the .dmg file to the desktop (Applications –> Right click, show package content), open the Terminal and enter following commands:
    1. cd /Desktop
    2. curlocreatedisk.sh https://idmedia.no/wp-content/uploads/2015/12/el_capitan_createdisk.sh_.txt
      Spoiler

      Script if the download doesnt work
      #!/bin/bash# Verify that InstallESD.dmg exists
      if [ ! -f ~/Desktop/InstallESD.dmg ]; then
      echo “InstallESD.dmg not found on desktop!”
      exit 1
      fi# Mount the installer image
      hdiutil attach ~/Desktop/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app# Create the ElCapitan Blank ISO Image of 7316mb with a Single Partition – Apple Partition Map
      hdiutil create -o /tmp/ElCapitan.cdr -size 7316m -layout SPUD -fs HFS+J# Mount the ElCapitan Blank ISO Image
      hdiutil attach /tmp/ElCapitan.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build# Restore the Base System into the ElCapitan Blank ISO Image
      asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase

      # Remove Package link and replace with actual files
      rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
      cp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/

      # Copy El Capitan installer dependencies
      cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklist
      cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/BaseSystem.dmg

      # Unmount the installer image
      hdiutil detach /Volumes/install_app

      # Unmount the ElCapitan ISO Image
      hdiutil detach /Volumes/OS\ X\ Base\ System/

      # Convert the ElCapitan ISO Image to ISO/CD master (Optional)
      hdiutil convert /tmp/ElCapitan.cdr.dmg -format UDTO -o /tmp/ElCapitan.iso

      # Rename the ElCapitan ISO Image and move it to the desktop
      mv /tmp/ElCapitan.iso.cdr ~/Desktop/ElCapitan.iso

      [collapse]
    3. sh createdisk.sh
  3. Copy the ISO in the datastore of the ESX server

Configure the ESXi Server

  1. Download the Unlocker 2 for ESX 6 and higher, Unlocker 1 for ESX 5.0 and 5.5
  2. Extreact the unlocker ZIP, enable the SSH Service on the security profile and copy the unlocker with WinScp to the ESX datastore
  3. Open putty, navigate to the unlocker folder and enter following commands:
    1. chmod +x esxiinstall.sh
    2. chmod+x esxiuninstall.sh
    3. ./esxi-install.sh
  4. Reboot the Server

Create and configure the VM

  1. Create the virtual machine
  2. Edit the vmx file:
    1.    smc.present = “TRUE”
      smbios.reflectHost = “TRUE”
      ich7m.present = “TRUE”
  3. Start the VM

 

Thanks IDMedia for the great script!

 

 

 

Links I used:

https://idmedia.no/general/installing-os-x-el-capitan-on-esxi/

http://www.insanelymac.com/forum/topic/308533-how-to-create-a-bootable-el-capitan-iso-fo-vmware/

https://communities.vmware.com/thread/498527?start=0

http://tecattack.ch/wp-content/uploads/2018/02/unlocker208.zip
http://tecattack.ch/wp-content/uploads/2018/02/unlock-all-v130.zip

 

Categories: VMWare

Leave a Reply

avatar
  Subscribe  
Notify of