Import an OVF from command line: Difference between revisions

From Cramsession
Jump to navigationJump to search
✍️ Verified Author: MflavellClick to view professional profile & credentials
No edit summary
No edit summary
Line 9: Line 9:
* use the command from the foler:
* use the command from the foler:


::: ./ovftool --noSSLVerify --name="AVI-C-NEW" --datastore="nfs" --network="pg-01" /root/myova.ova 'vi://''username'':''password''@vc.test/dc-01/host/cluster-01'
::: ./ovftool --noSSLVerify --name="AVI-C-NEW" --datastore="nfs" --network="pg-01" /root/myova.ova 'vi://''username'':''password''@vc.test/dc-01/host/cluster-01


Replace:
Replace:
:* name with the VM name
:* datasource with the datasource
:* network with the port group
:* username
:* password
:* Everything after @ relates to the vcenter, dc host and cluster, get this from the GUI.

Revision as of 20:51, 16 April 2026

Computer Notes > VSphere > Import an OVF from command line


  • Download and extract the OVF tool:
Link to OVF tool


  • use the command from the foler:
./ovftool --noSSLVerify --name="AVI-C-NEW" --datastore="nfs" --network="pg-01" /root/myova.ova 'vi://username:password@vc.test/dc-01/host/cluster-01

Replace:

  • name with the VM name
  • datasource with the datasource
  • network with the port group
  • username
  • password
  • Everything after @ relates to the vcenter, dc host and cluster, get this from the GUI.