vSphere Lab-in-a-Box 07: Configuration of Virtual ESXi Servers

We are finally ready to create the virtual ESXi servers on our Lab Host.

Enable Nested ESXi Servers

Before we create the virtual ESXi servers, we need to make a small tweak to the Lab Host to allow this.

You will need an SSH client, such as Putty, to connect to the Lab Host and make the change.  Download the putty.exe file to your workstation.

On the Lab Host, go to the Configuration tab and click on Security Profile.  Then click Properties… in the top right.

Lab-in-a-Box-07-ssh-1

Click on SSH and then the Options… button.

Lab-in-a-Box-07-ssh-2

Click on the Start button to start the SSH service.

Lab-in-a-Box-07-ssh-3

In the list of services, you will now see that the SSH service is Running.

Open the putty.exe you downloaded and type in the IP address of your Lab Host and then Open.

Lab-in-a-Box-07-ssh-4

Click Yes on the security warning, then log in as root and the password for your Lab Host.

Lab-in-a-Box-07-ssh-5

Once you are logged in, type the following command and press enter:

Type exit to leave the SSH session.  If you want, you can turn off the SSH service, but it’s not necessary.

 

Creating the Virtual Machine

On your Lab Host, go to the Virtual Machines tab and right-click – New Virtual Machine…

Lab-in-a-Box-07-virtual-esx-config-1

Choose Custom and then Next.

Lab-in-a-Box-07-virtual-esx-config-2

Give your virtual machine a name and click Next.

Lab-in-a-Box-07-virtual-esx-config-3

Choose your storage location.  I picked the slowest of all my drives, since ESXi will run mostly from RAM once it has loaded, and later in this series we will configure a shared storage location for all the virtual VMs to run from, so we don’t need a speedy disk for the virtual ESXi hosts.

Lab-in-a-Box-07-virtual-esx-config-4

Leave the Virtual Machine Version on 8.

Lab-in-a-Box-07-virtual-esx-config-5

Under Guest Operating System, choose Other and then select Other (64-bit) from the list.

Lab-in-a-Box-07-virtual-esx-config-6

As these virtual ESXi servers will be running virtual machines themselves, I configure them with 2 virtual CPU sockets, as I have an 8-core processor in the Lab Host.  Configuring them with just 1 virtual socket is sufficient too.

Lab-in-a-Box-07-virtual-esx-config-7

I also have lots of RAM in my Lab Host, so I configure the virtual machine with 8GB RAM.

Lab-in-a-Box-07-virtual-esx-config-8

I will be configuring my virtual ESXi hosts with 6 NICs each, to simulate a common production server specification – 2 onboard NICs and a single quad-port NIC or two dual-port NICs.  However we can only add 4 NICs at this point, so select 4 and connect two to the Management and vMotion network and two to the Storage network.

Lab-in-a-Box-07-virtual-esx-config-9

Create a new virtual disk and change the size to 20GB and the provisioning to Thin Provisioned.  The default size of 8GB will be fine for ESXi, but I also use the ESXi local storage disks to store disk ISOs, so I increase the size to 20GB to accommodate that.

Lab-in-a-Box-07-virtual-esx-config-10

At the Summary screen, simply click Finish to create the new virtual machine.

Lab-in-a-Box-07-virtual-esx-config-11

Configuring the Virtual Machine

Under the Configuration tab – Storage, upload the vSphere Hypervisor ISO to your storage device.

When that has completed, go back to the Virtual Machines tab, right-click on the new VM and Edit Settings…

Remove the Floppy drive, then click Add… Choose Ethernet Adapter and click Next.

Lab-in-a-Box-07-virtual-esx-config-12

Connect the Adapter to the Virtual Machines network and then Next and Finish.

Lab-in-a-Box-07-virtual-esx-config-12.1

Add another identical Ethernet Adapter, connected to the Virtual Machines network, to make 6 adapters in total.

Click on CD/DVD drive 1 and set the Device Type to the ISO file you uploaded earlier.  Tick the Connect at power on box.

Lab-in-a-Box-07-virtual-esx-config-13

Choose the Options tab, then change the Guest Operating System to VMware ESXi 5.x.

Lab-in-a-Box-07-virtual-esx-config-14

Choose CPU/MMU Virtualization on the left, then change the setting to the last option.

Lab-in-a-Box-07-virtual-esx-config-15

Click OK to save the virtual machine configuration.

 

Installing ESXi on the Virtual Machine

Power on the virtual machine and open the console to it.  Proceed through the installation exactly as is documented in post 02 of the series.  The installation on virtual hardware is no different than on physical hardware.

After the setup has completed and the server has rebooted, it should have obtained a DHCP address from your domain controller.

Lab-in-a-Box-07-virtual-esx-complete-1

To complete the setup of this virtual ESXi server, I will configure a static IP address and a hostname.

From the console, press F2 to log in and type the root password.

Lab-in-a-Box-07-virtual-esx-complete-2

Using the arrow keys, select Configure Management Network and press enter.  Select IP Configuration, press space bar, and then set a static address as below.

Lab-in-a-Box-07-virtual-esx-complete-4

Press enter to save, then go to DNS Configuration and enter a hostname.

Lab-in-a-Box-07-virtual-esx-complete-5

Press Esc and then Y to apply the changes to the virtual ESXi host.

Lab-in-a-Box-07-virtual-esx-complete-6

Set Up Second Virtual ESXi Host

Follow the same steps to create another identical virtual machine and install it.  I named the second server esx02 and gave it the static IP address 10.5.1.15.

Lab-in-a-Box-07-final

DNS Entries

To finish off, we’ll create DNS entries for both servers on our domain controller.

Log onto the DC and open DNS Manager.

Right-click on your lab forward lookup zone and choose New Host.  Type in the name of the first virtual ESXi server, as well as the IP address and tick Create associated pointer (PTR) record.  Click Add Host to complete.

Lab-in-a-Box-08-dns-1

Add another host with the details of the second server.

Lab-in-a-Box-08-dns-2

Open the relevant reverse lookup zone and confirm that both servers are listed within.

Lab-in-a-Box-08-dns-3

In the next post, we’ll set up the vCenter server, which will manage the virtual ESXi servers.

 

Lab-in-a-Box Series:
01 Introduction
02 ESXi Installation on Physical Hardware
03 Installation of vSphere Client
04 Lab Host Configuration
05 Domain Controller Setup
06 Domain and Related Services
07 Configuration of Virtual ESXi Servers
08 vCenter Server Setup
09 vCenter Server Configuration
10 Set up OpenFiler NAS
11 Set up iSCSI
12 Set up NFS
13 Set up Secondary Domain Controller
14 vMotion Tests