Share via


Error (20413) VMM encountered a critical exception and created an exception

Question

Wednesday, December 18, 2019 11:14 PM

Hello All,

I was live migrating a VM using VMM, and i got the following error:

Error (20413) VMM encountered a critical exception and created an exception

When i moved to the report file, i could not find anything helpful, could anyone help.

Error Report

CLR is not terminating

Bucketing Parameters

EventType=VMM20
P1(appName)=vmmservice.exe
P2(appVersion)=4.0.2589.0
P3(assemblyName)=ImgLibEngine.dll
P4(assemblyVer)=4.0.2589.0
P5(methodName)=Microsoft.VirtualManager.Engine.ImageLibrary.HyperVHAVM.AddDiskResourceToVMFromFilePath
P6(exceptionType)=System.NullReferenceException
P7(callstackHash)=a724

SCVMM Version=4.0.2589.0
SCVMM flavor=C-buddy-RTL-AMD64
Default Assembly Version=4.0.2589.0
Executable Name=vmmservice.exe
Executable Version=4.0.2244.0
Base Exception Target Site=140703968872080
Base Exception Assembly name=ImgLibEngine.dll
Base Exception Method Name=Microsoft.VirtualManager.Engine.ImageLibrary.HyperVHAVM.AddDiskResourceToVMFromFilePath
Exception Message=Object reference not set to an instance of an object.
EIP=0x00007ff834a45313
Build bit-size=64

exceptionObject.ToString()

