Linux Virtual Delivery Agent 2104

在适用于 Azure 的 Citrix Virtual Apps and Desktops Standard 中创建 Linux VDA

可以在适用于 Azure 的 Citrix Virtual Apps and Desktops Standard 中创建已加入域和未加入域的 Linux VDA,以将虚拟应用程序和桌面从 Microsoft Azure 交付到任何设备。有关详细信息,请参阅适用于 Azure 的 Citrix Virtual Apps and Desktops Standard

支持的 Linux 发行版

以下 Linux 发行版支持此功能:

  • RHEL 8.3
  • RHEL 8.2
  • RHEL 7.8
  • Ubuntu 20.04
  • Ubuntu 18.04
  • Ubuntu 16.04

步骤

要在适用于 Azure 的 Citrix Virtual Apps and Desktops Standard 中创建 Linux VDA,请完成以下步骤:

  1. 在 Azure 中准备主映像:

    1. 在 Azure 中,创建支持的发行版的 Linux VM。
    2. 如有必要,请在 Linux VM 上安装桌面环境。
    3. 在 VM 上,根据 https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-managers 上的说明安装 .NET Core 运行时 3.1。
    4. (仅限 Ubuntu)在 /etc/network/interfaces 文件中添加 source /etc/network/interfaces.d/* 行。
    5. (仅限 Ubuntu)请将 /etc/resolv.conf 指向 /run/systemd/resolve/resolv.conf,而非将其指向 /run/systemd/resolve/stub-resolv.conf

      unlink /etc/resolv.conf
      
      ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
      <!--NeedCopy-->
      
    6. 安装 Linux VDA 软件包。
    7. 更改 /etc/xdl/mcs/mcs.conf 中的变量。mcs.conf 配置文件中包含用于设置 MCS 和 Linux VDA 的变量。

      注意:

      请将 dns 变量保留为未指定。 如果在创建计算机目录时选择静态随机类型,请设置 VDI_MODE=Y

    8. 运行 /opt/Citrix/VDA/sbin/deploymcs.sh
    9. 在 Azure 中,停止(或取消分配)VM。单击磁盘导出为虚拟硬盘 (VHD) 文件生成 SAS URL,您可以将该文件用作主映像来创建其他 VM。

      为 VHD 文件生成 URL

    10. (可选)在主映像上配置组策略设置。
    You can use the `ctxreg` tool to make group policy settings. For example, the following command enables the **Auto-create PDF Universal Printer** policy for PDF printing.
    
    ```
    /opt/Citrix/VDA/bin/ctxreg create -k "HKLM\Software\Citrix\GroupPolicy\Defaults\PrintingPolicies" -t "REG_DWORD" -v "AutoCreatePDFPrinter" -d "0x00000001" –force
    <!--NeedCopy--> ```
    
  2. 从 Azure 导入主映像。

    1. 管理控制板中,展开右侧的主映像。显示内容将列出 Citrix 提供的主映像以及您创建和导入的映像。

      提示: 此服务的大多数管理员活动都通过管理监视控制板进行管理。创建第一个目录后,管理控制板将在登录到 Citrix Cloud 并选择 Managed Desktops(托管桌面)服务后自动启动。

      主映像的示意图

    2. 单击导入映像
    3. 输入在 Azure 中生成的 VHD 文件的 SAS URL。选择 Linux 作为主映像类型。

      从 Azure 导入映像的示意图

    4. 按照向导中的说明完成导入主映像的操作。
  3. 创建计算机目录。

    访问管理控制板,然后单击创建目录。创建计算机目录时,请选择之前创建的主映像。

    注意: 只能在 Citrix 托管的 Azure 订阅中创建未加入域的 Linux 计算机目录。

在适用于 Azure 的 Citrix Virtual Apps and Desktops Standard 中创建 Linux VDA