Skip to content

Tool to Import, Configure and Export OVFs in/out of a VMware vSphere Environment

License

Notifications You must be signed in to change notification settings

RAGNOARAKNOS/vSphereOvfConfigurator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vSphereOvfConfigurator

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.

Pre-reqs and assumptions

  • 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.

OVF Import Tool

Takes a pre-determined list of OVF/OVA files and deploys them to the appropriate vCenter instance.

Import Tool Usage

Import Tool Inputs

  1. Imports.csv
    1. Source OVF path and filename e.g. "C:\OVFs\Test.ova"
    2. Destination vApp name e.g. "Test"
    3. 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!
    4. Destination cluster name e.g. ""
    5. Destination vSphere hostname (inventory name) e.g. "Host1.FakeDomain.com"
      • "" (blank) if using DRS to place the VM
    6. Destination datastore name e.g. "TestDatastore"
    7. Thick provisioning flag e.g. "True" / "False"
    8. Destination Network 0 name e.g. "Management Network"
      • "" if no network exists with that number
    9. Destination network 1 name (as above)
    10. Destination network 2 name (as above)
    11. Destination network 3 name (as above)
    12. Destination network 4 name (as above)
  2. Credentials.csv
    1. vCenter datacenter name e.g. "TestDC"
    2. vCenter username e.g. "vSphere@administrator.local"
    3. vCenter password e.g. "P@ssw0rd"
    4. vCenter DNS (or IP address) e.g. "vCenter.FakeDomain.com" or "192.168.0.1"

Import Tool Outputs

  1. vApps in the correct vCenter & powered-off

vApp Properties Tool

Sets the vApp startup, vAPP ovf properties and resource settings en masse.

vApp Properties Tool Usage

vApp Properties Tool Inputs

  1. VAppProperties.csv
    1. Source OVF path and filename e.g. "C:\OVFs\Test.ova"
      1. Destination vApp name e.g. "Test"
  2. Credentials.csv
    1. vCenter datacenter name e.g. "TestDC"
    2. vCenter username e.g. "vSphere@administrator.local"
    3. vCenter password e.g. "P@ssw0rd"
    4. vCenter DNS (or IP address) e.g. "vCenter.FakeDomain.com" or "192.168.0.1"

vApp Properties Tool Outputs

VM OVF Properties Tool

Sets a multitude of OVF runtime environment properties for a nummber of VMs.

VM OVF Properties Tool Usage

VM OVF Properties Tool Inputs

  1. VmOvfProps.csv

  2. Credentials.csv

    1. vCenter datacenter name e.g. "TestDC"
    2. vCenter username e.g. "vSphere@administrator.local"
    3. vCenter password e.g. "P@ssw0rd"
    4. vCenter DNS (or IP address) e.g. "vCenter.FakeDomain.com" or "192.168.0.1"

VM OVF Properties Tool Outputs

OVF Export Tool

Exports a pre-determined list of vApps into OVFs/OVAs, and optionally deletes the source vApp.

OVF Export Tool Usage

OVF Export Tool Inputs

2 x CSV files with the following format:-

  1. Imports.csv

    1. Source vApp name e.g. "Test"
    2. Destination OVF path e.g. "C:\OVFs"
    3. Destination OVF filename and type e.g. "Test.ova"
  2. Credentials.csv

    1. vCenter datacenter name e.g. "TestDC"
    2. vCenter username e.g. "vSphere@administrator.local"
    3. vCenter password e.g. "P@ssw0rd"
    4. vCenter DNS (or IP address) e.g. vCenter.FakeDomain.com" or "192.168.0.1"

OVF Export Tool Outputs

  1. Multiple OVF/OVA files neatly placed in the export directories

XLSX to CSV exporter

A simple tool which takes a correctly structured excel XLSX file and spits out the CSV files the tools described here depend upon.

About

Tool to Import, Configure and Export OVFs in/out of a VMware vSphere Environment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published