VMware Cloud Community
parkarnoor
Enthusiast
Enthusiast

move VM using ovftool

I am trying to move VM from standalone esxi host to VCenter having three hosts in cluster. I can do it using VCenter convertor standalone as V2V. but I am assuming ovftool will do faster for larger VMs.

it is straight forward info here. but it is not complete

How to Copy VMs Directly Between ESXi Hosts Without Shared Storage | virtuallyGhetto

I am using this syntax

ovftool.exe -ds=DS1_OS1 vi://root@10.10.10.10/xyz.abc.com vi://root@newesxihost.abc.com

after entering credentials for both source and target. I am getting below error.

Error: No network mapping specified. OVF networks:   VM Network. Target networks

I  want to correct syntax. do I need to define target network in syntax.or how to avoid this network check in ovftool syntax.

I am using latest 5.3.2 ovftool. where it is mentioned to --net or --network in command line.

Noor Parkar
2 Replies
vNEX
Expert
Expert

Hello,

because the network between source/target host differs you have to define target network name on target with -net="Network name" parameter.

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.
MarcusPDX
Contributor
Contributor

I had this same problem. Here is the command that worked between a 5.5 host (under a different venter) directly to our VCSAppliance running 6.5u1.

ovftool.exe -ds=vsanDatastore --net:"<SourceVMNetwork>=<DestinationVMNetwork>" vi://<Username:passwordOptional>@<ESXi5.5Host>/<VMName> vi://<Username:passwordOptional>@<VCSAppliance6.5u1>/<Datacenter>/host/<Clustername>

0 Kudos