VMware virtualization environments 编辑

Follow this guidance if you use VMware to provide virtual machines.

Install vCenter Server and the appropriate management tools. (No support is provided for vSphere vCenter Linked Mode operation.)

If you plan to use MCS, do not disable the Datastore Browser feature in vCenter Server (described in https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2101567). When you disable this feature, MCS does not work correctly.

You can use Citrix Provisioning (formerly Provisioning Services) and Machine Creation Services to provision:

  • legacy BIOS for supported Desktop or Server OS VMs.
  • UEFI for supported Desktop or Server OS VMs, including Secure Boot.

Required privileges

Create a VMware user account and one or more VMware roles. Base the creation of these roles on the level of granularity at which you need to assign users permissions. Define the privileges for each role, using the list of vCenter permissions that Citrix Virtual Apps and Desktops needs to perform the operations.

To grant permissions to a user, associate the user with the role at the data center level. For more about setting permissions in vCenter, see the VMware documentation.

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

Note:

The permissions list display name, specifically the User Interface, is different for some vSphere versions. For example, in vSphere 6.7 the User Interface permission is Change Memory and Change Settings, rather than Settings and Memory as described in the required privileges noted on this page.

Add connections and resources

SDKUser interface
System. Anonymous, System. Read, and System.ViewAdded automatically. Can use the built-in read-only role.

Provision machines (Machine Creation Services)

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

SDKUser interface
Datastore.AllocateSpaceDatastore > Allocate space
Datastore.BrowseDatastore > Browse datastore
Datastore.FileManagementDatastore > Low level file operations
Network.AssignNetwork > Assign network
Resource.AssignVMToPoolResource > Assign virtual machine to resource pool
VirtualMachine.Config.AddExistingDiskVirtual machine > Configuration > Add existing disk
VirtualMachine.Config.AddNewDiskVirtual machine > Configuration > Add new disk
VirtualMachine.Config.AdvancedConfigVirtual machine > Configuration > Advanced
VirtualMachine.Config.RemoveDiskVirtual machine > Configuration > Remove disk
VirtualMachine.Config.CPUCountVirtual machine > Configuration > Change CPU count
VirtualMachine.Config.MemoryVirtual machine > Configuration > Change memory
VirtualMachine.Config.SettingsVirtual machine > Configuration > Change settings
VirtualMachine.Interact.PowerOffVirtual machine > Interaction > Power Off
VirtualMachine.Interact.PowerOnVirtual machine > Interaction > Power On
VirtualMachine.Interact.ResetVirtual machine > Interaction > Reset
VirtualMachine.Interact.SuspendVirtual machine > Interaction > Suspend
VirtualMachine.Inventory.CreateFromExistingVirtual machine > Inventory > Create from existing
VirtualMachine.Inventory.CreateVirtual machine > Inventory > Create new
VirtualMachine.Inventory.DeleteVirtual machine > Inventory > Remove
VirtualMachine.Provisioning.CloneVirtual machine > Provisioning > Clone virtual machine
VirtualMachine.State.CreateSnapshotvSphere 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

Storage Profile (vSAN)

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

SDKUser interface
storage.Profile-driven storage updatePROFILE-DRIVEN STORAGE > Profile-driven storage update
storage.Profile-driven storage viewPROFILE-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:

SDKUser interface
Tagging.CreatevSphere Tagging > Create vSphere Tag
Tagging.CreatevSphere Tagging > Create vSphere Tag Category
Tagging.EditvSphere Tagging > Edit vSphere Tag
Tagging.EditvSphere Tagging > Edit vSphere Tag Category
Tagging.DeletevSphere Tagging > Delete vSphere Tag
Tagging.DeletevSphere Tagging > Delete vSphere Tag Category
Tagging.AssignvSphere Tagging > Assign or Unassign vSphere Tag
Tagging.AssignvSphere Tagging > Assign or Unassign vSphere Tag on Object
Global.ManageCustomFieldsGlobal > Manage custom attributes
Global.SetCustomFieldGlobal > 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 of XdProvisioned attribute in vCenter. The attribute is set to True if MCS creates VMs.

Provision machines (Citrix Provisioning)

All privileges from Provision machines (Machine Creation Services) and the following.

SDKUser interface
VirtualMachine.Config.AddRemoveDeviceVirtual machine > Configuration > Add or remove device
VirtualMachine.Config.CPUCountVirtual machine > Configuration > Change CPU Count
VirtualMachine.Config.MemoryVirtual machine > Configuration > Memory
VirtualMachine.Config.SettingsVirtual machine > Configuration > Settings
VirtualMachine.Provisioning.CloneTemplateVirtual machine > Provisioning > Clone template
VirtualMachine.Provisioning.DeployTemplateVirtual machine > Provisioning > Deploy template

Power management

SDKUser interface
VirtualMachine.Interact.PowerOffVirtual machine > Interaction > Power Off
VirtualMachine.Interact.PowerOnVirtual machine > Interaction > Power On
VirtualMachine.Interact.ResetVirtual machine > Interaction > Reset
VirtualMachine.Interact.SuspendVirtual machine > Interaction > Suspend

