Discovering Nutanix AHV instances
The Nutanix Prism Central discovery connection uses the Nutanix API to discover and fingerprint Nutanix Acropolis Hypervisor (AHV) hosts. Properly configured Nutanix connections perform the following tasks:
- Discover the AHV hosts managed by Nutanix Prism Central.
- Identify the AHV version and platform of each host so that Nexpose can assess it for vulnerabilities.
Nutanix is ending SSH-based access
Nutanix is ending SSH-based access to Prism by the end of 2026. Existing SSH-based connections continue to work against Prism versions that still support SSH. If you upgrade to a Prism version that no longer supports SSH, create a Nutanix Prism Central connection as described in Migrating from an SSH-based connection.
Before you begin
Nutanix Prism Central discovery is available on on-premises Security Consoles only. It is not available on SaaS consoles.
Enable Nutanix Prism Central discovery
Turned off by default
Nutanix Prism Central discovery is turned off by default. The Nutanix Prism Central connection type does not appear until you turn it on.
You must be a Global Administrator to turn on Nutanix Prism Central discovery.
To turn on Nutanix Prism Central discovery:
- Go to Administration > Vulnerability Management > Console Administration and click Troubleshoot > Run Commands.
- Enter the following command:
set custom property com.rapid7.nexpose.nsc.prism.central.credentials.enabled = true - Select Execute. The setting applies immediately.
- Reload the page in your browser. Nutanix Prism Central now appears in the list of connection types.
- Restart the Security Console. This step is recommended so that every Nutanix Prism Central connection starts cleanly.
To turn Nutanix Prism Central discovery off, run the same command with the value false, and then restart the Security Console. While the feature is off, Nutanix Prism Central connections are hidden and no longer update, scans of sites that use them fail to start, and no Nutanix Prism Central credential is sent to Scan Engines. Existing connections and assets are kept.
For more information about running commands, see Using the command console.
Requirements
- The Security Console license must include Virtualization, the same option that vSphere and AWS discovery require.
- You must be a Global Administrator to create, edit, test, or delete a Nutanix Prism Central connection.
- The Security Console and Scan Engine must be able to reach Nutanix Prism Central over HTTPS. Nutanix Prism Central listens on port
9440by default. The discovery connection is created from the console itself and not from the Scan Engine. - Scan Engines must be up to date. Older Scan Engines still scan, but they do not receive the Nutanix Prism Central credential, so AHV hosts are not resolved through Nutanix Prism Central.
Include the port in the address
When you create the connection, enter the address as host:9440. If you do not enter a port, Nexpose uses the default port for the protocol, which is 443 for HTTPS. Nutanix Prism Central usually does not listen on that port.
Prepare Nutanix Prism Central
Complete the following tasks in Nutanix before you create a connection in Nexpose:
- Create a dedicated service account in Nutanix Prism Central for Nexpose. Assign the account a read-only role (for example, Prism Viewer or Cluster Viewer) so that it has only the permissions it needs.
- Choose how the account will authenticate, and record the details. You will need them when you create the connection.
- Basic Authentication uses the username and password of the service account.
- API Key uses an API key generated for the service account.
- Note the host name or IP address of Nutanix Prism Central, and the port if it does not use
9440.
Save these values
Record the values for each of these fields. You will be required to provide them during the Nutanix Prism Central discovery connection setup.
Supported versions
Nexpose supports the following Nutanix versions:
| Nutanix Prism Central | Acropolis Operating System (AOS) |
|---|---|
| 2024.3 | 6.10 |
| 7.3 | 7.3 |
| 7.5 | 7.5 |
Nutanix Prism Central must offer the Nutanix v4 Cluster Management hosts API, version 4.0 through 4.2. Nexpose tries versions 4.2, 4.1, and 4.0, in that order.
Limitations
- Only AHV hosts are discovered and fingerprinted. AOS, Nutanix Prism Central, and virtual machine discovery are not supported.
- Hosts without an IPv4 address (none, malformed, or IPv6 only) are skipped.
- Connections are made to Nutanix Prism Central only. You cannot connect directly to Prism Element, but you can discover the Prism Element clusters that Nutanix Prism Central manages.
- Nutanix Prism Central connections require a dynamic site.
- Each discovery replaces the previous results. If a discovery retrieves fewer hosts than Nutanix Prism Central reports, it fails instead of storing a partial list, and the previous hosts are kept.
- On the Discovered Assets page, the Cluster and Host filters work for Nutanix Prism Central hosts. The host UUID, OS version, and host IP columns are empty.
- Basic authentication and API key authentication are supported. Single sign-on (SSO) is not supported.
- Nexpose does not migrate existing SSH-based connections. You must create a new connection. See Migrating from an SSH-based connection for more information.
Creating a connection
When the previous steps have been completed, you are ready to create a connection. See our connection creation guide at Creating and managing Dynamic Discovery connections and browse to Adding a Nutanix Prism Central Connection.
When you save the connection, discovery starts in the background. Within a minute or two, the AHV hosts appear on the Discovered Assets page. Nexpose then checks Nutanix Prism Central for changes about every 5 minutes.
After you save the connection, create a dynamic site that uses it. The site discovers all of the AHV hosts that Nutanix Prism Central manages. See Configuring a site using a Dynamic Discovery connection.
Use HTTPS when possible
You can select HTTP as the protocol, but credentials are then sent unencrypted. Select HTTPS if Nutanix Prism Central supports it.
Certificates
Over HTTPS, the Security Console verifies the Nutanix Prism Central certificate before it sends any credentials. The console trusts public certificate authorities (CAs) and the certificates on Administration > Scans > Root Certificates. For more information, see Managing certificates for scanning.
The console reads the Root Certificates list each time you test or save a connection and each time discovery connects, so you do not need to restart the console after you import a certificate. A connection that is already running uses the change the next time it reconnects. To apply the change immediately, save the connection again.
| Nutanix Prism Central certificate | What to do |
|---|---|
| Signed by a public CA | Nothing to import. The address must match a name in the certificate. |
| Signed by an enterprise CA | Import the CA certificate on the Root Certificates page. Also import any intermediate certificate that Nutanix Prism Central does not send. |
Self-signed, including the default CN=prism.nutanix.local | Import the Nutanix Prism Central certificate itself on the Root Certificates page. The certificate is then accepted even when the address does not match, so you can connect using an IP address. |
| Expired | Not accepted. Replace the certificate in Nutanix Prism Central. |
| Signed by a CA but issued to a different host name | Connect using a host name that the certificate contains. |
An imported certificate must meet the following requirements:
- It must be in date.
- It must use an RSA key of 2048 bits or more, or an EC key of 256 bits or more.
- It must not be signed with MD5 or SHA-1.
Revocation is not checked.
Migrating from an SSH-based connection
If you upgrade Nutanix Prism Central to a version that no longer supports SSH, SSH-based discovery fails and the AHV assets are no longer updated.
To restore coverage:
- Create a Nutanix Prism Central connection. See Adding a Nutanix Prism Central Connection.
- Create a site that uses the new connection, or update an existing site to use it, and run a scan. See Create and edit sites for details.
Your existing SSH credentials are not changed or removed. They remain in place but are not used for the Nutanix Prism Central versions that no longer support SSH. If you have both an SSH-based credential and a Nutanix Prism Central connection that reach the same AHV host, Nexpose uses the Nutanix Prism Central connection.
When to keep your SSH key
If a single Nutanix Prism Central instance manages both clusters that support SSH and clusters that support only the API, keep your SSH-based connection for the first group and create a Nutanix Prism Central connection for the second. Both connections contribute coverage.
Troubleshooting a connection
Testing a connection
Test Connection checks the address and credentials against Nutanix Prism Central without saving anything. It never reads a stored password or API key, so enter the password or API key each time you test. If a test fails, the Security Console displays a message that describes the cause. Saving a connection runs the same check and shows the same messages.
| Message | What it means and what to do |
|---|---|
| Connected to Nutanix Prism Central. The credentials are valid. | The test passed. If you selected HTTP, the message also warns that credentials are sent unencrypted. Select HTTPS if Nutanix Prism Central supports it. |
| Authentication to Nutanix Prism Central failed. The API key for the service account is not valid. Check the key and try again. | Re-enter the API key. Verify that the key has not expired or been revoked. |
| Authentication to Nutanix Prism Central failed. The username or password for the service account is not valid. Check both and try again. | Re-enter the username and password. Verify that the account is not locked or expired in Nutanix Prism Central. |
| Connected to Nutanix Prism Central, but the account does not have the required permissions. Assign the Prism Viewer or Cluster Viewer role to the account, then try again. | Assign the Prism Viewer or Cluster Viewer role to the service account in Nutanix Prism Central. |
| Could not reach Nutanix Prism Central at address. Check the network connection and that the Security Console can reach the port. | Verify the address and port, which is normally 9440. Check DNS, and check that no firewall or proxy blocks traffic from the Security Console to Nutanix Prism Central. |
| Nutanix Prism Central at address did not respond in time. It may be under heavy load. Try again. | Try again. If the problem continues, check the load on Nutanix Prism Central. |
| Could not set up a secure connection to Nutanix Prism Central. Check that it accepts HTTPS with Transport Layer Security (TLS) 1.2 or later, and that its certificate, or the certificate authority (CA) that signed it, is listed in Administration > Root Certificates and has not expired. If the certificate uses a hostname instead of this address, connect using that hostname. | Verify that Nutanix Prism Central accepts HTTPS with TLS 1.2 or later on the port you specified. Then see Certificates. |
| The Nutanix Prism Central version at address does not support the Nutanix v4 API. | Verify that Nutanix Prism Central runs a supported version, and that the address points to Nutanix Prism Central rather than Prism Element. |
| Nutanix Prism Central is receiving too many requests. Wait n seconds, then try again. | Wait the amount of time in the message, and then test again. The test can take up to 20 seconds longer than usual. If the message continues to appear, check what else is calling the Nutanix Prism Central API. |
| Nutanix Prism Central returned an unexpected response (HTTP error status). Try again. | Try again later, and check the health of Nutanix Prism Central. |
| The server at address is not Nutanix Prism Central. Check the address and port. | Verify that the address reaches Nutanix Prism Central directly and not a proxy, load balancer, or login page. |
Saving a connection
Saving a connection checks the form, the license, and the credentials, and then runs the same check as Test Connection. Nothing is saved if a step fails. If Test Connection fails, resolve that problem first. If Test Connection passes but saving fails, the cause is usually one of the following messages.
| Message | What to do |
|---|---|
| Nutanix Prism Central discovery is turned off for this Security Console. | Turn on the feature. See Enable Nutanix Prism Central discovery. |
| The license for this Security Console does not include Nutanix Prism Central discovery. | Update the license so that it includes Virtualization. |
| Enter the Nutanix Prism Central address as a host name or IP address, with an optional port. For example: 10.0.0.5:9440, pc.example.com, or pc.example.com:9440. Do not include http://, https://, or a file path. | Enter only host:port. |
| IPv6 addresses must be in brackets, for example [2001:db8::1]:9440 or [2001:db8::1]. | Enclose the IPv6 address in brackets. |
| The port in the Nutanix Prism Central address must be a number from 1 through 65535. | Correct the port, which is normally 9440. |
| Nutanix Prism Central connections support only HTTP or HTTPS. Choose one in the Protocol field. | Select HTTPS or HTTP. |
| Use either a username and password or an API key, not both. | Choose one authentication method and clear the other. |
| Enter a username and password or an API key. | Enter the credentials. When you edit a connection, you must enter the password or API key again. |
| The connection type cannot be changed for an existing connection. | Create a new connection of the other type. |
| The connection to Nutanix Prism Central failed. Try again. | Run Test Connection for a more specific message. |
The connection shows as not connected
A connection shows as not connected from the first discovery check that fails until a check succeeds. While discovery is running, Nexpose checks Nutanix Prism Central about every 5 minutes, so the connection recovers on its own after the cause is fixed.
- Run Test Connection with the saved address and credentials. The message identifies the cause.
- Fix the cause, and then wait for the next check. To apply the fix immediately, save the connection again.
If the first attempt to connect fails, discovery does not start. In that case nothing is checked until you click Connect, save the connection again, or restart the Security Console. Clicking Connect is the quickest fix after you resolve the cause. Clicking Connect has no effect while discovery is running.
Account lockout
Nexpose retries a rejected credential at every check. If Nutanix Prism Central or its identity provider locks accounts after repeated failed logins, the service account can be locked. Correct the credentials promptly, or delete the connection.
AHV hosts are missing
If hosts that you expect to see are missing from the Discovered Assets page or from a dynamic site, check the following:
- Only hosts whose hypervisor type is AHV are discovered.
- Hosts without an IPv4 address are skipped.
- If a discovery retrieves fewer hosts than Nutanix Prism Central reports, it fails and the previous hosts are kept.
Scans do not use the Nutanix Prism Central credential
If a Scan Engine is out of date, it does not receive the Nutanix Prism Central credential, and AHV hosts are not resolved through Nutanix Prism Central. Update the Scan Engine. The Scan Engine that is local to the Security Console always receives the credential.