Citrix

XenDesktop 7 and VMware vCenter 5: New Machine Catalog creation fails with error: A snapshot could not be created from the specified virtual machine

XenDesktop 7 would fail to create new Machine Catalog whenever it fails to create a Snapshot of the chosen VM for Master Image. 

In my case, Snapshot creation was failing as my vCenter server was failing to Connect to the ESXi host due to expiry of license.

image

 

image

Error Id: XDDS:02C84D06

Exception:
    Citrix.Console.Models.Exceptions.ScriptException A snapshot could not be created from the specified virtual machine: XDHyp:hostingunitsVMTestCluster1Win7ENTSP1.vm
       at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.Scripts.SnapshotVMsScript.CreateVMSnapShot(String vmPath)
       at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.Scripts.SnapshotVMsScript.RunScript()
       at Citrix.Console.PowerShellInteraction.PowerShellScript`1.Run()
       at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.BackgroundTasks.SnapshotCreationTask.RunTask()
       at Citrix.Console.PowerShellSdk.BackgroundTaskService.BackgroundTask.Task.Run()
    DesktopStudio_ErrorId : UnknownError
    ErrorCategory : NotSpecified
    DesktopStudio_PowerShellHistory : Create Machine Catalog ‘Win7XD7Pool’
    10/16/2013 10:37:04 AM
    Get-ConfigServiceStatus  -AdminAddress ‘w2k12srv1.rwdc.lan:80’
    Get-LogSite  -AdminAddress ‘w2k12srv1.rwdc.lan:80’
    Start-LogHighLevelOperation  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -Source ‘Studio’ -StartTime 10/16/2013 5:36:24 PM -Text ‘Create Machine Catalog `’Win7XD7Pool`”
    New-BrokerCatalog  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -AllocationType ‘Random’ -Description ‘Windows 7 Pooled VMs on XD7’ -IsRemotePC $False -LoggingId d00697df-dcc3-4ae1-abd4-32b1c4b26f49 -MinimumFunctionalLevel ‘L7’ -Name ‘Win7XD7Pool’ -PersistUserChanges ‘Discard’ -ProvisioningType ‘MCS’ -Scope @() -SessionSupport ‘SingleSession’
    New-AcctIdentityPool  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -AllowUnicode -Domain ‘RWDC.lan’ -IdentityPoolName ‘Win7XD7Pool’ -LoggingId d00697df-dcc3-4ae1-abd4-32b1c4b26f49 -NamingScheme ‘XD7Pool###’ -NamingSchemeType ‘Numeric’ -OU ‘OU=Computers,OU=HYD,DC=RWDC,DC=lan’ -Scope @()
    Set-BrokerCatalogMetadata  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -CatalogId 1 -LoggingId d00697df-dcc3-4ae1-abd4-32b1c4b26f49 -Name ‘Citrix_DesktopStudio_IdentityPoolUid’ -Value ‘a6b94f53-bf85-4949-a11a-64d12b3b2b6a’
    New-HypVMSnapshot  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -LiteralPath ‘XDHyp:hostingunitsVMTestCluster1Win7ENTSP1.vm’ -LoggingId d00697df-dcc3-4ae1-abd4-32b1c4b26f49 -SnapshotName ‘Citrix_XD_Win7XD7Pool’
    New-HypVMSnapshot : The create snapshot operation failed.
        + CategoryInfo : InvalidOperation: (:) [New-HypVMSnapshot], InvalidOperationException
        + FullyQualifiedErrorId : Citrix.XDPowerShell.HostStatus.FailedToCreateSnapshot,Citrix.HostingUnitService.Sdk.Commands.NewHypVMSnapshotCommand
    Stop-LogHighLevelOperation  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -EndTime 10/16/2013 5:37:04 PM -HighLevelOperationId ‘d00697df-dcc3-4ae1-abd4-32b1c4b26f49’ -IsSuccessful $False
Inner Exception:
    Citrix.Console.Models.Exceptions.ScriptException The create snapshot operation failed.
       at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.CreateException[T](ExecutionResults`1 results, ICmdletExecutionHost host)
       at Citrix.Console.PowerShellInteraction.CmdletExecutionMethods.Execute[T](ISdkCmdlet`1 sdkCmd, ICmdletExecutionHost host, Boolean allowFailover)
       at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.Scripts.SnapshotVMsScript.CreateVMSnapShot(String vmPath)
    DesktopStudio_ErrorId : FailedToCreateSnapshot
    Sdk Error Message : The create snapshot operation failed.
    Sdk Error ID : Citrix.XDPowerShell.HostStatus.FailedToCreateSnapshot,Citrix.HostingUnitService.Sdk.Commands.NewHypVMSnapshotCommand
    ErrorCategory : NotSpecified
    DesktopStudio_PowerShellHistory : Create Machine Catalog ‘Win7XD7Pool’
    10/16/2013 10:37:04 AM
    Get-ConfigServiceStatus  -AdminAddress ‘w2k12srv1.rwdc.lan:80’
    Get-LogSite  -AdminAddress ‘w2k12srv1.rwdc.lan:80’
    Start-LogHighLevelOperation  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -Source ‘Studio’ -StartTime 10/16/2013 5:36:24 PM -Text ‘Create Machine Catalog `’Win7XD7Pool`”
    New-BrokerCatalog  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -AllocationType ‘Random’ -Description ‘Windows 7 Pooled VMs on XD7’ -IsRemotePC $False -LoggingId d00697df-dcc3-4ae1-abd4-32b1c4b26f49 -MinimumFunctionalLevel ‘L7’ -Name ‘Win7XD7Pool’ -PersistUserChanges ‘Discard’ -ProvisioningType ‘MCS’ -Scope @() -SessionSupport ‘SingleSession’
    New-AcctIdentityPool  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -AllowUnicode -Domain ‘RWDC.lan’ -IdentityPoolName ‘Win7XD7Pool’ -LoggingId d00697df-dcc3-4ae1-abd4-32b1c4b26f49 -NamingScheme ‘XD7Pool###’ -NamingSchemeType ‘Numeric’ -OU ‘OU=Computers,OU=HYD,DC=RWDC,DC=lan’ -Scope @()
    Set-BrokerCatalogMetadata  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -CatalogId 1 -LoggingId d00697df-dcc3-4ae1-abd4-32b1c4b26f49 -Name ‘Citrix_DesktopStudio_IdentityPoolUid’ -Value ‘a6b94f53-bf85-4949-a11a-64d12b3b2b6a’
    New-HypVMSnapshot  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -LiteralPath ‘XDHyp:hostingunitsVMTestCluster1Win7ENTSP1.vm’ -LoggingId d00697df-dcc3-4ae1-abd4-32b1c4b26f49 -SnapshotName ‘Citrix_XD_Win7XD7Pool’
    New-HypVMSnapshot : The create snapshot operation failed.
        + CategoryInfo : InvalidOperation: (:) [New-HypVMSnapshot], InvalidOperationException
        + FullyQualifiedErrorId : Citrix.XDPowerShell.HostStatus.FailedToCreateSnapshot,Citrix.HostingUnitService.Sdk.Commands.NewHypVMSnapshotCommand
    Stop-LogHighLevelOperation  -AdminAddress ‘w2k12srv1.rwdc.lan:80’ -EndTime 10/16/2013 5:37:04 PM -HighLevelOperationId ‘d00697df-dcc3-4ae1-abd4-32b1c4b26f49’ -IsSuccessful $False

Advertisements