failure converting local file

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

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

swPete
Posts: 17
Joined: Wed Nov 13, 2024 4:14 am

Fri Nov 15, 2024 9:14 pm

I am moving large (300 GB is large for me) disk files (vmdk) from an ESXi host to a new Hyper-V 2019 core server using WinSCP. Once I have them downloaded I am using V2V to convert the virtual disk files to vdhx (onto a different physical hard drive from the source vmdk that was copied from the ESXi host).
The 100 GB system drive converted fine. I tried two different 300 GB data drives and they both failed near the end of the process. Here is the contents of the log: (note i am using the special version of V2v that was provided to me under a different post)

The log file name: 'logs\V2V_Log-20241115-114957.log' (PID 1600)
11/15 11:49:57.156 da4 Facility ???INFO: CV2V_ConverterApp::InitInstance: SetDllDirectory: C:\Program Files\StarWind Software\StarWind V2V Converter\lib
11/15 11:49:57.156 da4 Facility ???INFO: CV2V_ConverterApp::InitInstance: File Version: 9.0.1.268
11/15 11:49:57.172 da4 Facility ???INFO: CV2V_ConverterApp::InitInstance: Load language IDR_XML_ENGLISH
11/15 11:49:57.172 da4 Facility ???INFO: CV2V_ConverterApp::InitInstance: Set current language English
11/15 11:49:57.172 da4 Facility ???INFO: CPS_V2V_Converter::CPS_V2V_Converter: Version MajorVersion 10, MinorVersion 0, BuildNumber 17763
11/15 11:49:57.172 da4 Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\Windows\system32\wbem\wmiutils.dll - cf620000
11/15 11:49:57.172 da4 Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\Windows\system32\wbem\wmiutils.dll - cf620000
11/15 11:50:03.156 da4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eInputFile
11/15 11:50:19.325 da4 Facility ???INFO: CPPInputFile::checkFile: Select file: F:\EMRRestore\EMRRestore_2.vmdk
11/15 11:50:19.372 da4 Facility ???INFO: VMwareFile::ParseFile: sFilename - F:\EMRRestore\EMRRestore_2.vmdk
11/15 11:50:19.419 da4 Facility ???INFO: CPPInputFile::checkFile: ParseFile: 0
11/15 11:50:19.419 da4 Facility ???INFO: CPPInputFile::checkFile: File type: IDS_IMAGE_CONVERTER_FORMAT_NAME_VMDK_VMFSFLAT File size: 629145600 sectors
11/15 11:50:20.903 da4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eLocationTo
11/15 11:50:23.934 da4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eHYPERVConnectionTo
11/15 11:50:25.043 da4 Facility ???INFO: WrapperHyperV::connect: Host - \\localhost\root\virtualization\v2
11/15 11:50:25.122 da4 Facility ???INFO: WrapperHyperV::init_version: HyperV version: 10.0.17763
11/15 11:50:25.122 da4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eOutputVM
11/15 11:50:29.903 da4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eOptionsHyperV
11/15 11:50:33.658 da4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eSelectFolder
11/15 11:50:47.784 da4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eConverting
11/15 11:50:47.800 152c Facility ???INFO: CPPConverting::Convert: InConvertType: 4, OutConvertType: 7
11/15 11:50:47.800 152c Facility ???INFO: CPPConverting::ConvertImage: pathInput: F:\EMRRestore\EMRRestore_2.vmdk, pathOutput: H:\EMR952\Virtual Hard Disks\EMRRestore_2.vhdx
11/15 11:50:47.800 152c Facility ???INFO: VMwareFile::ParseFile: sFilename - F:\EMRRestore\EMRRestore_2.vmdk
11/15 11:50:47.815 152c Facility ???INFO: CPPConverting::ConvertImage: CreateInputImage: 0
11/15 12:24:03.748 152c Facility ???INFO: WrapperHyperV::waitJob: JobState 7
11/15 12:24:03.779 152c Facility ???INFO: CVHDXFile::getCurrentHeader: Read header 1.
11/15 12:24:03.779 152c Facility ???INFO: CVHDXFile::getCurrentHeader: Read header 2.
11/15 12:24:03.779 152c Facility ???INFO: CVHDXFile::getCurrentHeader: Check correct header 1.
11/15 12:24:03.779 152c Facility ???INFO: CVHDXFile::getCurrentHeader: Check correct header 2.
11/15 12:24:03.779 152c Facility ???ERROR: CVHDXFile::ParseFile: Log header signature is fail - 1635017060.
11/15 12:24:03.779 152c Facility ???INFO: CPPConverting::ConvertImage: CreateOutputImage: 2
11/15 12:24:03.779 152c Facility ???ERROR: CPPConverting::Convert: FAILED
Last edited by swPete on Fri Nov 15, 2024 9:26 pm, edited 3 times in total.
swPete
Posts: 17
Joined: Wed Nov 13, 2024 4:14 am

