Why Hyper-V Live Migrations Fail with 0x8009030E

Published Mar 26 2021 11:57 AM 4,406 Views
Microsoft

 

Hi everyone, my name is Tobias Kathein and I’m a Senior Engineer in Microsoft’s Customer Success Unit. Together with my colleagues Victor Zeilinger, Serge Gourraud and Rodrigo Sanchez from Customer Service & Support we’re going to discuss a real-world scenario in which a customer was unable to live migrate Virtual Machines in his newly set up Hyper-V environment.

 

In our scenario the customer was trying to initiate a Live Migration for a Virtual Machine from a remote system. This is quite a common scenario, that administrators open the Hyper-V Management console on an administrative Remote Desktop Services server and initiate the Live Migration of a VM between two Hyper-V hosts. The customer got doubts whether this is even opposed to work. Just to rule this one out upfront. Yes, it is opposed to work.

 

The customer was complaining that this isn’t working for him in his environment even though he set up the delegation correctly and enabled Kerberos as authentication protocol for Live Migrations. The issue wasn’t with a particular Virtual Machine, as all, even newly created VMs failed to be moved to another host. No matter if the Hyper-V Management console or the PowerShell Cmdlet Move-VM is used both fail. The error message returned is “No credentials are available in the security package (0x8009030E)”. The full error message including some additional details is shown below.

 

BrandonWilson_0-1616784388020.png

 

Even though the red error message in PowerShell looks a little bit fancier, it is the same error message that is returned telling us that there are no suitable credentials available. So, you can be assured the issue is not with the Hyper-V Management console nor with the Move-VM Cmdlet, because neither of them is working.

 

BrandonWilson_1-1616784388054.png

 

There are multiple reasons why Live Migrations fail with the message “No Credentials are available in the security package (0x8009030E).”

The most known cause of this issue is the absence a correct Kerberos Constrained Delegation. Either Kerberos Delegation is missing completely or for single services like in this case for CIFS or the Microsoft Virtual System Migration Service. Also don’t mix up the Microsoft Virtual System Migration Service with the Microsoft Virtual Console Service which can happen quite easily when using ADUC to configure Constrained Delegation as you can see below. The default column size doesn’t show what’s what.

 

BrandonWilson_2-1616784388058.png

 

Finding out which Kerberos Delegation entries have been configured is a little bit unclear in the ADUC. An easier way to verify all required entries are present is to run the following PowerShell command.

get-adcomputer -Identity [ComputerAccount goes here] -Properties msDS-AllowedToDelegateTo | select -ExpandProperty msDS-AllowedToDelegateTo

 

Starting Windows Server 2016 there is the need to select “Use any authentication protocol” when setting up the Kerberos Delegation, instead of “Use Kerberos only”. This is due to some changes made in the operating system that require protocol transition. Protocol transition is only possible if the above-mentioned option is selected. On systems older than Windows Server 2016 selecting “Use Kerberos only” is sufficient. If “Use any authentication protocol” was not selected, Live Migration initiated from remote hosts will fail.

The error message also appears when trying to move a VM and the account that is being used to initiate the Live Migration is member of the Protected Users group. Members of this group automatically have non-configurable protections applied to their accounts. Among other things the user’s credentials are not allowed to be passed along and therefore Live Migration will not work when initiated from a remote system.

Another possibility why Live Migrations fail with this error message is when the user account being used to initiate the Live Migration has the option “Account is sensitive and cannot be delegated” set to enabled. This is sometimes configured to avoid highly privileged accounts to ensure that the credentials of these accounts cannot be forwarded by a trusted application to another computer or service. However, accounts having configured this setting cannot be used to initiate a Live Migration between two Hyper-V from a third machine.

 

BrandonWilson_3-1616784388061.png

 

And that’s it. We hope to have shed some light on this topic and the posting was helpful for you. Thanks for reading and never stop live migrating.

 

 

Disclaimer
The sample scripts are not supported under any Microsoft standard support program or service. The sample scripts are provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if Microsoft has been advised of the possibility of such damages.

