Professional Documents
Culture Documents
How To Deploy A Nexus 1000v Lab With A Single ESX Host
How To Deploy A Nexus 1000v Lab With A Single ESX Host
VM Name
RHEL62-Test-1
vCenter-5
ESX5-Nested-1
ESX5-Nested-2
N1000v
Description
Bare Metal ESX host
Redhat test VM
vCenter server
Nested ESX 5.1 (VM 1)
Nested ESX 5.1 (VM 2)
VSM Management IP
1. Infrastructure setup
a. Install ESX bare metal host. Ensure you have > 75GB available space on your VMFS if
you plan on installing a vCenter VM with Update Manager.
b. Configure management network interface.
c. Install one WIN2K8/2012 VM (for vCenter) allocated 30GB or more for virtual disk. Next
install vCenter 5.1 on Windows VM. Alternately you can use the vCenter appliance.
d. On the vCenter server install VMware Update Manager (VUM).
e. Install two ESX 5.1 VMs following Nested ESX Instructions here:
http://www.vcritical.com/2011/07/vmware-vsphere-can-virtualize-itself/
i. Configured four vNICs each using the default vSwitch VM Network port group
for now.
ii. Boot Nested ESX VMs and configure Management network interfaces from the
VM console within VI Client.
f. Test all IP connectivity between vCenter and all three ESX hosts.
g. Add Nested ESX hosts to vCenter.
See Fig. 1
Tip: Put the Nested ESX hosts in their own Cluster for easier management.
Note: The two ESX5-Nested-X VMs below correspond to 10.85.49.218 & 10.85.49.219 hosts connected to vCenter in the ESXNested cluster.
Fig. 1 Infrastructure setup with Nested ESX VMs installed & added to vCenter.
b. Unzip the bundle and navigate to the Install_App folder & launch the application.
f.
Enter the appropriate info for your VSM. Since Im hosting the VSM pair on my single
bare metal ESX host, Ive used the same ESX Host IP twice. Click Next when complete.
Notes:
- Recommend setting your Domain ID to something other than default 1.
- Im setting my Management VLAN to what my physical switches use for
their native VLAN.
- I chose to use L2 mode for simplicity versus L3, but either will work.
- Do not migrate hosts at this time.
g. Review configuration and click Next. Be patient, deployment will take up to 15mins.
i.
Select the hosts you wish to have the VEM agent installed. Click Next.
Note: This method requires VUM to be previously installed. If not, youll need to manually install the VEM
agent vibs.
j.
You can monitor the progress from the VI Client Recent Task log
l.
From the VI Client go to Home -> Inventory -> Networking and you should see your two
new hosts as part of the 1000v DVS. Ensure you click on the 1000v DVS in the left pane.
Ports
Module-Type
Model
Status
---
-----
--------------------------------
------------------
------------
Nexus1000V
active *
Nexus1000V
ha-standby
248
NA
ok
248
NA
ok
Mod
--
3.
Sw
Hw
------------------
------------------------------------------------
4.2(1)SV2(1.1)
0.0
4.2(1)SV2(1.1)
0.0
4.2(1)SV2(1.1)
4.2(1)SV2(1.1)
Mod
MAC-Address(es)
Serial-Num
---
--------------------------------------
----------
00-19-07-6c-5a-a8 to 00-19-07-6c-62-a8
NA
00-19-07-6c-5a-a8 to 00-19-07-6c-62-a8
NA
02-00-0c-00-03-00 to 02-00-0c-00-03-80
NA
02-00-0c-00-04-00 to 02-00-0c-00-04-80
NA
Mod
Server-IP
Server-UUID
Server-Name
---
---------------
------------------------------------
--------------------
10.85.49.220
NA
NA
10.85.49.220
NA
NA
10.85.49.218
422954ef-1f4d-f096-2a47-4b64cd67b932
10.85.49.218
10.85.49.219
42299b1d-8226-47bc-f375-2432c7cbe87e
10.85.49.219
Cold migrate (powered off) your Test VM to one the Nested ESX hosts. If you get any errors, youve likely done one of
the following:
Didnt modify your Nested ESX VM to Virtual Machine Version 9 prior to install
Didnt enable the Expose NX/XD flag to guest option in the Nested ESX VM.
b.
Before we power it up were going to create a Port Profile for it on the 1000v.
N1000v(config)# port-profile type vethernet rhel-pp
N1000v(config-port-prof)# switchport mode access
N1000v(config-port-prof)# switchport access vlan 711
N1000v(config-port-prof)# state enabled
N1000v(config-port-prof)# no shut
N1000v(config-port-prof)# vmware port-group
c.
Now change the virtual network binding of your test VM from the vSwitch to the 1000v port profile.
d.
Power up your test VM, and verify the interface on the 1000v.
N1000v(config)# show interface virtual
------------------------------------------------------------------------------Port
Adapter
Owner
Mod Host
------------------------------------------------------------------------------Veth1
Net Adapter 1 RHEL62-Test-1
3
10.85.49.218
N1000v(config)#
Assuming your networking & port profiles are setup correctly you should have connectivity to your Test VM.
4.
Now that we have basic connectivity, lets add the remaining uplinks to your Nested ESX VEM hosts.
Select the host Configuration Networking vSphere Distributed Switch tab Manage Physical Adapters
b.
Find the uplink port profile and click Add NIC. Add each of the 2 remaining NICs from each host.
c.
Verify the uplinks on the 1000v. Your uplink port profile should be configured for mac pinning in which case you should
see two new Port channels automatically created.
N1000v(config)# show int brief
-------------------------------------------------------------------------------Port
VRF
Status IP Address
Speed
MTU
-------------------------------------------------------------------------------mgmt0
-up
10.85.49.220
1000
1500
-------------------------------------------------------------------------------Ethernet
VLAN
Type Mode
Status Reason
Speed
Port
Interface
Ch #
-------------------------------------------------------------------------------Eth3/2
711
eth trunk up
none
1000
1
Eth3/3
711
eth trunk up
none
1000
1
Eth3/4
711
eth trunk up
none
1000
1
Eth4/2
711
eth trunk up
none
1000
2
Eth4/3
711
eth trunk up
none
1000
2
Eth4/4
711
eth trunk up
none
1000
2
-------------------------------------------------------------------------------Port-channel VLAN Type Mode
Status Reason
Speed Protocol
Interface
-------------------------------------------------------------------------------Po1
711
eth trunk up
none
a-1000(D) none
Po2
711
eth trunk up
none
a-1000(D) none
<snip>
5.
ii.
iii.
Find the VMs pinned Sub Group ID from the same ouput.
N1000v(config)# module vem 3 execute vemcmd show port
LTL
VSM Port Admin Link State PC-LTL SGID Vem Port Type
18
Eth3/2
UP
UP
FWD
305
1
vmnic1
19
Eth3/3
UP
UP
FWD
305
2
vmnic2
20
Eth3/4
UP
UP
FWD
305
3
vmnic3
49
Veth1
UP
UP
FWD
0
2 RHEL62-Test-1.eth0
305
Po1
UP
UP
FWD
0
<snip>
From this we can see that the Test VM is assigned to SGID 2, which will use vmnic2 for external
communication.
6.
7.
First determine what the SGID of vmnic1 is. From our previous output, this would be SGID 1.
b.
Configure either the port profile or the individual interface to prefer this Sub Group.
N1000v(config)# port-profile rhel-pp
N1000v(config-port-prof)# pinning id 1
c.
Explore & play with various features - ACLs, QoS, PVLANs, etc!