In this blog post you will see how to deploy and install NSX manager with OVFTOOL command in the ESXi environment. In my previous blog posts, I have explained how to install the NSX-T Manager with the vSphere Web Client on ESXi hosts and how to install NSX-T Manager in the KVM environments. One of the other options we have for the ESXi environment is using the OVFTOOL command line to deploy the NSX-T Manager. From the ovftool command line you can install the NSX Manager, NSX Controllers and NSX Edges in the vSphere environment.
Installing NSX Manager with OVFTOOL:
To install the NSX Manager with the OVFTOOl, you must have already downloaded the NSX Univied Appliance OVA File and you should have enough resources (CPU, Memory and Disk) in the ESXi cluster. You must specify all the parameters as shown in the example to deploy the NSX Manager. The parameters include datastore, NSX Manager IP, Gateway, DNS, Domain Name, NTP, OVA file path and finally the IP address and credentials to connect to the vCenter Server or ESXi host.
Run the following command from the CLI to install the NSX Manager and monitor the status of the NSX Manager deployment. The NSX manager installation will typically take 3-5 minutes.
"c:\Program Files\VMware\VMware OVF Tool\ovftool.exe" --name=nsx-manager-01 --X:injectOvfEnv --X:logFile=ovftool.log --allowExtraConfig --datastore=“NFS-DS-01"
--network="Management" --acceptAllEulas --noSSLVerify --diskMode=thin --powerOn --prop:nsx_role=nsx-manager --prop:nsx_ip_0=192.168.1.41 --prop:nsx_netmask_0=255.255.255.0
--prop:nsx_gateway_0=192.168.1.10 --prop:nsx_dns1_0=192.168.1.10 --prop:nsx_domain_0=virtualbrigade.com --prop:nsx_ntp_0=192.168.1.10 --prop:nsx_isSSHEnabled=True
--prop:nsx_allowSSHRootLogin=True --prop:nsx_passwd_0=VMware1! --prop:nsx_cli_passwd_0=VMware1! --prop:nsx_hostname=nsx-manager-01 C:\Downloads\nsx-unified-appliance-2.2.0.0.0.8680778.ova
vi://administrator@vsphere.local@192.268.1.25/SA-Datacenter/host/SA-Management-Edge/
After executing the above mentioned command, type the password for the administrator@vsphere.local user to continue with the NSX Manager installation.
Opening OVA source: c:\nsx-unified-appliance-2.2.0.0.0.8680778.ova The manifest validates Source is signed and the certificate validates Enter login information for target vi://192.168.1.25/ Username: administrator%40vsphere.local Password: ******** Opening VI target: vi://administrator%40vsphere.local@192.168.1.25:443/SA-Datacenter/host/SA-Management-Edge/ Deploying to VI: vi://administrator%40vsphere.local@192.168.1.25:443/SA-Datacenter/host/SA-Management-Edge/ Disk progress: 10%
Installing NSX Controller with OVFTOOL:
To install the NSX Controller virtual machine with the OVFTOOl, you must have already downloaded the NSX Controller OVA File and you should have enough resources (CPU, Memory and Disk) in the ESXi cluster. You must specify all the parameters as shown in the example to deploy the NSX Controller. The parameters include datastore, NSX Controller virtual machine name, IP, Gateway, DNS, Domain Name, NTP, OVA file path and finally the IP address and credentials to connect to the vCenter Server or ESXi host.
Run the following command from the CLI to install the NSX Controller and monitor the status of the NSX Controller deployment. The NSX Controller virtual machine installation will typically take 3-5 minutes.
"c:\Program Files\VMware\VMware OVF Tool\ovftool.exe" --name=nsx-controller-01 --X:injectOvfEnv --X:logFile=ovftool.log --allowExtraConfig --datastore="NFS-DS-01" --network="management" --noSSLVerify --diskMode=thin --powerOn --prop:nsx_ip_0=192.168.1.31 --prop:nsx_netmask_0=255.255.255.0 --prop:nsx_gateway_0=192.168.1.10 --prop:nsx_dns1_0=192.168.1.10 --prop:nsx_domain_0=virtualbrigade.com --prop:nsx_ntp_0=192.168.1.10 --prop:nsx_isSSHEnabled=True --prop:nsx_allowSSHRootLogin=True --prop:nsx_passwd_0=VMware1! --prop:nsx_cli_passwd_0=VMware1! --prop:nsx_cli_audit_passwd_0=VMware1! --prop:nsx_hostname=nsx-controller-01 C:\Materials\Downloads\nsx-controller-2.2.0.0.0.8680783.ova vi://administrator@vsphere.local@192.168.1.25/SA-Datacenter/host/Management-Edge/
Once the NSX Controller is deployed, you can initialize and activate the controllers manually via the command line.
Installing NSX Edge with OVFTOOL Command Line:
To install the NSX Edge virtual machine with the OVFTOOl, you must have already downloaded the NSX Edge OVA File and you should have enough resources (CPU, Memory and Disk) in the ESXi cluster. You must specify all the parameters as shown in the example to deploy the NSX Edges. The parameters include name, Size of the NSX Edge Deployment, datastore, NSX Controller virtual machine name, IP, Gateway, DNS, Domain Name, NTP, OVA file path and finally the IP address and credentials to connect to the vCenter Server or ESXi host.
Run the following command from the CLI to install the NSX Edge and monitor the status of the NSX Edge deployment. The NSX Edge virtual machine installation will typically take 3-5 minutes.
"c:\Program Files\VMware\VMware OVF Tool\ovftool.exe" --name=nsx-edge-01 --deploymentOption=small --X:injectOvfEnv --X:logFile=ovftool.log --allowExtraConfig --datastore="NFS-DS-01" --net:"Network 0=Management" --net:"Network 1=Overlay" --net:"Network 2=VLAN" --net:"Network 3=VLAN" --acceptAllEulas --noSSLVerify --diskMode=thin --powerOn --prop:nsx_ip_0=192.168.1.41 --prop:nsx_netmask_0=255.255.255.0 --prop:nsx_gateway_0=192.168.1.10 --prop:nsx_dns1_0=192.168.1.10 --prop:nsx_domain_0=virtualbrigade --prop:nsx_ntp_0=192.168.1.10 --prop:nsx_isSSHEnabled=True --prop:nsx_allowSSHRootLogin=True --prop:nsx_passwd_0=VMware1! --prop:nsx_cli_passwd_0=VMware1! --prop:nsx_hostname=nsx-edge-01 C:\Materials\Downloads\nsx-edge-2.2.0.0.0.8680783.ova vi://administrator@vsphere.local@192.168.1.25/SA-Datacenter/host/Management-Edge/
You will be prompted to enter the password for the administrator@vsphere.local user to continue with the NSX Edge installation.
Please refer to the VMware Documentation for more information on NSX-T Data Center product at https://docs.vmware.com/en/VMware-NSX-T/index.html
I hope this is informative for you and I thank you for reading.
Related Posts:
- NSX-T 2.1 Complete video series:
- Introduction to NSX-T
- NSX-T Architecture
- Deploy NSX-T Manager Virtual Machine on ESXi host
- Configure NSX-T Control cluster
- Prepare ESXi host as fabric node in NSX-T
- Prepare KVM hosts as fabric Node in NSX-T
- How to add vCenter Server as Compute Manager?
- What is N-VDS or hostSwitch in NSX-T?
- How to create Transport Zones in NSX-T?
- What is Uplink Profile and how to Create in NSX-T?
- Create an IP pools for TEP in NSX-T
- Verify hostswitch configuration on ESXi and KVM
- How to create Logical Switches in NSX-T?
- NSX-T Logical Routing