VMWare - Hyper-v migration fails, file read error

VM image converter (VMDK, VHD, VHDX, IMG, RAW, QCOW and QCOW2), P2V migrator

Moderators: anton (staff), art (staff), Max (staff), Anatoly (staff)

Post Reply
CZFan
Posts: 4
Joined: Fri Jul 14, 2023 8:01 am

Fri Jul 14, 2023 8:46 am

Hi,

I am in the process of migrating various VM Guests between various physical VM Hosts for a client, from VMWare ESXi to Hyper-V 2019 Core server using StarWind V2V tool (Awesome tool by the way)

Some of the VM Guests migrate without any issues, so I suspect there is no issues with either VMWare side or the Hyper-V side. I have searched the www, find many people reporting similar issues, but not finding a solution. Below extract from V2V log re error I get:

7/13 11:28:18.194 24b4 Facility ???INFO: CPPConverting::ConvertImage: CreateOutputImage: 0
7/13 11:33:32.257 24b4 Facility ???ERROR: VMwareFile::Read: m_VixDiskLib_Read is fail - 13, You do not have access rights to this file

Any help and or workaround to get these boxes migrated will be highly appreciated.

Please let me know if additional information is required.
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Fri Jul 14, 2023 10:45 am

Hi,
Welcome to StarWind Forum and thanks for your kind words :)
See if the file is locked by anything else or is in use.
CZFan
Posts: 4
Joined: Fri Jul 14, 2023 8:01 am

Fri Jul 14, 2023 11:20 am

Thx for quick reply.

Process I follow is:
shutdown guest vm on vmware
migrate to hyper-v using V2V tool
during "converting..." process I get this error, with guest vm in shutdown state, I doubt that the file will be in open state?
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Fri Jul 14, 2023 11:36 am

As a workaround, please copy that disk to the Hyper-V host and convert it as a local file.
CZFan
Posts: 4
Joined: Fri Jul 14, 2023 8:01 am

Sun Jul 16, 2023 2:40 pm

Not sure I followed you correctly, sorry, not so clued up / much experience on VMWare, but tried the following

Tried to download the disk image from ESXi web interface, but it does not seem to download correctly, i.e. size does not match up, only shows something like 1KB.

So did an "Export" of VM Guest in VMWare, which completed 100% successful according to web interface on VMWare, but running V2V, it gives error, below screenshot of error and also log file contents. Not sure how to move forward here :-(
StartWind file migration error.JPG
StartWind file migration error.JPG (18.68 KiB) Viewed 3692 times
The log file name: 'logs\V2V_Log-20230716-161649.log' (PID 2284)
Delete log file 'logs\V2V_Log-20230705-150417.log'.
7/16 16:16:49.594 28c4 Facility ???INFO: CV2V_ConverterApp::InitInstance: SetDllDirectory: C:\Program Files\StarWind Software\StarWind V2V Converter\lib
7/16 16:16:49.594 28c4 Facility ???INFO: CV2V_ConverterApp::InitInstance: File Version: 9.0.1.268
7/16 16:16:49.594 28c4 Facility ???INFO: CV2V_ConverterApp::InitInstance: Load language IDR_XML_ENGLISH
7/16 16:16:49.594 28c4 Facility ???INFO: CV2V_ConverterApp::InitInstance: Set current language English
7/16 16:16:49.607 28c4 Facility ???INFO: CPS_V2V_Converter::CPS_V2V_Converter: Version MajorVersion 10, MinorVersion 0, BuildNumber 19045
7/16 16:16:49.694 28c4 Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\WINDOWS\system32\wbem\wmiutils.dll - 99130000
7/16 16:16:49.694 28c4 Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\WINDOWS\system32\wbem\wmiutils.dll - 99130000
7/16 16:16:53.248 28c4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eInputFile
7/16 16:16:57.858 28c4 Facility ???INFO: CPPInputFile::checkFile: Select file: D:\disk-0.vmdk
7/16 16:16:58.952 28c4 Facility ???ERROR: VMwareFile::InternalParseFile: ReadFile is fail - 0. The operation completed successfully.
7/16 16:16:58.952 28c4 Facility ???INFO: CPPInputFile::checkFile: ParseFile: 3
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Sun Jul 16, 2023 10:28 pm

Copy only the disk to the destination Server (i.e., Hyper-V and convert it as a local file (VMDK -> VHDX)). You will need to recreate that VM.
CZFan
Posts: 4
Joined: Fri Jul 14, 2023 8:01 am

Thu Jul 20, 2023 3:50 pm

@yaroslav (staff)
Thx for your responses.

I suspect there is something wrong with that datastore, even unable to copy the file within same datastore but different directory, get general I/O error in datastore browser.

So these server migrations on hold for now.
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Thu Jul 20, 2023 11:28 pm

Hi,
You are always welcome :)
That could be VMFS-level corruption. Please try copying data off the datastore and reformatting it, look if VOMA fixes anything, or run some vmfs repairs.
Post Reply