Citrix DaaS

Connection to VMware

Create and manage connectionsdescribes the wizards that create a connection. The following information covers details specific to VMware virtualization environments.

Note:

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

Required permissions

Create a VMware user account and one or more VMware roles with a set or all permissions listed in this article. Base the roles’ creation on the specific level of granularity required over the user’s permissions to request the various Citrix Virtual Apps or Citrix Virtual Desktops operations at any time. To grant the user-specific permissions at any point, associate them with the respective role, at the data center level at a minimum.

The following tables show the mappings between Citrix Virtual Apps and Desktops operations and the minimum required VMware permissions.

Add connections and resources

SDK User interface
System.Anonymous, System.Read, and System.View Added automatically. Can use the built-in read-only role.

Power management

SDK User interface
VirtualMachine。Interact.PowerOff Virtual machine > Interaction > Power Off
VirtualMachine。Interact.PowerOn Virtual machine > Interaction > Power On
VirtualMachine。Interact.Reset Virtual machine > Interaction > Reset
VirtualMachine。Interact.Suspend Virtual machine > Interaction > Suspend

Provision machines (Machine Creation Services)

To provision machines using MCS, the following permissions are mandatory:

SDK User interface
Datastore.AllocateSpace Datastore > Allocate space
Datastore.Browse Datastore > Browse datastore
Datastore.FileManagement Datastore > Low level file operations
Network.Assign Network > Assign network
Resource.AssignVMToPool Resource > Assign virtual machine to resource pool
VirtualMachine。Config.AddExistingDisk Virtual machine > Configuration > Add existing disk
VirtualMachine。Config.AddNewDisk Virtual machine > Configuration > Add new disk
VirtualMachine。Config.AdvancedConfig Virtual machine > Configuration > Advanced
VirtualMachine。Config.RemoveDisk Virtual machine > Configuration > Remove disk
VirtualMachine。Config.CPUCount Virtual machine > Configuration > Change CPU count
VirtualMachine。Config.Memory Virtual machine > Configuration > Change memory
VirtualMachine。Config.Settings Virtual machine > Configuration > Change settings
VirtualMachine。Interact.PowerOff Virtual machine > Interaction > Power Off
VirtualMachine。Interact.PowerOn Virtual machine > Interaction > Power On
VirtualMachine。Interact.Reset Virtual machine > Interaction > Reset
VirtualMachine。Interact.Suspend Virtual machine > Interaction > Suspend
VirtualMachine。发票entory.CreateFromExisting Virtual machine > Inventory > Create from existing
VirtualMachine。发票entory.Create Virtual machine > Inventory > Create new
VirtualMachine。发票entory.Delete Virtual machine > Inventory > Remove
VirtualMachine。Provisioning.Clone Virtual machine > Provisioning > Clone virtual machine
VirtualMachine。State.CreateSnapshot vSphere 5.0, Update 2, vSphere 5.1, Update 1, and vSphere 6.x, Update 1: Virtual machine > State > Create snapshot; vSphere 5.5: Virtual machine > Snapshot management > Create snapshot

Image update and rollback

SDK User interface
Datastore.AllocateSpace Datastore > Allocate space
Datastore.Browse Datastore > Browse datastore
Datastore.FileManagement Datastore > Low level file operations
Network.Assign Network > Assign network
Resource.AssignVMToPool Resource > Assign virtual machine to resource pool
VirtualMachine。Config.AddExistingDisk Virtual machine > Configuration > Add existing disk
VirtualMachine。Config.AddNewDisk Virtual machine > Configuration > Add new disk
VirtualMachine。Config.AdvancedConfig Virtual machine > Configuration > Advanced
VirtualMachine。Config.RemoveDisk Virtual machine > Configuration > Remove disk
VirtualMachine。Interact.PowerOff Virtual machine > Interaction > Power Off
VirtualMachine。Interact.PowerOn Virtual machine > Interaction > Power On
VirtualMachine。Interact.Reset Virtual machine > Interaction > Reset
VirtualMachine。发票entory.CreateFromExisting Virtual machine > Inventory > Create from existing
VirtualMachine。发票entory.Create Virtual machine > Inventory > Create new
VirtualMachine。发票entory.Delete Virtual machine > Inventory > Remove
VirtualMachine。Provisioning.Clone Virtual machine > Provisioning > Clone virtual machine

