Nutanix Community Edition – Tips and Tricks

Don’t feel like doing the whole installation by hand? Then use my CE Deployer 😉 It is a Windows app that turns the Community Edition installation into one small bootable ISO. Boot your node from it and it builds and configures the cluster on its own (and Prism Central if you want it). A lot easier and you can grab a coffee in the meantime.

cedeployer.io

At this page you will find all tips and tricks gathered on the internet. When you are missing something please leave a comment (at the bottom) and I will make sure it is added.

01Get started

  1. Register your account for Nutanix CE

    Wait for the email with the confirmation.

    nutanix.com/products/community-edition/register
  2. Make sure you can login to the community

    next.nutanix.com
  3. Download latest CE

    Download Community Edition on next.nutanix.com
  4. Check the hardware requirements

    System requirements on portal.nutanix.com

Community driven HCL

Please participate 😉

github.com/smzksts/NutanixCE-Community-HCL

Create bootable installation media

Use an older version than 4.9.

rufus.ie

Public downloads of the latest VirtIO drivers

Firewall rules

Community Edition needs internet access. Allow this outgoing traffic from the CVM (and Prism Central):

  • my.nutanix.comTCP 443, account check at first login
  • insights.nutanix.comTCP 443, Pulse
  • nsc01.nutanix.net nsc02.nutanix.netTCP 80 and 8443, Pulse
  • release-api.nutanix.com download.nutanix.comTCP 80 and 443, LCM and upgrades
Firewall requirements on next.nutanix.com

02Installing

Nested VMware

One of the best posts on my blog and the one which works all the time. Updated regularly. Use this guide when installing CE nested on VMware vSphere.

Installing Nutanix Community Edition on VMware ESXi / vSphere

Use VLANs? Run crashcart

It is easier to add the CVM and AHV in a VLAN before creating the cluster by running the crashcart.

The Nutanix network crashcart, a hidden gem

Break and restart the installer

Break: CTRL + C

Restart:

./ce_installer && screen -r

Changing CVM memory

Change Nutanix Community Edition CVM memory

03Hardware issues

Realtek r8169 fix

Issue Firstboot script will fail.

Fix Login with root nutanix/4u on AHV and execute:

dracut -f --add-drivers realtek /boot/initramfs-$(uname -r).img
rm /root/.firstboot_fail
touch /root/.firstboot
reboot

This will load the Realtek module and the firstboot script will be triggered again.

Realtek and AHV 10?

Realtek and update to AHV 10 / AOS 7 on next.nutanix.com

NVMe issues

Make sure NVMe drives for CVM and DATA are not in the same IOMMU group:

find /sys/kernel/iommu_groups/ -type l
Issue with CE 2.1 NVMe drive detection post installation

SSD detected as HDD

  1. Break the installer
  2. Set the disk to non-rotational:
    echo 0 > /sys/block/sd#/queue/rotational
  3. Restart installer
SSD detected as HDD even though rotational is 0

Worn out USB

If installing AHV on USB drive. The AHV installation will time out. Always use a fresh/new USB drive for this.

Test with:

dd if=/dev/sd# of=/dev/null bs=1M count=50

Increase AHV timeout timer:

  1. Break installer
  2. Edit: /root/phoenix/imaging_helper/installer_vm.py
  3. Jump to line 31
  4. Increase: kvm=20*2*60
  5. Save
  6. Restart installer

Workaround for AHV 10

Virtual machines will not start on consumer grade CPU’s when running AHV 10.

github.com/ktelep/NTNX_Scripts: ahv10_commercial_workaround

04Cluster

Check the installation before creating the cluster

Login on the AHV host. The CVM must be running:

virsh list --all

Both services must be active (exited):

systemctl status ahv-setup-network ahv-define-cvm --no-pager

Creating the cluster

Redundancy Factor 1 (single node cluster):

cluster -s <cvm_ip> --redundancy_factor=1 create

Replication Factor 2 on single node cluster (2x CVM and 2x data disks on single node cluster):

cluster -s <cvm_ip> create

Redundancy Factor 2 (3 node cluster):

cluster -s <cvm_ip1>,<cvm_ip2>,<cvm_ip3> create

Tip Pass the DNS and NTP servers directly in the create command:

cluster -s <cvm_ip> --redundancy_factor=1 --dns_servers=8.8.8.8 --ntp_servers=pool.ntp.org create

Cluster create creates the cluster but doesn’t start it

Make sure the hardware clock and date is setup correctly in the BIOS. Reinstall your node and try again.

When the clocks of the host and the CVM differ, the certificates created during cluster create are rejected by the host and Genesis keeps restarting with:

Failed to push updated CA chain to host

Check correct account permissions from CVM

curl -u 'username:password' https://my.nutanix.com/api/v1/users/me
Output of curl -u 'username:password' https://my.nutanix.com/api/v1/users/me

DNS servers

Check current set DNS servers:

ncli cluster get-name-servers

Add DNS server:

ncli cluster add-to-name-servers servers=<dns_server>

Remove incorrect DNS server:

ncli cluster remove-from-name-servers servers=<dns_server>

Missing Platform License after upgrading to AOS 7.6

You get these messages when you upgrade to AOS 7.6. This is fixed in NCC 6.0.1, which comes with AOS 7.6.1.

Cluster list in Prism with the violation Missing Platform License
Banner: This cluster is running without platform licenses for 8 days

More Community Edition guides on this blog

Tielen Consultancy

For official Nutanix trainings and Nutanix cluster rental to use for trainings, tests, lab, learning.

tielenconsultancy.com

Nutanix Community Forums

next.nutanix.com

Nutanix NTCs Blogroll

NTC Blogroll

2 comments

  1. Dag Jeroen,

    Ik volgde onlongs jouw presentatie bij de Bank van Breda tijdens NUG. Voor ons lab zou ik een drie node cluster willen opzetten met Prism Central, die eventueel nog wat guest VM’s draait om nuttige data te kunnen uitlezen. Tijdens de presentatie raadde je Minisforum aan als goto hardware voor een CE cluster. Je liet ook weten dat het niet gelijk is hoe deze gespect waren. Heeft u een voorbeeld configuratie die zonder al te veel problemen kan werken?

    Vriendelijke groeten,
    Yannick

    1. Hi Yannick, sorry for the late response. I’m currently building a MinisForum MS-A2 CE cluster. When it is up and running (I’m waiting for parts) I will create a kit list.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.