建议的答复 Cannot remove VCenter servers

  • Wednesday, May 23, 2012 4:02 PM
     
     

    Hi,

      I am having an issue with VMM 2012.  My environment was updated from 2008 R2 SP1 with no issues.  In the older environment I added a vmware server (The free dl'd version 5)  Yes, I know it was not compatible, but it didn't show up in the gui and was not an issue (I added it more than once - one time by its IP and the other by its FQDN then I read the docs..).  Anyways,  THEY DO APPEAR in the 2012 gui under the fabric>VCenter servers.  Problem is whe I highlight them and hit the remove button, the GUI disconnects and then eventually reconnects.  After it reconnects the objects are still there.  (The server is active and the status of both is "responding") .  If you right click anobject then hit remove it does the same thing.  

    I have also tried the powershell command  "

    Get-VMHost <server_name> | Remove-VMHost -Force

    Which results in: 

    PS C:\Windows\system32> Get-VMHost 172.21.7.20 | Remove-VMHost -force
    Get-SCVMHost : Virtual machine host 172.21.7.20 is not associated with this VMM
     management server. (Error ID: 401)

    Check the virtual machine host name and then try the operation again.
    At line:1 char:11
    + Get-VMHost <<<<  172.21.7.20 | Remove-VMHost -force
        + CategoryInfo          : ReadError: (:) [Get-SCVMHost], CarmineException
        + FullyQualifiedErrorId : 401,Microsoft.SystemCenter.VirtualMachineManager
       .Cmdlets.GetHostCmdlet
    PS C:\Windows\system32>

    Does not seem to be an issue just irritating as I really don't want ophaned objects cluttering the GUI.  If anybody has any insights I would appreciate it.  Thanks in advance

    DWF

All Replies

  • Wednesday, May 23, 2012 4:08 PM
     
     

    And here is the Error from the Jobs log..

    Error (2950)
    Virtual Machine Manager cannot complete the VirtualCenter action on server 172.21.7.20 because of the following error: The object or item referred to could not be found..
    Unknown error (0x194)

    Recommended Action
    This error occurs when a referenced component of a managed object - either a data object type (such as a role or permission) or a primitive (such as a string) - cannot be found. Resolve the issue and then try the operation again.

  • Saturday, October 06, 2012 2:22 AM
    Moderator
     
     Proposed Answer

    The stand-alone Virtual Machine Recovery Tool works with System Center 2012 – Virtual Machine Manager (VMM) to temporarily remove a
    host, cluster, virtual machine, or service from VMM when that object is in a failed or persistent warning state due to environmental conditions,
    third-party applications, or other causes. After resetting the state of the object, once VMM refreshes, the object will appear as healthy in
    VMM. This tool does not repair a damaged or incorrectly created virtual machine or corrupt .vhd file. It deals state information stored in the
    VMM database.

    You can get the Virtual Machine Recovery Tool from the Download Center . You need .NET Framework 4.0 to run this program.

    Important

    This program is not a supported part of the VMM product.  This program is offered “as-is” and is documented only in this wiki. Please share any insights you gain by using the Virtual Machine Recovery  Tool by updating this wiki page.

    Source http://social.technet.microsoft.com/wiki/contents/articles/8953.using-the-virtual-machine-recovery-tool-for-system-center-2012-virtual-machine-manager-vmm.aspx


    Mohamed Fawzi | http://fawzi.wordpress.com