Skip to content

iThinkVirtual™

Virtualization. Tech Talk. Rambling.

Menu
  • Home
  • Home Lab
  • How-To’s
  • Tools
  • Video Gallery
  • About
Menu

Create an ESXi 6.7 VM Template

Posted on January 21, 2019February 19, 2019 by virtualex

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

Loading

Like this:

Like Loading...

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.

Post navigation

← A Dream Come True!!
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 605 other subscribers

Awards

Certifications

Certification Badges

CloudCred Badge

Categories

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

Recent Posts

  • Nested vSphere Home Lab – Part 4 – VMware Aria Suite Lifecycle Deployment & Configuration
  • Nested vSphere Home Lab – Part 3 – vSphere 8.x Lab Deployment
  • Nested vSphere Home Lab – Part 2 – Active Directory & Certificate Authority
  • Nested vSphere Home Lab – Part 1 – Sophos Firewall
  • Nested vSphere Home Lab Series

Archives

  • January 2025
  • January 2024
  • April 2023
  • March 2023
  • 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
© 2025 iThinkVirtual™ | Powered by Minimalist Blog WordPress Theme
%d
    I use cookies to ensure that I give you the best experience on my website. If you continue to use this site, I will assume that you are happy with it.AcceptRead More