Tool to Import, Configure and Export OVFs in/out of a VMware vSphere Environment
The tools in this repository will provde functions to support the deployment, manipulation ane export of OVF-based vApps within a vSphere 5.x and 6.x environment.
-
PowerCLI is installed on the machine.
-
OVFtool is installed on the machine.
-
This tool MUST support both vSphere 5.5 and 6.x, therefore any of the newer powerCLI cmdlets used must be backwards compatible.
-
These tools are run from a PowerCLI instance, not a vanilla PowerShell window.
Takes a pre-determined list of OVF/OVA files and deploys them to the appropriate vCenter instance.
- Imports.csv
- Source OVF path and filename e.g. "C:\OVFs\Test.ova"
- Destination vApp name e.g. "Test"
- Destination datacenter name e.g. "TestDC"
- Note that this DC value defines the credentials lookup and ultimately which vCenter the vApp is deployed to, so take care!
- Destination cluster name e.g. ""
- Destination vSphere hostname (inventory name) e.g. "Host1.FakeDomain.com"
- "" (blank) if using DRS to place the VM
- Destination datastore name e.g. "TestDatastore"
- Thick provisioning flag e.g. "True" / "False"
- Destination Network 0 name e.g. "Management Network"
- "" if no network exists with that number
- Destination network 1 name (as above)
- Destination network 2 name (as above)
- Destination network 3 name (as above)
- Destination network 4 name (as above)
- Credentials.csv
- vCenter datacenter name e.g. "TestDC"
- vCenter username e.g. "vSphere@administrator.local"
- vCenter password e.g. "P@ssw0rd"
- vCenter DNS (or IP address) e.g. "vCenter.FakeDomain.com" or "192.168.0.1"
- vApps in the correct vCenter & powered-off
Sets the vApp startup, vAPP ovf properties and resource settings en masse.
- VAppProperties.csv
- Source OVF path and filename e.g. "C:\OVFs\Test.ova"
- Destination vApp name e.g. "Test"
- Source OVF path and filename e.g. "C:\OVFs\Test.ova"
- Credentials.csv
- vCenter datacenter name e.g. "TestDC"
- vCenter username e.g. "vSphere@administrator.local"
- vCenter password e.g. "P@ssw0rd"
- vCenter DNS (or IP address) e.g. "vCenter.FakeDomain.com" or "192.168.0.1"
Sets a multitude of OVF runtime environment properties for a nummber of VMs.
-
VmOvfProps.csv
-
Credentials.csv
- vCenter datacenter name e.g. "TestDC"
- vCenter username e.g. "vSphere@administrator.local"
- vCenter password e.g. "P@ssw0rd"
- vCenter DNS (or IP address) e.g. "vCenter.FakeDomain.com" or "192.168.0.1"
Exports a pre-determined list of vApps into OVFs/OVAs, and optionally deletes the source vApp.
2 x CSV files with the following format:-
-
Imports.csv
- Source vApp name e.g. "Test"
- Destination OVF path e.g. "C:\OVFs"
- Destination OVF filename and type e.g. "Test.ova"
-
Credentials.csv
- vCenter datacenter name e.g. "TestDC"
- vCenter username e.g. "vSphere@administrator.local"
- vCenter password e.g. "P@ssw0rd"
- vCenter DNS (or IP address) e.g. vCenter.FakeDomain.com" or "192.168.0.1"
- Multiple OVF/OVA files neatly placed in the export directories
A simple tool which takes a correctly structured excel XLSX file and spits out the CSV files the tools described here depend upon.