Skip to content

iThinkVirtual™

Virtualization. Tech Talk. Rambling.

  • Home
  • About
  • Home Lab
  • How-To’s
  • Tools
  • Video Gallery
  • Toggle search form

Create an ESXi 6.7 VM Template

Posted on January 21, 2019February 19, 2019 By virtualex No Comments on Create an ESXi 6.7 VM Template

Disclaimer:  The following is not supported by VMware.

Nested virtualization is nothing new, and many of us use it for test or demonstration purposes since they can quickly be stood up or torn down.  William Lam has an ESXi VM which can be downloaded from here, but I wanted to go ahead and create my own for use within my nested lab environments.

In this post, I am going to show you the steps I ran through to create an ESXi 6.7 VM that I can convert to a template for later use.  Props to William for his excellent content on nested virtualization, which I’ve used a ton and will be leveraging here as well.  So without further ado, let’s get to it!

For my ESXi VM, I will be configuring the following:

  • CPU: 2 (Expose hardware assisted virtualization to the guest OS – checked on)
  • RAM: 8GB
  • Disk0: 16GB (bound to the default SCSI controller; thin provisioned)
  • New virtual NVME Controller
  • Disk1: 10GB (for VSAN cache tier bound to NVME Controller; thin provisioned)
  • Disk2: 100GB (for VSAN capacity tier bound to NVME Controller; thin provisioned)
  • 2x Network Adapters (VMXNET3)
  • Some advance configuration settings

Build the VM as follows:

Be sure you connect the ESXi installation media and power on the VM to begin the installation.

Once the VM powers back on, log in and enable SSH so that we can run some additional commands to update the OS and prepare it for cloning use

(Optional) To update ESXi to the latest version, connect to the host via SSH and run the following:

**At the time of this writing, the latest version is Build 11675023 as per profile used below, be sure to change the profile number**

esxcli network firewall ruleset set -e true -r httpClient
esxcli software profile update -p ESXi-6.7.0-20190104001-standard \
-d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
esxcli network firewall ruleset set -e false -r httpClient

(Optional) To update the latest version of the ESXi Host client, run the following:

esxcli software vib install -v "http://download3.vmware.com/software/vmw-tools/esxui/esxui-signed-latest.vib"

To prepare the VM for cloning use, run the following:

esxcli system settings advanced set -o /Net/FollowHardwareMac -i 1
sed -i 's#/system/uuid.*##' /etc/vmware/esx.conf
./sbin/auto-backup.sh

At this point, you can shutdown the VM and convert it to a template for cloning use.

After cloning a VM, if you plan on joining it to a vCenter Server you will need to run the following on each cloned instance via SSH.

esxcli storage vmfs snapshot resignature -l datastore1

Well, that about does it!  Hope you all enjoyed this post!

-virtualex-

References:

  • How to properly clone nested ESXi VM
  • Nested ESXi enhancements in vSphere 6.5

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to email a link to a friend (Opens in new window)

Related

CC BY-NC-SA 4.0 Create an ESXi 6.7 VM Template by virtualex is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

How-To's Tags:homelab, How-To's, Nested Virtualization, Template, vExpert, VMware, vSphere 6.7

Post navigation

Previous Post: A Dream Come True!!
Next Post: NSX-T Home Lab Series

Subscribe to my blog...

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

Join 496 other subscribers

Awards

Certifications

Certification Badges

CloudCred Badge

Categories

  • Home Lab
  • How-To's
  • Uncategorized
  • vExpert

Recent Posts

  • vRealize Suite 2019 – Part 3: Installing vRealize Automation
  • vRealize Suite 2019 – Part 2: Configuring VMware Identity Manager
  • vRealize Suite 2019 – Part 1: Installing vRealize Lifecycle Manager
  • vRealize Suite 2019 Series
  • Achievement Unlocked!…vExpert 2019!

Archives

  • January 2020
  • March 2019
  • February 2019
  • January 2019
  • March 2018
  • February 2018
  • December 2017
  • November 2017
  • March 2017
  • February 2017
  • August 2016
  • May 2016
  • April 2016
  • March 2016

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2022 iThinkVirtual™.

Powered by PressBook Dark WordPress theme