Troubleshooting when virtual machine options are grayed out in vSphere Client (2048748)
- Virtual machine operations are grayed out.
- You are unable to perform operations on the virtual machine.
- Menu options are grayed out when you right-click the virtual machine.
- You see the error:
Another task in progress
- Permissions are not set correctly.
- There are virtual machine tasks running in the background.
- The .vmx file is corrupted.
- There are invalid arguments in the .vmx file.
- Ensure there are sufficient permissions on the virtual machine. In vSphere Client, select the virtual machine. Click the Permission tab. Ensure that sufficient permissions are applied to the user/group.
- If permissions are defined at a host, cluster, datacenter or vCenter level, apply the required permissions to the user or group to edit the virtual machine settings.
Virtual machine tasks that cannot be seen in the vSphere Client Tasks & Events tab or in the Recent Tasks pane may be running in the background.
To check if other virtual machine tasks are running in the background:
- Log in to the ESXi host using SSH or on the console. For more information, see Tech Support Mode for Emergency Support (1003677) or Using ESXi Shell in ESXi 5.0 and 5.1 (2004746).
- List all registered virtual machines by running the command:
Note: Make note of the vmid for the problem virtual machine.
- To check tasks running on the virtual machine, run the command:
vim-cmd vmsvc/get.tasklist vmid
Note: If a task is running on that virtual machine, you see output listing the tasks. For example:
Note: Wait for the task(s) to finish before performing operations on the virtual machine.
If there is no task running on that virtual machine, you see output:
The .vmx file is corrupted
The .vmx file associated with the virtual machine may be corrupted. The .vmx file size displays as zero and the content may be garbled or empty. For more information, see Powering on a virtual machine fails with the error: A general system error occurred (1006232).
There are blank lines or invalid arguments in the .vmx file
To check if the .vmx file contains blank lines or invalid arguments:
Caution: Take a backup of the .vmx file before modifying it.
- Open the .vmx file using a text editor.
- Search for any blank lines and delete them.
Note: To delete a line using vi editor, press d twice.
- Compare the .vmx file with a working virtual machine .vmx file and see if there is any invalid arguments.
- To apply the changes, reload the .vmx file by running the command:
vim-cmd vmsvc/reload vmid
For more information, see Tips for editing a .vmx file (1714).
Note: The default location of the .vmx file: