Citrix DaaS™

Connection to Nutanix

Create and manage connections and resources describes the wizards that create a connection. The following information covers details specific to Nutanix.

Note:

Before creating a connection to Nutanix, you need to first finish setting up your Nutanix account as a resource location. See Nutanix virtualization environments.

Nutanix AHV Prism Central host connection

See the Prerequisites before creating Nutanix AHV Prism Central host connection.

You can create a connection using one of the following:

Limitation

  • The Nutanix AHV Prism Central host connection doesn’t support duplicate object names for items such as templates and networks. Selecting such items for catalog creation might lead to unexpected behavior.

Create a connection using Studio

  1. Sign in to Citrix Cloud.
  2. In the DaaS tile, click Manage.
  3. Select Hosting in the left pane.
  4. Click Add Connections and Resources in the action bar.
  5. On the Connection page:
    1. Select Create a new connection.
    2. Select Nutanix AHV Prism Central as the connection type.
    3. Enter the IP address of your Nutanix AHV Prism Central as the connection address.
    4. Enter your administrative credentials and a friendly connection name.
    5. Select Citrix provisioning tools (Machine Creation Services™ or Citrix Provisioning).
    6. Click Next.

      ahv-prism-central-host-connection

    Note:

    While creating the host connection, network or cluster selection is not required. A hosting unit name is only needed. Select the network and cluster while creating the machine catalog.

  6. After you click Next, Citrix DaaS™ receives a private CA-signed certificate and you see a Warning page. For information, see Secure connections to the Nutanix Prism Central.

    Compare the received thumbprint with the server’s for the certificate validity. If it’s valid, select Trust certificate and click OK to proceed with connection creation. Citrix DaaS then trusts the certificate and stores the thumbprint for future validation.

    ahv-prism-central-host-connection

  7. On the Name Resources page, add a unique name of the resources. Click Next.

    ahv-prism-central-host-connection

  8. On the Scopes page, select one or more scopes for this host.
  9. On the Summary page, check the configuration and click Finish.

Note:

The Nutanix AHV Prism Central connection can co-exist with other types of Nutanix connections.

Secure connections to the Nutanix Prism Central

The Nutanix SSL thumbprint feature simplifies certificate trust when establishing a host connection to a Nutanix Prism Central hypervisor. This feature enables the storage of an untrusted certificate’s thumbprint in the site database, ensuring that Citrix DaaS consistently recognizes the hypervisor as trusted.

When creating a Nutanix host connection, a Warning page is displayed, presenting the certificate of the machine you are connecting to and allowing you to decide whether to trust it.

