Installing vSphere 7 on VMware Workstation – Part 2 – ESXi DNS and Config
Recap – The journey so far…
Just to recap, this is part 2 of the Installing vSphere 7 on VMware Workstation series. If you haven’t read or completed the first section I would strongly recommend completing it first.
At this point you should have two ESXi 7.0 VM’s within VMware Workstation. That are installed but not configured.
The first part can be found here.
ESXi DNS Configuration Options
Now we have some choices.
- Option 1
We can set the ESXi management IP -the IP we will use to manage the hypervisor- of our ESXi servers through DHCP by assigning an IP based on MAC addresses.
- Option 2
We could statically assign the VM IP address through the ESXi console.
- Option 3
We can set a DNS entry for the ESXi name and let ESXi work out the name and IP during the install.
Let’s look at each option…
Option 3 is out as we have already installed ESXi and names will not automatically work out the IP addresses.
Option 1 could be used as this is a lab environment and there is nothing wrong with using DHCP to assign an IP address… But I have always preferred statically defining the IP so we categorically know what the address is for any fault finding. Additionally in a production/commercial setting statically defining the IP address will normally be required and is generally considered best practice.
Option 2 is, therefore, the option we will use to when setting the IP’s of ESXi.
Configuring the ESXi IP and DNS Settings
- Add two DNS A-record entries in the DNS server you have configured for the two ESXi servers we will create. (In my case this was an Active Directory domain controller with DNS integrated.) I have added ESX01.[mydomain] and ESX02.[mydomain] where mydomain is the domain configured, as an example ESX01.theitrub.com = 192.168.0.101.
- Open VMware Workstation and navigate to the VM console of the first ESXi server we have create
Note: the ESXi VM’s should be on
- Click into the VM and hit the F2 key to login
- The prompt to login will appear, enter the root and the password entered during the install and press Enter
- The System Customization screen will appear, select Configure Management Network
- The Network Adapters will default to nic0, leave this as is, navigate to the IPv4 Configuration option and hit Enter
- Set the option to “Set static IPv4 address and network configuration:” then enter the IP address details for the network you are on and the DNS A-record you want to use, for example a typical home network setup could use:
- IPv4 Address: 192.168.0.101
- Subnet Mask: 255.255.255.0
- Default Gateway: 192.168.0.1
- Hit Enter when the IP details have been filled in
- Navigate to the DNS Configuration option and hit Enter to select
- Select the “Use the following DNS server addresses and hostnames:” section, then if you need to modify the DNS server and alternate server then enter the hostname of the server, note do not enter the FQDN, just the hostname, in our example use ESX01, hit Enter
- Move to and select the Custom DNS Suffixes option
- Enter the suffix of the domain, in our example this would be theitrub.com, then hit Enter
- I am assuming you are not using IPv6 on your network, if you are skip this next step
- Lastly, select the IPv6 Configuration option, then select “Disable IPv6 (restart required)” and hit Enter
- Hit the Escape key
- You will be prompted to reboot the server to disable IPv6, type Y
- ESXi will restart
- Once restarted confirm you can get to the management web interface through a browser on your normal desktop, eg. https://esx01.[mydomain]/ you will get prompted with a certificate warning accept/ignore it.
- If you get to the login the configuration has been completed. Now repeat the above for the second ESXi server installed.
Repeat the steps above to configure the second ESXi server (ESX02) with the IP address 192.168.0.102.
That concludes Installing vSphere 7.0 GA on VMware Workstation – Part 2 – Theory Session ESXi DNS and Config. In the next post we will recap the progress, look at options for installing vCenter in VMware Workstation and do the initial deployment. Things are getting interesting!