vMotion not showing available hosts

I have set up the two ESXi(6.7) hosts I a cluster and enable HA. I am currently running 3 VM's in one host-1 (One DC, File server & VCSA(Linux) ).
I have created a shared datastore for VM's.

First, MY all 3 VM's was running on HOST-1.In order to test HA, I migrated the VCSA to HOST-2.Then I shout down the Host-1.
Remaining two VM's successfully restarted in HOST-2.

Then I shut down the HOST-2 to test the HA and didn't restart the 3 VM's in host one.
After power on the Host-2, I manually power on the three VM's.
Then tried to migrate the VM's back to host-1 but it only shows host-2.

I am not sure how to troubleshoot this issue
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
HA will only restart VMs, with an uncontrolled shutdown, this means just pulling the power cable out of a host, not Shutting it down manually.

Do you have a license for vMotion ?

Have you enabled vMotion ?

Have you created a vMotion network ?
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You need to re-check your HA Network, e.g. ping all of the hosts, check hostnames, check DNS, check gateway.


You will also need to use vmkping, to test if each host can reach each other's vMotion VMKernel Portgroup, and also send packets via the correct interface.
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Thank you, Is it safe to restart the VCSA on the second host during the failover.

Yes. it's safe

It should not get corrupted, but any VM going off, in an uncontrolled shutdown issues could happen.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yohaAuthor Commented:
Thanks for your help , after restarting the host-1 fixed the issue
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.