StarWind P2V Migrator

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

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

Post Reply
istinson
Posts: 6
Joined: Thu May 26, 2022 6:19 pm

Thu May 26, 2022 6:21 pm

Wondering if there is a way to kick off the conversion/migration process via CLI(PowerShell Preferably) or in Task Scheduler
istinson
Posts: 6
Joined: Thu May 26, 2022 6:19 pm

Tue May 31, 2022 9:22 pm

yaroslav (staff) wrote:Check this out https://www.starwindsoftware.com/v2v-he ... rface.html
Does the CLI only support V2V?
As the documentation container "StarWind V2V Converter Help : Command Line Interface" referencing v2v
Currently getting an error "Invalid parameter. Must be in_file_name."
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Tue May 31, 2022 9:55 pm

Can I have the command you are running, please?
istinson
Posts: 6
Joined: Thu May 26, 2022 6:19 pm

Tue May 31, 2022 10:08 pm

yaroslav (staff) wrote:Can I have the command you are running, please?
V2V_ConverterConsole.exe -c "C:\Program Files\StarWind Software\StarWind V2V Converter\SWP2V-350test.cfg"

contents of .cfg file

#Convert local physical disk 0 to remote VHDX:

in_host_type=win

in_host_address=*********

in_host_username=<username>

in_host_password=<password>

in_file_name="D:\Hyper-V\Virtual Hard Disks\D401IT001.vhdx"


out_host_type=local

out_host_address=*********

out_host_username=<username>

out_host_password=<password>

out_file_type=ft_vhdx_thick

out_file_name="D:\Hyper-V\Virtual Hard Disks\test01.vhdx"
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Tue May 31, 2022 10:23 pm

in_file_name="D:\Hyper-V\Virtual Hard Disks\D401IT001.vhdx"
You are not converting the physical disk but a VHDX. Please see the samples at the end of the KB https://www.starwindsoftware.com/v2v-he ... rface.html.
istinson
Posts: 6
Joined: Thu May 26, 2022 6:19 pm

Wed Jun 01, 2022 12:31 pm

yaroslav (staff) wrote:
in_file_name="D:\Hyper-V\Virtual Hard Disks\D401IT001.vhdx"
You are not converting the physical disk but a VHDX. Please see the samples at the end of the KB https://www.starwindsoftware.com/v2v-he ... rface.html.
I see my mistake please see the updated attached, I changed the output file type to an (raw).iso, Still yielding the same error.



in_host_type=win

in_host_address="S401PXE02.*******.com"

in_host_username="********"

in_host_password="********"

in_file_name="D:\Hyper-V\Virtual Hard Disks\D401IT001.vhdx"


out_host_type=win

out_host_address="S401PXE02.**********.com"

out_host_username="*******"

out_host_password="******"

out_file_type=ft_raw

out_file_name="D:\Hyper-V\Virtual Hard Disks\test01.iso"
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Wed Jun 01, 2022 12:47 pm

Please note that it is not about the file extension. You are converting a VHDX file to another VHDX file. This is not P2V migration this is V2V conversion.
As suggested earlier, you need to refer to the Samples section of https://www.starwindsoftware.com/v2v-he ... rface.html

Code: Select all

V2V_ConverterConsole.exe convert in_file_name="c:\test\disk.img" out_file_name="d:\disk.vmdk" out_file_type=ft_vmdk_ws_thick
This is what the local V2V conversion should look like.
istinson
Posts: 6
Joined: Thu May 26, 2022 6:19 pm

Wed Jun 01, 2022 1:10 pm

yaroslav (staff) wrote:Please note that it is not about the file extension. You are converting a VHDX file to another VHDX file. This is not P2V migration this is V2V conversion.
As suggested earlier, you need to refer to the Samples section of https://www.starwindsoftware.com/v2v-he ... rface.html

Code: Select all

V2V_ConverterConsole.exe convert in_file_name="c:\test\disk.img" out_file_name="d:\disk.vmdk" out_file_type=ft_vmdk_ws_thick
This is what the local V2V conversion should look like.

Ok i see, But this isn't utilizing the configuration file at all

Would I be better off inputting all parameters manually into the CLI rather than trying to call the configuration file?
Because the parameters you gave me were just a broken down version of what I was trying to do with the configuration file.
yaroslav (staff)
Staff
Posts: 2361
Joined: Mon Nov 18, 2019 11:11 am

Thu Jun 02, 2022 10:18 pm

Would I be better off inputting all parameters manually into the CLI rather than trying to call the configuration file?
You could use a file but make sure to set it up properly.
Because the parameters you gave me were just a broken down version of what I was trying to do with the configuration file.
Bad example, sorry... You are referring to the VHDX in your file. The question is what you are trying to convert: local or a physical volume?
Post Reply