How to install macos in vmware?
To start, you must have the ISO image of the macOS installer. If you do not already have the ISO image, you can create the installation ISO image manually by downloading a package from Apple’s official website. This blog post explains the installation process by using Mac OS X 10.12 Sierra as an example. A machine with Mac OS is required for this process, as you will be redirected to the App Store after entering these links in the browser (browsers on Windows or Linux are not able to recognize App Store links). Once the App Store window with macOS Sierra is open, you can read the operating system information. Click the Download button to begin downloading the installation package.
Once the downloading process has begun, you should be able to see the progress of the download in the Launchpad. Downloading the installation package of macOS Sierra may be a time-consuming process (the slow downloading of macOS Sierra is a common issue). Sometimes, temporary changing the DNS settings in your network configuration may help you to increase the download speed. Attempt using 8.8.8.8, 8.8.4.4, 4.2.2.2 or 4.2.2.3 DNS servers on your machine. If this method does not increase the download speed, left click the Downloading icon to pause your download. Then left click the icon once more to resume the download. After resuming the download of a file, the download speed increases for the appropriate period of time.
Once the macOS Sierra installation package has been downloaded, you can find the appropriate file in the Applications directory. Go to the Finder and click Applications in the left pane of the window. You should find the “Install macOS Sierra.app” file there.
Right click the “Install macOS Sierra.app” file and select “Show package contents” in the context menu. Go to Contents > SharedSupport and find the InstallESD.dmg file. A DMG file is a mountable Apple disk image file that is widely used in the macOS world for distributing software. The InstallESD.dmg file must be converted to a bootable in order for it to be compatible for inserting into the virtual DVD drive of a virtual machine that is running on VMware ESXi.
In this example, hdiutil is used to create the ISO image. Hdiutil is a built-in console utility that is available on macOS; it is used to work with disk images as data containers that emulate disks. The DiskImages framework is used by hdiutil to manipulate the disk images.
Mount the InstallESD.dmg installer image of macOS Sierra to the /Volumes/install_app mount point.
Create the Sierra blank ISO image of 7316 Mb with a single partition located in the /tmp/ directory. The Apple partition layout is SPUD. The journaled macOS file system is HFS+J.
Mount the Sierra blank ISO image to the /Volumes/install_build mount point.
Restore the base system into the Sierra blank ISO image by using Apple Restore Software that can be directly accessed in the terminal with the asr command. After executing this command, the name of the destination mount point will be changed to “/Volumes/OS X Base System/System”.
Remove a package link and replace it with actual files.
Copy the Sierra installer dependencies.
Unmount the installer image.
Unmount the Sierra ISO Image.
Convert the created Sierra image to ISO CD/DVD master by using -format UDTO key.
Rename the Sierra image file and move the file to a directory that is most convenient for you ( /disk_d/ for example).
You can also move the file to ~/Desktop/ (this is not available for root, because root cannot log in with GUI by default).
Now that your bootable ISO image with the macOS installer is ready, you should prepare your ESXi host for the installation of macOS as a guest OS on VMs. You need to enable SSH access, download the patch, copy the patch to the file system of the ESXi server, and patch the ESXi server.
Enter the IP address of your ESXi host in the browser to access the VMware Host Client. Click Host, then click Actions > Services > Enable Secure Shell (SSH). You can also use an alternative method and enable SSH directly on the ESXi server by going to System Customization > Troubleshooting options > Enable SSH. ESXi 6.0 is used in this case. If you are using VMware vSphere Web Client, go to Configure > System > Services, then right click SSH and click Start.
The patch is needed to unlock Mac OS X in the list of available operating systems in the VM options during the creation of a VM. Virtual machines with Mac OS X are not supported by default. The patch unlocks the Mac OS X operating system family in the new VM options on ESXi, and includes VMware Tools for macOS.
The patch is free and can be downloaded from this page. MacOS Unlocker 2.0.8 is used in this example due to ESXi support. The newest version of macOS unlocker is version 3.0.2. Unlocker 2 supports both VMware ESXi and VMware Workstation, while Unlocker 3 only supports VMware Workstation (including the latest versions of VMware Workstation). Version 2.0.8 is the latest version of the patch with ESXi support.
After downloading the patch, copy the patch files to the datastore on ESXi. You can use WinSCP, which supports the transfer of files over SSH by using SFTP, SCP, WebDAV, or S3 protocols (in Linux you can use the equivalent software). WinSCP has a user-friendly graphical user interface (GUI), and consists of two main panels. Copy the unlocker files from your local directory to your datastore on the ESXi server. In this example the unlocker patch and the macOS Sierra installation ISO image (Sierra.iso) were created beforehand, and are placed in C:\Virtual\images_MacOS for convenience. The patch is copied to /vmfs/volumes/datastore1 on the ESXi server. Sierra.iso would be copied to the datastore40. Later, you can mount the ISO image from the datastore to the virtual DVD drive of the virtual machine.
After copying the macOS unlocker patch to the ESXi server, you should add the permissions for the executable files in order to be able to apply the patch. Go to the directory where the patch is placed (if you use a different directory, type the name of your directory) by typing cd
Make the patch installer and the patch uninstaller files executable:
Type ls -al to check the files and their permissions in the current directory.
Run the macOS unlocker patch:
After successful patching, restart the ESXi server with the reboot command.
Copy the ISO installation image of Mac OS X 10.12 Sierra to the datastore by using VMware Embedded Host Client, VMware vSphere Client or WinSCP if you have not yet copied the image. In VMware vSphere Client, click Storage, select your datastore, click Files, and then click Upload files. In VMware Host Client, click Storage, select your datastore, click the Datastore browser, click Upload and select the file to be uploaded. You can see the Sierra.iso file uploaded into the datastore on the screenshot below.
Now let’s consider how you can create and configure a new VM with VMware Host Client:
Right click Virtual Machines and select Create/Register VM in the context menu.
A window of the New virtual machine wizard appears. Click Create a new virtual machine on the first screen, and click Next.
Select a name and guest OS. Enter a VM name, for example MacOS10-12, and select the following VM options:
Compatibility: ESXi 6.0 virtual machine.
Guest OS family: Mac OS.
Guest OS version: Apple Mac OS X 10.10 (64-bit). Select the latest available version in the drop-down menu.
Mac OS as a guest OS family, and Apple Mac OS X as a guest OS version are available after applying the unlocker patch. Click Next to continue.
Select storage. Select the datastore in which you want to store the VM files. The datastore40 is selected in this example. Click Next.
Customize settings. Configure the VM hardware and the additional options. Define the following parameters:
CPU: 2 or more.
Memory: 4096 MB or more.
Hard disk: 30 GB or more (you can use a thin provisioned virtual disk to save storage space).
CD/DVD Drive: Select the Datastore ISO file, check the box Connect at power on, click Browse and select the ISO file (Sierra.iso) as DVD media from your datastore.
After configuring the VM settings click Next.
Ready to complete. Review your VM settings and click Finish to create the VM.
Now you can try to run the VM. Make sure that the boot order is configured correctly, and that the VM is configured to boot from the DVD drive. If you run the virtual machine on VMware ESXi, you would now see the following issue: the Mac OS X Sierra 10.12 installer hangs when the progress bar approaches 90%.
Let’s configure the VM to fix this issue. The smc.version = “0” string must be added to the virtual machine VMX configuration file. Right click the VM in VMware Host Client, then click Edit settings in the context menu. Click VM options > Advanced > Edit configuration. In Configuration Parameters click Add parameter. Click to edit the new key and type smc.version in the Key column. Then click the value and enter 0 (see the screenshot below). Another solution is to downgrade the VM hardware version to 10.
You can also use the SSH client to edit the VMX file in the console. Power off the VM. Log in to the ESXi server with an SSH client such as PuTTY.
Go to the directory of your virtual machine:
Edit the VMX configuration file of the VM with vi:
Press o to add a new line.
Enter smc.version = “0”
Press Esc, type :wq and press Enter.
Now power on the virtual machine and start installing Mac OS X 10.12 High Sierra on the VM that is running on the ESXi host.
After macOS installer has loaded, you should see the installation wizard.
Enter a name for your disk (vmdisk1 in this case), select a format (Mac OS Esxended (Journaled)), select a scheme (GUID Partition Map) and click Erase. After erasing the media, close the Disk Utility window.
Select the disk that you have prepared (vmdisk1) and click Continue.
Install VMware Tools for macOS running on a VMware VM to improve the performance and user experience. When you apply the unlocker patch for VMware Workstation, a darwin.iso image with VMware Tools for macOS is copied to a VMware Workstation directory. If the darwin.iso image is missing on your ESXi after applying the patch, you can manually copy the ISO file to the datastore by using WinSCP, VMware Host client, or VMware vSphere client. You can also download VMware Tools for Mac OS X from VMware’s website.
Once you have copied the image containing VMware Tools to the datastore, open the VM settings and edit CD/DVD drive settings. Select the darwin.iso file as CD/DVD media. In this example darwin.iso is copied to datastore40.
The VMware Tools installation process is straightforward. Follow the wizard recommendations and click Continue to finish the installation.
Let’s optimize macOS settings to make working with the virtual machine more comfortable.
1024 x 768 is the default screen resolution for a virtual machine after installing macOS. Other modes are not available in GUI of macOS. VMware Tools can help you to set higher resolution. After installing VMware Tools, reboot the VM. Open the Launchpad, type terminal in the search field and run the Terminal. Execute the following command in the terminal to set the Full HD resolution:
VMware Tools are used to adjust the screen resolution in this case. Configured resolution is preserved after a VM reboot. Be aware that the maximum displayed resolution in VMware vSphere Web Client and in VMware Host Client is 1176 x 885. Use VMware Workstation to connect to a VM that is running on an ESXi host for working with higher resolution. You can also use VMware vSphere client (a standalone application that is installed on Windows) for this purpose.
Running a screen saver can consume computing resources when a virtual machine is idle. It is recommended that you disable any screen savers on the VM on which macOS is installed. You can do this with GUI. Open System Preferences > Desktop & Screen Saver. Select Screen Saver and set Start after: Never.
Furthermore, it is recommended that you disable sleep mode to prevent any possible issues and disadvantages (for example if a time-consuming process such as copying files is running in background). Open the terminal and disable sleep mode when idle by using the following commands:
Change the directory to /Applications/Utilities/
Set the idle period to enter a sleep mode to 0:
Now screen savers are disabled on your macOS.
After initially publishing this blog post, Mac OS X 10.14 Mojave was released. The new Apple’s operating system is becoming more and more popular among macOS users each day. As a result, many people are asking about how they can install macOS Mojave on VMware ESXi server. The logics are similar to the logics of installing the macOS Sierra explained above. The main difference is in the process of creating a bootable ISO installation image for macOS Mojave. If you would use the commands explained for creating the macOS Sierra ISO image when creating the macOS Mojave ISO image you would get an error in the middle of the process after entering the command:
asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
Could not recognize “/Volumes/install_app/BaseSystem.dmg” as an image file
Could not validate source – Invalid argument
This section explains how to correctly create a macOS Mojave bootable ISO image. First, download the macOS Mojave installer from the App Store. In the current example, a machine running macOS Mojave is used for downloading the macOS Mojave installer to avoid using third party downloading tools. Open AppStore, find macOS Mojave, click View and then click Get to download the installer. Notice that you need a full installer whose size is about 6.03 GB. If after downloading the installer, installation starts automatically, cancel it. After successfully downloading you can see the Install macOS Mojave.app file in the Applications directory. Open Finder and click Applications in the left pane of the Finder window to check the installer file.
Use the set of commands explained below in order to create an installation ISO image for further installation of macOS Mojave on VMware ESXi or VMware Workstation. Make sure you have enough free space on your disk.
hdiutil attach /Applications/Install\ macOS\ Mojave.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/Mojave
hdiutil create -o ./MojaveBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach ./MojaveBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ Mojave.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt –noverify -erase
rm -rf /Volumes/OS\ X\ Base\ System/System/Installation/Packages
mkdir -p /Volumes/OS\ X\ Base\ System/System/Installation/Packages
cp -R /Volumes/Mojave/Packages/* /Volumes/OS\ X\ Base\ System/System/Installation/Packages/
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/Mojave/
mv ./MojaveBase.cdr.dmg ./BaseSystem.dmg
hdiutil create -o ./Mojave.cdr -size 8965m -layout SPUD -fs HFS+J
hdiutil attach ./Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ Mojave.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt –noverify -erase
cp ./BaseSystem.dmg /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil convert ./Mojave.cdr.dmg -format UDTO -o ./Mojave.iso
mv ./Mojave.iso.cdr ~/Desktop/Mojave.iso
rm ./Mojave.cdr.dmg
Now you have a bootable ISO installation disk image of Mac OS X 10.14 Mojave and you can install macOS Mojave on your VMware ESXi host. The rest of actions are similar to actions explained above for installing macOS Sierra on a VM of the VMware ESXi format but you should be aware of the following features:
If you install mac OS Mojave on ESXi 6.0 after applying the Unlocker 2.0.8, you may get an error during macOS installation:
An error occurred while preparing the installation. Try running this application again.
In order to avoid this issue, use VMware ESXi 6.7 and macOS Unlocker 3.0.0. Download this free Unlocker patch from the author’s site or from GitHub (you can also view a source code there). Then take the following steps:
But when a user wants to use MAC on windows virtual machine, they need to install it, and it is the perfect way to use Mac-only apps on Windows.
Requirements that a user needs to create a macOS virtual machine on windows:
1. Users need to install VMware 16 2. They should have pre-installed Unlocker for VMware 3. Download macOS Catalina ISO 10.15.7
Download MacOS Catalina ISO 10.15.7.
Download Unlocker For VMware
Or search on google for latest “Unlocker For VMware”
It successfully installs a patch for VMware.
Open the VMware machine and click on the “New Virtual Machine” option.
Here, one can see the home page of the VMware application.
On the next page of the New Virtual Machine Wizard, the option "I will install the operating system later" and click “Next.”
Proceed by clicking “Next.”
Go to "Select a guest operating system" and select "Apple MAC OS X."
Then, users need to set the virtual machine name with something they can memorize and yet easy to type. They need to insert the name in the series of commands. They must use a simple name as they have to add this Virtual Machine name multiple times. It will make the process easier.
Select the location where you want to install and click on the "Next" button.
The most important thing to note is users cannot set more RAM than their system has, and they need to leave a little memory space available for the host operating system.
The next step specifies the disk space for the virtual machine. Now, go to the "Specify Disk Capacity" and set the maximum disk size. Proceeding to the subsequent screen, click "Virtual Hard Disk," and assign the size of that hard disk to a minimum of 50GB.
But, same as the RAM size, if users leave more space than 50GB, they can have a better experience. MacOS Catalina needs a storage space of at least 35GB.
Users need to install Xcode, which is why they need more space.
Now click on “Customize Hardware” because we need to install XCODE, so users need to increase RAM.
Click on the “Finish”
Now the Virtual Machine is ready for installation.
Go to "Edit Virtual Machine Settings," and from here, they can edit the virtual machine for the installation.
Proceeding to the next setup, users need to specify the amount of RAM the macOS virtual machine they will use. As per the expert's suggestion, the appropriate amount of RAM is a minimum of 4GB. But the more a user will provide from the host system, the better they will experience. Set the RAM storage to 12GB.
Then, click the "Processor tab" and set the processor to four cores. If users have a CPU with a capacity to spare, such as an i9 with multiple extra cores or an Intel Core i7, consider allocating more processors.
Select the "CD/DVD (SATA)" as auto detect.
In the Device status section, Then go to Connection and use one ISO image file. Click on Browse after setting the image and then OK.
Then again, go to "Edit Virtual Machine Settings," and from here, click on "Power on this virtual machine."
Open the VirtualBox again by double-tapping the virtual machine. After opening the VirtualBox, users will see a long series of texts with an Apple logo on any side. Proceeding to the next screen, choose the desired language, and click the arrow button below.
In the next step, go to "Disk Utility," and to install it, users need to create a clean drive for macOS Catalina.
Open the Disk Utility, and click "VMware Virtual SATA" from the Internal drive column.
After choosing the drive, go to the "Erase" option at the top of that utility option.
Users then need to set the name of their drive. Then, assign the format to Mac OS Extended (Apple File System, APFS) Journaled and the "Scheme" to GUID Partition Map.
Click "Erase."
Once the erasing process is complete, close the Disk Utility Window by clicking "Done." It will direct users to the installation screen of macOS Catalina. Click the Select option to install it.
Click on the “Install MacOS” and then "Continue," once the installation starts, choose the drive the users have created in the Disk Utility and press "Continue."
Then again click on “Continue.”
Select “Agree.”
Select the disk and click “Install.”
Go to the Mac OS Setting and perform some basic operations needed. It will install the Mas OS successfully on VMWare.
Update Mac OS (if update available)
Wrapping up:
- Run VMWare macOS Unlocker.
- Download macOS VMware VMDK disk image file from Google Drive.
- Create macOS VMware Workstation Virtual Machine.
- Edit the Virtual Machine settings.
- Attach the recovery VMDK disk image.
- Boot virtual machine from the recovery disk.
- Run Disk utility to erase the OS disk.
Related Questions
- How to trade fundamental analysis pdf?
- How to cancel total gym tv?
- How to install infrared blaster in mobile?
- How to fix vhs tape tracking?
- How to enable swap space on linux?
- How to update pc windows 7 to windows 10?
- How to create empty df?
- How to find xpath in firefox?
- How to elevate one end of bed?
- How to unlock american tourister bag?
More Questions
- What does it mean if trading is halted?
- What is ccna in telecom?
- What is the best trading platform in canada?
- What are industries in india?
- What is ew in college?
- Why is fmab better than fma?
- What happens if a beauty mark comes off?
- How to deactivate vas in jazz?
- Who's bud in firefly lane?
- What is buy to sell?