# Nutanix

## Version

* Linux Control Center 2.10.X or higher
* Nutanix Prism Central and/or Element pc.2022.6.0.10 or higher
* AOS Version 6.5.2 LTS or higher

## Requirements

* NGT Agent
* User with permission to list VM information
* User with permission to create Recovery points
* Hosts in the LCC database previously configured

## Overview

This guide provides information and step-by-step instructions for integrating Linux Control Center with Nutanix Prism and/or Element.

Integration with Nutanix Prism is classified as a Rollback Item within the scope of Linux Control Center. A Rollback Item generally aims to initiate a backup task, create a snapshot, recovery point or similar item within the integration scenario, in order to guarantee the rollback of a system if a modification generates some unexpected behavior in your technology park.

{% hint style="warning" %}
Please note that all third-party solutions that interact with the LCC must be configured correctly. Inconsistent data from these solutions cannot be processed or presented reliably by the LCC.
{% endhint %}

## Objective

Create a Recovery Point for a server managed by the Linux Control Center, which has been properly identified in Nutanix Prism.

## Integration flow

1. Configuring Nutanix Prism;
2. Defining which actions will generate a Recovery Point;
3. Searching for information on virtual machines;
4. Identifying the servers managed by the Linux Control Center that are present in Nutanix Prism;
5. Requesting an action;
6. Generating a Recovery Point;
7. Logging in to the server via SSH;
8. Executing commands;

![](https://gitlab.com/7dev-doc/linux-control-center/-/blob/main/pt-br/images/nutanix/nutanix_recovery_point.png)

{% hint style="danger" %}
It is important to note that Linux Control Center operates with the minimum permissions required on third-party systems, so Recovery Points are not managed in Nutanix Prism, and the team must be responsible for managing resources, such as available storage space for Recovery Points and other operations in the life cycle of a Recovery Point within your corporation.
{% endhint %}

## Minimum permissions for integration

These are the minimum permissions required for a Nutanix Prism user to integrate with Linux Control Center.

1. To create the profile correctly, you must assign a local Nutanix Prism user or an **Active Directory** to a Nutanix **Role** according to the official documentation in the link below;

* If you choose to use an AD user instead of the local Nutanix Prism user, it is necessary that the user has Domain Admin permission.

<https://portal.nutanix.com/page/documents/details?targetId=Nutanix-Security-Guide-v6_8:mul-security-authentication-pc-t.html>

1. After joining Nutanix Prism to Active Directory, click **Config**

![](/files/tCMNyfhZSHLcKdzE3Hhg)

1. Click **Local User Management** and click **New User**

![](/files/iXB63KfWOAHc7NHS4jyz)

1. Create a user with a **Viewer** profile in Nutanix with the following settings;

* **User Admin:** Disabled
* **Prism Central Admin:** Disabled

![](/files/rDU0dpNqvL2ulgHenXHJ)

1. Click on the left side button to open the menu and click on **Administration** and then on **Roles**

![](/files/hjAH9qOE8WvBwwX7mwoz)

1. Click on **Create Role**

* We suggest the name **Linux Control Center** for better identification.

![](/files/U3asuRyXAmemrHGOvpfh)

1. Enable the permissions as below; **App**: Access Console VM, View VM**VM Recovery Point**: Snapshot VM, View VM Recovery Point, Allow VM Recovery Point Creation**VM**: Access Console VM, View VM

![](/files/52xPJ5ZPFEdyBGNk65tG)

1. This will be the result of the **Role Assignment** when it is finished.

![](/files/pAhbKgRrtlD6HVzIJ6Qq)

1. Then, go back to settings and click on **Role Mapping** and click on **New Mapping**

![](/files/QYC1sM5AHJCrB4oFtL5d)

1. Create the **Role Mapping** with the following settings;

* Specify the user created previously and use it in the next steps to configure the integration with the Linux Control Center.

![](/files/BOnuXrxQCdRAWE70wXng)

## Integrating Nutanix Prism with LCC

### Performing the integration

1. Click **Config** in the left side menu of the LCC

![](/files/hrHlEv8SGbfrVGOKVHrt)

1. Click **Nutanix**

![](/files/onf9Hd3O1112CB5kE0nO)

1. On the Nutanix configuration page, click **Add**.

![](/files/vEep8EeBalHjlahWg9vB)

1. Provide all the necessary settings to authenticate to Nutanix Prism.

* Enter the Nutanix URL in the **URL** field.<br>
* Enter the Nutanix user in the **Username** field.<br>
* Enter the Nutanix password in the **Password** field.<br>
* Define whether the integration will be with **Nutanix Prism Central** or **Nutanix Prism Element** in the **Integration** button.<br>
* If the Nutanix Prism Central and/or Element solution does not use a valid digital certificate, enable the **Ignore SSL** option.<br>

1. Click **Save**.

![](/files/9HCECRkubX4MoVi8ZGGs)

1. After saving, click **Test Connection** to authenticate with Nutanix Prism

![](/files/fFKPexrADPuHHOV9fc0e)

### Synchronizing Nutanix Prism Hosts

1. After saving the previous configuration and the icon confirming the **Status** of the connection, click on the integration item.

![](/files/w4nHiySqwJIPDiDDa9tg)

1. Within the Nutanix Prism integration screen, click on the **Hosts** tab and click on **Sync** to synchronize with the Nutanix Prism hosts.

![](/files/AxB1kjqFb7rGeoQI3Aqa)

1. The sync action will authenticate to the Nutanix API and attempt to obtain the IP Address and Hostname of the existing Virtual Machines.
2. The list of Virtual Machines returned will match the Hosts already existing in Linux Control Center and, if successful, the Host will be marked with Nutanix integration and Linux Control Center will be able to perform the Rollback feature.
3. At the end of the Synchronization, you will be able to see the Hosts in the same **Hosts** tab in the Nutanix Prism integration configuration.
4. Click on the **Actions** tab and define which actions will trigger the creation of Recovery Point on the previously selected machines and then click **Save**.

![](/files/x0Azo8Gt2JZmMDIQh9oe)

## Validating the recovery point

1. Click **Hosts** in the left pane of the Linux Control Center

![](/files/c8SRKxVb4jn82hXNTboM)

1. Click on the **Host** that was previously configured/enabled in the Nutanix Prism solution integration configuration screen.

![](/files/hRnmfAwYu5mTYfGCWySd)

1. After selecting the **Host**, perform one of the action(s) that was enabled in the Nutanix Prism solution integration configuration screen.

{% hint style="warning" %}
When executing an action that was previously configured in the integration, the creation of a Recovery Point for that virtual machine will be requested from Nutanix Prism. The requested action will only be executed after the creation of the Recovery Point. In case of an error in the creation of the Recovery Point, the execution of the action will be interrupted and its status will be "error".
{% endhint %}

1. Click on the selected **host** and then click on the **Rollback** tab. You will be able to see the list of Recovery Points in **Rollback Items**.

![](/files/AsLgv9lEpof7G8SMUaKn)

1. In Nutanix Prism, if the Recovery Point is successful, an event will be created as "Create VM recovery point".

![](/files/OxKXXMu8tF9162A2Mthn)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.linuxcontrolcenter.com.br/en/configs-integrations/integrations/nutanix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
