This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
在 Citrix DaaS Standard for Azure 中创建 Linux VDA
您可以在 Citrix DaaS Standard for Azure(以前称为 Citrix Virtual Apps and Desktops Standard for Azure)中创建域加入和非域加入的 Linux VDA,以便从 Microsoft Azure 向任何设备交付虚拟应用和桌面。Linux VDA 和 Azure 都支持的 Linux 发行版可以使用此功能。有关详细信息,请参阅 Citrix DaaS Standard for Azure。
步骤 1:在 Azure 中准备主映像
注意:
您还可以使用 Linux VDA 自更新功能来安排自动软件更新。为此,请将命令行添加到主映像上的 etc/xdl/mcs/mcs_local_setting.reg 文件中。 例如,您可以添加以下命令行:
create -k "HKLM\System\CurrentControlSet\Control\Citrix\SelfUpdate" -t "REG_DWORD" -v "fEnabled" -d "0x00000001" --force create -k "HKLM\System\CurrentControlSet\Control\Citrix\SelfUpdate" -t "REG_SZ" -v "ScheduledTime" -d "Immediately" --force create -k "HKLM\System\CurrentControlSet\Control\Citrix\SelfUpdate" -t "REG_SZ" -v "Url" -d "`<Your-Azure-Container-Url>`" --force create -k "HKLM\System\CurrentControlSet\Control\Citrix\SelfUpdate" -t "REG_SZ" -v "CaCertificate" -d "`<Local-Certificate-Path-of-PortalAzureCom>`" --force <!--NeedCopy-->
- 在 Azure 中,创建一个受支持发行版的 Linux VM。
- 如果需要,在 Linux VM 上安装桌面环境。
-
在 VM 上,根据您的 Linux 发行版安装 .NET。
除了 .NET Runtime 之外,您必须在安装或升级 Linux VDA 之前,在所有受支持的 Linux 发行版上安装 .ASP.NET Core Runtime。Amazon Linux 2 需要版本 6。其他发行版需要版本 8。
如果您的 Linux 发行版包含所需的 .NET 版本,请从内置源安装它。否则,请从 Microsoft 包源安装 .NET。有关详细信息,请参阅 https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-managers。
- (仅适用于 Ubuntu) 将
source /etc/network/interfaces.d/*行添加到/etc/network/interfaces文件中。 -
(仅适用于 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--> - 安装 Linux VDA 软件包。
-
指定要使用的数据库。
- 除了 PostgreSQL 之外,您还可以使用 SQLite。您还可以在安装 Linux VDA 软件包后,在 SQLite 和 PostgreSQL 之间切换。为此,请完成以下步骤:
-
运行
/opt/Citrix/VDA/sbin/ctxcleanup.sh。如果是全新安装,请省略此步骤。 -
在运行
deploymcs.sh之前,编辑/etc/xdl/db.conf。注意:
- 建议仅在 VDI 模式下使用 SQLite。
- 对于简易安装和 MCS,您可以在 SQLite 和 PostgreSQL 之间切换,无需手动安装它们。除非通过
/etc/xdl/db.conf另行指定,否则 Linux VDA 默认使用 PostgreSQL。如果您需要自定义版本的 PostgreSQL,而不是 Linux 发行版提供的版本,您必须手动安装指定版本,编辑/etc/xdl/db.conf以反映新版本,并在运行简易安装脚本 (ctxinstall.sh) 或 MCS 脚本 (deploymcs.sh) 之前启动 PostgreSQL 服务。有关 db.conf 文件的示例,请参阅 步骤 7:指定要使用的数据库。- 您还可以使用
/etc/xdl/db.conf配置 PostgreSQL 的端口号。
- 您还可以使用
-
更改 MCS 变量。
配置 MCS 变量有两种方法:
- 编辑
/etc/xdl/mcs/mcs.conf文件。 -
使用简易安装 GUI。要打开简易安装 GUI,请在 Linux VDA 的桌面环境中运行
/opt/Citrix/VDA/bin/easyinstall命令。注意:
将
dns变量留空。 如果您在创建计算机目录时选择 Static 或 Random 类型,请设置VDI_MODE=Y。如果您通过编辑
/etc/xdl/mcs/mcs.conf配置 MCS 变量,请运行/opt/Citrix/VDA/sbin/deploymcs.sh。如果您通过 GUI 配置 MCS 变量,请单击 Deploy。在 GUI 上单击 Deploy 后,您在 GUI 上设置的变量将覆盖您在/etc/xdl/mcs/mcs.conf文件中设置的变量。
- 编辑
-
在 Azure 中,停止(或解除分配)VM。单击 Disk Export 以生成一个用于虚拟硬盘 (VHD) 文件的 SAS URL,您可以使用该文件作为主映像来创建其他 VM。

-
(可选) 在主映像上进行组策略设置。您可以使用
ctxreg工具进行组策略设置。例如,以下命令启用 Auto-create PDF Universal Printer 策略以进行 PDF 打印。/opt/Citrix/VDA/bin/ctxreg create -k "HKLM\Software\Citrix\GroupPolicy\Defaults\PrintingPolicies" -t "REG_DWORD" -v "AutoCreatePDFPrinter" -d "0x00000001" --force <!--NeedCopy-->
步骤 2:从 Azure 导入主映像
-
从 管理 控制板,展开右侧的 Master Images。显示屏列出了 Citrix 提供的主映像,以及您创建和导入的映像。
提示:
此服务的大多数管理员活动通过 管理 和 监视 控制板进行管理。创建第一个目录后,在您登录 Citrix Cloud™ 并选择 Managed Desktops 服务后,管理 控制板会自动启动。

- 单击 Import Image。
-
输入在 Azure 中生成的 VHD 文件的 SAS URL。为主映像类型选择 Linux。

- 按照向导中的说明完成主映像的导入。
步骤 3:创建计算机目录
访问 管理 控制板并单击 Create Catalog。创建计算机目录时,选择您之前创建的主映像。
注意:
用作主映像的 VM 无法通过 SSH 或 RDP 访问。要访问 VM,请使用 Azure 门户中的串行控制台。
共享
共享
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.