Tailwind Logo

macOS + VMWare Fusion to create a Sitecore environment - Part 1

Experience Manager (XM)

Published: 2021-04-14

In this article, we will show you how to set up an environment for developing Sitecore JSS using VMWare Fusion, also using Hyper-V for Windows, and in this article, we will show you how to set up an environment on macOS.

Prerequisite.

At the time of writing this topic, macOS is currently available on two platforms, the Intel version and the Apple Silicon version. the Apple Silicon version cannot currently run Windows in a virtual environment, so the target machine will be the Intel version of The Apple Silicon version cannot currently run Windows in a virtual environment, so the target machine will be the Intel version of macOS.

The environment in which this article is being written is as follows.

  • Mac mini (2018) - Intel
  • macOS Big Sur 11.2.3
  • VMWare Fusion 12.1.1
    • Free for individual use from 12.
  • Visual Studio Subscription
    • Windows Server 2019 Standard
    • SQL Server 2019 Standard

When using a virtual machine in the cloud, please skip the section of this article on preparing a virtual machine and proceed with the installation of Sitecore.

Prepare virtual machine

Creating Virtual Machines

From the VMWare Fusion menu, select File - New and the following dialog will appear

vmware01.png

This time we have pre-downloaded the Windows Server 2019 ISO file, so select Install from disk or image and click Continue.

Then specify the Windows Server 2019 disk image. The following screen shows the specified screen.

vmware02.png

Clicking Continue will bring up the Simple Installation screen. In order to proceed without using the simplified installation this time, uncheck the box and click Continue.

vmware03.png

A screen will appear to select the firmware type; select UEFI and click Continue.

vmware04.png

This completes the setup, and the screen will look like this

vmware05.png

Since the standard size is small in the form of 2GB of memory and 2 Core CPUs, click on Customize Settings to proceed to more detailed settings. At this point, decide on a name for the virtual machine.

vmware06.png

After saving the name, the following dialog box regarding the virtual machine settings will appear.

vmware07.png

Open Processor and Memory to adjust CPU cores and memory. In this case, the settings are as follows

vmware08.png

As for network adapters, change Macs from shared to auto-detection.

vmware09.png

Installing Windows Server 2019

After selecting Startup, a loading screen will appear as shown below. At this point, click on the virtual machine and click enter to boot the installer from the ISO file.

winsrv01.png

After a few moments, the Windows Setup dialog appears.

winsrv02.png

The default environment is displayed by default, so click Next to proceed.

Click Install Now in the middle of the next dialog that appears.

winsrv03.png

The Windows Setup dialog screen will now be the Windows Server selection screen. Here, select Windows Server 2019 Standard (Desktop Experience) and click Next.

winsrv04.png

Click on the "I agree" checkbox and click "Next." The installation type will be displayed.

winsrv05.png

In the screen above, select Custom: Install Windows only (Advanced) shown below to proceed.

winsrv06.png

Since there is only one drive to install here, leave the default setting and click Next to start the installation.ます。

winsrv07.png

As the installation proceeds, the installer will restart and Windows Server 2019 will launch. First, you will need to set the administrator's password.

winsrv08.png

Once the password is set, the Windows Server 2019 installation is complete.

winsrv09.png

Installing VMware Tool

Log in using the password you have set. Finally, install the VMWare tools by selecting Install VMWare Toool in the VMWare Fusion menu under Virtual Machines.

winsrv10.png

Click Install when the following dialog box appears.

winsrv11.png

After a few moments, a dialog box will appear in the lower right corner asking if you want to activate the tool.

winsrv12.png

After clicking, a dialog box regarding autostart will appear. This time, choose to run setup64.exe.

winsrv13.png

When the tool installer appears, click Next, and complete the installation with the defaults.

winsrv14.png

Once the installation is complete, you will be prompted to reboot once, and when you do, you will be ready to go with respect to the Windows Server 2019 virtual machine.

SQL Server 2019 Install

We will mount the ISO image of SQL Server 2019 and proceed with the installation. First, we will specify the ISO file that we have already downloaded as a disk image.

sqlserv01.png

When you select "Connect CD/DVD" from the menu, a dialog box appears in the lower right corner.

sqlserv02.png

Clicking on the dialog will bring up a dialog asking if you want to run the executable file contained in the ISO file as is.

sqlserv03.png

Click Run setup.exe to install SQL Server. After a few moments, the SQL Server installer will start.

Click on Install from the menu on the left and choose to perform a new stand-alone installation of SQL Server or add functionality to an existing installation.

sqlserv04.png

There are few problems with SQL Server installation since it proceeds with the standard items, but please note the following items.

Select Features

Click on Database Engine, Machine Learning Services and Language Extensions.

sqlserv05.png

Server Configuration

Change the account name of the SQL Server Agent and SQL Server database engine to Network Service.

sqlserv06.png

Database engine configuration

For authentication mode, select mixed mode and set the password for sa. Also, to specify the SQL Server administrator, click Add current user and set the administrator as well.

sqlserv07.png

With the above settings below, proceed with the installation to complete the SQL Server 2019 installation.

Installation of other useful tools

We will install useful tools in advance to help you do the work. The following order will help you proceed smoothly.

Installing Chocolatey

Chocolatey is a package manager for Windows, a convenient tool that downloads and installs target packages by specifying them on the command line. This is the tool we will be using this time.

When you access the site, you will see the Install Now button in the upper right corner.

choco01.png

In the Step 2 area, you will find a sample script for installation with PowerShell.

choco02.png

Run this script in a PowerShell screen with administrator privileges. After a few moments, the installation will complete.

choco03.png

If the version is displayed when you type choco in the command, the installation was successful.

choco04.png

Installing Google Chrome

The browser installed on Windows Server 2019 is Internet Explorer 11, which is not user-friendly, so this time we will install Google Chrome; run the following command in the PowerShell screen

PowerShell
choco install googlechrome

After a few moments you will be asked if you want to run the script, type A and press enter.

choco05.png

You may want to start your browser and set your standard browser to Google Chrome.

Install Tools

This time, we will install the tools as follows. First, install Git for Windows

PowerShell
choco install git
choco06.png

Installing Visual Studio Code

PowerShell
choco install vscode
choco07.png

Visual Studio Code is easier to work with if the working environment is prepared separately, for example, by inserting Japanese resources after startup.

Installing SQL Server Management Studio

SQL Server Management Studio can be downloaded from the following URL

Launch Google Chrome, which you have already installed, to view the site, download and install the package that matches the language of your OS.

Summary

In this article, we have introduced the process of setting up the environment. In the next issue, we will proceed to the installation of Sitecore and final confirmation of its operation.

Tags