Jump to content


Photo

Create Catalog SCVMM R2

Started by Tobias Bartholdi , 09 December 2010 - 02:04 PM
8 replies to this topic

Tobias Bartholdi Members

Tobias Bartholdi
  • 10 posts

Posted 09 December 2010 - 02:04 PM

Hi

I am trying to create a pooled desktop catalog on SCVMM 2008R2.

I can create the catalog and the master image is also created on the CSV (name-host1-baseDisk-bcdc07f8-fa5d-4bd4-acf9-b91c0d223622.vhd).

But the virtual machines aren't created. In the Desktop Studio i get this error:

The Catalog has the following errors:
- Failed to create the virtual machine: Domain\xd5-test-01$.

The Active Directory Account is created.

What am I doing wrong?

Thanks,
Tobias



Jamal Ahmed Citrix Employees

Jamal Ahmed
  • 20 posts

Posted 09 December 2010 - 04:29 PM

We will need to find out why creation is failing for that we will have to look at the task and that can only be done using SDK.

Please open the Powershell Window on the Controller and type

Add-PSSnapin Citrix.*
Get-ProvTask -Type "NewVirtualMachine"

Look at the task which has your failed virtual machine. You will be able to see it under "FailedVirtualMachines". If you then get the taskId of that task and run the below cammand it should give you the reason why the VMs have failed to create.

(Get-ProvTask -TaskId "<TaskId>").FailedVirtualMachines

A deomonstration below

PS C:\Users\xdadmin> Get-ProvTask -Type "NewVirtualMachine"

TaskId : 1dc1e695-f8df-4f02-b701-88a079509733
Active : False
Host : MCB-W2K8R2-DDC2
DateStarted : 06/12/2010 11:01:18
Type : NewVirtualMachine
Metadata : {Citrix_DesktopStudio_DesktopCatalogId = 1, Citrix_DesktopStudio_ImagesToCopyCount
= 1, Citrix_DesktopStudio_StartTime = 634272291152877666, Citrix_DesktopStudio_Ta
skGroupId = f91a80b0-116e-438c-98c4-8a65a002f861...}
ProvisioningSchemeName : RTW-Hopefully_SCVMMHU
ProvisioningSchemeUid : 8a73e28e-ceee-4354-b57c-af40de428361
CreatedVirtualMachines : {rtw-w7x32-AC, rtw-w7x32-AB, rtw-w7x32-AD, rtw-w7x32-AA...}
FailedVirtualMachines : {}
HostingUnitUid : e24cbb38-467c-42ae-bb7f-31ff17bea259
HostingUnitName : SCVMMHU
IdentityPoolUid : 17a20fca-29eb-47ff-9292-d225f57bbbea
IdentityPoolName : RTW-Hopefully
VirtualMachinesToCreateCount : 10
WorkflowStatus : Completed
MasterImage : XDHyp:\HostingUnits\SCVMMHU\hh-w7x32-mcs.vm\hv-w7x32-base-pre-sysprep-(07`/22`/201
0 12:18:53).snapshot\hh-w7x32-mcs-pre-vda (11`/05`/2010 12:23:28).snapshot\Citrix_
XD_RTW-Hopefully.snapshot
TaskState : Finished
TaskStateInformation :
VirtualMachinesCreatedCount : 10
VirtualMachinesCreationFailedCount : 0
ProvisioningJob : 0a981fcf-6ed1-4537-b907-a7663bf82135
ProvisioningStatus : Completed

PS C:\Users\xdadmin> (Get-ProvTask -TaskId "1dc1e695-f8df-4f02-b701-88a079509733").FailedVirtualMachines



Tobias Bartholdi Members

Tobias Bartholdi
  • 10 posts

Posted 09 December 2010 - 09:53 PM

Here is the output of the commands:

TaskId : e3b6d122-2d00-4045-b310-5b407c80c4e4
Active : False
Host : RH-XD5-TEST-S01
DateStarted : 12/9/2010 2:45:32 PM
Type : NewVirtualMachine
Metadata : {Citrix_DesktopStudio_DesktopCatalogId = 2, Citrix_DesktopStudio_TaskGroupId = 228
d879a-5759-451a-aa07-b8012006efb3}
ProvisioningSchemeName : xd5-test_host1
ProvisioningSchemeUid : 81d83995-a3f8-4dc6-85c7-c09827626701
CreatedVirtualMachines : {}
FailedVirtualMachines : {xd5-test-01}
HostingUnitUid : 8b55fd19-5a49-43f6-a741-dae25afe2ea0
HostingUnitName : host1
IdentityPoolUid : 1bf35b1a-dcd9-423e-8516-7c67d741c3d4
IdentityPoolName : xd5-test
VirtualMachinesToCreateCount : 1
WorkflowStatus : Completed
MasterImage : XDHyp:\HostingUnits\host1\XD5_Master_W7De.vm\Citrix_XD_xd5-test.snapshot
TaskState : FinishedWithErrors
TaskStateInformation :
VirtualMachinesCreatedCount : 0
VirtualMachinesCreationFailedCount : 1
ProvisioningJob : 78c21ec9-2fe5-414a-8146-9abff000182a
ProvisioningStatus : Completed

