Reset the vc.uuid of a copy/pasted VM to keep the historical data.
Reset the vc.uuid
When a VM is copy/pasted to another vCenter, reset the VM's vc.uuid immediately after the move.
To reset the vc.uuid for a VM, open PowerCLI and run the following commands:
$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.instanceUuid = ''
$vm = Get-VM -Name “MovedVM”
$vm.Extensiondata.ReconfigVM_Task($spec)
Note: Replace MovedVM with the name of the moved VM.
Fix a VM shown as monitored by multiple vCenters
Once a VM has been copied and pasted to a different vCenter, and the above steps were not followed, vRealize Operations Manager will show the object as being controlled by multiple vCenter adapters.
To resolve this issue, follow the steps below.
- Log into the vRealize Operations Manager UI as the local admin.
- Navigate to Administration > Solutions.
Note: Navigate to Administration > Solutions > Cloud Accounts in vRealize Operations Manager 8.x.
- Select the VMware vSphere solution, then select one of the vCenter adapter instances monitoring the target VM and click Stop Collecting. Repeat this for all vCenter adapter instances monitoring the target VM.
Note: In vRealize Operations Manager 8.x, click the expand menu option next to the adapter name, then click Stop Collecting.
- Navigate to Administration > Inventory Explorer.
- Filter for the target VM.
- Click the Show Columns button at the bottom of the pane, then enable Identifier 2 and click OK.
- Note the value of Identifier 2 for the target VM; this is the MOID of the VM.
- Navigate to the MOB page of the target VM for the vCenter that currently houses it vi https://vc_ip_or_fqdn/mob/?moid=vm_moid, and log in as a vCenter Administrator.
Note: Replace vc_ip_or_fqdn with the IP address or FQDN of the vCenter, and replace vm_moid with the MOID of the VM noted in step x.
- Under Methods, click ReconfigVM_Task.
- Replace the contents of the Value field to:
<spec>
<!-- optional -->
<instanceUuid></instanceUuid>
</spec>
- Click Invoke Method to reset the vc.uuid, of the VM.
- Back in the vRealize Operations Manager UI, navigate to Administration > Solutions.
Note: Navigate to Administration > Solutions > Cloud Accounts in vRealize Operations Manager 8.x.
- Select the VMware vSphere solution, then select the vCenter adapter instance that currently houses the target VM and click Start Collecting.
Note: In vRealize Operations Manager 8.x, click the expand menu option next to the adapter name, then click Start Collecting.