Chris Hall bio photo

Chris Hall

Principal Technical Consultant

PolarCloudsUK Chris LinkedIn Github
Chris Hall Nutanix Certified Master - Multicloud Infrastructure 6 Chris Hall VMware vExpert 2024 Nutanix Certified Professional - Cloud Integration Chris Hall Nutanix Certified Professional - Multicloud Infrastructure 6 Chris Hall Nutanix Certified Professional - Unified Storage 6 Chris Hall VMware vExpert 2023 Chris Hall VMware vExpert 2022

Nutanix and ESXi In this post I want to look at deploying a Nutanix Community Edition 2.0 as a nested VM under VMware ESXi.

Those that follow me on LinkedIn will already be aware of a little spoiler which may or may not mean that I’m going to spending some more time looking into and learning about the Nutanix product portfolio…

For everyone that comes here to enjoy my regular VMware content, you need not worry - that content is certainly not going away.

What’s more is that Nutanix products can be layered on top of VMware products to augment functionality. From Nutanix vs. VMware: Comparing Hyperconverged Infrastructure and Hybrid Cloud Solutions:

In fact, while many Nutanix customers choose to run ESXi on the Nutanix platform today, a number of others choose Microsoft Windows Server Hyper-V and even more customers are now switching to Nutanix AHV to reduce virtualization licensing costs, enable a single pane-of-glass management across hypervisors, and provide the ability to run business-critical workloads.

Quite why anyone would want to run Hyper-V… :laughing:

Overview

Nutanix - Introduction & Architecture

Nutanix AOS (Acropolis Operating System) is the company’s primary operating system for its Hyper-Converged Infrastructure (HCI) products. It provides a comprehensive set of data services, including storage, networking, security, and management capabilities, all integrated into a single platform.

Nutanix AHV (Acropolis Hypervisor) is Nutanix’s native hypervisor, which allows customers to run multiple virtual machines on a single physical server. AHV is built on open-source KVM technology and is included as part of Nutanix AOS.

One major difference to ESXi is that AHV uses a Controller VM (CVM) to manage storage local to the hypervisor, as seen in green below:

Node Architecture
Image: nutanixbible.com - The Book of AHV

Nutanix - For the vSphere Admin

I’m sure this will upset both VMware and Nutanix supporters alike (Microsoft Hyper-V supporters are already annoyed at my comment above) but here goes.

To understand the Nutanix product portfolio and how it would potentially map to the VMware product portfolio, lets lay the products against each other:

  VMware Product Nutanix Product  
  ESXi AHV  
  ESXi Host Client PRISM Element  
  vSAN AOS Storage  
  vCenter PRISM Central  
  VMtools Nutanix Guest Tools / VirtIO  
  NSX Flow  
  Converter Move  

With everyone suitably annoyed, let’s move on! :wink:

Right, let’s learn through doing.

Nutanix ISO Download

We will deploy the Community Edition 2.0 (released March 2023) available HERE, no login required.

Download the CE 2.0 ISO phoenix-ce2.0-fraser-6.5.2-stable-fnd-5.3.4-x86_64.iso:

CE ISO Download

IP Addresses and ESXi Config

Now that we have our ISO, to successfully deploy it as a VM running on ESXi, we need the following:

Two IP Addresses:

  • One for the AHV Host
  • One for CVM (Storage Controller VM) running on the AHV host

In my lab, I’ll use the following:

  • Nutanix Host: AHV-SITE-A-1 - 192.168.10.51
  • Nutanix CVM: CVM-SITE-A-1 - 192.168.10.50

As we are running VMs under our AHV VM, we need to enable the following on our ESXi vSwitch portgroup:

As below:

MAC Changes, Forged Tx

Our Nutanix AHV host and CVM will require internet access. This is required so that they can access our Nutanix NEXT account (link provided to create a free account later on if you don’t already have one) and download various updates.

AHV VM Config

Let’s create our VM. A VM with the following configuration is required:

  • Compatibility: ESXi 7.0 U2 and later
  • Guest OS Family: Linux
  • Guest OS Version: CentOS 7 (64-bit)
  • 8 CPUs
  • Expose hardware assisted virtualization to the guest OS - Ticked
  • 32GB RAM
  • SCSI Controller VMware Paravirtual
  • 16GB HDD - SCSI(0:0)
  • 200GB HDD - SCSI(0:1)
  • 500GB HDD - SCSI(0:2)
  • 1 VMXNET3 Network Adapter
  • VM Options > Boot Options > Firmware > BIOS

Finally, so that ESXi always presents consistent disk UUIDs to our AHV VM, we need to set disk.EnableUUID to TRUE in our AHV VM advanced settings. This can be achieved as follows:

  1. Select the AHV VM and select Actions > Edit Settings
  2. Select VM Options and expand the Advanced section
  3. Click EDIT CONFIGURATION
  4. Select ADD CONFIGURATION PARAMS
  5. Add the param name disk.EnableUUID and set the value to TRUE

