You can use ovftool deploy a VM from an OVF or OVA template on your client machine or transfer a VM from your on-premises vSphere environment to your VMware Cloud on AWS SDDC.

VMware OVF Tool (ovftool) is a flexible command-line utility that you can use to migrate virtual machines between an on-premises installation and an SDDC. For more information about ovftool, see the OVF Tool User's Guide

Prerequisites

  • You must have the CloudAdmin role to run this command.
  • Configure a management VPN.
  • Configure additional firewall rules for the management gateway that allow traffic on port 443 from your on-premises vSphere environment to the vCenter Server and ESXi hosts in your SDDC.
    Table 1. Firewall Rules Required by ovftool
    Name Action Source Destination Service Ports
    On-Premises to SDDC vCenter Allow CIDR block of on-premises data center vCenter HTTPS (TCP 443) 443
    On-Premises to SDDC ESXi Allow CIDR block of on-premises data center ESXi HTTPS (TCP 443) 443

Procedure

Example: Use ovftool to Deploy a VM from an OVA Template

This example ovftool command deploys the OVA template in \tmp\Example.ova from the local host to the SDDC vCenter with FQDN SDDC-FQDN. The locator path (vi) argument specifies the required target resource pool name, .../Compute-ResourcePool.

ovftool --acceptAllEulas --name=Example-to-SDDC \
--datastore=WorkloadDatastore --net:Non=sddc-cgw-network-1 
--vmFolder=Workloads \tmp\Example.ova \
'vi://cloudadmin@vmc.local:passwd@SDDC-FQDN/SDDC-Datacenter/host/Cluster-1/Resources/Compute-ResourcePool/'