Nutanix Technology Champion - Nutanix Solution Architect

Julien DUMUR
Infrastructure in a Nutshell
Anti-affinity between virtual machines on Nutanix AHV

For a customer case, I had to configure the anti-affinity between 2 virtual machines.

Anti-affinity: what is it?

First, I’ll give some context so the foundations are laid. For one of our clients, I am deploying 2 Palo Alto virtual machines to set up a cluster which will manage flows between its different networks.

In order to ensure maximum redundancy in the event of any failure, it is essential that the virtual machines be hosted on different hosts. Indeed, if they were hosted on a single host, in the event of a host failure, the Palo Alto cluster would be out of service.

Two Palo Alto VMs running on the same host

This is where anti-affinity comes into play and will allow me to ensure that the 2 virtual machines are never found on the same host.

Setting up anti-affinity

The implementation of the anti-affinity is to be carried out in command lines directly from one of the CVMs of the cluster and takes place in several stages:

  • Create a group: connect via SSH then type the following command:
nutanix@cvm$ acli vm_group.create group_name
  • Add the virtual machines to the group:
nutanix@cvm$ acli vm_group.add_vms group_name vm_list=vm_name1,vm_name2
  • Enable anti-affinity:
nutanix@cvm$ acli vm_group.antiaffinity_set group_name

After a while, virtual machines that were previously on the same host will then be spread across 2 different hosts.

Palo Alto VMs spread across two different hosts

In the event of failure of a host hosting one of the 2 virtual machines, the machine concerned will be restarted on one of the hosts in compliance with the anti-affinity rule.

Be careful, however, if you manually migrate a virtual machine or as part of the host being put under maintenance, the anti-affinity rule may not apply.

Official documentation

The official Nutanix documentation: https://portal.nutanix.com/page/documents/details?targetId=AHV-Admin-Guide-v6_7:ahv-vm-anti-affinity-t.html

Read More
Adding a subnet to a Nutanix AHV cluster

To be able to deploy a virtual machine on your Nutanix cluster and have it reachable on your network, you will need to start by configuring the network(s) on your cluster.

Creating a network using Prism Element

Under Prism Element, in the “Settings > Network Configuration” menu is the list of all existing networks on the cluster, click on “Create Subnet”:

Then enter your network information, namely the name and vlan ID:

Create Subnet form with name, virtual switch and VLAN ID

If you do not have a DHCP server, you can let Nutanix manage the addressing of the network created using the “Enable IP address management” option:

Enable IP address management option

You will then need to complete all the options that would normally have been delivered by a traditional DHCP server:

Subnet DHCP settings and IP address pools

Click “Save” once the settings are correct. Repeat for each VLAN you need on your infrastructure.

Creating a network using Prism Central

In Prism Central, network management is carried out in “Network & Security > Subnets”:

Subnets list in Prism Central Network and Security

To add a new network, click “Create Subnet”:

Create Subnet form in Prism Central

It is then a form similar to that of Prism Element that must be completed by activating, or not, the “IP Address Management” option if you wish to leave the management of your addressing to Nutanix.

Official Nutanix documentation

Link to official documentation: https://portal.nutanix.com/page/documents/solutions/details?targetId=BP-2071-AHV-Networking:bp-ahv-network-management.html

Read More
Uploading an image to a Nutanix AHV cluster

To be able to deploy virtual machines on your cluster, you will need images that are available to launch your installations and here is the procedure to follow.

Before you start

An image uploaded via Prism Element can be imported to Prism Central. The reverse is not possible.

An image uploaded or imported via Prism Central is visible but not editable on Prism Element.

An image uploaded via Prism Element can only be used by the cluster to which it was uploaded.

An image downloaded via Prism Central can be used by all clusters managed by this Prism Central

Nutanix provides compatibility with images in the following formats:

  • RAW
  • VHD
  • VHDX
  • VMDK
  • VDI
  • OVA
  • ISO
  • QCOW2

Download via Prism Element

To upload an image via Prism Element, connect to the web interface using your credentials, then navigate to the “Settings > Image Configuration” menu:

Image Configuration menu in Prism Element settings

Click Upload Image:

Upload Image button in Image Configuration

Complete the “Name”, “Image Type”, “Storage Container” fields, select the image you wish to transfer then click on “Save”:

Image list in Prism Element Image Configuration

Wait during the transfer and then while your image is processed by the cluster. Its status must be “ACTIVE” for it to be operational:

