When I try to edit VM's properties the console crashes and closes abruptly. In the event log I've got 2 errors:
.NET Runtime event 1026
Application: VmmAdminUI.exeFramework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at Microsoft.VirtualManager.UI.WorkloadCreation.NetworkAdapterSettingsViewModelForVmOnWin8AndAboveHost.<UpdatePortClassificationsForLogicalSwitch>b__20(Microsoft.SystemCenter.VirtualMachineManager.VirtualNetworkAdapterPortProfileSet)
at System.Linq.Enumerable+WhereSelectListIterator`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at System.Linq.Enumerable+<DistinctIterator>d__64`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
at System.Collections.Generic.List`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]..ctor(System.Collections.Generic.IEnumerable`1<System.__Canon>)
at System.Linq.Enumerable.ToList[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable`1<System.__Canon>)
at Microsoft.VirtualManager.UI.WorkloadCreation.NetworkAdapterSettingsViewModelForVmOnWin8AndAboveHost.UpdatePortClassificationsForLogicalSwitch()
at Microsoft.VirtualManager.UI.WorkloadCreation.NetworkAdapterSettingsViewModelForVmOnWin8AndAboveHost..ctor(Microsoft.VirtualManager.UI.Data.IClientDataContext, Microsoft.VirtualManager.Remoting.NICType, Int32, Microsoft.VirtualManager.Utils.VirtualizationLimits, System.Collections.Generic.IEnumerable`1<Microsoft.SystemCenter.VirtualMachineManager.VMNetwork>, System.Collections.Generic.IEnumerable`1<Microsoft.SystemCenter.VirtualMachineManager.VirtualNetwork>, Microsoft.SystemCenter.VirtualMachineManager.Host, Microsoft.SystemCenter.VirtualMachineManager.VirtualNetworkAdapter, Boolean, Boolean)
at Microsoft.VirtualManager.UI.WorkloadCreation.NetworkAdapterSettingsViewModelForVmOnWin8AndAboveHostWrapper..ctor(Microsoft.VirtualManager.UI.Data.IClientDataContext, Microsoft.VirtualManager.Remoting.NICType, Int32, Microsoft.VirtualManager.Utils.VirtualizationLimits, System.Collections.Generic.IEnumerable`1<Microsoft.SystemCenter.VirtualMachineManager.VMNetwork>, System.Collections.Generic.IEnumerable`1<Microsoft.SystemCenter.VirtualMachineManager.VirtualNetwork>, Microsoft.SystemCenter.VirtualMachineManager.Host, Microsoft.SystemCenter.VirtualMachineManager.VirtualNetworkAdapter, Boolean, Boolean)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwareController+NetworkController.GetHyperVNetworkWpfSetting(Microsoft.SystemCenter.VirtualMachineManager.VirtualNetworkAdapter, Microsoft.VirtualManager.Remoting.NICType)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwareController+NetworkController.GetNetworkWpfSetting(Microsoft.SystemCenter.VirtualMachineManager.VirtualNetworkAdapter)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwareController+NetworkController.ApplySourceObject(Microsoft.SystemCenter.VirtualMachineManager.IHardwareProvider, Boolean)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwareController.InitializeFromHardwareProvider(Microsoft.SystemCenter.VirtualMachineManager.IHardwareProvider, Microsoft.SystemCenter.VirtualMachineManager.Host, Microsoft.SystemCenter.VirtualMachineManager.Cloud, Boolean)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.VMBaseHardwareController.InitializeNodes(Microsoft.SystemCenter.VirtualMachineManager.VMBase)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.VMHardwareController.InitializeNodesFromVM(Microsoft.SystemCenter.VirtualMachineManager.VM)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.VMHardwareController.InitializeNodes(Microsoft.SystemCenter.VirtualMachineManager.LibObjectBase)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwareController.InitializeFromFullyCachedSourceObject(Microsoft.SystemCenter.VirtualMachineManager.LibObjectBase)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwareController.InitializeFromSourceObject(Microsoft.SystemCenter.VirtualMachineManager.LibObjectBase)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwareControllerFactory.CreateInstance(Microsoft.SystemCenter.VirtualMachineManager.LibObjectBase, System.String, Microsoft.VirtualManager.UI.CommonControls.SettingsTree.SettingsTree, Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwarePropertiesContext, System.Guid, Boolean, System.Nullable`1<Int32>)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwarePropertiesControl.Initialize(Microsoft.SystemCenter.VirtualMachineManager.LibObjectBase, Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwarePropertiesContext, System.String, System.Guid, Boolean, System.Nullable`1<Int32>)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwarePropertiesControl.Initialize(Microsoft.SystemCenter.VirtualMachineManager.LibObjectBase, Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwarePropertiesContext, System.String, System.Guid, System.Nullable`1<Int32>)
at Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwarePropertiesControl.Initialize(Microsoft.SystemCenter.VirtualMachineManager.LibObjectBase, Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwarePropertiesContext, System.String)
at Microsoft.VirtualManager.UI.Dialogs.VMProperties.HardwarePropertiesPage.Initialize(Microsoft.SystemCenter.VirtualMachineManager.VMBase, Microsoft.VirtualManager.UI.WorkloadCreation.HardwareProperties.HardwarePropertiesContext, Microsoft.VirtualManager.UI.Data.IClientDataContext)
at Microsoft.VirtualManager.UI.Dialogs.VMProperties.VMPropertiesLauncher.InitializeHardwarePropertiesPage()
at Microsoft.VirtualManager.UI.Dialogs.VMProperties.VMPropertiesLauncher.InitializeForVM()
at Microsoft.VirtualManager.UI.Dialogs.VMProperties.VMPropertiesLauncher.EndInitialize(Microsoft.VirtualManager.UI.WizardFramework.WizardWindow)
at Microsoft.VirtualManager.UI.WizardFramework.Flow.OnStartCallback()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Window.ShowHelper(System.Object)
at System.Windows.Window.Show()
at System.Windows.Window.ShowDialog()
at Microsoft.VirtualManager.UI.WizardFramework.WizardWindow.ShowWizard(Microsoft.VirtualManager.UI.WpfControls.DialogOwner, Microsoft.VirtualManager.UI.WizardFramework.Flow)
at Microsoft.VirtualManager.UI.Dialogs.VMProperties.VMPropertiesLauncher.ShowDialog(Microsoft.VirtualManager.UI.Data.IClientDataContext, System.Windows.Window, Microsoft.SystemCenter.VirtualMachineManager.VMBase, Microsoft.VirtualManager.UI.Dialogs.VMProperties.VMPropertiesPage, Boolean)
at Microsoft.VirtualManager.UI.Pages.Datacenter.VMPropertiesAction.DoAction(Microsoft.VirtualManager.UI.Pages.Datacenter.IVMViewModel)
at Microsoft.VirtualManager.UI.Pages.Datacenter.VmAction.OnClick()
at Microsoft.VirtualManager.UI.ConsoleFramework.ActionBase.System.Windows.Input.ICommand.Execute(System.Object)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(System.Windows.Input.ICommandSource, Boolean)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run(System.Windows.Window)
at Microsoft.VirtualManager.UI.VmmAdmin.Program.Main(System.String[])
Application Error event 1000
Faulting application name: VmmAdminUI.exe, version: 10.19.1013.0, time stamp: 0x5c5d5de4Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x1324ccd0
Faulting process id: 0x48c
Faulting application start time: 0x01d550e591c91bd5
Faulting application path: C:\Program Files\Microsoft System Center\Virtual Machine Manager\bin\VmmAdminUI.exe
Faulting module path: unknown
Report Id: 2180ebe6-d252-428c-a5f0-773c4524fa56
Faulting package full name:
Faulting package-relative application ID:
I've got the console on:
1) the server itself with Windows Server 2019 Version 1809 (OS Build 17763.379)
2) a client machine with Windows 10 Pro Version 1809 (OS Build 17763.615)
3) another server with Windows Server 2016 Version 1607 (OS Build 14393.2906)
This VMM server has been migrated from the old 2016 server (number 3) to the new 2019 server (number 1). Before being migrated, it was upgraded from 2016 to 2019.
I've also had to do some manual cleaning of the database but I was careful to delete only the orphaned logical switch and connected objects (I deleted only records that were linked by constraints).
I could also recreate the whole server (on another server) with a new database if I need to, but I'd like to know if that is a doable thing... will I be able to reconnect to the new SCVMM the existing hyper-v cluster without service disruption? For example, will VMM match the existing virtual switch of the cluster to the same name switch I will create in the new instance?
bye
Dario Palermo