Bulk/Mass converting VMWare to HyperV

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

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

Post Reply
User1234
Posts: 4
Joined: Fri Jan 31, 2025 8:19 pm

Mon Feb 03, 2025 4:16 pm

Hello All,

I would like to mass convert VMs from vmware to hyperv and I've seen some replies about this feature is being worked on. However those replies were from several months ago. Is there an update on this?

I have tried doing this via CLI but keep running into issues
yaroslav (staff)
Staff
Posts: 3242
Joined: Mon Nov 18, 2019 11:11 am

Mon Feb 03, 2025 9:03 pm

Greetings,

Welcome to StarWind Forum. This feature is still on the roadmap without a clear ETA.
Could you please let me know which issues you ran into?
User1234
Posts: 4
Joined: Fri Jan 31, 2025 8:19 pm

Tue Feb 04, 2025 12:50 pm

yaroslav (staff) wrote:
Mon Feb 03, 2025 9:03 pm
Greetings,

Welcome to StarWind Forum. This feature is still on the roadmap without a clear ETA.
Could you please let me know which issues you ran into?
Im trying to use the following script:

Code: Select all

V2V_ConverterConsole.exe convert in-host_type=esx in_host_address="esxihost1 IP" in_host_username="username" in_host_password="PASSWORD" in_vm_name="name of vm" out_host_type=win out_host_address="localhost" out_host_username="host admin account" out_host_password="password" out_vm_name="name of vm" out_file_name="path of folder\disk1.vhdx" out_file_type="ft_vhdx_growable"
but am receiving the following error:

Opening log file 'logs\V2VConsole_Log-20250204-073533.log'.
Invalid parameter.
Usage:
V2V_ConverterConsole.exe command parameter1=value1 parameter2=value2 parameter3=value3...

Command:
convert - convert virtual or physical disk
list - list available disks
-c - using configuration file, see the online help https://www.starwindsoftware.com/v2v-he ... nfile.html

Parameters for convert command:
in_host_type=<esx/win/ovirt/proxmox/local>, default value - local
in_host_address=<ip address/hostname/localhost>, default value - localhost
in_host_username=<username>, default - empty
in_host_password=<password>, default - empty
in_host_port=<port number> (default for esx - 443, for windows - not used)
in_file_name=<path to file on server/physical disk name/logical volume name>
out_host_type=<esx/win/ovirt/proxmox/local>, default value - local
out_host_address=<ip address/hostname/localhost>, default value - localhost
out_host_username=<username>, default - empty
out_host_password=<password>, default - empty
out_host_port=<port number> (default for esx - 443, for windows - not used)
out_vm_name=<vm name to disk attach>, required parameter for ESXi
out_file_name=<path to file on server>
out_file_type=<file type>

File types:
ft_vhd_growable - MS VHD growable;
ft_vhd_pre_allocated - MS VHD pre-allocated;
ft_vhdx_growable - MS VHDX growable;
ft_vhdx_pre_allocated - MS VHDX pre-allocated;
ft_vmdk_ws_growable - VMDK growable for VMware Workstation;
ft_vmdk_ws_pre_allocated - VMDK pre-allocated for VMware Workstation;
ft_vmdk_esx_growable - VMDK growable for VMware ESXi Server;
ft_vmdk_esx_pre_allocated - VMDK pre-allocated for VMware ESXi Server;
ft_vmdk_so - VMDK stream-optimized;
ft_raw - RAW image;
ft_raw_kvm - RAW image for KVM
ft_qcow2 - QCOW2 virtual disk;
ft_qcow2_v3 - QCOW2 version 3 virtual disk;
ft_vdi_growable - VDI growable for Oracle VirtualBox;
ft_vdi_pre_allocated - VDI pre-allocated for Oracle VirtualBox.

Parameters for list command:
object=<object type>

Object types:
ot_disks - local physical disks
ot_volumes - local logical volumes

Samples:
Convert local .img file to local vmdk file:
V2V_ConverterConsole.exe convert in_file_name="c:\test\disk.img" out_file_name="d:\disk.vmdk" out_file_type=ft_vmdk_ws_pre_allocated

Convert remote vhdx to remote vmdk file:
V2V_ConverterConsole.exe convert in_host_type=win in_host_address="hostWin" in_host_username="user1" in_host_password="pwd1" in_file_name="d:\virtual machines\vm_sql\disk1.vhdx" out_host_type=esx out_host_address="hostEsx" out_host_username="user2" out_host_password="pwd2" out_vm_name="NameVM" out_file_type="ft_vmdk_esx_grawable" out_file_name="[datastore] vm/disk1.vmdk"

Convert local physical disk 1 to remote esx disk:
V2V_ConverterConsole.exe convert in_file_name="\\?\PhysicalDisk1" out_host_type=esx out_host_address="hostEsx" out_host_username="user" out_host_password="pwd" out_vm_name="NameVM" out_file_type="ft_vmdk_esx_pre_allocated" out_file_name="[datastore] vm/disk2.vmdk"

List local physical disks:
V2V_ConverterConsole.exe



Also, if the host is in a cluster with DRS/HA enabled, then this feature needs to be disabled before running this correct?
yaroslav (staff)
Staff
Posts: 3242
Joined: Mon Nov 18, 2019 11:11 am

Tue Feb 04, 2025 4:06 pm

I've noticed a typo. in-host_type needs to be redone as in_host_type
Can you please share the exact line you use? Feel free to replace ips and passwords with something else.
User1234
Posts: 4
Joined: Fri Jan 31, 2025 8:19 pm

Tue Feb 04, 2025 4:42 pm

yaroslav (staff) wrote:
Tue Feb 04, 2025 4:06 pm
I've noticed a typo. in-host_type needs to be redone as in_host_type
Can you please share the exact line you use? Feel free to replace ips and passwords with something else.
Good eye, I have corrected it and am still receiving the same error though

script:
V2V_ConverterConsole.exe convert in_host_type=esx in_host_address="ip address" in_host_username="vcenter local admin" in_host_password="vcenter admin password" in_vm_name="name of vm" out_host_type=win out_host_address="name of hyperv host" out_host_username="local admin account on hyperv host" out_host_password="password of local admin" out_vm_name="name of vm" out_file_name="C:\Test VMs\disk1.vhdx" out_file_type="ft_vhdx_growable"
yaroslav (staff)
Staff
Posts: 3242
Joined: Mon Nov 18, 2019 11:11 am

Tue Feb 04, 2025 5:29 pm

Hi,

Try using ESXi credentials iinstad of vCenter.
User1234
Posts: 4
Joined: Fri Jan 31, 2025 8:19 pm

Tue Feb 04, 2025 7:07 pm

yaroslav (staff) wrote:
Tue Feb 04, 2025 5:29 pm
Hi,

Try using ESXi credentials iinstad of vCenter.
I have tried it and still receive the same error. I have no issues using the gui
yaroslav (staff)
Staff
Posts: 3242
Joined: Mon Nov 18, 2019 11:11 am

Wed Feb 05, 2025 8:00 am

Sorry for the misunderstanding.
CLI-based VM conversion is to be available in the upcoming build, not now. It should be there very soon.
Stay tuned :)
Post Reply