VirtIO 1.2.3 image being processed, still inactive
VirtIO 1.2.3 image now active

Download via Prism Central

The process for transferring an image through Prism Central is essentially identical to that of Prism Element.

Connect to the web interface then navigate to “Compute & Storage > Images” and click on “Add Image”:

Add Image button in the Prism Central Images menu

Click on “Add File”, select the image you want to transfer, fill in the description then click on “Next”:

Adding the image file in Prism Central

On the next screen, select the image placement mode based on your environment. In most cases, the default method “Place image directly on clusters” will do the trick, click “Next”:

Image placement method and cluster selection

Wait while the cluster transfers and processes the image.

Import images from Prism Element to Prism Central

On the image management page on Prism Central, click “Import Images”:

Import Images button in the Prism Central Images menu

Then select the transfer method that suits you:

Import Images window: all images or images on a cluster

“All images” will repatriate all the images from all the clusters managed by Prism Central

“Images on a cluster” will allow you to select the cluster(s) and source image(s) on a case-by-case basis.

Official Nutanix documentation

Link to official documentation: https://portal.nutanix.com/page/documents/details?targetId=Web-Console-Guide-Prism-v6_7:wc-image-configure-acropolis-wc-t.html

Read More
The MikadoBox, the pocket Nutanix cluster

For a client file, our boss asked us during the “Thursday meeting” to find a solution to migrate the client’s infrastructure physically, from point A to point B because it has undersized internet access. not allowing a site-to-site migration. Ideas flowed, some quite good, others really crazy, we had a little time to think but it had to be easily transportable, see that it could travel by plane in the hold… Here is the genesis of the MikadoBox.

Sofa R&D (or almost)

The following Saturday, stuck in queues at Spirou Park, I received an SMS from Louis Xavier (LX for short), my CTO, probably slumped on his sofa. Having must have sensed my distress despite the distance from the amusement park, he informed me that he had found the perfect format for a system transportable in a backpack: a Lenovo M80q.

Lenovo ThinkCentre M80q front and back

And it was there, while I was breaking down under the effect of waiting and the kids screaming with excitement around me, that I told him that we could totally take 3 and put together a complete cluster in a suitcase:

Text messages about building a 3-node Lenovo cluster

Pandora’s box was ajar, and we both rushed to open it wide to see what might come out…

Theoretical design

Now that we had this idea for a portable cluster, we had to make a shopping list to get an idea of the total weight (it had to remain transportable).

DISCLAIMER: this type of cluster is not intended to accommodate PROD. This is why we have allowed ourselves not to respect certain Nutanix prerequisites.

In terms of hardware, here is an essential prerequisite for setting up a Nutanix cluster as we imagined:

  • 3 to 4 nodes
  • 1 switch (8 or 16 ports max, 10G uplink)
  • 1 rack-mountable socket rail

As a bonus, we also wanted a 4G router so that we could start the MikadoBox from almost anywhere and have it functional and accessible remotely.

Based on this list, and the fact that we absolutely wanted something visually attractive, we had to find a system allowing us to rack up all the equipment and do a minimum of “cable management” so that it was as clean as possible.

Looking for a rackable case

On the Thomann website, I remembered seeing solutions for racking up sound equipment when I was looking for a bay for the home that wouldn’t take the place of a 42U bay. The width is the same as a computer bay but it is possible to find ones of only a few U.

Thomann audio rack with handles

On paper, it’s not bad:

  • possibility of racking 3U or more (available in several sizes)
  • accessible front and rear
  • handles for transport
  • limited space

But to travel by plane, there is no protection for splashes of water, shocks on the front/rear faces of the cluster, the material is clearly visible to those who will handle it… This is not optimal.

The second idea was a “Flyhtcase” type suitcase.

Wheeled flight case

The wheels for transport are great! On the other hand, in terms of size, many models do not fit in a car trunk, and there is generally no mounting rail…

LX then had a brilliant idea: a Gator suitcase.

Wheeled Gator rack case

This suitcase met all our criteria:

  • reasonable size
  • solidity
  • transportable
  • internal mounting rails
  • removable front/rear panel

We had our data center on wheels, all we had to do was fill it.

Racks and options

The new challenge that awaited us was to find solutions to fit all the material that we had retained in the MikadoBox.

The switch, a priori of a U height, would be, whatever the model, either full or half width with the appropriate fixings, so no problem. The 4G router would not have any mounting provided. It would be necessary to provide a shelf or a system that allows it to be positioned so that it is both accessible and fixed in the box.

