StarWind iSCSI SAN
StarWind Native SAN for Hyper-V
 

bulk convert vhd to vmkd

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

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

bulk convert vhd to vmkd

Postby victorovermars » Mon Feb 15, 2016 12:20 pm

Hello,
I have a stupid question, but not asking is even more stupid.

I would like to know if anyone has any experience converting vhd volumes to vmdk volumes using the cli.
I have several vhd files I would like to convert to vmdk files.
I'm using the commands below but I don't know how to run them in a batch.

StarV2V.exe if=g:\virtvol1.vhd ot=vmdk_f of=h:\virtvol1.vmdk vmdktype=scsi
StarV2V.exe if=g:\virtvol2.vhd ot=vmdk_f of=h:\virtvol2.vmdk vmdktype=scsi
StarV2V.exe if=g:\virtvol3.vhd ot=vmdk_f of=h:\virtvol3.vmdk vmdktype=scsi

How do I run these lines in a batch. Are the commands I use correct?
victorovermars
 
Posts: 1
Joined: Mon Feb 15, 2016 9:57 am

Re: bulk convert vhd to vmkd

Postby Vladislav (Staff) » Tue Feb 23, 2016 11:46 am

Hi Victor.

You should use console version instead (not StarV2V.exe but StarV2Vc.exe) :)

Just create a .bat file and run it.

Should look something like this:

Code: Select all
C:\Program Files (x86)\StarWind Software\StarWind V2V Image Converter\StarV2Vc.exe if=g:\virtvol1.vhd ot=vmdk_f of=h:\virtvol1.vmdk vmdktype=scsi
C:\Program Files (x86)\StarWind Software\StarWind V2V Image Converter\StarV2Vc.exe if=g:\virtvol2.vhd ot=vmdk_f of=h:\virtvol2.vmdk vmdktype=scsi
C:\Program Files (x86)\StarWind Software\StarWind V2V Image Converter\StarV2Vc.exe if=g:\virtvol3.vhd ot=vmdk_f of=h:\virtvol3.vmdk vmdktype=scsi


I hope it helps :)
Vladislav (Staff)
Staff
 
Posts: 180
Joined: Fri Feb 27, 2015 4:31 pm


Return to StarWind V2V Converter

Who is online

Users browsing this forum: No registered users and 5 guests