Today I have been doing some work at a customer creating a Hyper-V 2012 R2 Cluster and starting to live migrate VM´s from their Hyper-V 2012 Cluster.
Doing that from VMM gave me some errors and here is the solution so that if you happens to get into the same problem
First of all, when added the new cluster to VMM I tried to live migrate a VM but got this error (12700)
After a quick search on the net I found this blog post explaining the need to configure kerberos live migration and delegation between the hosts and also that the hosts needs an “Host Management Credentials” account set up in the properties! I had already set up the hosts to use Kerberos and delegation between and still got the above error but when checking the Run As account it was empty:
checking on the cluster properties in the VMM console there is nowhere to add or see the management credential
So back to PowerShell again:
$runas = Get-SCRunAsAccount "SCVMM Admin"
$clu = Get-SCVMHostCluster -Name HYPCLU
Set-SCVMHostCluster -VMHostCluster $clu -VMHostManagementCredential $runas
And when this is set all the cluster hosts have this credential set and then when doing a Live Migration it succeeded