Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 644
  • Last Modified:

Virtual Machine willnot power down

We recently had a power issue that brought down our ESX server and the vCenter server.  After power was restored and the servers were powered up we noticed that three was a server that appeared to be powered on but they were not accessible.  We tried to shut the virtual machine down but received the following error:

The attempted operation cannot be preformed in the current state(Powered Off).  The virtual machine is green and appears to be on.
0
NytroZ
Asked:
NytroZ
  • 7
  • 4
  • 3
  • +2
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
1. Restart the vCenter Server service on the vCenter Server.

2. Restart the Network Management Agents on the console of the Host ESX Server.
0
 
Kerem ERSOYPresidentCommented:
Hi,

These type of errors when you did not properly shutdown the server. There's this VMWare KB article addressing this type of situations. Please read it thoroughly:
Powering off an unresponsive virtual machine on an ESX host (1004340)

Cheers,
K.
0
 
Pradeep DubeyConsultantCommented:
Go to the ESX service console and restart the VC management agent by typing below command :

service mgmt-vmware restart


This command used when :

1) Cannot connect ESX/ESXi to VirtualCenter / vCenter Server
2) Cannot connect directly to the ESX/ESXi host from the VMware Infrastructure Client / vSphere Client
3) You cannot stop or start a virtual machine
4) A virtual machine is shown as running in vCenter Server when it is not
vCenter Server shows the error:

Virtual machine creation may fail because agent is unable to retrieve VM creation options from the host


See the below link for more information :
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003490
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
NytroZAuthor Commented:
does the command do the same thing as? :

Restart the Network Management Agents on the console of the Host ESX Server
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Are you ESXi or ESX ?
0
 
NytroZAuthor Commented:
ESXi
0
 
NytroZAuthor Commented:
I tried to restart the network management agent and restart the service but I still cannot power down the vm
0
 
NytroZAuthor Commented:
ESXi 5.1
0
 
Pradeep DubeyConsultantCommented:
Given article is applies to ESX/ESXi 3.x, 4.x, and 5.x.

Did you restarted vpxa as well? below command given in the article

service vmware-vpxa restart
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
if using ESXi, Restart Network Management Agents at the CONSOLE.

restart vCenter Server Service.
0
 
Pradeep DubeyConsultantCommented:
Also make sure in all VMs system setting is not set to start and stop automatically with the system.

Screenshot is given below :ESXi setting
0
 
NytroZAuthor Commented:
I have tried Hanccocka suggestion twice now and still cannot shut down the vm.  Ive also tried to shut it down from the client outside of vCenter with no luck.  Is there something else I can try?
0
 
vmwarun - ArunCommented:
Hope you are running ESXi 5.1

SSH to the ESXi host and execute the following command to find the list of VMs

vim-cmd vmsvc/getallvms
This will show you all the VMs that are registered to this host.

Identify the VMID of the VM and use the following command to power off the VM
vim-cmd vmsvc/power.off VMID
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Restart the Host Server.
0
 
NytroZAuthor Commented:
I just checked....it is ESXi 5.0
0
 
NytroZAuthor Commented:
I will try to restart host server later on when I get an opportunity. Thanks
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 7
  • 4
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now