Delete provisioned machines

SDK User interface
Datastore.Browse Datastore > Browse datastore
Datastore.FileManagement Datastore > Low level file operations
VirtualMachine。Config.RemoveDisk Virtual machine > Configuration > Remove disk
VirtualMachine。Interact.PowerOff Virtual machine > Interaction > Power Off
VirtualMachine。发票entory.Delete Virtual machine > Inventory > Remove

Storage Profile (vSAN)

To view, create, or delete storage policies during catalog creations on a vSAN datastore, the following permissions are mandatory:

SDK User interface
storage.Profile-driven storage update PROFILE-DRIVEN STORAGE > Profile-driven storage update
storage.Profile-driven storage view PROFILE-DRIVEN STORAGE > Profile-driven storage view

Tags and Custom Attributes

Tags and custom attributes allow you to attach metadata to the VMs created in vSphere inventory and make it easier to search and filter these objects. To create, edit, assign, and delete tags or categories, the following permissions are mandatory:

SDK User interface
Tagging.Create vSphere Tagging > Create vSphere Tag
Tagging.Create vSphere Tagging > Create vSphere Tag Category
Tagging.Edit vSphere Tagging > Edit vSphere Tag
Tagging.Edit vSphere Tagging > Edit vSphere Tag Category
Tagging.Delete vSphere Tagging > Delete vSphere Tag
Tagging.Delete vSphere Tagging > Delete vSphere Tag Category
Tagging.Assign vSphere Tagging > Assign or Unassign vSphere Tag
Tagging.Assign vSphere Tagging > Assign or Unassign vSphere Tag on Object
Global.ManageCustomFields Global > Manage custom attributes
Global.SetCustomField Global > Set custom attribute

Note:

When MCS creates a machine catalog, it tags the target VMs with special name tags. These tags differentiate the master image from MCS created VMs and prevent using MCS created VMs for image preparation. You can identify the difference by the value ofXdProvisionedattribute in vCenter. The attribute is set toTrueif MCS creates VMs.

Cryptographic operations

Cryptographic operations privileges control who can perform which type of cryptographic operation on which type of object. vSphere Native Key Provider uses theCryptographer.*privileges. The following minimum permissions are required for cryptographic operations:

Note:

These permissions are required for creating MCS machine catalogs with vTPM equipped VM.

SDK User interface
Cryptographic operations.Direct Access Privileges > All Privileges > Cryptographic operations > Direct Access
Cryptographic operations.Add disk Privileges > All Privileges > Cryptographic operations > Add disk
Cryptographic operations.Clone Privileges > All Privileges > Cryptographic operations > Clone
Cryptographic operations.Encrypt Privileges > All Privileges > Cryptographic operations > Encrypt
Cryptographic operations.Encrypt new Privileges > All Privileges > Cryptographic operations > Encrypt new
Cryptographic operations.Migrate Privileges > All Privileges > Cryptographic operations > Migrate
Cryptographic operations.Read KMS information Privileges > All Privileges > Cryptographic operations > Read KMS information

Provision machines (Citrix Provisioning)

All permissions fromProvision machines (Machine Creation Services)and the following.

SDK User interface
VirtualMachine。Config.AddRemoveDevice Virtual machine > Configuration > Add or remove device
VirtualMachine。Config.CPUCount Virtual machine > Configuration > Change CPU Count
VirtualMachine。Config.Memory Virtual machine > Configuration > Memory
VirtualMachine。Config.Settings Virtual machine > Configuration > Settings
VirtualMachine。Provisioning.CloneTemplate Virtual machine > Provisioning > Clone template
VirtualMachine。Provisioning.DeployTemplate Virtual machine > Provisioning > Deploy template
vApp.Export vApp > Export

Note:

  • The permissions to clone and deploy a template are required to provision VMs using Citrix Virtual Apps and Desktops Setup Wizard and Export Devices Wizard through the Citrix Provisioning console.
  • vApp.Exportis required for creating MCS machine catalogs using machine profile.

