Jump to content


Photo

Unable to create new catalog

Started by James O'Regan , 25 June 2014 - 04:21 PM
17 replies to this topic

James O'Regan Members

James O'Regan
  • 24 posts

Posted 25 June 2014 - 04:21 PM

I using Windows 2008 R2 with XenDesktop 7.1

 

I am unable to create a new Catalog even though running slmgr /dlv says I still have one rearm availble

 

State: Failed

Master image: XDHyp:\hostingunits\xxxxxxxx\xxxxCXAXENTEMP.vm\testxd7.snapshot\snap1305.snapshot\snap1305a.snapshot\snap1305b.snapshot\snaprearm.snapshot\Snap2506.snapshot\2506.snapshot\Snap2506a.snapshot\snap2506c.snapshot

Requested machine count: 2

AD account action: Create accounts

Successful accounts: 1

Successful machines: 1

 

Terminating Error:

Image Preparation OS Rearm Count Exceeded

Stack Trace:

   at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.BackgroundTasks.ProvisioningSchemeTask.CheckForTerminatingError(SdkProvisioningSchemeAction sdkProvisioningSchemeAction)

   at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.BackgroundTasks.ProvisioningSchemeTask.WaitForProvisioningSchemeActionCompletion(Guid taskId, Action`1 actionResultsObtained)

   at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.BackgroundTasks.ProvisioningSchemeCreationTask.StartProvisioningAction()

   at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.BackgroundTasks.ProvisioningSchemeCreationTask.RunTask()

   at Citrix.Console.PowerShellSdk.BackgroundTaskService.BackgroundTask.Task.Run()

 

DesktopStudio_ErrorId : UnknownError

ErrorCategory : NotSpecified

ErrorID : ImagePreparationOSRearmCountExceeded

TaskErrorInformation : Operating System Licensing Rearm count exceeded

InternalErrorMessage : Operating System Licensing Rearm count exceeded

 

 



Carl Stalhood CTP Member

Carl Stalhood
  • 11,935 posts

Posted 25 June 2014 - 04:59 PM

See this thread for logging instructions - http://discussions.citrix.com/topic/351002-cannot-create-machine-catalog/

Make sure the master VM is activated with KMS for both Windows and Office. Then take a snapshot. The image prep VM will rearm both but it requires them to be activated first.

James O'Regan Members

James O'Regan
  • 24 posts

Posted 26 June 2014 - 09:50 AM

Hi Carl

 

I haver checked and the OS still has one rearm according to smlgr /dlv and Office 2007 is already activated

 

Yet the Catalog creation still fails everytime with  Image Preparation OS Rearm Count Exceeded



Carl Stalhood CTP Member

Carl Stalhood
  • 11,935 posts

Posted 26 June 2014 - 11:18 AM

Did you try the instructions at http://discussions.citrix.com/topic/351002-cannot-create-machine-catalog/ to halt the machine after the error occurs? Then you can login and check the logs and maybe see the activation state.



James O'Regan Members

James O'Regan
  • 24 posts

Posted 26 June 2014 - 12:12 PM

I have attached the image prep log file

 

 

Attached Thumbnails

  • mcscat.PNG


Carl Stalhood CTP Member

Carl Stalhood
  • 11,935 posts

Posted 26 June 2014 - 01:00 PM

I think 0xc004d307 means there are no rearms left. If you have the image prep machine running, can you rearm it manually?



Carl Stalhood CTP Member

Carl Stalhood
  • 11,935 posts

Posted 26 June 2014 - 01:04 PM

Also, I assume that you are not manually rearming before you create the snapshot. MCS will rearm for you so you don't have to worry about it.



James O'Regan Members

James O'Regan
  • 24 posts

Posted 26 June 2014 - 01:10 PM

No I am not manually rearming I am letting MCS  handle that but as I states slmgr /dlv is saying I have one rearm left but yet when I try to create a catalog I get the "Operating System Licensing Rearm count exceeded"



Carl Stalhood CTP Member

Carl Stalhood
  • 11,935 posts

Posted 26 June 2014 - 01:15 PM

On the image prep machine where you got the logs from, if you run slmgr.vbs /rearm, what do you see?



James O'Regan Members
  • #10

James O'Regan
  • 24 posts

Posted 26 June 2014 - 02:16 PM

it lets me rearm , I actually went back to an earlier snapshot and tried again, slmgr /dlv still stating 1 rearm remaining but again the catalog creation fails.

 

 



Carl Stalhood CTP Member
  • #11

Carl Stalhood
  • 11,935 posts

Posted 26 June 2014 - 04:00 PM

At this point I would open a support case.



James O'Regan Members
  • #12

James O'Regan
  • 24 posts

Posted 26 June 2014 - 04:03 PM

Rolled back to a previous snapshot and now getting this error

 

Task Information:

Start Date: 26 June 2014

Start Time: 16:42

Finish Date: 26 June 2014

Finish Time: 16:52

State: Failed

Master image: XDHyp:\hostingunits\RSAMULCL\RSAICXAXENTEMP.vm\testxd7.snapshot\2606snap.snapshot

Requested machine count: 1

AD account action: Create accounts

Successful accounts: 1

Successful machines: 1

 

Terminating Error:

Provisioning scheme not recognized.

Stack Trace:

   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.BackgroundTasks.ProvisioningSchemeCreationTask.AddProvSchemeToCatalog()

   at Citrix.Console.PowerShellSdk.BackgroundTaskService.BackgroundTask.Task.Run()

 

DesktopStudio_ErrorId : UnknownDumScheme

Sdk Error Message : Invalid provisioning scheme

Sdk Error ID : Citrix.XDPowerShell.Broker.UnknownDumScheme,Citrix.Broker.Admin.SDK.SetBrokerCatalogCommand

ErrorCategory : ObjectNotFound

DesktopStudio_PowerShellHistory : Create Machine Catalog 'XenDesktop Production'

26/06/2014 16:42:03

 

Get-ConfigServiceStatus  -AdminAddress 'rsaicxdc01.ie.rsa-ins.com:80'

Get-LogSite  -AdminAddress 'rsaicxdc01.ie.rsa-ins.com:80'

Start-LogHighLevelOperation  -AdminAddress 'rsaicxdc01.ie.rsa-ins.com:80' -Source 'Studio' -StartTime 26/06/2014 15:42:03 -Text 'Create Machine Catalog `'XenDesktop Production`''

New-BrokerCatalog  -AdminAddress 'rsaicxdc01.ie.rsa-ins.com:80' -AllocationType 'Random' -Description 'XenDesktop Production ' -IsRemotePC $False -LoggingId d1fa885f-a53b-4d79-85c6-cd02b97e0ae1 -MinimumFunctionalLevel 'L7' -Name 'XenDesktop Production' -PersistUserChanges 'Discard' -ProvisioningType 'MCS' -Scope @() -SessionSupport 'MultiSession'

New-AcctIdentityPool  -AdminAddress 'rsaicxdc01.ie.rsa-ins.com:80' -AllowUnicode -Domain 'ie.rsa-ins.com' -IdentityPoolName 'XenDesktop Production' -LoggingId d1fa885f-a53b-4d79-85c6-cd02b97e0ae1 -NamingScheme 'rsaicxd##' -NamingSchemeType 'Numeric' -OU 'CN=Computers,DC=ie,DC=rsa-ins,DC=com' -Scope @()

Set-BrokerCatalogMetadata  -AdminAddress 'rsaicxdc01.ie.rsa-ins.com:80' -CatalogId 26 -LoggingId d1fa885f-a53b-4d79-85c6-cd02b97e0ae1 -Name 'Citrix_DesktopStudio_IdentityPoolUid' -Value 'c104a99f-5b8e-4af0-968d-dc45a05e5ef8'

Test-ProvSchemeNameAvailable  -AdminAddress 'rsaicxdc02.ie.rsa-ins.com:80' -ProvisioningSchemeName @('XenDesktop Production')

New-ProvScheme  -AdminAddress 'rsaicxdc02.ie.rsa-ins.com:80' -CleanOnBoot -HostingUnitName 'RSAMULCL' -IdentityPoolName 'XenDesktop Production' -LoggingId d1fa885f-a53b-4d79-85c6-cd02b97e0ae1 -MasterImageVM 'XDHyp:\hostingunits\RSAMULCL\RSAICXAXENTEMP.vm\testxd7.snapshot\2606snap.snapshot' -NetworkMapping @{0='xdhyp:\hostingunits\RSAMULCL\\dvPGvLAN701.network'} -ProvisioningSchemeName 'XenDesktop Production' -RunAsynchronously -Scope @() -VMCpuCount 4 -VMMemoryMB 16384

Get-ProvTask  -AdminAddress 'rsaicxdc02.ie.rsa-ins.com:80' -MaxRecordCount 2147483647 -TaskId 62b457f1-43c8-44a8-81a1-123c4a598f81

Set-BrokerCatalog  -AdminAddress 'rsaicxdc01.ie.rsa-ins.com:80' -LoggingId d1fa885f-a53b-4d79-85c6-cd02b97e0ae1 -Name 'XenDesktop Production' -ProvisioningSchemeId d0cd20b3-ad62-4f2a-bda1-7d87c25a609b

Set-BrokerCatalog : Invalid provisioning scheme

                + CategoryInfo : ObjectNotFound: (:) [Set-BrokerCatalog], SdkOperationException

                + FullyQualifiedErrorId : Citrix.XDPowerShell.Broker.UnknownDumScheme,Citrix.Broker.Admin.SDK.SetBrokerCatalogCommand

 

Inner Error:

Invalid provisioning scheme

Stack Trace:

   at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(ErrorRecord errorRecord)

Inner Error:

Invalid provisioning scheme



James O'Regan Members
  • #13

James O'Regan
  • 24 posts

Posted 26 June 2014 - 04:43 PM

PS C:\Windows\system32> get-provtask 62b457f1-43c8-44a8-81a1-123c4a598f81

TaskId                      : 62b457f1-43c8-44a8-81a1-123c4a598f81
Active                      : False
Host                        : RSAICXDC02
DateStarted                 : 26/06/2014 16:42:06
Metadata                    : {}
Type                        : NewProvisioningScheme
Status                      : Finished
CurrentOperation            :
TaskExpectedCompletion      : 26/06/2014 16:52:37
LastUpdateTime              : 26/06/2014 16:52:37
ActiveElapsedTime           : 632
DateFinished                : 26/06/2014 16:52:37
TerminatingError            : Creation of Image Preparation VM Failed, message Citrix.ManagedMachineAPI.ManagedMachineE
                              xception: Unable to access file /vmfs/volumes/53023e91-119edcf0-ad55-5cf3fcddf5ec/Prepara
                              tion - XenDesktop Production_1/prepare-identity.vmdk ---> Citrix.ManagedMachineAPI.Manage
                              dMachineException: Unable to access file /vmfs/volumes/53023e91-119edcf0-ad55-5cf3fcddf5e
                              c/Preparation - XenDesktop Production_1/prepare-identity.vmdk
                                 at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmConnection.WaitFor
                              Task(ManagedObjectReference taskRef, TimeSpan timeout, Action`1 reportPercentComplete, Ti
                              meSpan taskPollPeriod)
                                 at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmConnection.WaitFor
                              Task(ManagedObjectReference taskRef, TimeSpan timeout, Action`1 reportPercentComplete)
                                 at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmManager.AttachDisk
                              FileToVm(ManagedObjectReference vmRef, Int32 scsiControllerKey, Int32 diskIndex, String d
                              iskMode, String diskFilename)
                                 at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmManager.CreateAndA
                              ttachDisk(String vmID, String name, String dataCenterName, Int32 diskIndex, String primar
                              yDiskControllerId, IVirtualDisk diskData)
                                 at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VmwareVmManager.CreateComp
                              leteVM(String name, IVMMetadata metadata, Int32 cpuCount, Int32 memory, String storageId,
                               String dataCenterPath, ManagedObjectReference resourcePool, NetworkInterfaceDetails nics
                              , Boolean enableNetwork, Boolean tagVms, IList`1 disks)
                                 at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VMwareHypervisor.<>c__Disp
                              layClass1c.<BeginCreateCompleteVM>b__1b(VmwareVmManager manager)
                                 at Citrix.HypervisorCommunicationsLibrary.TaskRunItem`2.Run(T manager)
                                 at HypervisorsCommon.HCL.TaskRunner`1.Run()
                                 --- End of inner exception stack trace ---
                                 at HypervisorsCommon.HCL.TaskScheduler`1.CompleteTask(IAsyncResult result)
                                 at Citrix.PoolManagement.VMManager.VmmImplementation.Vmware.VMwareHypervisor.EndCreate
                              CompleteVM(IHostingUnitConnector hostingUnit, IAsyncResult result)
                                 at Citrix.MachineCreation.NewProvisioningSchemeSupport.NewProvisioningSchemeLogic.Crea
                              teVmCallback(IAsyncResult result)
WorkflowStatus              : Terminated
ProvisioningSchemeName      : XenDesktop Production
MasterImage                 : /RSAICXAXENTEMP.vm/testxd7.snapshot/2606snap.snapshot
IdentityPoolName            : XenDesktop Production
IdentityPoolUid             : c104a99f-5b8e-4af0-968d-dc45a05e5ef8
HostingUnitName             : RSAMULCL
HostingUnitUid              : eb229f3c-093a-4446-82d1-4a912899a72d
ProvisioningSchemeUid       : d0cd20b3-ad62-4f2a-bda1-7d87c25a609b
TaskState                   : ImagePreparationInitialization
TaskStateInformation        : Terminated
TaskProgress                : 100
DiskSize                    : 50
PersonalVDiskDriveLetter    :
PersonalVDiskDriveSize      : 0
Scopes                      : {}
NetworkMaps                 : {0}
ProvisioningSchemeMetadata  : {}
ResetAdministratorPasswords : False
GpuTypeId                   :



Carl Stalhood CTP Member
  • #14

Carl Stalhood
  • 11,935 posts

Posted 26 June 2014 - 05:14 PM

Did you delete the ImagePrep VM that was stopped so you can get the logs? Then run the PowerShell command to return the image prep to normal mode.

Louis-Steve Desjardins Members
  • #15

Louis-Steve Desjardins
  • 76 posts

Posted 14 January 2015 - 04:09 PM

We have the same issue. Did you find a solution ?

 

Thanks



Louis-Steve Desjardins Members
  • #16

Louis-Steve Desjardins
  • 76 posts

Posted 19 January 2015 - 03:22 PM

I finally manage to create a new catalog.

 

I've follow this procedure : http://masud-ahmed-windows7-server-2008.blogspot.ca/2013/06/resetting-rearm-count-in-windows-7.html



Akinola Oke Members
  • #17

Akinola Oke
  • 137 posts

Posted 01 July 2016 - 09:06 AM

I am just facing this problem now. I had in the past created Catalog with MCS without any problem. However in our case we do have KMS and such rearm situation should not come up. Running slmgr on the master image indicate connection to the KMS server

 

So why is rearm creating problem and what would be the workaround in this case.

 

Thanks



christianmdu Members
  • #18

Christian Summerfield
  • 33 posts

Posted 16 November 2016 - 01:13 PM

I resolved this by setting the 'SkipRearm' key in registry to "1" at the following location:

 

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/SoftwareProtectionPlatform

 

I then rebooted and was able to update my master image.