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 上的挂载点失败时,您可以指定一个临时主目录。指定临时主目录后,当挂载点失败时,会话登录期间会显示提示。用户数据随后会存储在临时主目录下。
下表描述了有助于您设置主目录的注册表项。
| Registry key | Description | Command |
|---|---|---|
LogNoHome |
控制用户是否可以在没有主目录的情况下登录会话。默认值为 1,表示是。如果该值设置为 0,则禁用没有主目录的会话登录。 | create -k "HKLM\System\CurrentControlSet\Control\Citrix" -t "REG_DWORD" -v "LogNoHome" -d "0x00000001" --force |
HomeMountPoint |
在 Linux VDA 上设置本地挂载点。例如,如果 /mnt/home 是挂载点,则用户主目录是 /mnt/home/domain/<user_name>。请确保此挂载点与您环境中的用户主目录相同。此设置仅在 CheckUserHomeMountPoint 设置为 0 时生效。 |
create -k "HKLM\System\CurrentControlSet\Control\Citrix" -t "REG_SZ" -v "HomeMountPoint" -d "<NFS 共享要挂载的目录>" --force |
CheckUserHomeMountPoint |
控制是否将用户特定的主目录设置为 Linux VDA 上的挂载点。如果您想将用户特定的主目录设置为挂载点,请将该值设置为 1。默认值为 0。 | ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix" -t "REG_DWORD" -v "CheckUserHomeMountPoint" -d "0x00000001" --force |
TempHomeDirectoryPath |
在 Linux VDA 上设置一个临时主目录,以防挂载点失败。默认值为 /tmp。临时主目录设置仅在由 HomeMountPoint 和 CheckUserHomeMountPoint 确定的挂载点不可用时生效。用户的临时主目录为 /tmp/CTXSmf_user_id。 |
create -k "HKLM\System\CurrentControlSet\Control\Citrix" -t "REG_SZ" -v "TempHomeDirectoryPath" -d "</tmp by default>" --force |
CheckMountPointRetryTime |
设置检查挂载是否成功的次数,频率为每秒一次。默认值为 5。 | ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix" -t "REG_DWORD" -v "CheckMountPointRetryTime" -d "0x000000010" --force |
RemoveHomeOnLogoff |
控制是否在用户注销时删除临时主目录。1 表示是。0 表示否。 | create -k "HKLM\System\CurrentControlSet\Control\Citrix" -t "REG_DWORD" -v "RemoveHomeOnLogoff" -d "0x00000000" --force |
示例:处理 Linux VDA 上的主目录挂载失败
场景
您有一个 Linux VDA 配置为从 NFS 共享在 /mnt/home 挂载用户主目录。偶尔,由于网络问题,挂载会失败。您希望确保用户仍然可以登录并自动创建临时主目录。
分步配置
1. 设置挂载点
ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix" \
-t "REG_SZ" -v "HomeMountPoint" -d "/mnt/home" --force
此命令告诉 VDA 在何处挂载用于用户主目录的 NFS 共享。
2. 使用常用挂载点(非用户特定)
- `ctxreg create -k “HKLM\System\CurrentControlSet\Control\Citrix” \
-
-t “REG_DWORD” -v “CheckUserHomeMountPoint” -d “0x00000000” –force`
- 此命令禁用用户特定挂载点,并使用共享的
/mnt/home/domain/路径。如果需要检查用户特定挂载点,请将该值设置为 1。
3. 设置临时主目录回退
ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix" \
-t "REG_SZ" -v "TempHomeDirectoryPath" -d "/tmp" --force
如果挂载失败,用户将获得 /tmp/CTXSmf_ 作为其临时主目录。
4. 重试挂载检查 10 次(每秒一次)
ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix" \
-t "REG_DWORD" -v "CheckMountPointRetryTime" -d "0x0000000A" --force
这为系统提供了 10 秒钟的时间等待挂载,然后才回退。
5. 注销时移除临时主目录
ctxreg create -k "HKLM\System\CurrentControlSet\Control\Citrix" \
-t "REG_DWORD" -v "RemoveHomeOnLogoff" -d "0x00000001" --force
会话结束后清理 /tmp/CTXSmf_。
行为
当用户登录且 /mnt/home 未挂载时,系统将:
- 等待挂载最多 10 秒钟
- 会话登录期间显示提示,表明正在使用临时主文件夹
- 允许使用创建的主目录
/tmp/CTXSmf_登录,用户数据随后会存储在临时主目录中 - 注销后清理临时目录
共享
共享
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.