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
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 forStart Earlier
orStart Later
. Use these options to get your VM autostart options like this
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
- Browse to your vCenter server, I created a folder for my nested VMs to be located. But right-click and select
Deploy OVF Template...
- Select
Local file
and find the OVA file in your downloads then click next
- Rename the VM and select where it will be located
- Select the datastore you are storing the VMs on and make sure you have selected the
Thin Provision
option
- Put it on 350-internal
- Go through and enter the proper configs to each field then select
Finish
- Repeat this for Nested 2 and 3
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 selectDHCP Server
as shown below. Make sure to include management tools
- 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
- Open up DHCP Manager from Server Manager
- Right-click
IPv4
and selectNew Scope
Create a new VM for templating
- Created a new Xubuntu VM to be converted to a template
-
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 clickingClone to Template
Create New VM from Template
- Added the VM Customization Specification
- Created the new VM by right-clicking on the template, and selecting
New VM from this Template
- Named it xubuntu-template-test, put it datastore1, selected the option
Customize the operating system
- Selected
Xubuntu-Specifications
that I had just created
- Continued and selected
Finish
at the end and waited for it to be cloned
Creating a template for Rocky
- Creating base VM
- Creating deployer acct, running
sudo yum upgrade -y
- Installed VM-Tools and perl. Shutdown, remove cdrom, took snapshot for Base. Cloned to template
- Created
Rocky8-Specification
- Created a new VM from the template using the specification
Deliverables
- Deliverable 1. Provide a screenshot showing the A records for nested 1-3 similar to the one below.
- Deliverable 2. Provide a screenshot that shows your 4 hypervisors (the nested ones are virtual)
- Deliverable 3. Find the Cloning Task in the vCenter Task Console and provide a screenshot of the successful deployment similar to the one below.
- 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.