Adding Virtual Machines Created by Machine Creation Services to New Catalog

Adding Virtual Machines Created by Machine Creation Services to New Catalog

book

Article ID: CTX139041

calendar_today

Updated On:

Description

After deleting the host connection in XenDesktop, desktops created using Machine Creation Service (MCS) are not visible in the Catalog.

Environment

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

Resolution

To fix this issue, complete the following procedure:

  1. Identify the UUID of the particular virtual machine which is failing to be added to the catalog.

    Xe vm-list

  2. Run the following command on the XenServer console:

    Xe vm-list uuid=<uuid from the previous step> params=other-config

  3. Verify if the following parameter is set to true:

    other-config (MRW): last_shutdown_time: 20110706T19:34:59Z; last_shutdown_action: Destroy; last_shutdown_initiator: external; last_shutdown_reason: halted; XdConfig: XdProvisioned=true; mac_seed: 927d0d79-24f3-93d8-1a04-649ef40e92b7; instant: true

  4. Run the following command to remove the XDConfig parameter:

    xe vm-param-remove uuid=<vm uuid> param-name=other-config param-key=XdConfig

  5. Run the command Xe vm-list uuid=<uuid from the previous step> params=other-config to verify if XDConfig is successfully removed from the virtual machine parameters.
  6. In the XenDesktop Studio, validate if the virtual machine is added to a new catalog.


Problem Cause

The XDConfig:XdProvisioned tag is set to true on the hypervisor on XenServer. The hypervisor is already configured with the desktops within a catalog and does not provide an option to add the virtual machine into a new catalog.

Issue/Introduction

After deleting the host connection in XenDesktop, desktops created using Machine Creation Service (MCS) were not visible in the Catalog.

Additional Information

CTX136591 - Machine Creation Services with XenDesktop, XenServer and Provisioning Services

CTX128700 - XenDesktop Planning Guide - XenDesktop Scalability

Requirements for Machine Creation Services