Live Migration fails with Hyper-V Error
I'm trying to live migrate instances between 2 Hyper-v hosts. I'm using Kerberos and have set the necessary delegations. The instance is running normally. In the Windows Hyper-V VMMS Event Log I see
EventId: 19050
'instance-00006ac3' failed to perform the operation. The virtual machine is not in a valid state to perform the operation. (Virtual machine ID A06D5047-6D5E-4D18-B1F8-68E3D746542B)
In the nova logfile it says
'HyperVException: WMI job failed with status 10. Error details: <INSTANCE CLASSNAME="Msvm_Error"><PROPERTY NAME="CIMStatusCode" TYPE="uint32"><VALUE>1</VALUE></PROPERTY><PROPERTY NAME="CIMStatusCodeDescription" TYPE="string"></PROPERTY><PROPERTY NAME="ErrorSource" TYPE="string"></PROPERTY><PROPERTY NAME="ErrorSourceFormat" TYPE="uint16"><VALUE>0</VALUE></PROPERTY><PROPERTY NAME="ErrorType" TYPE="uint16"><VALUE>4</VALUE></PROPERTY><PROPERTY NAME="Message" TYPE="string"><VALUE>Virtual machine migration operation for \'instance-00006b37\' failed at migration destination \'ostkcomp23\'. (Virtual machine ID E18F6A7F-CBAE-49D9-B2CD-FD1B5849E98F)</VALUE></PROPERTY><PROPERTY.ARRAY NAME="MessageArguments" TYPE="string"><VALUE.ARRAY><VALUE>instance-00006b37</VALUE><VALUE>E18F6A7F-CBAE-49D9-B2CD-FD1B5849E98F</VALUE><VALUE>grzostkcomp23</VALUE></VALUE.ARRAY></PROPERTY.ARRAY><PROPERTY NAME="MessageID" TYPE="string"><VALUE>21026</VALUE></PROPERTY><PROPERTY NAME="OtherErrorSourceFormat" TYPE="string"></PROPERTY><PROPERTY NAME="OtherErrorType" TYPE="string"></PROPERTY><PROPERTY NAME="OwningEntity" TYPE="string"><VALUE>Microsoft-Windows-Hyper-V-VMMS</VALUE></PROPERTY><PROPERTY NAME="PerceivedSeverity" TYPE="uint16"><VALUE>5</VALUE></PROPERTY><PROPERTY NAME="ProbableCause" TYPE="uint16"><VALUE>0</VALUE></PROPERTY><PROPERTY NAME="ProbableCauseDescription" TYPE="string"></PROPERTY><PROPERTY.ARRAY NAME="RecommendedActions" TYPE="string"></PROPERTY.ARRAY></INSTANCE>\n']
2017-01-19 10:53:26.032 6312 ERROR nova.compute.manager [req-f7ae8717-4d0e-4195-92fe-67bcb47586c7 admin, admin 832ab226a08e46e293b3bce90bf0517e - - -] [instance: 19a1714e-7a77-4db3-931b-e66f90b24701] Live migration failed.
I'm on Server 2016, Liberty and using the ovs-agent. Any ideas what is happening here? Edit: Funny. It works as long as the target host is "empty" (no other instance is running on the target host).
Hello! Could you please try to live migrate a VM manually to see if it works? Are you running the nova-compute service with a user that has admin rights in the domain? Thanks, Alin.