-
-
-
适用于 Citrix DaaS Standard for Azure 的 Linux VDA 自更新
-
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!
Linux VDA 通过 Azure 自动更新
此功能有助于自动更新您的 Linux VDA 软件 - 立即更新或在计划时间更新。在 Citrix DaaS Standard for Azure(以前称为 Citrix Virtual Apps and Desktops Standard for Azure)中创建 Linux VDA 时,此功能非常有用。您无需 Azure 中 VM 的管理员权限。有关详细信息,请参阅 在 Citrix DaaS Standard for Azure 中创建 Linux VDA。
配置
要使用此功能,请完成以下步骤:
步骤 1:将更新信息和新的 VDA 软件包上传到您的 Azure 容器
步骤 1a:在您的 Azure 存储帐户下创建一个容器,并将容器访问级别设置为 Blob(仅限 Blob 的匿名读取访问)。
注意:
Azure 容器和 Blob 专门由客户持有和管理。Citrix® 对其任何安全问题概不负责。为确保数据安全和成本效率,请在每次自动更新后将容器访问级别设置为 Private(无匿名访问)。
步骤 1b:将您的 VDA 更新信息合并到名为 UpdateInfo.json 的 JSON 文件中。有关文件格式示例,请参阅以下代码块:
{
"Version": "21.04.200.4",
"Distributions":[
{
"TargetOS": "RHEL7_9",
"PackageName": "",
"PackageHash": ""
},
{
"TargetOS": "UBUNTU18_04",
"PackageName": "xendesktopvda_21.04.200.4-1.ubuntu18.04_amd64.deb",
"PackageHash": "4148cc3f25d3717e3cbc19bd953b42c72bd38ee3fcd7f7034c2cd6f2b15b3c5a"
},
{
- "TargetOS": "UBUNTU20_04",
- "PackageName": "",
- "PackageHash": ""
}
]
}
<!--NeedCopy-->
其中,“Version” 指示新的 VDA 版本,“Distributions” 是一个更新对象数组。每个对象包含三个项目:
-
“TargetOS”:必须是 “RHEL7_9”(适用于 RHEL 7、CentOS 7 和 Amazon Linux 2)、”UBUNTU18_04” 或 “UBUNTU20_04”。
ctxmonitorservice不识别任何其他分发版。 - “PackageName”:指定版本的 VDA 软件包的全名。
-
“PackageHash”:使用
shasum -a 256 <pkgname>命令计算的 SHA-256 值。
步骤 1c:将 JSON 文件和新版本的 Linux VDA 软件包上传到您的 Azure 容器。
步骤 2:在主映像或每个 VDA 上启用自动更新功能
默认情况下,自动更新处于禁用状态。如果您在 Citrix DaaS Standard for Azure 中创建 Linux VDA,则必须在主映像上启用此功能。否则,请直接在每个目标 VDA 上启用此功能。
要启用自动更新,请运行与以下内容类似的命令以编辑 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\SelfUpdate 处的注册表项。
/opt/Citrix/VDA/bin/ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix\SelfUpdate" -t "REG_DWORD" -v "fEnabled" -d "0x00000001" --force
/opt/Citrix/VDA/bin/ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix\SelfUpdate" -t "REG_SZ" -v "ScheduledTime" -d "Immediately" --force
/opt/Citrix/VDA/bin/ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix\SelfUpdate" -t "REG_SZ" -v "Url" -d "<Your-Azure-Container-Url>" --force
/opt/Citrix/VDA/bin/ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix\SelfUpdate" -t "REG_SZ" -v "CaCertificate" -d "<Local-Certificate-Path-of-PortalAzureCom>" --force
<!--NeedCopy-->
下表介绍了注册表设置。
| 注册表设置 | 描述 |
|---|---|
| fEnabled | 此设置为必需。默认情况下,值为 0,表示自动更新处于禁用状态。您可以将其设置为 1 以启用自动更新。 |
| Url | 此设置为必需。它设置您的 Azure 容器的 URL,以获取更新信息和新的 VDA 软件包。 |
| ScheduledTime | 此设置为必需。您可以将其设置为 Immediately 或 NextStart。Immediately 表示在下载 VDA 软件包后立即运行更新。当下载速度快且更新紧急时,此选项适用。但如果在下载软件包时有任何活动会话,它可能会中断用户体验。NextStart 表示在 ctxmonitorservice 下次启动时运行更新。当下载速度不快且更新不紧急时,此选项适用。 |
| CaCertificate | 此设置为可选。它设置 PEM 证书的完整路径,以验证您的 Azure 容器的 URL。对于 Azure Blob,它可以是 portal.azure.com 的证书,该证书从浏览器中检索并转换为 PEM。为安全起见,我们建议您添加此注册表设置,但它仅在 Ubuntu 上受支持。在 RHEL 上,它缺少 curl 命令的一些 NSS 库链接。确保设置证书的最低权限。 |
当 ctxmonitorservice 重新启动时,它首先查询 Url 以获取 UpdateInfo.json 文件,并从 JSON 文件中检索更新版本。然后,ctxmonitorservice 将更新版本与当前版本进行比较。如果当前版本较早,则服务会从 Azure 下载新版本的 VDA 软件包并将其保存在本地。之后,它会根据 ScheduledTime 的设置运行更新。对于本地部署,您可以直接重新启动 ctxmonitorservice 以触发更新。但是,在 Citrix DaaS Standard for Azure 中,您没有 VM 的管理员权限,ctxmonitorservice 只能在 VDA 计算机重新启动后才能重新启动。如果更新失败,您的 VDA 将回滚到现有版本。
注意:
- 您在主映像上配置的注册表设置无法更改。
- 如果环境中所有 VM 同时下载软件包,则本地网络可能会拥塞。
- 如果更新和回滚都失败,则用户数据将丢失。
- 如果更新失败但回滚成功,则同一网络上的用户可能具有不同版本的 Linux VDA。这种情况并非最佳。
- 更新通常需要几分钟才能完成。Citrix Studio 中没有状态指示器。
共享
共享
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.