Within this post, we will show you how to build a virtualized NSX SDN lab.
Our lab will be loosely based around the VMware NFV 2.0.1 Reference Architecture.
For those of you who haven't worked with the VMware NFV reference architecture, it consists of a set of validated VMware software components and high-level design reference.
This guide assumes you have a good understanding of NSX. However, if this isn't the case, then I highly recommend the VMware NSX Technical Deep Dive from IPSpace.net
The webinar describes VMware NSX principles, architecture, and components, including overlay virtual networking, physical-to-virtual gateways, network services, and security. CLICK HERE to join.
Note: With regards to NSX licensing, checkout VMUG for personal/non-production licensing: https://www.vmug.com/Join/EVALExperience
Summary of Steps
The lab will be built based on the following steps:
- Building the VMware Infra (ESXi hosts and vDS's).
- Deploy the NSX Manager via OVF.
- Register the NSX Manager with the vCenter server.
- Deploy the NSX Control Cluster.
- Deploy VXLAN (via VIB) to the hosts.
- Verify connectivity between 2 VMs across a logical switch.
The lab will consist of 2 x physical ESXi servers. The first ESXi server will host the management components, and the other ESXi server will host a number of virtualized ESXi servers used for compute and Edge (ESG's). ESGs being VMs that will perform breakout from the overlay (VXLAN) to the underlay.
Figure 1 - Lab overview.
Our lab will be based on the following components.
|Physical Host||VM||Nested VMs||vCPU||Memory||HDD|
|NSX Controller (x3)||4||4Gb||28GB|
First of all, we will build the vSphere infra. This involves installing the ESXi hosts, creating the required clusters and building our vDS's.
Before we begin the following requirements much be performed.
- ESXi installed on each of the physical hosts.
- vCenter installed.
Furthermore, the following services must be available:
- DNS for internal resolution of VMware components i.e VC etc.
- NTP for time synchronization.
From within vCenter create the following clusters,
Build ESXi Hosts
Create 6 virtual ESXi VMs.
- 8Gb RAM, 2 x vCPUs and 100GB disk.
- Enable VT-x under the CPU section.
- Create 2 x NICs on each VM.
- Assign a trunk based port group to each interface.
- Upon the vSS on the physical host used for compute, set promiscuous mode to enabled.
Figure 2 - Create ESXi VM's.
Once you've created them, install ESXi6.5 on each. Once installed:
- Configure DNS resolution.
- Configure the following IP and VLAN tags against the management interface, based on the below.
Next, import each of the hosts into vCenter. Resulting in the following vSphere topology:
Now, at this point, each ESXi host VM will be only using a single VMNIC and the virtual standard switch (vSS). Therefore our next action will be to migrate the ESXi over to a vDS and to use both VMNIC uplinks. To do this, within the network section of vCenter go to Add and Manage Hosts. This will start a wizard where you can attach your hosts, assign uplinks and configure the required VLANs (shown below).
Figure 3 - vSphere networking overview.
Now that we have the vSphere infra up and running, we can look to start the NSX installation, covered within part 2 of this 4 part series.