kd36939
asked on
VMware View Linked Clone sviconfig error
One of our VM's in View always ends up in error provisioning (missing) state. We removed the VM from ADAM database. The VM is removed from the vCenter. But when I tried to remove the VM's entry in View Composer database using SviConfig, it throws me this error -
C:\Program Files (x86)\VMware\VMware View Composer>SviConfig -operation=RemoveSv
iClone -VmName=vmachine1 -AdminUser=administrator -AdminPassword=*******
Get clone ID.
Remove linked clone.
SviConfig finished with an error. Exit code: 4
VMware.Sim.Fault.VcObjectN otFoundFau lt
Our environment is vCenter 4.1, View 4.6 and View Composer 2.6.
Any ideas?
C:\Program Files (x86)\VMware\VMware View Composer>SviConfig -operation=RemoveSv
iClone -VmName=vmachine1 -AdminUser=administrator -AdminPassword=*******
Get clone ID.
Remove linked clone.
SviConfig finished with an error. Exit code: 4
VMware.Sim.Fault.VcObjectN
Our environment is vCenter 4.1, View 4.6 and View Composer 2.6.
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
1. Go to the pool : disable provisioning in the pool.
2. Go to the ADAM database: delete the CN entry.
3. Go to Composer database -> Tables
dbo.SVI_COMPUTER_NAME - Edit top 200 - Find VM & Delete it.
dbo.SVI_VM_NAME - Edit top 200 - Find VM & Delete it.
dbo.SVI_SIM_CLONE - Edit top 200 - look for the VM name & copy the parent string file on a notepad.
Take the 1st part of the copied string (CN Number).
dbo.SVI_SC_PDISK_INFO - edit top 200 - Ran query select top 500* to find the VM name and delete its entry.
- Select top 500 * from dbo.SVI_SC_PDISK_INFO
- Delete from <tablename> where parent_id = (select ID from tablename where VM_Name like @name)
dbo.SVI_SIM _CLONE - Find and delete the entry of the VM.
4 Check VC database - dbo.VPX
5 Go to AD and remove the computer account from there