For the 3 or 4 Lenovo nodes, we had to find a fixing system. While searching the internet, I came across Reddit posts that showed “homelabs” with racked Lenovo Tinys. Since I have a 3D printer, I searched around a bit and ended up finding some STL files that might have been suitable for us.

3D printed rack for Lenovo Tiny

The disadvantage of 3D printing a rack intended for travel is its lack of resistance. I was very worried that it wouldn’t hold. So I continued searching and ended up finding an Austrian rack system designed for the Lenovo M80q:

racknex rack mount kit for 2 Lenovo ThinkCentre Tiny

Drawer-mounted (optional), rack-mountable, and the icing on the cake: there is a customizable version that would allow us to bring the connections back to the front! These racks are impeccable since they include optional rails to transform the fixed rack into a drawer.

racknex rack with front-facing connections

In terms of the arrangement in the box and taking into account the quantity of material that we wish to integrate, here is what we have imagined:

MikadoBox layout: 4G router, switch and Lenovo nodes

The front is free once the case is opened, as is the rear which allows a flow of air through when the cluster is in operation. Once closed, the case fully protects the cluster without having to disassemble anything, you just need to put away the power cable.

Now that everything is settled from a theoretical point of view and in terms of space, all that remains is to move on to practice…

A small but strong cluster

Configuration level, the nodes are customizable within reason given their extremely small size and restricted hardware slots.

However, the cluster configuration is nothing to be ashamed of:

  • 48 Cores
  • 256Gb RAM (CVM 20Gb each)
  • a raw storage space of 18Tb or 9Tb useful with an RF2 cluster!
Prism Element of the MikadoBox cluster on Nutanix CE

So no, you won’t run an entire large infrastructure, but it can still do the job for certain use cases…

The assembly of the MikadoBox was carried out by LX, his sofa being very far from my cottage, and everything fits perfectly in the box for a weight of around 20kg!

Assembled MikadoBox in its Gator case

Use cases selected

In terms of use cases, here are some examples of use of the MikadoBox:

  • POC (Nutanix / HYCU / Supervision), perfect for doing demos like at .NEXT Nutanix Paris 2023 for example
  • Crisis BCP
  • Infrastructure migration from point A to point B when network usage is not possible
  • Homelab

You will have understood, and taking into account the tests carried out, we are far from a gadget but much closer to a real cluster such as one could find in a data center.

If you would like to learn more, be sure to keep an eye on mikadolabs.com in the coming days! An article on the installation, configuration and benchmarks of the platform is currently being written.

Read More
Deploying HYCU on Nutanix

HYCU provides a free Community Edition version of its backup solution for owners of a Nutanix Community Edition installation. Here’s how to get it and deploy it on a cluster.

What is HYCU?

HYCU is a backup software for hyperconverged IT environments. The HYCU solution provides data protection for platforms such as Nutanix, Google Cloud Platform and VMware by supporting backup, recovery and

data management for these specific environments. HYCU offers a simplified approach to data backup and recovery compared to the competition.

HYCU architecture: sources, controller and backup targets

Here are the main key features of HYCU:

Simplified backup and recovery: HYCU simplifies the data backup and restoration process by automating recurring tasks. This helps reduce administration by teams and speeds up recovery when needed.

Integration with specific environments: HYCU is designed to integrate seamlessly with platforms such as Nutanix, VMware and Google Cloud Platform, providing a solution optimized for these environments.

Backup policy management: Setting custom backup policies based on specific business needs, such as backup frequency, data retention, etc.

Application backup: HYCU now offers to backup your SaaS applications such as Office 365, Jira, Okta, and many others.

Resource optimization: HYCU has been designed and optimized to have a minimal impact on the overall performance of the environment.

Reporting and Monitoring: The tool offers reporting and monitoring tools to track backup status, policy compliance, and overall backup system health.

Disaster Recovery: HYCU provides options for rapid and reliable recovery with the ability to quickly restore data in the event of a disaster or major outage.

Now that the introductions are done, let’s get down to business!

Setup files download

We will start by retrieving the files necessary for deploying the HYCU solution directly from the publisher’s site.

To do this, go to: https://www.hycu.com/get/trial-start

Then select “Nutanix” in the Private Cloud & Data Center category:

Selecting Nutanix in the Private Cloud and Data Center category

You will then need to complete the following form:

HYCU trial request form

Select Nutanix again from the list of available environments:

Selecting the Nutanix environment

