Import an OVF Package

The dpmovf import command imports the OVF package and creates VMs or vApps. You can provide a custom properties file by using the -properties attribute. A custom properties file allows you to specify custom properties that are defined in the OVF package. The custom properties file contains a list of property keys and the corresponding property values.
casa
The dpmovf import command imports the OVF package and creates VMs or vApps. You can provide a custom properties file by using the -properties attribute. A custom properties file allows you to specify custom properties that are defined in the OVF package. The custom properties file contains a list of property keys and the corresponding property values.
If you do not have a custom properties file, the properties.txt file is created in your working directory. The default directory is CA\ProductName\bin.
This command has the following format:
dpmovf import
-host 
vCenter_server
-user 
user_name
-password 
user_password
-name 
VM_VApp_name
-path 
OVF_file_path
-datacenter 
data_center
-datastore 
data_store
-resourcepool 
resource_pool
[-locale 
iso639value
]
[-properties 
properties_file
]-
  • -host vCenter_server
    Specifies the name of the vCenter server host.
  • -user user_name
    Specifies the user name to log in.
  • -password user_passsword
    Specifies the user password to log in.
  • -name VM_VApp_name
    Specifies the name of the VM or the vApp.
  • -path OVF_file_path
    Specifies the OVF file path.
  • -datacenter data_center
    Specifies the data center name.
  • -datastore data_store
    Specifies the data store.
  • -resourcepool resource_pool
    Specifies the resource pool.
  • -locale iso639value
    (Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".
  • -properties properties_file
    (Optional) Specifies the custom properties file path.
Example: Import the OVF file for CA Platform using
Server Automation
This example imports CA Platform OVF package and creates a vApp and VMs. The CA Platform OVF file is
CA Platform_v1_0_0_92c.ovf
and the file location is
D:\OVF\CA_Platform
. The user name is
user123.
The following attributes for the vApp are specified:
my_datastore
,
my_datacenter
, and
my_resourcepool
. The custom properties are provided in the
custom_properties.txt
file.
dpmovf import -path "D:\OVF\CA_Platform\CA Platform_v1_0_0_92c.ovf" -name "My_CA_Platform" -host my_host.company.com -user user123 -locale en-US -datastore "my_datastore" -datacenter "my_datacenter" -resourcepool "my_resourcepool" -properties "custom_properties.txt"