Error doing command line conversion

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

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

Post Reply
mb31
Posts: 1
Joined: Tue May 03, 2022 8:39 pm

Fri May 06, 2022 2:27 pm

I'm writing a script to create vhdx of a server we have and copy the data to a shared drive.
I'm able to get it to work with the \\?\PhysicalDrive0, but anything else gives me error opening image 25.

This is the command it runs.

This one runs fine
"C:\Program Files\StarWind Software\StarWind V2V Converter\V2V_ConverterConsole.exe" convert in_file_name="\\?\PhysicalDrive0" out_file_name="\\Shared\Mdrive.vhdx" out_file_type="ft_vhdx_thin"

This gives me

error opening image 25

"C:\Program Files\StarWind Software\StarWind V2V Converter\V2V_ConverterConsole.exe" convert in_file_name="m:\" out_file_name="\\Shared\Mdrive.vhdx" out_file_type="ft_vhdx_thin"

When doing the list volumes command, it shows,

Hard Disk2 M:\ \\?\Volume{e4c589a5-85b1-47e8-89f2-94295971903d}\
Hard Disk3 R:\ \\?\Volume{88e83ddb-6b85-4d8c-b6b0-2879890a8f84}\
Hard Disk5 Q:\ \\?\Volume{25960fc7-b9ea-48c2-8cb7-63cb67899394}\


I tried using "Hard Disk2" "M:\" and "\\?\Volume{e4c589a5-85b1-47e8-89f2-94295971903d}\"
none seem to be working.

Not sure where to go from here, any help would be appreciated, thanks!
yaroslav (staff)
Staff
Posts: 2360
Joined: Mon Nov 18, 2019 11:11 am

Mon May 09, 2022 6:59 am

Greetings,

Please note the V2V converter is not backup software.
Please try converting to a thick disk. Please also try referring to a drive in the conventional format. Please refer to this page https://www.starwindsoftware.com/v2v-he ... rface.html.
istinson
Posts: 6
Joined: Thu May 26, 2022 6:19 pm

Wed Jun 01, 2022 4:58 pm

Was this ever resolved? Currently getting the same error message, On a very similar use case.
yaroslav (staff)
Staff
Posts: 2360
Joined: Mon Nov 18, 2019 11:11 am

Wed Jun 01, 2022 7:20 pm

Did you try listing the volumes with V2V_ConverterConsole.exe list object=ot_disks?
Note that the command you were using in a different thread is for converting a VM disk not the physical volume.
Outplayed1958
Posts: 1
Joined: Fri Jan 05, 2024 6:02 am

Fri Jan 05, 2024 6:11 am

I just find out the answer and I register this account just to post it here!

The error was due to escaping char in CMD, so you need to make the end a double slash to pass in the param correctly

Using yours as an example:

Code: Select all

Hard Disk5 Q:\ \\?\Volume{25960fc7-b9ea-48c2-8cb7-63cb67899394}\
The line should be:

Code: Select all

"C:\Program Files\StarWind Software\StarWind V2V Converter\V2V_ConverterConsole.exe" convert in_file_name="\\?\Volume{25960fc7-b9ea-48c2-8cb7-63cb67899394}\\" out_file_name="\\Shared\Qdrive.vhdx" out_file_type="ft_vhdx_thin"
Notice the volume ID is \\?\Volume{25960fc7-b9ea-48c2-8cb7-63cb67899394}\\

This will fix your issue, have fun!

Jason

p.s. @yaroslav (staff) please read the OP question carefully, your answer showed you haven't even try to run your cmd product to convert a volume, god bless your heart.
yaroslav (staff)
Staff
Posts: 2360
Joined: Mon Nov 18, 2019 11:11 am

Fri Jan 05, 2024 9:40 am

Thanks for your comment. Yup, missed that backslash.
Thanks!
Post Reply