vCenter

 View Only
  • 1.  Removing corrupt VM from Inventory in a Cluster

    Posted Jun 09, 2008 01:42 PM

    Hi all,

    Im not able to remove an corrupt VM copied from an ESX unsupported VMWare workstarion version and added to the cluster by using the datastore browser. (mea maxima culpa...)

    The status of this VM is "invalid", and i get an error when i try to remove this VM from the inventory.

    I already tried to rename the particular folder on the datastore with the same result of error message "Object reference not set to an instance of an object"

    Mabe i can remove the VM from the Inventory manually?

    Should be in an XML file, afaik

    In witch location (in a cluster) is the Inventory saved?

    Tanks for Help



  • 2.  RE: Removing corrupt VM from Inventory in a Cluster

    Posted Jun 09, 2008 05:15 PM

    no ideas, how i can remove an invalid vm manualy from inventory?



  • 3.  RE: Removing corrupt VM from Inventory in a Cluster

    Posted Jun 09, 2008 05:35 PM

    Have you tried restarting the mgmt-vmware servie - from service console command line - service mgmt-vmware restart - once you do that see if you can remove the vm -



  • 4.  RE: Removing corrupt VM from Inventory in a Cluster

    Posted Jun 09, 2008 05:37 PM

    On witch of the 7 Hosts would you do so?

    I've never started this VM. The VM was added only to the Cluster Inventory (Browsing Datastore)

    Restart VC Service was not helpful.



  • 5.  RE: Removing corrupt VM from Inventory in a Cluster

    Posted Jun 09, 2008 05:47 PM

    to add a vm it has to be added to a host in the cluster - either when you build a brand new vm or add to inventory you need to identify a host that it will be registered to - look on the summary tab of the vm it should identify the esx host t is registered to -



  • 6.  RE: Removing corrupt VM from Inventory in a Cluster

    Posted Jun 09, 2008 08:23 PM

    the mgmt restart didnt solve the problem...

    I founf the inventory file (etc/vmware/hostd/vmInventory.xml) and cleared the invalid VM entry.

    Now the VM is marked as orphaned...

    Any Ideas?



  • 7.  RE: Removing corrupt VM from Inventory in a Cluster

    Posted Jun 09, 2008 08:37 PM

    how about deleteing the VM from the command line ,, at command line take a root privilege and try to delete your VM.



  • 8.  RE: Removing corrupt VM from Inventory in a Cluster

    Posted Jun 09, 2008 08:42 PM

    i already renamed the folder and the .vmx file, so the host shouldn't "see" the vm anymore...



  • 9.  RE: Removing corrupt VM from Inventory in a Cluster

    Posted Jun 09, 2008 08:54 PM

    have you tried disconnecting the host, remove it from VC, then add it back in ?. ( the host on which your VM was/is registered)

    Or.. restarting the vc service on the host ( service vmware-vpxa restart )



  • 10.  RE: Removing corrupt VM from Inventory in a Cluster

    Posted Jun 10, 2008 08:16 AM

    disconnect or restarting the vpxa doesnt resolve my peoblem...

    But after an host reboot, the invalid VM was gone.. :smileyhappy: