2015 04 20 22 05 11

Deploy a Cisco UCS system – Part 2 – from scratch for VMware ESXi

In my first post, we got as far as setting up the management interface of the Cisco UCS Platform. In this second part, I’ll be covering;

  • Setting up the connectivity
  • Configuring the VLAN connectivity
  • Setting up Port Channels
  • Setting up the Appliance connectivity
  • Configuring LAN policies
  • Configuring VNIC Templates
  • Creating Server Policies
  • Building a Service Profile Template
  • Deploying a Service Profile from a Template
Setting up the connectivity

Log into your Cisco UCS Chassis.

  1. Select Equipment view, and then your first fabric interconnect
  2. Ensure that ethernet mode is set to “End Host” (you can read more about the options here).
  3. On the left hand side expand your fabric interconnect to see all the ports
  4. Select the ports that are connected from the FI to the Chassis and select “Configure as Server Port”
  5. Select the ports connected from the FI to the Nimble (or any other iSCSI SAN) and select “Configure as Appliance Port”
  6. Select the ports connected from the FI to the LAN Switches and select “Configure as Uplink Port”

Below you can see screenshots of how I’ve setup my UCS FI’s, the config for the port allocation is the same on both FI’s

2015-05-19_16-11-552015-05-19_16-16-59 2015-05-19_16-21-42

Configuring the VLAN connectivity

Click LAN on the top left tab, then Expand LAN > LAN Cloud. You will see your Fabric’s as well as other options. For my environment, we are using VLAN 1 (default),  so a very uncomplex setup. However you can assign VLAN’s from your external switches to be accessible into the blades here. You are able to create VLAN’s that are shared across both Fabric Interconnects, or separate for both FIs. Below you can see the different options. 2015-05-19_16-39-26 2015-05-19_16-40-24 2015-05-19_16-40-45

Above here, is where I’ve select for the VLAN to be present only on Fabric A, so you know see it appear under the Fabric Interconnect drop down.

Setting up Port Channels

Setting up port channels is as simple as selecting the ports available (the ones you configured as LAN ports earlier). On your switch side, you need to configure the ports in LACP.

2015-05-19_16-47-39 2015-05-19_16-48-19

Setting up the Appliance connectivity

As the FIs are physically separate from one another, the Nimble SAN which I have used in this setup needs to have its Controller connected to both FI’s, these connections need to be on separate IP addressing schemes. Therefore similar to above, I’ve setup a separate VLAN per FI. Expand each interface under the FIs and set them to be access ports and on the VLAN you have created.



The settings for Flow Control and iSCSI are configured under the Policies section’s 2015-05-19_17-08-28

The settings implemented for this environment are from the best practice guide when setting up a Nimble device with Cisco UCS.


You can simply select these settings on each interface under the appliance heading.

 Configuring LAN Policies

Here we are setting up IP address pools for the KVM of blades, MAC addresses for virtual NIC adapters mapped to blade servers, and QoS settings. There is further options that I implore you to explore, such as Network Control Policies. So first off, lets create the IP address pool, under the LAN navigation pane;

  • Go to the bottom under Pools > Root > IP Pools.
  • Right click on IP Pools and select “Create IP Pool”


  • Input the name for your IP pool
  • Add your information about your IP address range

Note: The assignment order selection is important, if you select default, IP’s from the list will be randomly distributed. When selecting your IP addresses, the From box is where you want your range to start, and the Size will then increment that, so you could have, with size of 10, giving you to 2015-06-04_21-53-21_01 2015-06-04_21-53-22  2015-06-04_21-53-22_02

  • You’ll receive a message to say the task was successful


Looking in the main window, you can see a summary of the IP addresses available and assigned. And by selecting individual pools, you can see how these are assigned. Below in the second screenshot, you can see a gap in the middle of the pool, this is due to selecting default assignment order. 2015-06-04_21-53-23_01 2015-06-04_21-53-24

Next we need to configure MAC Address pools for any virtual network card added to the blade servers. You will more than likely opt to have adapter pairs, one adapter per fabric interconnect. So it’s considered best practise to give yourself a way of identifying which adapter is linked to which fabric interconnect.

  • Right click on MAC Pool
  • Create Mac Pool
  • Give the pool a name (look out for the assignment setting)
  • Configure your MAC address range, the default Cisco Allocation is 00:25:B5
    • Notice how I’ve set this one for fabric A, by changing part of the MAC address for 1A

When setting up the VNIC templates, you’ll choose which Fabric they connect to and which MAC pool they get their address from.

2015-06-04_22-15-372015-06-04_22-16-03 2015-06-04_22-16-37

Now for the QoS Settings, these for me, were setup according to the best practices for using iSCSI Nimble configuration in the environment.

  • To to LAN Cloud and QoS System Class, to set up the global QoS Settings
    • Here I enabled and configured the Platinum Policy
    • Never drop packets and 9000 MTU Size


  • Go down the Policies level to create QoS Policies tobeappliedtoVNICs
    • Right Click > Create QoS Policy, choose your Name and Priority

2015-06-06_09-23-212015-06-06_09-24-07 In my environment, I create 3 policies

  • ESXi Management Traffic
  • Virtual Machine Port Group Traffic
  • iSCSI VMKernel Traffic

2015-06-06_09-24-192015-06-06_09-24-27 2015-06-06_09-24-34

Finally lets create some Network Control Policies to be used for each type of traffic as well.

  • Right Click Network Control Policies > Create Network Control Policy
  • Select your settings and give it a name/description

2015-06-06_09-37-02 2015-06-06_09-37-54

Once again, I created three policies as above,

  • ESXi Mgmt Traffic
  • VM Port Group Traffic
  • iSCSI VMKernel Traffic

2015-06-06_09-44-01 2015-06-06_09-44-09 2015-06-06_09-44-54

Configuring VNIC Templates

Here we are setting up the basis structure of the virtual NICs that will be added to each blade server. As this is going to be a VMware environment, I have named my templates similar to what I expect to see within VMware. If you were configuring for Windows hosts, then you may opt for a method that supports your configuration better. For this VMware based environment, I created 6 vmnics, 3 per Fabric Interconnect.

  • ESXi Management Traffic and vMotion
  • Virtual Machine Traffic
  • iSCSI Traffic

Kind of mimicking what you’d expect in a rack mount server.

  • Right click on VNIC Template and Create VNIC Template
  • Input your settings

In the below example, it’s my first vmnic, so I’m going to be using that as management, this is set to only use Fabric A, therefore the MAC address pool is the one I’ve created for using Fabric A, as mentioned earlier in this post. The MTU size set here needs to match the MTU size in the QoS Policy selected.

2015-06-06_09-52-36 2015-06-06_09-58-06

My VNIC templates are created as;

  • vmnic0 – ESXi Management – Fabric A
  • vmnic1 – VM Traffic – Fabric A
  • vmnic2 – iSCSI Traffic – Fabric A
  • vmnic3 – ESXi Management – Fabric B
  • vmnic4 – VM Traffic – Fabric B
  • vmnic5 – iSCSI Traffic Fabric B

Below are the screenshots of each.

2015-06-06_10-04-34 2015-06-06_10-04-44 2015-06-06_10-04-53 2015-06-06_10-05-03 2015-06-06_10-05-13 2015-06-06_10-05-23

Creating Server Policies

Head over to the Server Tab on the left hand side, and first we need to set up the policies that will be selected in the Server Profile Template.

  • Create a BIOS Policy for your ESXi Host > Each setting will be platform default


  • Create a Boot Order Policy, in my environment, we will be booting from SD Cards, but I’ve added CD devices as well to make life easier when building the hosts.
    • You can select the different devices to add from the left hand drop downs


  • Create a Host Firmware Package, here I’ve selected the simple option and using the latest firmware available on the system.


  • Create an IPMI policy if needed, and a user within that policy


  • Create a Local Disk Config Policy, here I will be using SDCards, so enable the flex flash states, the mode is set to “any config” as we are not RAIDing disk drives


  • Create a Maintenance Policy, this is important and not to be missed out, as it controls what should happen when you make changes to a blade/rack server. Basically with this setting a user should acknowledge any changes and therefore reboots needed.


Building a Service Profile Template

Ok now we have the policies created that we need, lets setup our Server Profile Template

  • Server tab > Right click Service Profile Templates > Create Service Profile Template


  • Select a Name and select UUID Pool to choose from
  • Next up is Networking, and this is whereweusetheVNIC templates
    • Select Expert for configuring Network Connectivity
    • Then click add

2015-06-06_11-58-55 2015-06-06_12-01-18 2015-06-06_12-02-41

  • A separate dialog box will appear for the network adapter, I have selected to use the template I created earlier, but you can notice if you do not select this option, then all the setting available as the same as those in the template.

2015-06-06_12-04-34 2015-06-06_12-05-03

  • I have selected the adapter policy as the VMware pre-defined policy
  • Repeat until you have all your necessary VNICs added


  • Click next to configure the storage
  • Select your storage policy, (settings displayed for you on the right hand side once selected)
    • Set the SAN connectivity to no HBAs

Note: If you are looking to configure Fibre Channel, please see this blog post. 2015-06-06_12-11-30

  • There will be no Zoning to configure, as there is no Fibre Channel in use. So just click next.


  • Next up, you can configure the VNIC order as they will appear within the server OS, so you can correct any placement needed.


  • I havent created a virtual media policy, as the only configurable option is for encrypting the media communication. But you can set it here if needed.


  • Select your boot order policy


  • Select the maintenance policy


  • Select the server pool, I have left this to assign later, to allow for granular control of which servers will have this profile applied. Also you set the firmware policy here as well.


  • On the final page set the last of the operational policies, such as BIOS Config, Management IP Addresses, KVM settings and so forth

2015-06-06_12-27-10 2015-06-06_12-27-24   When you click finish you’ll be presented with a successful dialog box 2015-06-06_12-29-39

Deploying a Service Profile from a Template

We now need to deploy the actual Service Profile, which will then be assigned to a set number of servers to give them their “personality”. These Service Profiles will all have the same settings as the template, but then can be changed individually as needed. There is nothing stopping you from creating all your Service Profiles from scratch, but this can lead to human error and lack of consistency. I have opted for creating a service profile per blade server as the environment is small, and any changes needed can be made to one blade server first and not affect the others. For larger solutions, you would have multiple servers assigned to one service profile.

  • Click on the Servers tab on the left hand side > find your Service Template > Right click and deploy Service Profile from template
  • Set your name, the starting number to be appended and how many profiles to create
    • So for my output I chose the name “ESX-0”, starting number 1, and 3 instances
    • This gave me three copies of the profile

2015-06-06_12-31-22 2015-06-06_12-32-23 2015-06-06_12-33-10

We now need to associate these service profiles with the blade servers or pre-provision the empty slots ready for the hardware to be inserted into the chassis

  • Right click your Service Profile > Change Service Profile Association
    • If the profile is already associated you will receive a warning as in the screenshot
  • Select whether to assign to a server or pre-provision an empty slot
    • Select the server/s or slots

2015-06-06_12-39-20 2015-06-06_12-39-20_01 2015-06-06_12-39-35

Head over to part 3, which covers configuring the SDCards for FlexFlash and deploying ESXi.



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.