VMware Cloud Community
RSI99
Contributor
Contributor

Vmware converter hyper-V error

Hello,

I am trying to convert a Hyper-V VM via the Vmware converter. The VM is shutdown.

Through the conversion wizard i use the local administrator account on the hyper-V node, and it lists all the VM's.

I select the turned off VM and it reports to collect vm information, when i get an error that indicates that it is unable to open the vhd file. The administrator account has full rights to the file of couse.

Agent log:

[Originator@6876 sub=Default] Sysimage::HyperVWMI::ExecuteQuery: Executing : Select * from Msvm_MemorySettingData where instanceID like 'Microsoft:5B74ABF5-30E1-4F65-9A19-B1ED38629BA0%'

2019-06-14T10:18:38.564+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::GetVirtualMemory: Virtual Memory on VM: 4096

2019-06-14T10:18:38.595+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::GetNumVCpus: retrieving number of virtual CPUs.

2019-06-14T10:18:38.595+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::ExecuteQuery: Executing : Select * from Msvm_ProcessorSettingData where instanceID like 'Microsoft:5B74ABF5-30E1-4F65-9A19-B1ED38629BA0%'

2019-06-14T10:18:38.611+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::GetNumVCpus: Num CPUs in VM: 2 * 1 = 2

2019-06-14T10:18:38.642+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::GetVmName: Obtaining VM's name

2019-06-14T10:18:38.642+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::ExecuteQuery: Executing : Select * from MSVM_ComputerSystem where Name = '5B74ABF5-30E1-4F65-9A19-B1ED38629BA0' and Description = 'Microsoft Virtual Machine'

2019-06-14T10:18:38.658+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::ExecuteQuery: Executing : Select * from Msvm_VirtualSystemManagementService

2019-06-14T10:18:38.658+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::ExecuteQuery: Executing : Select * from Msvm_SummaryInformation where Name = '5B74ABF5-30E1-4F65-9A19-B1ED38629BA0' and ElementName != 'SKAXXX'

2019-06-14T10:18:38.658+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::GetGuestOS: Found guest OS for 5B74ABF5-30E1-4F65-9A19-B1ED38629BA0 'Other'

2019-06-14T10:18:38.658+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::GetVmFirmware: Retrieving VM Firmware for:5B74ABF5-30E1-4F65-9A19-B1ED38629BA0

2019-06-14T10:18:38.658+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::ExecuteQuery: Executing : Select * from Msvm_VirtualSystemSettingData where VirtualSystemIdentifier = '5B74ABF5-30E1-4F65-9A19-B1ED38629BA0' and VirtualSystemType = 'Microsoft:Hyper-V:System:Realized'

2019-06-14T10:18:38.705+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimage::HyperVWMI::GetVmFirmware: Retrieved VM InstanceID successfully.

2019-06-14T10:18:38.705+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] [BaseDiskSetComputer::OpenDiskSet] Will use open retries count 3

2019-06-14T10:18:38.736+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimgbase_DiskLib_OpenWithPassPhrase failed with 'The parameter is incorrect' (error code:5701641)

2019-06-14T10:18:38.736+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Error 5701641 opening disk C:\ClusterStorage\Volume1\XXXXXX\XXXXX_disk_1.vhdx.

2019-06-14T10:18:38.736+02:00 warning vmware-converter-agent[36724] [Originator@6876 sub=Default] ERROR 5701641 opening disk disk-3.

2019-06-14T10:18:38.736+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Attempt to opening disk disk-3 again [rest 2] (sleep for 5 sec).

2019-06-14T10:18:43.783+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimgbase_DiskLib_OpenWithPassPhrase failed with 'The parameter is incorrect' (error code:5701641)

2019-06-14T10:18:43.783+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Error 5701641 opening disk C:\ClusterStorage\Volume1\XXXXX\XXXX_disk_1.vhdx.

2019-06-14T10:18:43.783+02:00 warning vmware-converter-agent[36724] [Originator@6876 sub=Default] ERROR 5701641 opening disk disk-3.

2019-06-14T10:18:43.783+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Attempt to opening disk disk-3 again [rest 1] (sleep for 10 sec).

2019-06-14T10:18:54.252+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Sysimgbase_DiskLib_OpenWithPassPhrase failed with 'The parameter is incorrect' (error code:5701641)

2019-06-14T10:18:54.252+02:00 info vmware-converter-agent[36724] [Originator@6876 sub=Default] Error 5701641 opening disk C:\ClusterStorage\Volume1\XXXX\XXXXX_disk_1.vhdx.

2019-06-14T10:18:54.252+02:00 warning vmware-converter-agent[36724] [Originator@6876 sub=Default] ERROR 5701641 opening disk disk-3.

2019-06-14T10:18:54.252+02:00 error vmware-converter-agent[36724] [Originator@6876 sub=Default] [BaseDiskSetComputer::OpenDiskSet] OpenDisks failed, mntapi error: 91226257

2019-06-14T10:18:54.252+02:00 error vmware-converter-agent[36724] [Originator@6876 sub=Default] [BaseDiskSetComputer::AnalyzeErrorAndThrow] Error occurred when opening disk set, MNTAPI_ERROR = 91226257 MNTAPI errorType = 1, errorCode = 5701641

2019-06-14T10:18:54.252+02:00 error vmware-converter-agent[36724] [Originator@6876 sub=Default] AnalyzeErrorAndThrow(): DiskLib error 87

Thanks

0 Kudos
5 Replies
POCEH
VMware Employee
VMware Employee

As first step you should inspect VHD file from HyperV Manager.

Otherwise I'm not sure how the VHD files are managed on ClusterStorage and is it possible for Converter to handle it correctly.

HTH

0 Kudos
RSI99
Contributor
Contributor

Hi Poceh,

This is a hyper-V cluster. I have tried to inspect the vhd from both the Hyper-V manager as well as the Failover Cluster Manager, but not much information is revealed here? It just shows the size and location of the vhd.

Are you suggesting that the Converter is unable to convert VMs that are part of a Hyper-V cluster?

It is strange though that it list the "Sysimgbase_DiskLib_OpenWithPassPhrase failed with 'The parameter is incorrect" error. Sounds very much like it expects a different account than the administrator account of the Node. Have of course tried a domain admin account with no luck.

0 Kudos
POCEH
VMware Employee
VMware Employee

I hope that you inspect parents as well? Just to be sure that no error(s) in VHD chain.

Ensure you are using the latest Converter 6.2.0.1

If the problem is the permissions, check the used user have access to VHD file spreading, OR try to stop cluster usage for this machine just before conversion, there is no statement for support of cluster in HyperV. Have you succeed with conversion of VM(s) that are not in cluster?

As final resort you can convert VM(s) as powered on i.e. with Converter or Agent installed in GOS.

HTH

0 Kudos
RSI99
Contributor
Contributor

Hi,

Sorry was out of office.

Yes thanks, i have verified the vhd chain.

I have removed HA role from failover cluster manager, but still the same error. I have tried to move the VM also with no luck.

I exported the VM and imported it in Hyper-V manager, making vmware converter able to process the VM.

Have converted multiple VMs in powered on state, so that works just fine, however would like to process as many in the powered on state as possible.

0 Kudos
jaesii
Contributor
Contributor

Super late reply, but have you tried using proxy mode? -- Will pass all conversion traffic thru the machine with converter installed on it, instead of hyper-v directly to vcsa.

0 Kudos