dshearsby
Contributor
Contributor

Cannot stop VMs using VI client - cant remote reboot - Esx 3i

I have two ESX hosts and virtual centre. Both hosts stopped responding to virtual centre. After a cold restart of one its back. I dont want to do the same on the other one but cant stop the VMs and cant restart remotely

installed RCLI appliance but cant see how to send a remote restart while the VMs are still running

Can connect to the server direct using VI client but none of the VMS will shutdown

How can i do forced shutddowns of VM from the RCLI appliance and then do a restart of the server.

0 Kudos
6 Replies
puzzledtux
Hot Shot
Hot Shot

If you are referring to the VIMA appliance, then search for "vmcontrol.pl" script which allows to perform remote power operations.

http://www.vmware.com/support/developer/viperltoolkit/doc/utilityappsdoc/vmcontrol.html

Good luck!

0 Kudos
kjb007
Immortal
Immortal

C:\Program Files\VMware\VMware VI Remote CLI\Perl\apps\vm>vmcontrol.pl --server <esx_server_name> --username <username> --vmname <vm_name> --operation poweroff

-KjB

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
wazoo9000
Enthusiast
Enthusiast

does attempting to cycle the VM from VIC produce any sort of error?

-Ben

-------- If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks.
0 Kudos
dshearsby
Contributor
Contributor

wazoo9000

Trying to recycle in the VI client just times out. Virtualcentre shows the host as disconnected and all the VMs as unaccesible.

If I connect direct to the host the Vms dont show inaccesible butt i can get to the console on them and if i try and stop them the VI clientt times out

ive tried running some of the scripts in the RCLI. It takes a while to get the command right as it connect to VC by default and when I have got them to run some of them time out and som take ages

gettng close to the point of pushing the button

I new I should have enabled SSH and got a DRAC card Smiley Sad

Ive installed the RCLI appliance now but cant work out where to run the scripts from or how to run them against a remote host.

Any tips on whic logs to look at. [

0 Kudos
Texiwill
Leadership
Leadership

Hello,

Moved to ESXi forum.


Best regards,
Edward L. Haletky
VMware Communities User Moderator
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
Blue Gears and SearchVMware Pro Blogs -- Top Virtualization Security Links -- Virtualization Security Round Table Podcast

--
Edward L. Haletky
vExpert XIII: 2009-2021,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
puzzledtux
Hot Shot
Hot Shot

Have you taken a look at the link below?

http://www.vmware.com/support/developer/viperltoolkit/doc/utilityappsdoc/vmcontrol.html

These scripts can connect to directly to the host and perform the operations.

0 Kudos