if you can access the VM via rdp/console, you may go for gracefully shutdown from inside guest OS. then reboot the host.
rdp doesnt work. not getting ip. can i just reboot esx host? console shows ctrl-alt-del but nothing happens. like its hung.
I feel something wrong with the host, you may reboot the host and check.
There could be a hung migration process (thus the 'another task in process' message) you could kill any task issues by vCenter to the host by restarting hostd and vpxa agents on the host via SSH:
The host will disconnect from vCenter momentarily but the VMs will still be running on them (provided they are running at all).
Then you can try manually vMotioning the VMs to other hosts, this will also tell you why if any reason it cannot migrate them automatically.
Once evacuated, reboot the host.
-o- If you found this comment useful please click the 'Helpful' button and/or select as 'Answer' if you consider it so, please ask follow-up questions if you have any -o-
i ran the commands but nothing happened. still the same
should i just restart the host with them running?
Just a thought. Please check whether the VMware Tools installation is still in progress for the VMs.
from my understanding all the VMs are hung, indicates some problem with the host. Rebooting the server would be the fix for time being.