Fri Nov 15, 2024 9:16 pm

where the logs from a sucessfull convert vs a failed convert starts here:

11/15 11:48:42.054 1878 Facility ???ERROR: CVHDXFile::ParseFile: Log header signature is fail - 1635017060.
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Fri Nov 15, 2024 9:30 pm

Try converting them at the source. It looks like something is wrong with the file.
swPete
Posts: 17
Joined: Wed Nov 13, 2024 4:14 am

Fri Nov 15, 2024 9:38 pm

will do, was trying to just have a little more control over the process. eliminate potential network issues etc.
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Fri Nov 15, 2024 10:09 pm

That makes sense.
Have a nice weekend.
swPete
Posts: 17
Joined: Wed Nov 13, 2024 4:14 am

Fri Nov 15, 2024 11:38 pm

Think i found the issue, just posting for reference.

Each of my data drives had two VMDK files one named "filename.vmdk" and one named "filename_flat.vmdk". First go round I selected the one without the "_flat" (against my better judgement), best I can tell that is just a descriptor file. just my lack of ESXi knowledge probably. I selected the "big file" and it went without issue.

Thanks again.
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Sat Nov 16, 2024 6:28 am

Great news :)
Have a nice weekend.
swPete
Posts: 17
Joined: Wed Nov 13, 2024 4:14 am

Wed Nov 20, 2024 6:15 pm

I have 3 out 4 of the local disks of the ESXi Vm I am testing conversion to Hyper-V with.

The fourth fails with the log belove. Please note, that even my successfull conversions have the line:
11/20 11:28:33.462 ed0 Facility ???ERROR: VMwareFile::InternalParseFile: Invalid format. Descriptor not found
So that doesn't seem to be the problem. It appears that this line is the problem:
11/20 11:48:15.863 ed0 Facility ???ERROR: CVHDXFile::ParseFile: Log header signature is fail - 1635017060.
I compared the descriptors of the successful disk files with the failed disk file and I don't see any difference at the ESXi level.

Anymore tips or debugging I can do? I will try to convert this failing disk direct from the VM when I get a chance to shutdown the VM, but the 3 others were copied locally from ESXi and converted which I am trying to do with this one.