Create a connection using PowerShell

  1. Open the PowerShell window.
  2. Run asnp citrix*.
  3. Set following parameters:

    $ConnectionName = “Name of the connection”
    $UserName = “Username of the account on hypervisor”
    $ZoneUid =  “UID of the zone where the hosting connection will be created”
    $HypervisorAddress = “The IP address of the hypervisor”
    $SSLThumbprint =  “The Nutanix PC SSL thumbprint can be set using PowerShell SDK”
    $connectionPath = "XDHyp:\Connections\" + $ConnectionName
    $SecureUserInput = Read-Host "Enter the password for the user $($UserName)" -AsSecureString
    $EncryptedUserInput = $SecureUserInput | ConvertFrom-SecureString
    $SecurePass = ConvertTo-SecureString -String $EncryptedUserInput
    <!--NeedCopy-->
    
  4. Create an item for the new hosting connection. For example:

    $connection = New-Item -Path @($connectionPath) -ConnectionType "Custom" -HypervisorAddress ` @($HypervisorAddress) -Persist -PluginId "AcropolisHypervisorPCFactory" -Scope @() ` -SecurePassword $SecurePass -SSLThumbprint @($SSLThumbprint) -UserName $UserName -ZoneUid ` $ZoneUid
    <!--NeedCopy-->
    
  5. Create a broker hypervisor connection. For example:

    New-BrokerHypervisorConnection -HypHypervisorConnectionUid $connection.HypervisorConnectionUid
    <!--NeedCopy-->
    

Create a hosting unit

When you create a hosting unit using the PowerShell command, provide the following required parameters:

  • $HostUnitName: Name of Hosting Unit to create
  • ConnectionName: Name of the hypervisor connection previously created
  1. Open the PowerShell window.
  2. Run add-pssnapin citrix*.
  3. Run PowerShell commands to create the hosting unit. For example:

    $hostUnitPath = "XDHyp:\HostingUnits\" + $HostUnitName
    New-Item -Path @($hostUnitPath) -RootPath $connectionPath -HypervisorConnectionName $ConnectionName -CustomProperties "" -NetworkPath @() -StoragePath @()
    <!--NeedCopy-->
    

Note:

While creating the host connection, network or cluster selection is not required. A hosting unit name is only needed. Select the network and cluster while creating the machine catalog.

Manage host connections

You can manage an exisiting host connection using:

Manage the host connection using Studio

After creating a host connection, navigate to the Hosting node on Studio and right-click a connection to do the following:

  • Delete Connection
  • Rename Connection
  • Edit Connection
  • Turn on Maintenance Mode
  • View Machines
  • Test Connection
  • Test TLS certificate trust

Edit a connection using Studio

  1. Right-click a connection and click Edit Connection.
  2. On the Connection Properties page, click Edit settings.
  3. On the Edit Connection settings page, you can change the certificate information and click Save.

    ahv-prism-central-edit-connection

  4. Select Trust certificate on the Warning page to trust the new certificate thumbprint.

Test TLS certificate trust

  1. Right-click a connection and click Test TLS certificate trust.
  2. On the Test TLS Certificate Trust page, you can change the certificate information, then click Test.

    ahv-prism-central-edit-connection

If the test result is not successful, then change the certificate information of the connection using Edit a connection using Studio.

Manage the host connection using PowerShell

You can use PowerShell commands to:

  • Change or update the user credential for a host connection. For example:

     $UserName = "Username of the account on hypervisor"
     $SecureUserInput = Read-Host "Enter the password for the user $($UserName)" -AsSecureString
     $EncryptedUserInput = $SecureUserInput | ConvertFrom-SecureString
     $SecurePass = ConvertTo-SecureString -String $EncryptedUserInput
     Set-Item  -LiteralPath @("XDHyp:\Connections\<Host connection name>")  -SecurePassword $SecurePass -UserName $UserName
     <!--NeedCopy-->
    
  • Reset SSLThumbprint. For example:

     $SSLThumbprint =  "The Nutanix PC SSL thumbprint value"
     Set-Item  -LiteralPath @("XDHyp:\Connections\<Host connection name>")  -SecurePassword $SecurePass -UserName $UserName -SSLThumbprint $SSLThumbprint
     <!--NeedCopy-->
    

Required permissions

The following permissions are required for the administrative account used for a Nutanix AHV Prism Central host connection.

Creating a host connection

Cluster:

  • View Cluster

Power management of VMs

AHV VM:

  • ACPI Shutdown Virtual Machine
  • ACPI Reboot Virtual Machine
  • Guest Reboot Virtual Machine
  • Guest Shutdown Virtual Machine
  • Power Off Virtual Machine
  • Power On Virtual Machine
  • Reset Virtual Machine
  • View Existing Virtual Machine

Cluster:

  • View Cluster

Provisioning of VMs

AHV VM:

  • ACPI Reboot Virtual Machine
  • ACPI Shutdown Virtual Machine
  • Create New Virtual Machine
  • Create Virtual Machine
  • Create Virtual Machine Disk
  • Create Virtual Machine NIC
  • Delete Existing Virtual Machine
  • Delete Virtual Machine
  • Delete Virtual Machine Disk
  • Delete Virtual Machine GPU
  • Delete Virtual Machine NIC
  • Eject Virtual Machine CD ROM
  • Guest Reboot Virtual Machine
  • Guest Shutdown Virtual Machine
  • Power Off Virtual Machine
  • Power On Virtual Machine
  • Reset Virtual Machine
  • Snapshot Virtual Machine
  • Update Virtual Machine Basic Config
  • Update Virtual Machine Disk
  • Update Virtual Machine Disk List
  • Update Virtual Machine NIC
  • View Existing Virtual Machine
  • View Virtual Machine
  • View Virtual Machine CD ROM
  • View Virtual Machine Disk
  • View Virtual Machine GPU
  • View Virtual Machine NIC

Category:

  • View Category

Cluster:

  • View Cluster

Host:

  • View Host

Recovery Point:

  • Create Recovery Point
  • Delete Recovery Point
  • Restore Recovery Point
  • View Recovery Point
  • View Virtual Machine Recovery Point

Storage Container:

  • View Storage Container
  • View Storage Container Datastore
  • View Storage Container Stats

Storage Policy:

  • View Storage Policy

Subnet:

  • View Subnet
  • View Subnet Vnic

Task:

  • Cancel Task
  • View Task

VM Recovery Point:

  • Delete VM Recovery Point
  • Restore VM Recovery Point
  • View VM Recovery Point

VM Templates:

  • View VM Templates
  • View VM Templates Versions

Volume Group:

  • Attach Volume Group To AHV VM
  • Detach Volume Group From AHV VM
  • View Volume Group
  • View Volume Group Details

VPC:

  • View VPC

Nutanix AHV, Nutanix AHV PC, or Nutanix AHV DRaaS host connection

  1. Sign in to Citrix Cloud.
  2. In the DaaS tile, click Manage.
  3. Select Hosting in the left pane.
  4. Click Add Connections and Resources in the action bar.
  5. On the Connection page, the following connection types are available for selection:
    • Nutanix AHV: specify the Prism Element (PE) cluster address, and credentials, and a name for the connection. On the Network page, select network(s) and give a name for the hosting unit.

      Note:

      If you deploy machines using Nutanix AHV (Prism Element) as the resource, select the container where the VM’s disk resides.

    • Nutanix AHV PC: specify the Prism Central (PC) address, credentials, and a name for the connection. On the Network page, select the network, cluster from the list, and give a name for the hosting unit.

      Note:

      The connection type Nutanix AHV PC is only used for creating connection to Nutanix Cloud Cluster (NC2) on Azure. Also, a machine catalog can only be hosted on a single cluster in an NC2 on Azure connection. This type of connection requires a Nutanix plug-in installed on Cloud Connectors

    • Nutanix AHV DRaaS: specify your address and user name, and then import the public and private keys contained in your Nutanix DRaaS credential files (.pem). (Public and private keys are generated in Nutanix DRaaS cloud by Nutanix DRaaS administrators.)

      • To import the key, locate your credential file, open it with Notepad (or any text editor), and then copy the content. After that, return to the Connection page, select Import key, paste the content, and then select Save. Do not change the credential content or its format.

Where to go next

More information