V2V Hyper-V -> vSphere fails

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

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

Post Reply
jjbailey
Posts: 1
Joined: Sat Jul 20, 2024 7:36 pm

Sat Jul 20, 2024 7:44 pm

Hello,

Using version 9.0.1.509, I cannot convert a Hyper-V machine to a vSphere VM: In the log file:

Code: Select all

7/20 11:47:49.862 db8 Facility ???INFO: VMConverter::ESXIConverter::CreateVM: createVM is true, vm-64372
7/20 11:47:49.862 db8 Facility ???INFO: CPPConverting::ConverterESX: Create VM vm-64372
7/20 11:47:50.247 db8 Facility ???INFO: CPPConverting::ConvertDisks: pathInput: C:\ProgramData\Microsoft\Windows\Virtual Hard Disks\noble.vhdx, pathOutput: [qnapi-datastore1] noble-2024-07-20/noble.vmdk
7/20 11:47:50.256 db8 Facility ???ERROR: CVHDXFile::ParseFile: Error opening file \\localhost\C$\ProgramData\Microsoft\Windows\Virtual Hard Disks\noble.vhdx - 32. The process cannot access the file because it is being used by another process.
7/20 11:47:50.256 db8 Facility ???INFO: CPPConverting::ConvertDisks: CreateInputImage: 2
7/20 11:47:50.336 db8 Facility ???INFO: WrapperHyperV::destroy_snapshot: DestroySnapshot returnValue.iVal = 4096
7/20 11:47:51.380 db8 Facility ???INFO: WrapperHyperV::waitJob: JobState 7
7/20 11:47:51.380 db8 Facility ???ERROR: CPPConverting::Convert: FAILED
Another Hyper-V machine converts OK, so I'm confident I have the procedure correct.
yaroslav (staff)
Staff
Posts: 3571
Joined: Mon Nov 18, 2019 11:11 am

Thu Jul 25, 2024 6:13 pm

Hi,

Please make sure that there is no active snapshot or a backup job running for this disk. The output states that something is locking the file.
Try P2V converting from inside the VM as an alternative.
Post Reply