disk.enableuuid true

Further details on setting disk.EnableUUID can be found in the resolution section of VMware KB52815.

Click OK to save and power the AHV VM as normal.

Once booted from the phoenix-ce2.0-fraser-6.5.2-stable-fnd-5.3.4-x86_64.iso and after a short delay, the following is seen:

AOS Installer 1

Select and verify the following:

  • AHV Install
  • 16GB = Hypervisor Boot [H]
  • 200GB = Data [D]
  • 500GB = CVM Boot [C]

Then enter, using tab to move between selections:

  • Host IP address
  • CVM IP address
  • Subnet mask
  • Gateway
  • Check the single-node cluster box
  • DNS server IP address

Once completed, the configuration should resemble the following:

AOS Installer 2

On the next page, scroll to end of and accept licence agreement and tab to start the installation.

After allowing around 10 mins for the initial installation, press Y to reboot.

After allowing around another 10 to 20 mins for a nice cup of coffee the host and CVM to boot and complete installation, ping the AHV host and the CVM. Both should be available.

Next, SSH to it CVM using the following credentials:

  • Username: nutanix
  • Password: nutanix/4u

SSH to CVM

Execute the following command to check the status of the cluster:

cluster status

Confirm the output resembles the following showing that all services are up:

Cluster Status

If some services return the status of “DOWN”, issue the following command to start them:

cluster start

Next, open a browser and browse to:

https://<CVM IP or FQDN>:9440

If you receive “You cannot visit right now because the website sent scrambled credentials that Chrome cannot process.” from Google Chrome as shown below:

Chrome Scrambled Creds

Type thisisunsafe and Chrome will continue to the PRISM login page.

Login using the same credentials as before:

  • Username: admin
  • Password: nutanix/4u

Prism login

When prompted, change password and login again with your new password.

Next enter your Nutanix portal credentials (Use the link to create a free account if you don’t already have one):

Supply NEXT Credentials

If you receive the error “Unknown host, could not reach NEXT server. Please configure name server”:

Supply NEXT Credentials ERROR

Guess what, you’ll need to configure a DNS server. SSH back into the CVM and use the following commands to check, remove and add DNS name servers:

ncli cluster get-name-servers
ncli cluster remove-from-name-servers servers="<INCORRECT DNS SERVER IP>"
ncli cluster add-to-name-servers servers="<CORRECT DNS SERVER IP>"

Add DNS Server

After reattempting to login, you should be presented with the Prism Element console:

Prism Element Console

Installing VMware Tools

Whilst VMware recommend the use of Open-VM-Tools, I’m going to install the ESXi bundled version of VMtools for ease of installation and avoidance of “dependency hell”.

Mount the VMtools ISO image in the normal way:

Mount VMtools ISO

SSH into the AHV host (not the CVM) using these credentials:

  • Username: root
  • Password: nutanix/4u

Run the following command to find the mounted VMtools ISO:

blkid

As can be seen below, VMtools ISO is available at /dev/sr0:

blkid

Next, create a mount point, mount the VMtools ISO and take a look at the contents of the ISO image:

mkdir /media/iso
mount /dev/sr0 /media/iso
ls /media/iso

Mount and explore ISO

Next, let’s copy VMwareTools-10.3.25-20206839.tar.gz to /root and extract it:

cp /media/iso/VMwareTools-10.3.25-20206839.tar.gz /root/
cd /root
tar -xf VMwareTools-10.3.25-20206839.tar.gz

Launch the installer:

cd vmware-tools-distrib
./vmware-install.pl

Launch Installer

Accept the defaults for all options (just press RETURN).

Confirm VMTools is running:

VMTools Running

That is the basics done.

Updates

From the menu bar, select LCM as below:

Select LCM

Click Inventory > Perform Inventory:

Perform Inventory

Click Proceed:

Perform Inventory - Proceed

Allow time for the inventory and LCM update to complete:

LCM Updating

Click on Updates > Software to view available updates. Yep, some updates are available to be applied. Select all and then View Update Plan:

Updates

Select all updates and click View Update Plan:

Apply Updates

Click Next to continue and click Apply Updates. Allow time for the updates to be applied:

Applying Updates

Depending on the updates being applied, connectivity to PRISM may drop. Simply allow time for the updates to install and reconnect after.

Job done:

Update Complete

Conclusion and Wrap Up

That will do for our first look at Nutanix AHV and PRISM Element. In this post we deployed Nutanix Community Edition 2.0 and updated it to bring it right up to date, in readiness for the deployment of virtual machines.

In future posts we will be looking to finish our AHV host configuration, spinning up some VMs and potentially deploying PRISM Central.

This post is part 1 of a multipart series. Find the other parts here:

-Chris