%3CLINGO-SUB%20id%3D%22lingo-sub-2238446%22%20slang%3D%22en-US%22%3EWhy%20Hyper-V%20Live%20Migrations%20Fail%20with%200x8009030E%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2238446%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHi%20everyone%2C%20my%20name%20is%20Tobias%20Kathein%20and%20I%E2%80%99m%20a%20Senior%20Engineer%20in%20Microsoft%E2%80%99s%20Customer%20Success%20Unit.%20Together%20with%20my%20colleagues%20Victor%20Zeilinger%2C%20Serge%20Gourraud%20and%20Rodrigo%20Sanchez%20from%20Customer%20Service%20%26amp%3B%20Support%20we%E2%80%99re%20going%20to%20discuss%20a%20real-world%20scenario%20in%20which%20a%20customer%20was%20unable%20to%20live%20migrate%20Virtual%20Machines%20in%20his%20newly%20set%20up%20Hyper-V%20environment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20our%20scenario%20the%20customer%20was%20trying%20to%20initiate%20a%20Live%20Migration%20for%20a%20Virtual%20Machine%20from%20a%20remote%20system.%20This%20is%20quite%20a%20common%20scenario%2C%20that%20administrators%20open%20the%20Hyper-V%20Management%20console%20on%20an%20administrative%20Remote%20Desktop%20Services%20server%20and%20initiate%20the%20Live%20Migration%20of%20a%20VM%20between%20two%20Hyper-V%20hosts.%20The%20customer%20got%20doubts%20whether%20this%20is%20even%20opposed%20to%20work.%20Just%20to%20rule%20this%20one%20out%20upfront.%20Yes%2C%20it%20is%20opposed%20to%20work.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20customer%20was%20complaining%20that%20this%20isn%E2%80%99t%20working%20for%20him%20in%20his%20environment%20even%20though%20he%20set%20up%20the%20delegation%20correctly%20and%20enabled%20Kerberos%20as%20authentication%20protocol%20for%20Live%20Migrations.%20The%20issue%20wasn%E2%80%99t%20with%20a%20particular%20Virtual%20Machine%2C%20as%20all%2C%20even%20newly%20created%20VMs%20failed%20to%20be%20moved%20to%20another%20host.%20No%20matter%20if%20the%20Hyper-V%20Management%20console%20or%20the%20PowerShell%20Cmdlet%20Move-VM%20is%20used%20both%20fail.%20The%20error%20message%20returned%20is%20%E2%80%9CNo%20credentials%20are%20available%20in%20the%20security%20package%20(0x8009030E)%E2%80%9D.%20The%20full%20error%20message%20including%20some%20additional%20details%20is%20shown%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22BrandonWilson_0-1616784388020.png%22%20style%3D%22width%3A%20569px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267543i5E1F74DBF1AA9A8C%2Fimage-dimensions%2F569x546%3Fv%3Dv2%22%20width%3D%22569%22%20height%3D%22546%22%20role%3D%22button%22%20title%3D%22BrandonWilson_0-1616784388020.png%22%20alt%3D%22BrandonWilson_0-1616784388020.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEven%20though%20the%20red%20error%20message%20in%20PowerShell%20looks%20a%20little%20bit%20fancier%2C%20it%20is%20the%20same%20error%20message%20that%20is%20returned%20telling%20us%20that%20there%20are%20no%20suitable%20credentials%20available.%20So%2C%20you%20can%20be%20assured%20the%20issue%20is%20not%20with%20the%20Hyper-V%20Management%20console%20nor%20with%20the%20Move-VM%20Cmdlet%2C%20because%20neither%20of%20them%20is%20working.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22BrandonWilson_1-1616784388054.png%22%20style%3D%22width%3A%20712px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267542i161C405BD70AF0C0%2Fimage-dimensions%2F712x291%3Fv%3Dv2%22%20width%3D%22712%22%20height%3D%22291%22%20role%3D%22button%22%20title%3D%22BrandonWilson_1-1616784388054.png%22%20alt%3D%22BrandonWilson_1-1616784388054.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20multiple%20reasons%20why%20Live%20Migrations%20fail%20with%20the%20message%20%E2%80%9CNo%20Credentials%20are%20available%20in%20the%20security%20package%20(0x8009030E).%E2%80%9D%3C%2FP%3E%0A%3CP%3EThe%20most%20known%20cause%20of%20this%20issue%20is%20the%20absence%20a%20correct%20Kerberos%20Constrained%20Delegation.%20Either%20Kerberos%20Delegation%20is%20missing%20completely%20or%20for%20single%20services%20like%20in%20this%20case%20for%20CIFS%20or%20the%20Microsoft%20Virtual%20System%20Migration%20Service.%20Also%20don%E2%80%99t%20mix%20up%20the%20Microsoft%20Virtual%20System%20Migration%20Service%20with%20the%20Microsoft%20Virtual%20Console%20Service%20which%20can%20happen%20quite%20easily%20when%20using%20ADUC%20to%20configure%20Constrained%20Delegation%20as%20you%20can%20see%20below.%20The%20default%20column%20size%20doesn%E2%80%99t%20show%20what%E2%80%99s%20what.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22BrandonWilson_2-1616784388058.png%22%20style%3D%22width%3A%20428px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267541i76607AE29C9FE297%2Fimage-dimensions%2F428x421%3Fv%3Dv2%22%20width%3D%22428%22%20height%3D%22421%22%20role%3D%22button%22%20title%3D%22BrandonWilson_2-1616784388058.png%22%20alt%3D%22BrandonWilson_2-1616784388058.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFinding%20out%20which%20Kerberos%20Delegation%20entries%20have%20been%20configured%20is%20a%20little%20bit%20unclear%20in%20the%20ADUC.%20An%20easier%20way%20to%20verify%20all%20required%20entries%20are%20present%20is%20to%20run%20the%20following%20PowerShell%20command.%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3Eget-adcomputer%20-Identity%20%5BComputerAccount%20goes%20here%5D%20-Properties%20msDS-AllowedToDelegateTo%20%7C%20select%20-ExpandProperty%20msDS-AllowedToDelegateTo%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStarting%20Windows%20Server%202016%20there%20is%20the%20need%20to%20select%20%E2%80%9CUse%20any%20authentication%20protocol%E2%80%9D%20when%20setting%20up%20the%20Kerberos%20Delegation%2C%20instead%20of%20%E2%80%9CUse%20Kerberos%20only%E2%80%9D.%20This%20is%20due%20to%20some%20changes%20made%20in%20the%20operating%20system%20that%20require%20protocol%20transition.%20Protocol%20transition%20is%20only%20possible%20if%20the%20above-mentioned%20option%20is%20selected.%20On%20systems%20older%20than%20Windows%20Server%202016%20selecting%20%E2%80%9CUse%20Kerberos%20only%E2%80%9D%20is%20sufficient.%20If%20%E2%80%9CUse%20any%20authentication%20protocol%E2%80%9D%20was%20not%20selected%2C%20Live%20Migration%20initiated%20from%20remote%20hosts%20will%20fail.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EThe%20error%20message%20also%20appears%20when%20trying%20to%20move%20a%20VM%20and%20the%20account%20that%20is%20being%20used%20to%20initiate%20the%20Live%20Migration%20is%20member%20of%20the%20Protected%20Users%20group.%20%3CSPAN%3EMembers%20of%20this%20group%20automatically%20have%20non-configurable%20protections%20applied%20to%20their%20accounts.%20Among%20other%20things%20t%3C%2FSPAN%3Ehe%20user%E2%80%99s%20credentials%20are%20not%20allowed%20to%20be%20passed%20along%20and%20therefore%20Live%20Migration%20will%20not%20work%20when%20initiated%20from%20a%20remote%20system.%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EAnother%20possibility%20why%20Live%20Migrations%20fail%20with%20this%20error%20message%20is%20when%20the%20user%20account%20being%20used%20to%20initiate%20the%20Live%20Migration%20has%20the%20option%20%E2%80%9CAccount%20is%20sensitive%20and%20cannot%20be%20delegated%E2%80%9D%20set%20to%20enabled.%20This%20is%20sometimes%20configured%20to%20avoid%20highly%20privileged%20accounts%20to%20ensure%20that%20the%20credentials%20of%20these%20accounts%20cannot%20be%20forwarded%20by%20a%20trusted%20application%20to%20another%20computer%20or%20service.%20However%2C%20accounts%20having%20configured%20this%20setting%20cannot%20be%20used%20to%20initiate%20a%20Live%20Migration%20between%20two%20Hyper-V%20from%20a%20third%20machine.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22BrandonWilson_3-1616784388061.png%22%20style%3D%22width%3A%20360px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F267544i454CB50CA9F23859%2Fimage-dimensions%2F360x502%3Fv%3Dv2%22%20width%3D%22360%22%20height%3D%22502%22%20role%3D%22button%22%20title%3D%22BrandonWilson_3-1616784388061.png%22%20alt%3D%22BrandonWilson_3-1616784388061.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20that%E2%80%99s%20it.%20We%20hope%20to%20have%20shed%20some%20light%20on%20this%20topic%20and%20the%20posting%20was%20helpful%20for%20you.%20Thanks%20for%20reading%20and%20never%20stop%20live%20migrating.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CEM%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3EDisclaimer%3C%2FFONT%3E%3C%2FEM%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CEM%3E%3CFONT%20size%3D%221%202%203%204%205%206%207%22%3EThe%20sample%20scripts%20are%20not%20supported%20under%20any%20Microsoft%20standard%20support%20program%20or%20service.%20The%20sample%20scripts%20are%20provided%20AS%20IS%20without%20warranty%20of%20any%20kind.%20Microsoft%20further%20disclaims%20all%20implied%20warranties%20including%2C%20without%20limitation%2C%20any%20implied%20warranties%20of%20merchantability%20or%20of%20fitness%20for%20a%20particular%20purpose.%20The%20entire%20risk%20arising%20out%20of%20the%20use%20or%20performance%20of%20the%20sample%20scripts%20and%20documentation%20remains%20with%20you.%20In%20no%20event%20shall%20Microsoft%2C%20its%20authors%2C%20or%20anyone%20else%20involved%20in%20the%20creation%2C%20production%2C%20or%20delivery%20of%20the%20scripts%20be%20liable%20for%20any%20damages%20whatsoever%20(including%2C%20without%20limitation%2C%20damages%20for%20loss%20of%20business%20profits%2C%20business%20interruption%2C%20loss%20of%20business%20information%2C%20or%20other%20pecuniary%20loss)%20arising%20out%20of%20the%20use%20of%20or%20inability%20to%20use%20the%20sample%20scripts%20or%20documentation%2C%20even%20if%20Microsoft%20has%20been%20advised%20of%20the%20possibility%20of%20such%20damages.%3C%2FFONT%3E%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2238446%22%20slang%3D%22en-US%22%3E%3CP%3EInvestigating%20Hyper-V%20live%20migration%20failures%20that%20result%20in%20a%200x8009030E%20error%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2238446%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ETobiasKathein%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Mar 26 2021 11:57 AM
Updated by: