Cannot Connect to vCenter Through the Streamed VM Setup Wizard to Create VMs

Cannot Connect to vCenter Through the Streamed VM Setup Wizard to Create VMs

book

Article ID: CTX200078

calendar_today

Updated On:

Description

Cannot connect to vCenter through the Streamed VM Setup Wizard in order to create Virtual Machines (VMs).

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Resolution

To resolve this issue, complete the following steps:

Caution! Refer to the Disclaimer at the end of this article before using Registry Editor. 

  1. Back up the registry on the Target Device and create a registry key named PlatformESX under HKLM\Software\Citrix\ProvisioningServices

  2. Under PlatformESX, create a string value named Datacenter and then type the name of the datacenter where the virtual machine targets are hosted.


Problem Cause

When multiple Datacenters exist within vCenter, the wizard might fail to enumerate the hosts in the cluster that the user is trying to use, causing the wizard to fail with the following error message:

“Cannot connect to the hypervisor at <hypervisor_name>: Object referenced not set to an instance of an object.” 

Issue/Introduction

This article provides resolution when users are unable to connect to vCenter through the Streamed VM Setup Wizard in order to create Virtual Machines (VMs).