Thanks.
The log file name: 'logs\V2V_Log-20241120-112709.log' (PID 6652)
11/20 11:27:09.166 15b4 Facility ???INFO: CV2V_ConverterApp::InitInstance: SetDllDirectory: C:\Program Files\StarWind Software\StarWind V2V Converter\lib
11/20 11:27:09.166 15b4 Facility ???INFO: CV2V_ConverterApp::InitInstance: File Version: 9.0.1.268
11/20 11:27:09.166 15b4 Facility ???INFO: CV2V_ConverterApp::InitInstance: Load language IDR_XML_ENGLISH
11/20 11:27:09.166 15b4 Facility ???INFO: CV2V_ConverterApp::InitInstance: Set current language English
11/20 11:27:09.182 15b4 Facility ???INFO: CPS_V2V_Converter::CPS_V2V_Converter: Version MajorVersion 10, MinorVersion 0, BuildNumber 17763
11/20 11:27:09.182 15b4 Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\Windows\system32\wbem\wmiutils.dll - cf620000
11/20 11:27:09.182 15b4 Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\Windows\system32\wbem\wmiutils.dll - cf620000
11/20 11:27:13.916 15b4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eInputFile
11/20 11:27:33.423 15b4 Facility ???INFO: CPPInputFile::checkFile: Select file: E:\EMRRestorei\EMRRestore_5-flat.vmdk
11/20 11:27:33.502 15b4 Facility ???ERROR: VMwareFile::InternalParseFile: Invalid format. Descriptor not found
11/20 11:27:33.502 15b4 Facility ???INFO: VMwareFile::ParseFile: sFilename - E:\EMRRestorei\EMRRestore_5.vmdk
11/20 11:27:33.502 15b4 Facility ???INFO: CPPInputFile::checkFile: ParseFile: 0
11/20 11:27:33.502 15b4 Facility ???INFO: CPPInputFile::checkFile: File type: IDS_IMAGE_CONVERTER_FORMAT_NAME_VMDK_VMFSFLAT File size: 419430400 sectors
11/20 11:27:35.908 15b4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eLocationTo
11/20 11:27:38.798 15b4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eHYPERVConnectionTo
11/20 11:27:40.627 15b4 Facility ???INFO: WrapperHyperV::connect: Host - \\localhost\root\virtualization\v2
11/20 11:27:40.689 15b4 Facility ???INFO: WrapperHyperV::init_version: HyperV version: 10.0.17763
11/20 11:27:40.689 15b4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eOutputVM
11/20 11:27:44.580 15b4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eOptionsHyperV
11/20 11:27:47.924 15b4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eSelectFolder
11/20 11:28:33.446 15b4 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eConverting
11/20 11:28:33.462 ed0 Facility ???INFO: CPPConverting::Convert: InConvertType: 4, OutConvertType: 7
11/20 11:28:33.462 ed0 Facility ???INFO: CPPConverting::ConvertImage: pathInput: E:\EMRRestorei\EMRRestore_5-flat.vmdk, pathOutput: J:\test\EMRRestore_5-flat.vhdx
11/20 11:28:33.462 ed0 Facility ???ERROR: VMwareFile::InternalParseFile: Invalid format. Descriptor not found
11/20 11:28:33.462 ed0 Facility ???INFO: VMwareFile::ParseFile: sFilename - E:\EMRRestorei\EMRRestore_5.vmdk
11/20 11:28:33.462 ed0 Facility ???INFO: CPPConverting::ConvertImage: CreateInputImage: 0
11/20 11:48:15.832 ed0 Facility ???INFO: WrapperHyperV::waitJob: JobState 7
11/20 11:48:15.863 ed0 Facility ???INFO: CVHDXFile::getCurrentHeader: Read header 1.
11/20 11:48:15.863 ed0 Facility ???INFO: CVHDXFile::getCurrentHeader: Read header 2.
11/20 11:48:15.863 ed0 Facility ???INFO: CVHDXFile::getCurrentHeader: Check correct header 1.
11/20 11:48:15.863 ed0 Facility ???INFO: CVHDXFile::getCurrentHeader: Check correct header 2.
11/20 11:48:15.863 ed0 Facility ???ERROR: CVHDXFile::ParseFile: Log header signature is fail - 1635017060.
11/20 11:48:15.863 ed0 Facility ???INFO: CPPConverting::ConvertImage: CreateOutputImage: 2
11/20 11:48:15.863 ed0 Facility ???ERROR: CPPConverting::Convert: FAILED
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Wed Nov 20, 2024 8:28 pm

Thanks for your update.
Does the disk have a snapshot or locking on it?
Can you check if you can P2V it from inside that VM?
swPete
Posts: 17
Joined: Wed Nov 13, 2024 4:14 am

Wed Nov 20, 2024 8:37 pm

no snapshots on any of the disks.
I can try P2V on the probably disk from inside the source guest on the ESXi server tonight probably.
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Wed Nov 20, 2024 10:19 pm

Please keep me posted.
swPete
Posts: 17
Joined: Wed Nov 13, 2024 4:14 am

Thu Nov 21, 2024 2:22 am

Running P2V (physical disk to Hyper-V machine) from inside the source VM fails with the same error as well... There is nothing abnormal about this disk... hmmm...

other 3 converted drives look great included booting system drive


