{"id":4443,"date":"2016-07-28T07:23:10","date_gmt":"2016-07-28T15:23:10","guid":{"rendered":"https:\/\/www.atumvirt.com\/?p=4443"},"modified":"2016-07-28T07:23:10","modified_gmt":"2016-07-28T15:23:10","slug":"unable-to-provision-machines-using-xendesktop-setup-wizard-a-case-of-the-object-or-item-referred-to-could-not-be-found","status":"publish","type":"post","link":"https:\/\/avtempwp.azurewebsites.net\/2016\/07\/unable-to-provision-machines-using-xendesktop-setup-wizard-a-case-of-the-object-or-item-referred-to-could-not-be-found\/","title":{"rendered":"Unable to Provision Machines using XenDesktop Setup Wizard – A case of “The object or item referred to could not be found”"},"content":{"rendered":"

Suppose you\u2019ve have your environment for a bit of time. Your PVS targets are humming along happily and life is good. After a recent company expansion, you have planned to add capacity. You fire up the XenDesktop Setup Wizard in PVS to easily add additional machines. After running through the wizard, you step away for coffee, and when you return, you see the unthinkable: 0 devices created. 5 devices failed.<\/p>\n

As anyone who has run into this scenario before, the XenDesktop setup wizard does not necessarily clean up all partially provisioned resources. So before you\u2019re able to go and try again, you need to check a few things. Keep in mind that this article applies to XenApp and XenDesktop 7+ as they can both be provisioned using this wizard.<\/p>\n

    \n
  1. If you were creating a new machine catalog, was the catalog created? Did the machine get added to that catalog in the XenApp \/ XenDesktop site?<\/p>\n<\/li>\n
  2. \n

    Was the machine added to PVS?<\/p>\n<\/li>\n

  3. \n

    Did the machine get added to Active Directory?<\/p>\n<\/li>\n

  4. \n

    Was the machine added to your ESXi host?<\/p>\n<\/li>\n<\/ol>\n

    In terms of the provisioning process, the ESXi host is where the VM will be created first. The XenDesktop Setup Wizard will take your inputs and begin provisioning at vCenter. It is there that you see an error similar to the one below.<\/p>\n

    \"clip_image001\"<\/a><\/p>\n

    Strange times indeed. Since you are an excellent ninja Citrix admin, you have already enabled Continuous CDF Tracing in Provisioning Services 7.x<\/a>, so you fire up CDFControl from the Citrix Supportability Pack<\/a> and browse to the relevant section.<\/p>\n

    \"clip_image003\"<\/a><\/p>\n

    Here we see that the connection resources from XenDesktop are parsed and it has selected the network that we wanted, VMVLAN1, which is a distributed port group. However, a few lines below we see that not much more is known from the PVS side as this error is reported back to the PVS Wizard as simply an invalid operation\/failure.<\/p>\n

    \"clip_image005\"<\/a><\/p>\n

    After some searching, a dependency showed up that shows that there are some cases where the Distributed Port Group \u201cKey\u201d \u2013 the unique identifier \u2013 can be different than the ID. Fire up PowerCLI, and execute the following:<\/p>\n

    Get-VDPortGroup | select name,id,key | fl<\/p>\n

    \"clip_image007\"<\/a><\/p>\n

    We see plainly from the original error that PVS is searching for dvportgroup-22, but the key for that port group is actually dvportgroup-562.<\/p>\n

    How can this happen?<\/h4>\n

    It turns out that this scenario is actually common and affects more than just PVS and XenDesktop. There are reports that it has affected versions of VMware SRM at some point in the past. The issue arises when you migrate a Distributed vSwitch from one vCenter to another \u2013 something that in fact happened in this case. When that migration was done, you may typically choose to “Preserve original distributed switch and port group identifiers” in order to ease migration of VM NIC\u2019s when migrating from one vCenter to another seamlessly. In these instances, the key can differ from the ID.<\/p>\n

    It would seem as though PVS parses the ID, then searches for the unique ID with that key, so when it executes the \u201creconfigure VM\u201d step to assign the network, the job fails.<\/p>\n

    What are the workarounds?<\/h4>\n

    Create new port groups and migrate all VM\u2019s to the new port group, just keep in mind there may be availability concerns when doing this. Consult the vSphere documentation for more details.<\/p>\n

    Alternatively, if you don\u2019t need to use BDM, you can use the Streamed Setup Wizard to provision a machine. Keep in mind your template will need a write cache drive attached and you will be unable to migrate to the BDM boot partition in a supported manner at a later time.<\/p>\n

    Conclusion<\/h4>\n

    Even when everything is humming along nicely, there are things that may be out of your control (such as a vCenter upgrade) that could affect you. Keep an open mind and realize that technology has come to rely on APIs where you may not expect them to. The connection to vCenter is an important one, so keep it in your mind when planning upgrades as it could affect the availability of your Citrix stack.<\/p>\n","protected":false},"excerpt":{"rendered":"

    Suppose you\u2019ve have your environment for a bit of time. Your PVS targets are humming along happily and life is good. After a recent company expansion, you have planned to add capacity. You fire up the XenDesktop Setup Wizard in PVS to easily add additional machines. After running through the wizard, you step away for […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,64,75,77],"tags":[90,118,121,122],"_links":{"self":[{"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/posts\/4443"}],"collection":[{"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/comments?post=4443"}],"version-history":[{"count":0,"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/posts\/4443\/revisions"}],"wp:attachment":[{"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/media?parent=4443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/categories?post=4443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/avtempwp.azurewebsites.net\/wp-json\/wp\/v2\/tags?post=4443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}