Image update and rollback

SDKUser interface
Datastore.AllocateSpaceDatastore > Allocate space
Datastore.BrowseDatastore > Browse datastore
Datastore.FileManagementDatastore > Low level file operations
Network.AssignNetwork > Assign network
Resource.AssignVMToPoolResource > Assign virtual machine to resource pool
VirtualMachine.Config.AddExistingDiskVirtual machine > Configuration > Add existing disk
VirtualMachine.Config.AddNewDiskVirtual machine > Configuration > Add new disk
VirtualMachine.Config.AdvancedConfigVirtual machine > Configuration > Advanced
VirtualMachine.Config.RemoveDiskVirtual machine > Configuration > Remove disk
VirtualMachine.Interact.PowerOffVirtual machine > Interaction > Power Off
VirtualMachine.Interact.PowerOnVirtual machine > Interaction > Power On
VirtualMachine.Interact.ResetVirtual machine > Interaction > Reset
VirtualMachine.Inventory.CreateFromExistingVirtual machine > Inventory > Create from existing
VirtualMachine.Inventory.CreateVirtual machine > Inventory > Create new
VirtualMachine.Inventory.DeleteVirtual machine > Inventory > Remove
VirtualMachine.Provisioning.CloneVirtual machine > Provisioning > Clone virtual machine

Delete provisioned machines

SDKUser interface
Datastore.BrowseDatastore > Browse datastore
Datastore.FileManagementDatastore > Low level file operations
VirtualMachine.Config.RemoveDiskVirtual machine > Configuration > Remove disk
VirtualMachine.Interact.PowerOffVirtual machine > Interaction > Power Off
VirtualMachine.Inventory.DeleteVirtual machine > Inventory > Remove

Obtain and import a certificate

To protect vSphere communications, Citrix recommends that you use HTTPS rather than HTTP.

HTTPS requires digital certificates. Use a digital certificate issued from a certificate authority that meets your organization’s security policy.

If you are unable to use a digital certificate issued from a certificate authority, you can use the VMware-installed self-signed certificate. Only use this method if your organization’s security policy permits it. Add the VMware vCenter certificate to each Delivery Controller.

  1. Add the fully qualified domain name (FQDN) of the computer running vCenter Server to the hosts file on that server, 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 Delivery Controllers.
    2. On the Controller, 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, right-click on Internet Explorer and choose Run as Administrator to download or install the certificate.

    1. Open your web browser and make a secure web connection to the vCenter server (for example https://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. Select Copy 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.

    • Open your web browser and make a secure web connection to the vCenter server (for example https://server1.domain1.com).
    • Accept the security warnings.
    • Click the address bar displaying the certificate error.
    • View the certificate.
  3. Import the certificate into the certificate store on each of your Controllers.

    1. Click the Install certificate option, select Local Machine, and then click Next.
    2. Select Place all certificates in the following store, and then click Browse. Select Trusted People and then click OK. Click Next and then click Finish.

    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.

Configuration considerations

Create a master VM:

Use a master VM to provide user desktops and applications in a machine catalog. On your hypervisor:

  1. Install a VDA on the master VM, selecting the option to optimize the desktop, which improves performance.
  2. Take a snapshot of the master VM to use as a back-up.

Create a connection:

In the connection creation wizard:

  • Select the VMware connection type.
  • Specify the address of the access point for the vCenter SDK.
  • Specify the credentials for a VMware user account you set up earlier that has permissions to create VMs. Specify the user name in the form domain/username.

VMware SSL thumbprint

The VMware SSL thumbprint feature eliminates the need to manually create a host connection to a VMware vSphere hypervisor. It is no longer required to manually create a trust relationship between the Delivery Controllers in the Site and the hypervisor’s certificate before creating a connection.

The VMware SSL thumbprint feature stores the untrusted certificate’s thumbprint on the Site database. This configuration ensures that the hypervisor can be continuously identified as trusted by Citrix Virtual Apps and Desktops, even if not by the Controllers.

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

Reset OS disk

Use the PowerShell command Reset-ProvVMDisk to reset the OS disk of a persistent VM in an MCS created machine catalog.

To successfully run the PowerShell command, make sure that:

  • The target VMs are in a persistent MCS catalog.
  • The MCS machine catalog is functioning properly.
  • This implies that the provisioning scheme and host exist, and the provisioning scheme has correct entries.
  • VMware vCenter is not in maintenance mode.
  • Target VMs are powered-off and in maintenance mode.

Perform the following steps to reset the OS disk:

  1. Open a PowerShell window.
  2. Run asnp citrix* to load the Citrix-specific PowerShell modules.
  3. Run the PowerShell command Reset-ProvVMDisk in any one of the following ways:

    • Specify the list of VMs as a comma-separated list, and perform the reset on each VM:

       Reset-ProvVMDisk -ProvisioningSchemeName "xxx" -VMName ("abc","def") -OS
       <!--NeedCopy-->
      

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:44 次

字数:19674

最后编辑:6 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文