The log file name: 'logs\V2V_Log-20241120-205657.log' (PID 7040)
11/20 20:56:57.262 ea8 Facility ???INFO: CV2V_ConverterApp::InitInstance: SetDllDirectory: C:\Program Files\StarWind Software\StarWind V2V Converter\lib
11/20 20:56:57.262 ea8 Facility ???INFO: CV2V_ConverterApp::InitInstance: File Version: 9.0.1.268
11/20 20:56:57.262 ea8 Facility ???INFO: CV2V_ConverterApp::InitInstance: Load language IDR_XML_ENGLISH
11/20 20:56:57.262 ea8 Facility ???INFO: CV2V_ConverterApp::InitInstance: Set current language English
11/20 20:56:57.278 ea8 Facility ???INFO: CPS_V2V_Converter::CPS_V2V_Converter: Version MajorVersion 10, MinorVersion 0, BuildNumber 14393
11/20 20:56:57.294 ea8 Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\WINDOWS\system32\wbem\wmiutils.dll - 31890000
11/20 20:56:57.294 ea8 Facility ???INFO: WrapperHyperV::WrapperHyperV: LoadLibrary C:\WINDOWS\system32\wbem\wmiutils.dll - 31890000
11/20 20:57:03.622 ea8 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eTypeP2V
11/20 20:57:11.731 ea8 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eHDDSelect
11/20 20:57:23.560 ea8 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eLocationTo
11/20 20:57:30.607 ea8 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eHYPERVConnectionTo
11/20 20:57:59.217 ea8 Facility ???INFO: WrapperHyperV::connect: Host - \\hv0\root\virtualization\v2
11/20 20:57:59.748 ea8 Facility ???INFO: WrapperHyperV::init_version: HyperV version: 10.0.17763
11/20 20:57:59.748 ea8 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eOutputVM
11/20 20:58:34.092 ea8 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eOptionsHyperV
11/20 20:58:38.608 ea8 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eSelectFolder
11/20 20:58:47.030 ea8 Facility ???INFO: ICPPage::OnWizardNext: SetActivePage - eConverting
11/20 20:58:47.046 e2c Facility ???INFO: CPPConverting::Convert: InConvertType: 2, OutConvertType: 7
11/20 20:58:47.046 e2c Facility ???INFO: CPPConverting::ConvertImage: pathInput: 4, pathOutput: J:\test\HardDisk.vhdx
11/20 20:58:47.046 e2c Facility ???INFO: P2V::CreateInputImage: path 4
11/20 20:58:47.046 e2c Facility ???INFO: P2V::CreateInputImage: Size 4 - 214748364800, BytesPerSector - 512
11/20 20:58:54.562 e2c Facility ???INFO: CPPConverting::ConvertImage: CreateInputImage: 0
11/20 21:18:36.168 e2c Facility ???INFO: WrapperHyperV::waitJob: JobState 7
11/20 21:18:36.293 e2c Facility ???INFO: CVHDXFile::getCurrentHeader: Read header 1.
11/20 21:18:36.293 e2c Facility ???INFO: CVHDXFile::getCurrentHeader: Read header 2.
11/20 21:18:36.293 e2c Facility ???INFO: CVHDXFile::getCurrentHeader: Check correct header 1.
11/20 21:18:36.293 e2c Facility ???INFO: CVHDXFile::getCurrentHeader: Check correct header 2.
11/20 21:18:36.309 e2c Facility ???ERROR: CVHDXFile::ParseFile: Log header signature is fail - 1635017060.
11/20 21:18:36.309 e2c Facility ???INFO: CPPConverting::ConvertImage: CreateOutputImage: 2
11/20 21:18:36.309 e2c Facility ???ERROR: CPPConverting::Convert: FAILED
swPete
Posts: 17
Joined: Wed Nov 13, 2024 4:14 am

Thu Nov 21, 2024 2:56 am

So in summary I have 5.5 ESXi virtual machine with 4 drives. 3 (including drive with system volume) convert all different ways and attach to Hyper-V machine without issue.

The forth drive gets the same error when converting:
1. Using P2V from the ESXi virtual machine
2. Using V2V on Hyper-V host capturing the disk direct from the ESXi server
3. Using V2V on the Hyper-V host on a copy of the file copied over fro mthe ESXi server using WinSCP
The settings for the 4rth drive in ESXi are the same as the other 3.

Since the 4rth drive has no system volumes, I copy the data some other way, but wouldn't mind figuring out what is going on.
yaroslav (staff)
Staff
Posts: 3424
Joined: Mon Nov 18, 2019 11:11 am

Thu Nov 21, 2024 4:17 am

Can you please run the consistency check on that volume? Let me know how it goes.
As a workaround, you can try converting the vm to the template or run disk2vhd for that volume and copy that vhd to the destination.
swPete
Posts: 17
Joined: Wed Nov 13, 2024 4:14 am

Thu Nov 21, 2024 10:49 pm

check disk run from within windows returns a lot fast than I would have expected but returns no errors on the drive/volume.
Drive contains a couple or oracle control files and redo logs and oracle archive log files that max out at 500 MB (718 of those).

Will try to run disk2vhd. had some earlier downtime this evening.
Post Reply