System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VirtualManager.Engine.ImageLibrary.HyperVHAVM.AddDiskResourceToVMFromFilePath(String path, IVmmDbConnection dbConnection)
   at Microsoft.VirtualManager.Engine.VmOperations.DeployVmBase.MigrateVM(IVmmDbConnection dbConnection)
   at Microsoft.VirtualManager.Engine.VmOperations.DeployHost2Host.RunSubtask(IVmmDbConnection dbConnection)
   at Microsoft.VirtualManager.Engine.TaskRepository.SubtaskBase.Run(IVmmDbConnection dbConnection)
   at Microsoft.VirtualManager.DB.SqlContext.Connect(Action`1 action)
   at Microsoft.VirtualManager.Engine.TaskRepository.Task`1.SubtaskRun(Object state)

Scope Trace

[s#91ac2] Task`1.SubtaskRun(this: (Task`1<DeployHost2Host>#[b]) { TBD }, TaskID: (guid) e5c0c181-6f98-4c01-aa6c-472628a90ea9) in s:\btvsts\36609\private\product\engine\TaskRepository\Task.cs:line 254
[s#9030c] RefreshDriver`1.RefreshThreadFunction(this: (RefreshDriver`1<ProMomAlertReference>#[1]) { tbd }, obj: (WaitCallbackState<ProMomAlertReference>#3b211f4) Microsoft.VirtualManager.Engine.RefreshDriver`1+WaitCallbackState[Microsoft.VirtualManager.Engine.MOMDataAccessLayer.ProMomAlertReference]) in s:\btvsts\4576\private\product\engine\Common\RefreshDriver.cs:line 566

exception.StackTrace

at Microsoft.VirtualManager.Engine.ImageLibrary.HyperVHAVM.AddDiskResourceToVMFromFilePath(String path, IVmmDbConnection dbConnection)
   at Microsoft.VirtualManager.Engine.VmOperations.DeployVmBase.MigrateVM(IVmmDbConnection dbConnection)
   at Microsoft.VirtualManager.Engine.VmOperations.DeployHost2Host.RunSubtask(IVmmDbConnection dbConnection)
   at Microsoft.VirtualManager.Engine.TaskRepository.SubtaskBase.Run(IVmmDbConnection dbConnection)
   at Microsoft.VirtualManager.DB.SqlContext.Connect(Action`1 action)
   at Microsoft.VirtualManager.Engine.TaskRepository.Task`1.SubtaskRun(Object state)

StackTrace from handler

This is the call stack from where the exception was caught, not where it was thrown.
at Microsoft.VirtualManager.Utils.Diagnostics.WatsonReport.WriteReportTextFile(TextWriter reportFile)
   at Microsoft.VirtualManager.Utils.Diagnostics.WatsonReport.Send()
   at Microsoft.VirtualManager.Utils.Diagnostics.WatsonExceptionReport.Send()
   at Microsoft.VirtualManager.Utils.Diagnostics.WatsonCenter.ReportException(Exception e, WERReportOptions options, String& localReportPath)
   at Microsoft.VirtualManager.Engine.TaskRepository.Task`1.SubtaskRun(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Assemblies

mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Location=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll
    Module=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll
    Version=4.7.3468.0
    BuildType=retail
    Product=Microsoft® .NET Framework

VMMService, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\vmmservice.exe
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\vmmservice.exe
    Version=4.0.2244.0
    BuildType=retail
    Product=System Center Virtual Machine Manager 2016

System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceProcess\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ServiceProcess.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceProcess\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.ServiceProcess.dll
    Version=4.6.1586.0
    BuildType=retail
    Product=Microsoft® .NET Framework

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
    Version=4.7.3451.0
    BuildType=retail
    Product=Microsoft® .NET Framework

TraceWrapper, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\TraceWrapper.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\TraceWrapper.dll
    Version=4.0.1662.0
    BuildType=retail
    Product=System Center Virtual Machine Manager 2016

Utils, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\Utils.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\Utils.dll
    Version=4.0.2589.0
    BuildType=retail
    Product=System Center Virtual Machine Manager 2016

NativeMethods, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\NativeMethods.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\NativeMethods.dll
    Version=4.0.2244.0
    BuildType=retail
    Product=System Center Virtual Machine Manager 2016

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
    Version=4.7.3490.0
    BuildType=retail
    Product=Microsoft® .NET Framework

Engine.IndigoAccessLayer, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\Engine.IndigoAccessLayer.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\Engine.IndigoAccessLayer.dll
    Version=4.0.2589.0
    BuildType=retail
    Product=System Center Virtual Machine Manager 2016

Engine.Common, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\Engine.Common.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\Engine.Common.dll
    Version=4.0.2139.0
    BuildType=retail
    Product=System Center Virtual Machine Manager 2016

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
    Version=4.7.3324.0
    BuildType=retail
    Product=Microsoft® .NET Framework

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
    Version=4.7.2612.0
    BuildType=retail
    Product=Microsoft® .NET Framework

Errors, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\Errors.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\Errors.dll
    Version=4.0.2589.0
    BuildType=retail
    Product=System Center Virtual Machine Manager 2016

System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Location=C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
    Version=4.7.3260.0
    Product=Microsoft® .NET Framework

System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Location=C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll
    Version=4.7.3221.0
    Product=Microsoft® .NET Framework

System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    Location=C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_64\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.Wrapper.dll
    Version=4.6.1586.0
    BuildType=retail
    Product=Microsoft® .NET Framework

System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Management.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Management.dll
    Version=4.7.2102.0
    BuildType=retail
    Product=Microsoft® .NET Framework

ImgLibEngine, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\ImgLibEngine.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\ImgLibEngine.dll
    Version=4.0.2589.0
    BuildType=retail
    Product=System Center Virtual Machine Manager 2016

Remoting, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\Remoting.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\Remoting.dll
    Version=4.0.2589.0
    BuildType=retail
    Product=System Center Virtual Machine Manager 2016

ManagedCertificateHelper, Version=0.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\ManagedCertificateHelper.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\ManagedCertificateHelper.dll

WsManWrappers, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\WsManWrappers.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\WsManWrappers.dll
    Version=4.0.2043.0
    BuildType=retail
    Product=System Center Virtual Machine Manager 2016

DB.DelegatedAdmin, Version=1.0.523.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\DB.DelegatedAdmin.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\DB.DelegatedAdmin.dll
    Version=4.0.1662.0
    BuildType=retail
    Product=System Center Virtual Machine Manager 2016

WSManAutomation, Version=4.0.2043.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    Location=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\WSManAutomation.dll
    Module=C:\Program Files\Microsoft System Center 2016\Virtual Machine Manager\Bin\WSManAutomation.dll

Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll
    Version=4.6.1586.0
    BuildType=retail
    Product=Microsoft® .NET Framework

System.Dynamic, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    Location=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll
    Module=C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Dynamic\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Dynamic.dll
    Version=4.6.1586.0
    BuildType=retail
    Product=Microsoft® .NET Framework

Extra Data for Watson Report

Error Reporting Enabled=True

*** Extra Data ***
Process ID = 7996 (0x1f3c)
Managed Thread ID = 48
Native Thread ID = 1908 (0x0774)

All replies (2)

Friday, December 20, 2019 5:31 AM

Hello,

Please check if there are checkpoints, ISO files or orphaned resources associated with this VM. If so, please just remove them, and then try to perform the live migration again.

Additionally, please refresh the hosts and VM, and make sure the status is OK.

Bet regards,

Andy Liu

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Thursday, December 26, 2019 8:40 AM

Hello,

To follow up, is there any update about this case?

Have you checked the recommended settings fro the VM?

Best regards,
Andy Liu

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.