Securing connections to the VMware environment

UsingHTTPS/SSLconnections to vCenter requires that the connection is trusted by Citrix DaaS (formerly Citrix Virtual Apps and Desktops service).

There are two options:

  • Each cloud connector trusts the vCenter certificate, and services on the connector reuses this trust. This trust can be from a:

    • vCenter certificate, issued by the Certificate Authority and trusted by windows, resulting in established trust between Windows and vCenter.
    • vCenter certificate installed on Windows, resulting in established trust between Windows and vCenter.
  • Alternatively the Citrix Virtual Apps and Desktops database has the SSL thumbprint installed. This thumbprint is used by Citrix DaaS on each cloud connector to trust connections to vCenter.

Note:

vCenter证书和VMware SSL拇指指纹not required for VMware Cloud and its partner solutions.

Obtain and import a certificate

To protect vSphere communications, Citrix recommends that you use HTTPS rather than HTTP. HTTPS requires digital certificates. Citrix recommends you use a digital certificate issued from a certificate authority in accordance with your organization’s security policy.

If you are unable to use a digital certificate issued from a certificate authority, and your organization’s security policy permits it, you can use the VMware-installed self-signed certificate. Add the VMware vCenter certificate to each Cloud Connector.

  1. Add the fully qualified domain name (FQDN) of the computer running vCenter Server to the host file on that server, located at %SystemRoot%/WINDOWS/system32/Drivers/etc/. This step is required only if the FQDN of the computer running vCenter Server is not already present in the domain name system.

  2. Obtain the vCenter certificate using any of the following three methods:

    From the vCenter server:

    1. Copy the file rui.crt from the vCenter server to a location accessible on your Cloud Connectors.
    2. On the Cloud Connector, navigate to the location of the exported certificate and open the rui.crt file.

    Download the certificate using a web browser:If you are using Internet Explorer, depending on your user account, you must right-click on Internet Explorer and chooseRun as Administratorto download or install the certificate.

    1. Open your web browser and make a secure web connection to the vCenter server (for examplehttps://server1.domain1.com).
    2. Accept the security warnings.
    3. Click the address bar displaying the certificate error.
    4. View the certificate and click the Details tab.
    5. SelectCopy to file and export in .CER format, providing a name when prompted to do so.
    6. Save the exported certificate.
    7. Navigate to the location of the exported certificate and open the .CER file.

    Import directly from Internet Explorer running as an administrator:

    1. Open your web browser and make a secure web connection to the vCenter server (for examplehttps://server1.domain1.com).
    2. Accept the security warnings.
    3. Click the address bar displaying the certificate error.
    4. View the certificate.
  3. Import the certificate into the certificate store on each Cloud Connector.

    1. ClickInstall certificate, selectLocal Machine, and then clickNext.
    2. SelectPlace all certificates in the following store, and then clickBrowse. On a later supported version: SelectTrusted Peopleand then clickOK. ClickNextand then clickFinish.

Important:

If you change the name of the vSphere server after installation, you must generate a new self-signed certificate on that server before importing the new certificate.

VMware SSL thumbprint

The VMware SSL thumbprint feature addresses a frequently reported error when creating a host connection to a VMware vSphere hypervisor. Previously, administrators had to manually create a trust relationship between the Citrix-managed Delivery Controllers in the Site and the hypervisor’s certificate before creating a connection. The VMware SSL thumbprint feature removes that manual requirement: the untrusted certificate’s thumbprint is stored on the Site database so that the hypervisor can be continuously identified as trusted by Citrix Virtual Apps or Citrix Virtual Desktops, even if not by the Controllers.

When creating a vSphere host connection, a dialog box allows you to view the certificate of the machine you are connecting to. You can then choose whether to trust it.

The VMware SSL thumbprint can be updated later using PowerShell SDKSet-Item -LiteralPath "" -username $cred.username -Securepassword $cred.password -SslThumbprint "" -hypervisorAddress .

Tip:

The certificate thumbprint has to be written in capital letters.

Where to go next

更多的信息

Connection to VMware