How to restore the management of virtual machines whose cloud uuid is occupied in VCD
search cancel

How to restore the management of virtual machines whose cloud uuid is occupied in VCD

book

Article ID: 315576

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

When operating the target virtual machine in VCD, the response in VC is another virtual machine.

The cloud uuid of this virtual machine and the target virtual machine is the same.

 

 

 

Environment

VCD 10.x

Cause

The customer modified the cloud uuid through VC.

The same cloud uuid retained after the third-party software cloned the VM was restored in some cases.

Resolution

  1. Collect the target VM information through VCD database, involving the following tables:

    vm_inv
    vm
    vm_container
    computevm
    networked_vm

  2. If the target VM information is no longer available in the VCD database, you need to delete the clone VM from VCD(through the UI), and then import the correct VM from VCD to VC. During the import process, the cloud uuid will be regenerated, and the target VM does not need to be shut down. The import process is similar to vmotion and will not affect the VM service.

  3. If the target VM information still exists in the VCD database, but some information in the VM table has been replaced by another VM, you can use the update command to correct it. The correction reference data comes from vm_inv. The replaced part is generally as follows:

    moref,location_path,instance_uuid in table vm
    vmmoref in table computevm
    moref in table networked_vm

  4. Prepare the post-command in the test environment first, and make a VCD snapshot or backup before executing in the customer environment.

 

 

 

 

 

 

Additional Information