Data Centers

How to virtualize macOS on VMware ESXi

Follow these steps to create a virtual machine for macOS to be hosted by VMware ESXi running on a bare-metal server.

datacenteristock-177336251porpeller.jpg
Image: Getty Images/iStockphoto, porpeller

Virtualizing systems to be hosted on higher-density servers, with its robust resources and modern, more efficiently optimized hardware, offers most enterprises the ability to compartmentalize its physical server count while lowering its carbon footprint.

In addition to the potential savings, the total cost of ownership (TCO) is lowered as well through simplifying management of the converged systems. In permitting IT to do more with less, this helps to keep performance and uptime high, as hosted servers benefit from the allocation of resources while being able to access more, if necessary, from the available pool. Increased availability comes from being able to take snapshots of virtual machines (VMs) for up-to-date backups and being able to move VMs to other less congested hosts with the click of a button or script.

SEE: Virtualization policy (Tech Pro Research)

While there are other considerations and benefits associated in migrating your physical servers to VMs, the main focus of this article is on how to virtualize macOS so it is hosted on the VMware ESXi hypervisor installed on a Mac server.

Note: As per Apple's Software License Agreement for macOS Sierra, Apple will permit you to virtualize up to two instances of macOS Server, so long as it is run on Apple-branded hardware.

(iii) to install, use and run up to two (2) additional copies or instances of the Apple Software within virtual operating system environments on each Mac Computer you own or control that is already running the Apple Software, for purposes of: (a) software development; (b) testing during software development; (c) using macOS Server; or (d) personal, non-commercial use.

If you have not already installed ESXi on an Apple-branded computer or server, please do so before continuing.

SEE: Boost your Mac productivity with these 10 techniques (free PDF) (TechRepublic)

1. Access your ESXi host from the device or from a browser by navigating to the IP address of the host server. At the login screen, enter the credentials created during the installation process for ESXi to authenticate (Figure A).

Figure A

201739-figure-a.jpg


2. From the console, you'll be able to monitor the vitals of the host server and manage resources, as needed. Also, it is from here that we'll be able to install macOS onto a VM (Figure B).

Figure B

201739-figure-b.jpg


3. To begin the installation process, select the virtual machines button to bring up that management pane (Figure C).

Figure C

201739-figure-c.jpg


4. To create or register an existing VM, click the New Virtual Machine button to launch the wizard that will guide you through the process. Once the wizard loads, you'll be able to select whether you wish to create a new VM, deploy one from an OVF file, or register an existing one from another virtualization suite (Figure D).

Figure D

201739-figure-d.jpg


5. You'll be asked to provide the information necessary to identify the type of VM to be created, including name and OS type (Figure E). Enter that information and click the Next button.

Figure E

201739-figure-e.jpg


6. When selecting data storage, it is important to have the data storage pool set up prior to VM creation/deployment. Since it is typically performed during the installation of ESXi on the bare-metal server, you can always upgrade storage later by adding hard drives and/or arrays. After selecting the datastore you wish to utilize, click the Next button to proceed (Figure F).

Figure F

201739-figure-f.jpg

7. During the Customize settings portion, you'll configure the meat and potatoes of the VM—specifically, the resources that will be allocated to it, such as CPU, RAM, and storage space. Ideally, just about any hardware resource can be allocated, from USB drives to ISOs used to boot the OS—it will all be done here. But fret not, they can be modified later by editing the VM settings—for now we just need to configure the VM to boot and run the OS (Figure G and Figure H).

Figure G

201739-figure-g.jpg

Figure H

201739-figure-h.jpg


8. On the confirmation screen, you can review the settings selected before committing them to the VM. If all looks good, click the Finish button to complete the task (Figure I).

Figure I

201739-figure-i.jpg


9. With the newly created VM added to the list of hosted VMs, you will have a cursory view of the VM's health and current resource commitments, as well as the ability to control the VM for maintenance and management purposes (Figure J).

Figure J

201739-figure-j.jpg


10. By clicking the Play button, that will power on the VM and allow it to boot to any installation media that has been configured for the VM to use. For the purposes of this article, a USB flash drive was inserted into the USB port that contains the macOS 10.12 installer and configured the VM settings to be able to boot from that drive, kicking off the installation process for macOS Server. From here it is the straightforward macOS installation we are all used to (Figure K).

Figure K

201739-figure-k.jpg


Once the installation has completed, the VM will reboot like usual. When it comes back up, macOS will have installed successfully and should boot and operate the same within the VM as it does when booted directly from a Mac.

Also see

Did we miss something? Or do you have a better, more efficient way to configure VMware virtual machines? We'd love to hear from you in the comments section.

About Jesus Vigo

Jesus Vigo is a Network Administrator by day and owner of Mac|Jesus, LLC, specializing in Mac and Windows integration and providing solutions to small- and medium-size businesses. He brings 19 years of experience and multiple certifications from seve...

Editor's Picks

Free Newsletters, In your Inbox