When you use Microsoft Virtual Machine Converter (MVMC) v2.0 to convert a virtual machine that has two or more disks, the conversion process may fail with the following error:
When you view the most recent MVMC log file in the user's %temp% folder in this situation, you find the following data:
System.InvalidOperationException: A task may only be disposed if it is in a completion state (RanToCompletion, Faulted or Canceled).
When you view the most recent MVMC log file in the user's %temp% folder in this situation, you find the following data:
05/07/2014 15:14:56 +02:00 [8] VERBOSE: Downloading VMware virtual disks from source virtual machine
05/07/2014 15:14:57 +02:00 [8] VERBOSE: Downloading device (/vm-1992-02-03/VirtualLsiLogicSASController0:0) disk-0.vmdk
05/07/2014 15:15:12 +02:00 [8] VERBOSE: Initializing (E:\MVMC\MVMC\0\disk-0.vhdx) with a size of 150323855360 with preallocate false.
05/07/2014 15:15:12 +02:00 [8] VERBOSE: End of initializing (E:\MVMC\MVMC\0\disk-0.vhdx).
05/07/2014 17:04:12 +02:00 [8] VERBOSE: Updating FAT/NTFS drive geometry.
05/07/2014 17:04:12 +02:00 [8] VERBOSE: Downloading device (/vm-1992-02-03/VirtualLsiLogicSASController0:1) disk-1.vmdk
05/07/2014 17:04:12 +02:00 [8] VERBOSE: Initializing (E:\MVMC\MVMC\0\disk-1.vhdx) with a size of 64424509440 with preallocate false.
05/07/2014 17:04:12 +02:00 [8] VERBOSE: End of initializing (E:\MVMC\MVMC\0\disk-1.vhdx).
05/07/2014 17:05:17 +02:00 [8] VERBOSE: System.InvalidOperationException: A task may only be disposed if it is in a completion state (RanToCompletion, Faulted or Canceled).
at System.Threading.Tasks.Task.Dispose(Boolean disposing)
at System.Threading.Tasks.Task.Dispose()
at Microsoft.Accelerators.Mvmc.Engine.ForVMware.ExportLease.GetFiles(IDownloadAdapter adapter, String host, DirectoryInfo dirInfo, TaskContext taskContext)
at Microsoft.Accelerators.Mvmc.Engine.ForVMware.VirtualMachine.DownloadFiles(IDownloadAdapter downloadAdapter, String toPath, TaskContext context)
at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.MachineConversionService.ConvertToDrives(IMachineConversionRequest machineConversionRequest, IPostProgress& provisionHyperVPhase, IVirtualMachine& sourceVM, TaskContext taskContext)
05/07/2014 15:14:57 +02:00 [8] VERBOSE: Downloading device (/vm-1992-02-03/VirtualLsiLogicSASController0:0) disk-0.vmdk
05/07/2014 15:15:12 +02:00 [8] VERBOSE: Initializing (E:\MVMC\MVMC\0\disk-0.vhdx) with a size of 150323855360 with preallocate false.
05/07/2014 15:15:12 +02:00 [8] VERBOSE: End of initializing (E:\MVMC\MVMC\0\disk-0.vhdx).
05/07/2014 17:04:12 +02:00 [8] VERBOSE: Updating FAT/NTFS drive geometry.
05/07/2014 17:04:12 +02:00 [8] VERBOSE: Downloading device (/vm-1992-02-03/VirtualLsiLogicSASController0:1) disk-1.vmdk
05/07/2014 17:04:12 +02:00 [8] VERBOSE: Initializing (E:\MVMC\MVMC\0\disk-1.vhdx) with a size of 64424509440 with preallocate false.
05/07/2014 17:04:12 +02:00 [8] VERBOSE: End of initializing (E:\MVMC\MVMC\0\disk-1.vhdx).
05/07/2014 17:05:17 +02:00 [8] VERBOSE: System.InvalidOperationException: A task may only be disposed if it is in a completion state (RanToCompletion, Faulted or Canceled).
at System.Threading.Tasks.Task.Dispose(Boolean disposing)
at System.Threading.Tasks.Task.Dispose()
at Microsoft.Accelerators.Mvmc.Engine.ForVMware.ExportLease.GetFiles(IDownloadAdapter adapter, String host, DirectoryInfo dirInfo, TaskContext taskContext)
at Microsoft.Accelerators.Mvmc.Engine.ForVMware.VirtualMachine.DownloadFiles(IDownloadAdapter downloadAdapter, String toPath, TaskContext context)
at Microsoft.Accelerators.Mvmc.Engine.ServiceLayer.Internal.MachineConversionService.ConvertToDrives(IMachineConversionRequest machineConversionRequest, IPostProgress& provisionHyperVPhase, IVirtualMachine& sourceVM, TaskContext taskContext)