The most common way to call the ovftool_hedvig
tool is with one or more configuration files.
Usually, one configuration file defines the vCenter environment (hostname, user, password, etc.), and another configuration file defines the VM, for example:
-
vcenter.conf
VCENTER="vcenter.company.com"
VCENTER_USER="vcenter\@company.com"
VCENTER_PASS="secret"
DC="dc1"
CLUSTER="cluster1"
-
node.conf # VM specific info - ESXI_HOST, OVA_PATH, VM_NAME, VM_DATASTORE, etc.
OVA_PATH="hedvignode_system_v3.ova"
ESXI_HOST="esxihost1"
VM_NAME="node01.domain.company.com"
VM_DATASTORE="local01"
VLAN="VLAN01"
IP="10.11.12.13"
NETMASK="255.255.255.0"
GATEWAY="10.11.12.1"
Here is an example of the command line.
./ovftool_hedvig.sh --config vcenter.conf --config node01.conf