When trying to remove the VMware vCenter 4.1 from System Center 2012 Virtual Machine Manager (VMM), the action fails with the error:
VMM cannot complete the VMware operation on the SERVERNAME$ server because of the error: Unable to connect to the remote server Resolve the issue in VMware and then try the operation again. ID: 12701 Details: No connection could be made because the target machine actively refused it (0x8007274D)
Also, every few minutes the following error is displayed under the Jobs tab:
Error (12701) VMM cannot complete the VMware operation on the SERVERNAME$ server because of the error: Unable to connect to the remote server No connection could be made because the target machine actively refused it (0x8007274D) Recommended action Resolve the issue in VMware and then try the operation again.
System Center 2012 Virtual Machine Manager needs to communicate with the VMware vCenter in order to remove it from the VMM server. In situations when VMM is not able to communicate with the VMware vCenter (i.e. vCenter server was lost or network issues), it is not possible to directly remove the VMware vCenter.
One option is re-install VMM with the new database.
The second option requires a few steps. In summary, a new virtual machine needs to be created and then joined to the domain under the same name as the previous vCenter server. VMware vCenter server will need to be also installed on this virtual machine. By doing this, VMM will think that the old vCenter server is back. However, since by default the communication between the VMM and vCenter servers is encrypted, VMM will give an error stating that it cannot communicate with vCenter server because of the invalid certificates. Thus, we will also have to generate a new vCenter certificate on the VMM server. More detailed steps are shown below:
1. Create a new Virtual Machine.
2. Install Windows Server 2008 R2 (or older Windows version supported by VMware vCenter) with the required updates.
3. Join the Virtual Machine to the domain under the same computer name as the original computer with which the contact was lost. For example, if the original vCenter server's computer name was vcenter.contoso.com then the newly created Virtual Machine should be joined to the domain as vcenter.contoso.com.
4. Install VMware vCenter and VMware vSphere client on the newly created VM.
System Center 2012 Virtual Machine Manager Remove VMware vCenter, VMM, ESXi, ESX 4.1, VMM Delete vCenter, Error 12701, Error 12703