VMware

VMware ESXi installation and setup – First 15 things I do

Setting up a VMware ESXi server is a process that requires a good understanding of the technologies and best practices. I have put together a list of installation and setup steps that I run through when setting up new ESXi servers in production and in the home lab.

When done correctly, the installation and setup set the stage for a secure, efficient, and high-performing virtualization environment. In this blog post, I’ll guide you through 15 crucial VMware ESXi installation and setup steps that I recommend when setting up a VMware ESXi server. So let’s dive right in!

1. Understanding and Configuring the Management Interface

The management interface in ESXi is an essential component that provides a user interface for host management tasks. You can access it directly from the host client or remotely via a web browser. To configure the management interface, navigate to “Manage” in the ESXi host client, then select “Services.” You can start, stop, or restart the management agent services here.

2. The Direct Console User Interface (DCUI)

The DCUI is a text-based interface that allows direct interaction with the ESXi server from the console of the host machine. You can configure system settings, network options, troubleshooting, and more here. To access the DCUI, log into your server console and press F2 to customize the system settings.

Below is a look at the familiar DCUI interface.

The Direct console user interface DCUI
The Direct console user interface DCUI

3. Navigating Network Configurations

Proper network configurations are critical for the smooth operation of your ESXi host. Here, we’ll look at three important aspects.

  • Management Network Configuration: Navigate to Networking > TCP/IP configuration to configure the management network settings.
  • Network Adapter Configuration: This can be done under the “Physical NICs” tab in the “Networking” section of the ESXi host client.
  • Adding an Additional Network Adapter for the Management Interface: Navigate to Networking > Network adapters > Add to add an additional network adapter.

Below, we have chosen to configure the management network in the DCUI. You have several choices here:

  • Netwokr adapters
  • VLAN
  • IPv4 Configuration
  • IPv6 Configuration
  • DNS Configuration
  • Custom DNS Suffixes
Configuring the network adapters in the DCUI
Configuring the network adapters in the DCUI

You can select which network adapters you want to service the management network.

Configuring which adapters carry management network traffic
Configuring which adapters carry management network traffic

Here I have selected both adapters for redundancy.

Adding an addition management network adapter
Adding an addition management network adapter

4. Channeling Management Traffic with VLANs

You can improve security and reduce network congestion by segregating your management traffic into a specific VLAN. This can be done under Networking > Port groups in the ESXi host client. Remember to configure your physical switch to tag this VLAN ID to the corresponding switch port.

You can also configure a management VLAN if you have one configured for your management traffic (best practice). You will need to make sure your network switches are properly configured with your management VLAN ID.

Setting VLANs for the management network
Setting VLANs for the management network

5. Static IP Address: Why and How to Set it Up

Static IP addresses facilitate consistent access to the ESXi host. This can be set in the DCUI under Configure Management Network > IP Configuration. Make sure to exit and restart for changes to take effect.

Setting a static IP address for the management network
Setting a static IP address for the management network

6. Getting DNS Configurations Right

Correct DNS configurations ensure your ESXi server can communicate with other network devices by name.

  • DNS Configuration and DNS Servers: You can configure this under Configure Management Network > DNS Configuration in the DCUI.
  • Setting the Hostname: This is the unique name for your ESXi server and can be configured under Configure Management Network > DNS Configuration > Hostname.
  • Implementing DNS Suffixes for DNS Search Suffixes: You can set these in the same menu by navigating to Configure Management Network > DNS Configuration > DNS Suffixes.
Setting the DNS server and hostname
Setting the DNS server and hostname

Adding a DNS suffix for local DNS queries.

Setting the DNS suffixes
Setting the DNS suffixes

7. Applying Changes: Restarting the Management Network

Whenever you make changes to your management network configuration, it’s crucial to restart the management network to apply the changes. This can be done from the DCUI by selecting the “Restart Management Network” option.

Restarting the management network applies your changes.

Resetting the management network
Resetting the management network

8. Entering the ESXi Host Client

The ESXi host client is a web interface that allows you to manage your ESXi host. You can access the host client by entering the IP address of your ESXi host into a web browser. The new host client with ESXi 8.0 has had an enormous face lift and looks great with many features and capabilities.

9. Taking Control with SSH on Your ESXi Host

Secure Shell (SSH) enables secure remote management of your ESXi host.

  • Enabling SSH on Your ESXi Host: This can be done from the ESXi host client under Host > Actions > Services > Enable Secure Shell (SSH).
  • Testing SSH Connectivity to the ESXi Host: This can be done from a remote machine using an SSH client and the IP address of your ESXi host.
The new vSphere 8.0 ESXi host client
The new vSphere 8.0 ESXi host client

10. Maintaining Optimal Performance: Patching the VMware ESXi Host

Regularly patching your ESXi host ensures that it has the latest security updates and bug fixes. This is done using the esxcli software commands in SSH.

  • Understanding Software Profiles and How They’re Used: Software profiles contain the image level (or version) and the list of VIBs that make up your ESXi installation.
  • Getting the Software Profile: This can be retrieved using the “esxcli software profile get” command in SSH.
  • Updating the ESXi Server: Use the “esxcli software profile update” command in SSH to update the ESXi server.
esxcli software profile get
esxcli network firewall ruleset set -e true -r httpClient
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p <profile name and number>
Checking your current ESXi software profile
Checking your current ESXi software profile
Patching your VMware ESXi server
Patching your VMware ESXi server

11. Keeping Time with NTP Server Configuration in VMware ESXi

