Milestone 3 ‐ Nested Virtualization and Templates - lpcyber1/SYS350 GitHub Wiki

Add DNS records for new ESXis

  • Open up DNS Manager on DC1 and add the A records for nested 1, 2, and 3

image

Changing ESXi VM Startup

  • Browse to your vSphere environment and open your Virtual Machine folder. Right-click on your VMs and select Autostart which will show options for Start Earlier or Start Later. Use these options to get your VM autostart options like this

image

Making ESXi Templates

  • Shoutout Natalie for sharing the OVA template with me in Google Drive since the web server was down. I downloaded it from there to my mgmt VM

image

  • Browse to your vCenter server, I created a folder for my nested VMs to be located. But right-click and select Deploy OVF Template...

image

  • Select Local file and find the OVA file in your downloads then click next

image

  • Rename the VM and select where it will be located

image

  • Select the datastore you are storing the VMs on and make sure you have selected the Thin Provision option

image

  • Put it on 350-internal

image

  • Go through and enter the proper configs to each field then select Finish

image

  • Repeat this for Nested 2 and 3

image

Add DHCP to the Network

  • I am adding a DHCP server to my DC1 VM. Open up Server Manager and click Add Roles and Features. Then click next and next then select DHCP Server as shown below. Make sure to include management tools

image

  • You will get an alert for post installment configuration, click on this. It will ask you about what user to use for authentication so we will use our domain admin account

image

  • Open up DHCP Manager from Server Manager

image

  • Right-click IPv4 and select New Scope

image

image

image

image

image

Create a new VM for templating

  • Created a new Xubuntu VM to be converted to a template

image

  • Added a deployer user, moved on to makeing sure perl was installed and running sudo apt upgrade -y. Powered off, removed CD-ROM, took snapshot named base.

  • Converted it to a template in vCenter interface by right-clicking on the VM and moving my cursor to the Clone and clicking Clone to Template

image

image

Create New VM from Template

  • Added the VM Customization Specification

image

image

  • Created the new VM by right-clicking on the template, and selecting New VM from this Template

image

  • Named it xubuntu-template-test, put it datastore1, selected the option Customize the operating system

image

  • Selected Xubuntu-Specifications that I had just created

image

  • Continued and selected Finish at the end and waited for it to be cloned

image

Creating a template for Rocky

  • Creating base VM

image

  • Creating deployer acct, running sudo yum upgrade -y

image

  • Installed VM-Tools and perl. Shutdown, remove cdrom, took snapshot for Base. Cloned to template

image

  • Created Rocky8-Specification

image

image

image

  • Created a new VM from the template using the specification

image

image

Deliverables

  • Deliverable 1. Provide a screenshot showing the A records for nested 1-3 similar to the one below.

image

  • Deliverable 2. Provide a screenshot that shows your 4 hypervisors (the nested ones are virtual)

image

  • Deliverable 3. Find the Cloning Task in the vCenter Task Console and provide a screenshot of the successful deployment similar to the one below.

image

  • Deliverable 4. Create another VM and Custom specification for Rocky 8.
    Deploy the template with a custom IP address. Provide a screenshot of both the cloning task as seen in Deliverable 3. As well as a screenshot of the VMs powered on IP address that should match the one entered during New VM Creation.

image

image