Then select the type of hypervisor installed on your cluster, in our case it is obviously the Nutanix AHV hypervisor:

Selecting the Nutanix AHV hypervisor

PLEASE NOTE: I remind you that this tutorial shows how to deploy HYCU on a Nutanix Community Edition environment for homelab use. If you wish to put this solution into production, I invite you to contact a distributor of the solution in order to obtain a quote for a license adapted to your environment.

Finally click on “download .qcow2” to start downloading the image:

HYCU image download .qcow2 button

Now that the file is recovered, we can move on to the installation.

Prerequisites for deployment

Before deploying, we will ensure that our Nutanix cluster is ready to receive HYCU.

For sizing the virtual machine, you will need the following resources:

HYCU VM sizing

Given that we are in a lab context, the smallest sizing will be largely necessary. Make sure you have these resources available on your cluster before deploying.

A service account on the Nutanix cluster with “cluster admin” rights will also be required. On the Prism Element interface, in “Settings > Local User Management”, click New User:

Local User Management in Prism Element

Then complete the form before validating, remembering to check “Cluster Admin” in the “Roles” section:

Service account with the Cluster Admin role

Configuring the Data Services IP is also recommended. In “Settings > Cluster Details”, fill in the ISCSI Data Services IP field with a dedicated IP address (that is not yet assigned to other hardware):

ISCSI Data Services IP in Cluster Details

You also need internet access and an available IP address for your HYCU virtual machine.

As for specific ports and other particularities, I will leave you the pleasure of going through the documentation: https://download.hycu.com/ec/v4.8.1/help/en/HYCU_UserGuide.pdf

Deploying the HYCU virtual machine

The deployment of HYCU is very simple and is divided into 4 steps:

The 4 HYCU deployment steps

To upload the image previously downloaded to your cluster, on Prism Element in “Settings > Image configuration”, click on “Upload Image”:

Upload Image button in Image Configuration

Fill in the form, making sure to name the image exactly like the .qcow2 file you downloaded (here, hycu-4.8.1-274), then click Save:

Importing the hycu-4.8.1-274 image

You now have to wait while the image downloads. As soon as it is finished, in the “VM” menu, in the Table display, click on “Create VM”:

Create VM button in Prism Element

Complete the form fields as follows:

HYCU VM name and resources
HYCU VM vCPU and memory

In the “Disks” section, click “Add new disk”, select “Clone from Image Service” and find the previously downloaded image:

Disk cloned from the HYCU image

Then add a second 32Gb disk:

Second 32 GB disk

Finally, in the “Network Adapters (NIC)” section click on Add New NIC and select a VLAN to which to connect the VM network card:

HYCU VM network adapter

Now click on “Save”, the VM is now created, start it then open a console on it. On the first screen, select “HYCU Backup Controller”

HYCU Backup Controller choice in the console

On the following screen, fill in the requested information:

HYCU controller network configuration

The software then applies the configuration provided and proceeds to finalize the installation of the VM. This may take a few minutes and the system will notify you once the installation is complete.

Then enter the IP address that you entered during configuration in your browser like this: https://ip-du-serveur:8443

HYCU login page

Log in using admin/admin credentials to access the administration console.

HYCU administration console

Your HYCU Backup Controller is now deployed. In a future article, we will see how to do the basic configuration (adding the cluster, defining a target, creating policies…).

Read More
Preparing your Nutanix certifications

Certifications are an essential way to validate your skills and advance your career. Whether you are seeking professional, academic, or technical certification, adequate preparation is the key to success.

This year, I obtained quite a few certifications, notably at Nutanix, spending a lot of time at Nutanix University. But behind these successes there are also some failures, often linked to poor preparation.

This is what motivated the writing of this post in which I will share with you some tips for choosing and preparing for your Nutanix certifications, or any other certification.

WHY GET CERTIFIED?

This is the big question that comes up often and there are several answers to this question:

– Skills Validation: Certifications attest to your skills and expertise in a specific area. They confirm that you have acquired the knowledge and skills necessary to excel in your field of study or work.

– Career advancement: Certifications can open new professional opportunities. They can help you get a job, advance in your current career, or qualify for higher, better-paying positions. For example, passing the Nutanix NCS-Core will allow you to access the “Services” part and the deployment of clusters.

– Access other certifications: Some certifications require you to have already obtained other certifications as a prerequisite before you can attempt them. This is particularly the case of the previously mentioned NCS-Core which requires holding the NCP-MCI.

