Object not found in vSphere

Object not found in vSphere

The Unique ID for the VM may got differ between VMRuntime & VMConfigs Table which would not allow to perform the Power Options of a VM. To resolve this, update the value of UniqueId of VM in VMRuntime & VMConfigs table.

1. Check VM ID in PowerShell and Get the VM ID

Get-VM -Name VMName |Select Id

2. For that VM search in VMConfigs table with the following query.

Select id, uniqueid, * FROM [VMConfigs] where VMName like '%VMName%'

· In Uniquid check for the VMID (i.e. ea2e2418-3933-468a-9b32-687de931eefa:503330ab-1746-6aeb-9c45-e4407058cf12:vm-2413), Change VMId alone in the UniqueID.

· VMID from PowerShell script and above-mentioned id should be same, if not update the column with the id which we got from script (i.e. step 1)

3. Get the ID from the VMConfigs table for the respective VM and search in VMRuntimes table with the following query.

Select VmMor, VMId, CustomPropertiesString from [VMRuntimes] where VMConfigDataId = “Id from VMConfigs Table”

· Check VmMor, VMId and CustomPropertiesString are same as the Id that we got from script (step 1), if not update it.

· CustomPropertiesString format - {"IsMemoryHotAddEnabled":"False","IsCpuHotAddEnabled":"False","HotPlugMemoryIncrementSize":"0","HotPlugMemoryLimit":"0","NumCoresPerSocket":"1","VmMor":"vm-2413"}


    • Related Articles

    • Solution for Certificate Expiry - Azure Stack

      Log into Billing RP VM (BillingVM1000). Replace '<Fill the output path>' in the below script with required path where the certificate will be generated. $DisplayName = 'BillingCert' $OutputCertPath = '<Fill the output path>\BillingCert.pfx' ...