Archive for June, 2016

Hyper-v host can’t migrate virtual machines

June 24, 2016 Leave a comment

We finally found the problem that has been plaguing us for years.  The situation is a 3 node 2008 R2 Hyper-V cluster.  When trying to live migrate a virtual machine off of one node to another it fails.  Trying to logon to the host machine fails with the message of no logon servers.  In the past we ended up rebooting the host and taking an outage and never figured out why.  This third time we dug a bit deeper before rebooting and found out there was port exhaustion.

Here is how we found the problem:

There were thousands of ports in the TIME_WAIT state.  So after digging some more we found the hotfix:

We did find out that doing a quick migration still works and each virtual machine only took about a minute, so that limited our downtime significantly.