– Upskilling: Certifications attest to your skills and expertise in a specific area. They confirm that you have acquired the knowledge and skills necessary to excel in your field of study or work.

– Personal Challenge/Satisfaction: Obtaining certification can be a source of personal pride and satisfaction. The opportunity to put yourself face to face with a challenge. It is a personal achievement that demonstrates your commitment to your professional or academic development.

Each of these certifications corresponds to a particular field and offers specific benefits, whether it be technical skills, management skills, language skills, regulatory compliance or other needs. It is important to choose the certification that best suits your personal and professional goals.

THE CHOICE OF CERTIFICATION

This may seem like a basic approach, but the choice of certification is essential to passing the exam.

Indeed, if you are new to a technology, you are not going to go straight to the most difficult certification, you have to go from strength to strength. And some certifications require you to have already obtained others as prerequisites.

Nutanix University certification levels: Associate, Professional, Master and Expert

Choosing which certification to take is an important decision that depends on your personal and professional goals. Here is a multi-step process to help you choose the certification that best suits your needs:

  1. Identify your goals: Before choosing a certification, think about your goals. What do you hope to achieve by obtaining this certification? Do you want to advance in your career, change fields, acquire new skills, or simply validate the ones you already have? Being clear about your goals will help you make an informed decision.
  2. Assess your current skills: Take an inventory of your current skills. What are your strengths and weaknesses? What areas do you want to strengthen? This assessment will help you determine the level of certification that is right for you.
  3. Check the reputation of the certification: The reputation of the certification body is important. Opt for certifications that are recognized and respected in your industry. Well-established certifications tend to be more valued by employers.
  4. Evaluate program content: Review the content of the certification program. Check if the topics covered match your goals and if the program is suitable for your skill level.
  5. Consult already certified professionals: Talk to professionals who have obtained the certification you are considering. They can give you insight into their experience and the value of the certification.

Nutanix offers a tool to guide you towards the certifications best suited to your profile.

Remember that choosing a certification depends on your personal interests, your career, and your industry. It may be a good idea to consult a mentor or career advisor for advice specific to your situation.

10-POINT PREPARATION METHOD

Studying for a certification can be a demanding task, but by using effective techniques, you can maximize your study time and improve your understanding. Here are some review techniques that will help you achieve your certification goals.

  1. Study of the lesson plan: Nutanix certifications, and many other certifications, offer a lesson plan, the famous blueprint. It is in this one that you will find everything you need to revise to pass the certification with peace of mind. Go through each course page, each link, each element of the blueprint to best prepare yourself for the exam.
  2. Note-taking: When revising, take notes to summarize key information. Use a note-taking style that works best for you, whether in full sentences, bulleted lists, or diagrams. Notes will help you organize your thoughts and revise quickly.
  3. Cards: Cards are effective tools for memorizing concepts, definitions or terms that arise directly from note-taking. Create sheets that summarize the important points of the course material so that you can review them quickly.
  4. Diagrams: Creating diagrams can help you visualize connections between ideas. This is especially useful when you need to understand complex concepts and their interrelationships.
  5. Quizzes and Self-Assessment: Test your knowledge by creating quizzes or using certification-related practice questions. This will allow you to gauge your understanding of the material and identify areas where you need to focus more of your revision.
  6. Spaced Revision: Instead of studying intensively for long periods of time, embrace spaced revision. This means you regularly review the same content over an extended period of time, which helps strengthen long-term memory. Do a little bit every day.
  7. Practical / Labs: Practical exercises are an essential component of preparation for any certification. This allows you to apply the concepts you have learned and develop your practical skills. Set up a lab, try solving problems, completing tasks, or working on certification-related projects to familiarize yourself with real-world situations you might encounter.
  8. Mock exams: Mock exams are simulations of real exams. They are valuable in helping you understand the exam format, duration, and type of questions you will face. You can usually find practice exams online or in preparation books. Take as many practice exams as possible to practice time management and get used to the exam questions.
  9. Identify your weak areas: When you practice with exercises and mock exams, note the questions that you have difficulty understanding or solving. This will help you identify your weak points and areas that need further review.
  10. Find yourself a mentor: Reviewing certifications is much simpler and more effective when you do it with an already certified mentor. It will often push you to your limits by bombarding you with questions that are more specific than the exam. But it’s for your own good! Remember that he already has his certification and knows how it is done.

By using these review techniques, you can better prepare for your certifications and increase your chances of success. Remember that the key is consistency and perseverance.

Good luck in your preparations and in obtaining your certifications!

Read More