Help! I needed to vMotion a VM and the Migrate option is grayed!!!
A couple of weeks ago, I had to migrate a database server vm from one vSphere cluster to a new one. The vSphere Infrastructure is at version 6.7.
At the moment I selected the virtual server and tried to select from the Actions menu the Migrate option was grayed.
I didn't find any snapshot running, usb, vmware tools, virtual hw incompatibility or error, or the same problem on the rest of the virtual servers.
Checking deeper on the logs I found an error with the tsm4ve backup and doing some research i found that this issue occurs due to invalid entries from the VPX_DISABLED_METHODS table. In different kind of operations it's updated to disable migrations of a virtual machine. Some situations can cause these entries to persist after the operation is complete.
Follow this steps:
1. Open a browser to https://vcenter fqdn or ip/mob and login using your Virtual Center Server admin password.
2. Click RetrieveServiceContent under Methods.
3. Click Invoke Method
Note: Clicking Invoke Method may attempt to download a file the first time it runs. If so close the window and click the content hyperlink.
4. Click the rootFolder: group-d1 (Datacenters).
- 5. To attain the ManagedObjectReference ID of your VSA virtual machine, follow these steps:
- Click the Datacenter that contains your VSA virtual machine under ChildEntity
- Under hostFolder select the folder. For example: group-h23 (host).
- Find the Datacenter under ChildEntity (if you have one).
- Click one of the ESXi hosts that contains a VSA virtual machine.
- Click the datastore that VM resides on. For example: datastore1
- Under vm copy the virtual machine’s ManagedObjectReference ID. For example: vm-110
- 6. To enable virtual machine operations, open the AuthorizationManager. It is hidden from the main vCenter Server M.O.B Web UI. You can access it through this URL:
https://vcenter fqdn or ip/mob/?moid=AuthorizationManager&method=enableMethods
- 7. In the first parameter entity, replace the string MOID with the ManagedObjectReference ID you copied in step 5.
For example:
<!– array start –>
<entity type=”ManagedEntity” xsi:type=”ManagedObjectReference”>vm-110</entity>
<!– array end –>
8. To allow you to modify the VSA virtual machine, paste this list of operations in the second parameter method:
<method>RelocateVM_Task</method>
9. In the third parameter sourceId, paste the string: abracadabra.
10. Click Invoke Method.





No comments:
Post a Comment