Network Time Protocol (NTP) helps to synchronize the server’s clock with an external source.

  • Setting the NTP Server Configuration in VMware ESXi: This can be done in the ESXi host client under Host > Manage > Time & date > Edit NTP settings.
  • Starting the NTP Service: Start the NTP service under Manage > Services > ntpd in the ESXi host client.
Editing your NTP server settings
Editing your NTP server settings
Setting the NTP service start properties
Setting the NTP service start properties
Populating the NTP server value
Populating the NTP server value
Starting the NTP service
Starting the NTP service

12. Channeling ESXi Logs to a Syslog Server

Having a centralized logging system like a syslog server can simplify log management.

  • Pointing Your ESXi Host to a Syslog Server: Navigate to Manage > System > Advanced System Settings in the ESXi host client, and modify the Syslog.global.logHost setting with the IP address of your syslog server.
  • Restarting the Syslog Service: This can be done under Manage > Services > Syslog in the ESXi host client.
Configuring the Syslog server via the command line
Configuring the Syslog server via the command line

13. Exploring iSCSI Software Adapters

Software iSCSI adapters enable your host to connect to an iSCSI storage device.

  • Adding the Software iSCSI Adapter: This can be done under Storage > Storage Adapters > Add software iSCSI adapter in the ESXi host client.
  • Configuring iSCSI Software Adapter: Navigate to Storage > Storage Adapters, select your iSCSI adapter, and click on Targets to add your iSCSI target server.
Adding the Software iSCSI adapter
Adding the Software iSCSI adapter

After you add the iSCSI Software adapter, you will see the IQN that is generated for the iSCSI initiator.

Viewing the iSCSI IQN address that is generated
Viewing the iSCSI IQN address that is generated

14. Joining the Ranks: Adding a Standalone ESXi Host to a vCenter Server

vCenter Server allows centralized management of multiple ESXi hosts.

  • Starting the Add Host Wizard in vSphere Client to Add to vCenter Server: In the vSphere Client, right-click on your datacenter or cluster and select Add Host.
  • Understanding the Behavior of the Host After First Adding to vCenter Server: After adding, the host’s resources become part of the datacenter or cluster and can be managed centrally.
Adding a VMware ESXi server to VMware vCenter
Adding a VMware ESXi server to VMware vCenter

The Add Host wizard will launch. Enter the host name or IP address.

Entering the IP address of the VMware ESXi Server
Entering the IP address of the VMware ESXi Server

Enter the username and password to connect to your ESXi host. This is generally your root user.

Entering the root user password to add the VMware ESXi Server
Entering the root user password to add the VMware ESXi Server

15. Setting Up VMkernel Adapters on Your ESXi Hosts

VMkernel adapters are key to networking functionality in ESXi and are used with specialized networking features and capabilities, such as vMotion.

  • Beginning the Process to Add VMkernel Adapters and IP Addresses: Navigate to Networking > VMkernel NICs > Add VMkernel NIC in the ESXi host client.
  • Configuring the Port Properties: In the Add VMkernel NIC dialog box, configure the properties as per your requirements.
Adding a VMkernel adapter to an ESXi host
Adding a VMkernel adapter to an ESXi host

Configure the port properties. Enable the services you want to assign in the port properties.

Setting the properties of the new VMkernel adapter
Setting the properties of the new VMkernel adapter

Assign the IPv4 settings for VMkernel network configuration.

Configuring the IPv4 address
Configuring the IPv4 address

16. Licensing Your ESXi Host

Finally, we’ll go through the process of adding a license to your ESXi host.

  • Adding the License in the Host Client: This can be done in the ESXi host client under Manage > Licensing > Assign license.
  • Adding a License in vCenter Server: In the vSphere Client, navigate to Hosts and Clusters, select your host, then Manage > Settings > Licensing > Edit.
Configuring licensing using the VMware host client
Configuring licensing using the VMware host client

Below is the vSphere Client connected to vCenter Server.

Adding licenses in VMware vCenter
Adding licenses in VMware vCenter
Entering license keys
Entering license keys
Assigning a license in the license keys dialog box
Assigning a license in the license keys dialog box

VMware ESXi installation and setup FAQs

  1. What are the system requirements for installing VMware ESXi?
    • VMware ESXi requires a 64-bit x86 processor, 4 GB minimum RAM, Gigabit or faster network adapter, and sufficient storage for the ESXi image and VMs.”
  2. Can I run VMware ESXi on a home computer for practice and learning purposes?
    • Yes, you can use VMware ESXi on a home computer, given that it meets the hardware requirements, for practice and learning purposes.
  3. How can I secure my VMware ESXi host post-installation?
    • Securing your VMware ESXi host involves setting up a firewall, disabling unnecessary services, and setting up role-based access control.
  4. Does VMware ESXi support automated installation and setup?
  5. What is the difference between vSphere and ESXi?
    • While ESXi is the virtualization platform, vSphere is a software suite that includes ESXi and other tools like vCenter for managing multiple ESXi hosts.

Video Walkthrough

If you would like to see a video walkthrough of this process, see the following video:

Wrapping Up

Proper VMware ESXi installation and setup are crucial for a stable and effective virtualization environment. The steps we’ve covered in this blog post will help you establish a robust and secure configuration, ensuring you’re well on your way to achieving optimal server performance. Always remember that the key to successful setup and maintenance of your ESXi host lies in understanding each component and its role within your overall server infrastructure. Happy virtualizing!

Subscribe to VirtualizationHowto via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com and has over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, Brandon has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.