Deploying a virtual machine from a template fails with the error: The operation is not allowed in the current state
search cancel

Deploying a virtual machine from a template fails with the error: The operation is not allowed in the current state

book

Article ID: 305616

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • Unable to deploy virtual machines from templates
  • Deploying virtual machines from templates fail
  • You see the error:

    The operation is not allowed in the current state

  • Unable to power on the virtual machine
  • You see the error:

    There are no compatible hosts

  • When deploying a template from server 1 to server 2, you see the error:

    The option is not allowed in the current state of the host. " Error" CD Device still attach



Environment

VMware vCenter Server 4.1.x

Resolution

This issue may occur if vCenter Server had lost its connectivity to the vCenter Server database and then got reconnected automatically.
To resolve this issue:
  1. Connect to the ESX host via the vSphere Client.
  2. Restart the VirtualCenter Server services.
  3. Deploy the templates and then power on the virtual machines.
If you see the error The option is not allowed in the current state of the host. " Error" CD Device still attach when trying to deploy a template from server 1 to server 2, convert the template back to a virtual machine to remove disk 2. Remove the host from vCenter Server, then add it back.
This error can occur if there is a 1 gigabit connection between vCenter Server and the host. You can increase the timeout value for vCenter Server and the host. For more information, see Increasing VirtualCenter timeout settings (1002721).