Troubleshooting when virtual machine options are grayed out in vSphere Client
search cancel

Troubleshooting when virtual machine options are grayed out in vSphere Client

book

Article ID: 344709

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

This article provides troubleshooting steps when virtual machine options are grayed out in vSphere Client or else from HTML client.

Symptoms:
In vSphere client, you experience these symptoms:
  • 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


Environment

VMware vSphere ESXi 6.7
VMware vCenter Server 7.0.x
VMware vCenter Server 6.5.x
VMware vSphere ESXi 6.0
VMware vSphere ESXi 6.5
VMware vCenter Server 6.7.x
VMware vCenter Server 6.0.x
VMware vSphere ESXi 7.0.0

Cause

This issue occurs when:
  • 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.

Resolution

Note: The virtual machine must be powered off to edit the .vmx file as required.
 
Permissions are not set correctly

To troubleshoot this issue:
  1. 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.
  2. 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.
There are virtual machine tasks running in the background

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:
  1. 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).
  2. List all registered virtual machines by running the command:

    vim-cmd vmsvc/getallvms

    Note: Make note of the vmid for the problem virtual machine.
     
  3. 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:

    (ManagedObjectReference)
    ['vim.Task:haTask-8-vim.VirtualMachine.createSnapshot-534613324',
    'vim.Task:haTask-8-vim.VirtualMachine.powerOn-534613303']


    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:

    (ManagedObjectReference) []


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.

  1. Open the .vmx file using a text editor.
  2. Search for any blank lines and delete them.

    Note: To delete a line using vi editor, press d twice.
     
  3. Compare the .vmx file with a working virtual machine .vmx file and see if there is any invalid arguments.
  4. 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:

    /vmfs/volumes/name_of_the_datastore/VM_name/VM_name.vmx


Additional Information


Tech Support Mode for Emergency Support
Powering on a virtual machine fails with the error: A general system error occurred
Tips for editing a .vmx file
Using ESXi Shell in ESXi 5.x and 6.x
仮想マシン オプションが vSphere Client で灰色表示される場合のトラブルシューティング
虚拟机选项在 vSphere Client 中呈灰显状态时的故障排除