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!
在 XenServer® 中创建预置映像计算机目录
使用以下方式创建预置映像并使用这些预置映像创建 MCS 计算机目录:
使用预置映像创建 MCS 计算机目录的关键步骤是:
- 创建映像定义和初始映像版本。
- 使用映像版本作为预置映像来创建目录。
使用 Studio
创建映像定义和初始映像版本
要创建映像定义和初始映像版本,请执行以下操作:
- 在 Studio 中,转至映像节点,然后单击创建映像定义。在简介页面上单击下一步。
- 在映像定义页面上,为映像定义指定操作系统类型、会话类型和连接。
-
在映像页面上,选择资源(仅列出适用于所设置连接的资源)和用作创建映像版本模板的主映像。
注意:
- 在选择映像之前,请验证主映像是否已安装 VDA 2311 或更高版本,并且 VDA 上已安装 MCSIO 驱动程序。
- 在计算机规范页面上,您只能看到从主映像派生的内存大小,如果需要,可以更改它。
- 在 NIC 页面上,为准备映像选择 NIC。对于每个 NIC,选择一个关联的虚拟网络。默认选择与主映像关联的 NIC。
- 在版本描述页面上,输入所创建的初始映像版本的描述。
- 在摘要页面上,检查映像定义和所创建的初始映像版本的详细信息。输入映像定义的名称和描述。单击完成。
创建映像版本
映像版本允许管理特定映像的不同迭代或更新。此功能使您能够为不同目的维护映像的多个版本。
要从初始映像版本创建映像版本,请执行以下操作:
- 转至映像节点,选择一个映像版本或映像定义,然后单击创建映像版本。
- 在映像页面上,您可以重新选择此映像版本的主映像。
- 如果希望映像版本的配置与初始配置的映像版本不同,请在创建映像版本对话框的计算机规范和 NIC 上配置设置。
- 为映像版本添加描述。单击完成。
注意:
如果映像版本创建因任何原因失败,底部的故障排除选项卡会提供重试选项。
从映像节点创建计算机目录
使用映像节点中的创建目录选项,使用映像版本创建目录。
或者,您可以在计算机目录节点中创建目录时选择版本,链接到目录创建工作流中的预置映像选项。请参阅从计算机目录节点创建计算机目录
要从映像节点创建 MCS 计算机目录,请执行以下操作:
- 选择一个映像版本,然后单击创建目录。在简介页面上单击下一步。
- 在计算机管理页面上单击下一步。
- 在桌面体验页面上,选择所需的桌面体验。
- 从映像页面到虚拟机页面,设置会根据所选映像版本预先选择。
- 完成以下页面上的设置。
- 在摘要页面上,检查计算机目录的详细信息。输入计算机目录的名称和描述。单击完成。
- 转至计算机目录节点以查看所创建的计算机目录。
从计算机目录节点创建计算机目录
要从计算机目录节点创建 MCS 计算机目录,请执行以下操作:
- 单击左侧导航窗格上的计算机目录。
- 单击创建计算机目录。此时将显示计算机目录设置页面。依次单击简介、计算机类型和计算机管理页面上的下一步。
- 在映像页面上:
- 选择预置映像。
- 在预置映像下,选择映像定义的映像版本。
- 选择映像版本。要查看有关所选映像版本的更多详细信息,请单击带下划线的版本号。
- 完成以下页面上的设置。
- 在摘要页面上,检查计算机目录的详细信息。输入计算机目录的名称和描述。单击完成。
使用 PowerShell
创建预置映像
创建预置映像版本规范的详细 PowerShell 命令如下:
-
使用
Test-ProvImageDefinitionNameAvailable命令检查可用的映像定义名称。例如:Test-ProvImageDefinitionNameAvailable -ImageDefinitionName xenimage1 <!--NeedCopy--> -
使用
New-ProvImageDefinition命令创建映像定义。例如:$ImageDefintion = New-ProvImageDefinition -ImageDefinitionName xenimage1 -OsType Windows -VdaSessionSupport SingleSession <!--NeedCopy--> -
使用
Add-ProvImageDefinitionConnection命令在指定的托管连接中为映像定义创建新配置。Add-ProvImageDefinitionConnection -ImageDefinitionName $ImageDefintion.ImageDefinitionName -HypervisorConnectionName XenServer1 <!--NeedCopy--> -
使用
New-ProvImageVersion命令创建映像版本。例如:$ImageVersion = New-ProvImageVersion -ImageDefinitionName $ImageDefintion.ImageDefinitionName -Description "version 1" <!--NeedCopy--> -
使用
Add-ProvImageVersionSpec命令将主映像版本规范添加到映像版本。例如:$MasterImagePath = "XDHyp:\HostingUnits\xenhu \win10-master.vm\win10-master-snap.snapshot" $SourceImageVersionSpec = Add-ProvImageVersionSpec -ImageDefinitionName $ImageDefintion.ImageDefinitionName -ImageVersionNumber $ImageVersion.ImageVersionNumber -HostingUnitName xenhu -MasterImagePath $MasterImagePath <!--NeedCopy-->注意:
您只能为一个托管单元的映像版本添加一个主映像版本规范。
-
使用
New-ProvImageVersionSpec命令从主映像版本规范创建预置映像版本规范。例如:New-ProvImageVersionSpec -SourceImageVersionSpecUid $SourceImageVersionSpec.ImageVersionSpecUid -NetworkMapping @{"0"="XDHyp:\HostingUnits\xenhu\VM Network.network"} -VMCpuCount 2 -VMMemoryMB 4096 -RunAsynchronously <!--NeedCopy-->
创建映像定义、映像版本和预置映像版本规范的完整 Powershell 命令集示例:
$ImageDefintion = New-ProvImageDefinition -ImageDefinitionName xenimage1 -OsType Windows -VdaSessionSupport SingleSession
Add-ProvImageDefinitionConnection -ImageDefinitionName $ImageDefintion.ImageDefinitionName -HypervisorConnectionName XenServer1
$ImageVersion = New-ProvImageVersion -ImageDefinitionName $ImageDefintion.ImageDefinitionName -Description "version 1"
$MasterImagePath = "XDHyp:\HostingUnits\xenhu \win10-master.vm\win10-master-snap.snapshot"
$SourceImageVersionSpec = Add-ProvImageVersionSpec -ImageDefinitionName $ImageDefintion.ImageDefinitionName -ImageVersionNumber $ImageVersion.ImageVersionNumber -HostingUnitName xenhu -MasterImagePath $MasterImagePath
New-ProvImageVersionSpec -SourceImageVersionSpecUid $SourceImageVersionSpec.ImageVersionSpecUid -NetworkMapping @{"0"="XDHyp:\HostingUnits\xenhu\VM Network.network"}
-VMCpuCount 2 -VMMemoryMB 4096 -RunAsynchronously
<!--NeedCopy-->
注意:
- 一个映像版本只能有一个主映像版本规范和一个预置映像版本规范。
- 所有映像版本规范必须要么具有计算机配置文件,要么都没有计算机配置文件。
使用预置映像版本规范创建目录
使用 New-ProvScheme 命令从预置映像版本规范创建 MCS 计算机目录。例如:
New-ProvScheme -ProvisioningSchemeName <string> -ImageVersionSpecUid <Guid> -HostingUnitUid <Guid> -IdentityPoolUid <Guid> [-VMCpuCount <int>] [-VMMemoryMB <int>] [-UseWriteBackCache] [-NetworkMapping <Hashtable>] [-CleanOnBoot] [-Scope <string[]>] [-Metadata <Hashtable>] [-ServiceOffering <string>] [-SecurityGroup <string[]>] [-TenancyType <string>] [-MachineProfile <string>] [-CustomProperties <string>] [-ResetAdministratorPasswords] [-UseFullDiskCloneProvisioning] [-RunAsynchronously] [-PurgeJobOnSuccess] [-ProvisioningSchemeType <ProvisioningSchemeType>]
<!--NeedCopy-->
或者:
New-ProvScheme -ProvisioningSchemeName <string> -ImageVersionSpecUid <Guid> -HostingUnitName <string> -IdentityPoolName <string> [-VMCpuCount <int>] [-VMMemoryMB <int>] [-UseWriteBackCache] [-NetworkMapping <Hashtable>] [-CleanOnBoot] [-Scope <string[]>] [-Metadata <Hashtable>] [-ServiceOffering <string>] [-SecurityGroup <string[]>] [-TenancyType <string>] [-MachineProfile <string>] [-CustomProperties <string>] [-ResetAdministratorPasswords] [-UseFullDiskCloneProvisioning] [-RunAsynchronously] [-PurgeJobOnSuccess] [-ProvisioningSchemeType <ProvisioningSchemeType>]
<!--NeedCopy-->
在 XenServer 中使用预置映像版本规范创建目录的示例:
New-ProvScheme -ProvisioningSchemeName assignimage -imageVersionSpecUid $PreparedImageVersionSpec.ImageVersionSpecUid 1 `
-HostingUnitName xenhu -IdentityPoolName poo1 `
-CleanOnBoot -Scope @() -SecurityGroup @() -VMCpuCount 2 -VMMemoryMB 8192 `
-NetworkMapping @{"0"="XDHyp:\HostingUnits\xenhu\VM Network.network"}
<!--NeedCopy-->
创建目录的完整 Powershell 命令集示例:
$CatalogName = "XenCatalog"
$Catalog = New-BrokerCatalog -AllocationType "Random" -IsRemotePC $False -MinimumFunctionalLevel "L7_20" `
-Name $CatalogName -PersistUserChanges "Discard" -ProvisioningType "MCS" -Scope @() -SessionSupport "MultiSession"
$IdentityPool = New-AcctIdentityPool -AllowUnicode -Domain "xen.local" -IdentityPoolName $CatalogName `
-IdentityType "ActiveDirectory" -NamingScheme "xen®##" -NamingSchemeType "Numeric" -Scope @()
$PreparedImageVersionSpec = Get-ProvImageVersionSpec -ImageDefinitionName xenimage1 -ImageVersionNumber 1 -Filter "PreparationType -eq 'Mcs'"
$Task = New-ProvScheme -ProvisioningSchemeName $CatalogName -ImageVersionSpecUid $PreparedImageVersionSpec.ImageVersionSpecUid `
-HostingUnitName xenhu -IdentityPoolName $CatalogName -CleanOnBoot -Scope @() -SecurityGroup @() `
-NetworkMapping @{"0"="XDHyp:\HostingUnits\xenhu\VM Network.network"} -VMCpuCount 2 -VMMemoryMB 4096 -RunAsynchronously
Get-ProvTask -TaskId $Task.TaskId
$ProvScheme = Get-ProvScheme -ProvisioningSchemeName $CatalogName
Set-BrokerCatalog -Name $Catalog.Name -ProvisioningSchemeId $ProvScheme.ProvisioningSchemeUid
<!--NeedCopy-->
更多信息
后续步骤
共享
共享
在本文中
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.