ljmitch / install-nsx

Installing VMware NSX in a flash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install-NSX.ps1

This script can deploy and configure VMware NSX for you.

Usage: .\Install-NSX.ps1
  -SettingsExcel C:\install-nsx-info.xlsx                 - Mother of all information (required)
  -NSXManagerOVF C:\VMware-NSX-Manager-6.2.2-3604087.ova  - Location of the NSX Manager OVA (optional) (yes, you have to download this yourself)
  -DeployOVF             - Deploy the NSX Manager (optional)
  -RegistervCenter       - Register the NSX Manager to vCenter and SSO (optional)
  -InsertLicense         - Insert the NSX License into vCenter (required in 6.2.3+ before host prep)
  -DeployControllers     - Deploy the configured amount of NSX controllers (optional)
  -PrepareCluster        - Prepare the ESXi hosts in the vSphere cluster, configure VXLAN and add a Transport Zone (optional)
  -AddExclusions         - Add the VMs to the distributed firewall exclusion list (optional)
  -CreateLogicalSwitches - Create Logical Switches (optional)
  -CreateEdges           - Create Edge Services Gateways (optional)
  -CreateDLRs            - Create Distributed Logical Routers (optional)

Only the -SettingsExcel parameter is required and you can supply all other parameters as you see fit. To execute all tasks, supply all paramaters. To only create Logical Switches, only use the -SettingsExcel and -CreateLogicalSwitches parameters.

Example to only deploy the NSX Manager and register it to vCenter:

PowerCLI Z:\PowerShell> .\Install-NSX.ps1 -SettingsExcel C:\install-nsx-info.xlsx -NSXManagerOVF C:\VMware-NSX-Manager-6.2.2-3604087.ova  -DeployOVF -RegistervCenter -InsertLicense

ChangeLog:

14-09-2016 -

  • Added parameter -InsertLicense for setting the NSX license in vCenter, which is required from NSX 6.2.3 and on before you can prepare your hosts

26-05-2016 - Martijn Smit martijn@lostdomain.org

  • Initial script

About

Installing VMware NSX in a flash


Languages

Language:PowerShell 100.0%