PS H:\> (Get-ProvTask -TaskId e3b6d122-2d00-4045-b310-5b407c80c4e4).FailedVirtualMachines

VMId :
VMName : xd5-test-01
ADAccountSid : S-1-5-21-2780032858-3050405306-2089352628-6481
ADAccountName : SBW\xd5-test-01$
Domain : sbw.global
Status : FailedToCreateVM
StatusAdditionalInformation : Exception of type 'Citrix.ManagedMachineAPI.HostingInfrastructureCommunicationsFailureExc
eption' was thrown.



Philip Kendall Citrix Employees

Philip Kendall
  • 1,336 posts

Posted 10 December 2010 - 09:07 AM

Looks like this will need some additional logging. Could you download CDFControl and get logs for all available modules? You can then either post the log here, or e-mail it to me (zipped, but without a .zip extension or our firewall can get grumpy).



Tobias Bartholdi Members

Tobias Bartholdi
  • 10 posts

Posted 10 December 2010 - 01:00 PM

I've sent the trace file to your mail address



Tobias Bartholdi Members

Tobias Bartholdi
  • 10 posts

Posted 14 December 2010 - 07:53 PM

I've solved it with a Citrix Engineer

The DDC is in another domain forest then SCVMM. The DDC user account needs to be an administrator in SCVMM and in the local administrators group on the hyper-v hosts.



Sam Webster Citrix Employees

Sam Webster
  • 101 posts

Posted 15 December 2010 - 10:55 AM

Please note that although this can be made to work it is currently an unsupported configuration - http://support.citrix.com/proddocs/index.jsp?topic=/xendesktop-rho/cds-scvmm-rho.html

For anybody with the similar symptoms, the following lines in the logs lead us to realise that there were some domain/forest issues:

Powershell Invoke returned error: (813,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.NewHWConfigCmdlet) The specified owner is not a valid Active Directory Domain Services account. (Error ID: 813, Detailed Error: )

Cheers,
Sam.



Joris Langewouters Members

Joris Langewouters
  • 1 posts

Posted 16 December 2010 - 02:02 PM

I have the exact same problem only difference (but a key one I think) is that I am not using different domains/forests but my HyperV server is not part of the domain. It is in a workgroup. My SCVMM 2008R2 and XD5 DDC are member of the same domain. The domain administrator (under which I have logged in before starting Desktop Studio and launching the Create catalog job) is already a member of the SCVMM Administrators. Because my HyperV server is in a workgroup, there is no way to add the domain administrator(s) to the local administrators group of the HyperV server.

The creation process of the catalog goes well up until the end where it fails when creating the hardware profile (I can see so in the SCVMM Jobs view) with: Error (813) The specified owner is not a valid Active Directory Domain Services account.

When I manually try to create a hardware profile using the SCVMM Powershell console using the below cmdlets it succeeds when I make sure the -owner is set to mydomain\administrator. When I change this to some bogus value I get the exact same error is when the Create Catalog job tries it from within the Desktop Studio:

Get-VMMServer -ComputerName "VMMServer1.Contoso.com"

$JobGroupId = Guid::NewGuid().ToString()

New-VirtualNetworkAdapter -JobGroup $JobGroupID -PhysicalAddressType Dynamic -VirtualNetwork "Internal Network"

New-VirtualSCSIAdapter -JobGroup $JobGroupID -AdapterID 6 -Shared $FALSE

New-VirtualDVDDrive -JobGroup $JobGroupID -Bus 1 -LUN 0

New-HardwareProfile -Name "NewProfile2" -Owner "Domain\Administrator" -Description "Temporary Hardware Config used to create a VM/Template" -MemoryMB 512 -JobGroup $JobGroupID

So it looks like there is something wrong with the -owner field when Create Catalog is run. Any ideas how to overcome this issue?



Philip Kendall Citrix Employees

Philip Kendall
  • 1,336 posts

Posted 16 December 2010 - 02:11 PM

The official position is that the only supported configuration is when all machines are domain-joined. I'm aware that's probably not much help to you; probably the best idea at this stage is to raise the issue with your sales/support contacts.