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!
在 Nutanix AHV Prism Central 中使用预准备映像创建目录
-
创建预准备映像,并使用这些预准备映像通过以下方式创建 MCS 计算机目录:
使用预准备映像创建 MCS 计算机目录的主要步骤如下:
- 创建映像定义和初始映像版本。
- 使用映像版本作为预准备映像创建目录
使用 PowerShell
Nutanix PC 中映像解耦工作流的 PowerShell 示例。
设置
$CustomProperties='<CustomProperties xmlns="http://schemas.citrix.com/2014/xd/machinecreation"><StringProperty Name="ClusterId" Value="00062c63-1fb0-58c9-4fc8-5c2573352378"/></CustomProperties>'
$MasterImagePath="XDHyp:\HostingUnits\${HostingUnitName}\Templates.folder\hai-vda-novtpm01.template\Initial Version.templateversion"
$VMNetwork1A="XDHyp:\HostingUnits\${HostingUnitName}\Clusters.folder\mcs-pvs-ntnx-cluster01.cluster\vmNwCl1-A.network"
$NetworkMapping=@{"0"=$VMNetwork1A}
<!--NeedCopy-->
创建映像定义和映像版本
$ImageDefinition = New-ProvImageDefinition -ImageDefinitionName $ImgDefName -OsType Windows -VdaSessionSupport SingleSession
$ImageVersion = New-ProvImageVersion -ImageDefinitionName $ImageDefinition.ImageDefinitionName -Description "V1"
Add-ProvImageDefinitionConnection -ImageDefinitionName $ImageDefinition.ImageDefinitionName -HypervisorConnectionName $HostingConnection
<!--NeedCopy-->
创建映像版本规范
$MasterImageVersionSpec = Add-ProvImageVersionSpec -ImageDefinitionName $ImageVersion.ImageDefinitionName -ImageVersionNumber $ImageVersion.ImageVersionNumber -HostingUnitName $HostingUnitName -MasterImagePath $MasterImagePath
$ProvTask = New-ProvImageVersionSpec -SourceImageVersionSpecUid $MasterImageVersionSpec.ImageVersionSpecUid -NetworkMapping $NetworkMapping -MachineProfile $MachineProfile -CustomProperties $CustomProperties -AdditionalStorageIds 00062c6d-09a3-134b-446d-58a2e17d0f88 -RunAsynchronously
$PreparedImageVersionSpec = Get-ProvImageVersionSpec -ImageDefinitionName $ImgDefName -ImageVersionNumber 1 -Filter "PreparationType -eq 'Mcs'"
<!--NeedCopy-->
创建预配方案
- $ProvTask = New-ProvScheme -ProvisioningSchemeName $ProvSchemeName -ImageVersionSpecUid $PreparedImageVersionSpec.ImageVersionSpecUid -HostingUnitName $HostingUnitName -IdentityPoolName $IdentityPoolName -CleanOnBoot -Scope @() -SecurityGroup @() -NetworkMapping $NetworkMapping -CustomProperties $CustomProperties -MachineProfile $MachineProfile -RunAsynchronously
<!--NeedCopy-->
将映像版本规范复制到新群集
Add-ProvImageVersionSpecInstance -ImageVersionSpecUid $PreparedImageVersionSpec.ImageVersionSpecUid -StorageID 00062c6d-09a3-134b-446d-58a2e17d0f88
<!--NeedCopy-->
在新群集中使用相同的预准备映像创建新的预配方案
$CustomProperties='<CustomProperties xmlns="http://schemas.citrix.com/2014/xd/machinecreation"><StringProperty Name="ClusterId" Value="00062c6d-09a3-134b-446d-58a2e17d0f88"/></CustomProperties>'
$ProvTask = New-ProvScheme -ProvisioningSchemeName $ProvSchemeName -ImageVersionSpecUid $PreparedImageVersionSpec.ImageVersionSpecUid -MachineProfile $MachineProfile -HostingUnitName $HostingUnitName -IdentityPoolName $IdentityPoolName -CleanOnBoot -Scope @() -SecurityGroup @() -NetworkMapping $NetworkMapping -CustomProperties $CustomProperties -RunAsynchronously
<!--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.