VMware : Access to resource settings on the host is restricted to the server that is managing it

By | February 20, 2017

If the error message below show up while you are trying to modify the virtual hardware of a VM, this mean that the host that you are editing the VM from is linked to a vCenter server.

Reconfigure virtual machine
<VM_Name>
Access to resource settings on the host is restricted to the server
that is managing it: ‘vcenter.domain.tld’.

Obviously, you should do this operation from the vCenter UI itself, however there might be a few situation where this is impossible or have some other contraint (such as if this is the vCenter VM itself you are attempting to modify and no other host within your cluster can run the VM, or that you are running the basic “Essentials” license.

Fortunately, you can do the following to get it done :

1. Enable SSH on the physical host (Configuration > Security Profiles > SSH)

2. Login to the host through SSH and edit the following file :

vi /etc/vmware/vpxa/vpxa.cfg

3. Locate the following block (usually at the end) :

<vpxa>
<bundleVersion>1000000</bundleVersion>
<datastorePrincipal>root</datastorePrincipal>
<hostIp>0.0.0.0</hostIp>
<hostKey>52d5382b-5d6c-9bt7-3414-bd3a149028cd</hostKey>
<hostPort>443</hostPort>
<licenseExpiryNotificationThreshold>15</licenseExpiryNotificationThreshold>
<memoryCheckerTimeInSecs>30</memoryCheckerTimeInSecs>
<serverIp>0.0.0.0</serverIp>
<serverPort>902</serverPort>
</vpxa>

4. Comment it all by appending “#” at the beginning of each lines.

5. Restart the services :

/sbin/services.sh restart

NOTE : Once this is done, you will be able to modify the virtual hardware. Once this task is completed, you may want to revert back your changes by removing the comments “#” and restart the service again. Do not forget to disable SSH after your work.