Tuesday, December 10, 2013

UCS Director : How to provision VM using UCS Director?



Introduction

UCS director provides comprehensive virtual infrastructure control, management and monitoring via single pane of glass. However, the entire set of documentation may be a bit overwhelming for a beginner to set up some test lab or test their own learning. 

So the intent of this document is to provide some assistance to build your knowledge or understand some basic pre-requisite tasks for VM provision process and later hope you can set up your own VM provisioning task or somewhat advance task using the UCS director (AKA Cloupia or CUIC). 


Pre-requisite
Virtual Account
- Make sure you have already associated with Virtual Account. This is vCenter association. 
pre-requisite-vcenter.png

Note : 
- When you create a Catalog, you will be asked to specify the "Cloud Name"
- Verify vCenter connection is good with "Test connectivity" from Administration > Virtual accounts

Network policy
- IP address range for VM provisioning . This required when you define Network policy.  


Procedure
In order to complete VM provisioning process, I have created 5 major steps and under each step I put other minor steps with  screen capture and a small explanation.One thing I should emphasis is some small steps can be very important. All the steps I described here is minimum requirement to complete the VM provisioning. 

Step1. Administration menu

The administrator can add groups and users to provide the access to CUIC. The administrator can assign different roles to users in the organisation. In here you will define self service portal user name and user group. This particular user will allow to create a service request for VM provisioning task via the service portal.

User Group tab
     + Add user group : Make sure to add contact email
0.user_group.png

Note : This "user group" will be called at Catalog creation.

User tab
     + Add user : Service type should be Service End-User
0.1.add_user.png

Note : This self portal user should be added into the user group.


Step2. Policies menu

UCS director provides a self-service portal where virtual machines are provisioned from a pool of assigned resources using predefined policies set by admin. So in the Policies menu you can define four policies in order to provision VMs later from the self service portal. These include Computing, Storage, Network and System Policies.


1- Catalog
Users can self-provision virtual machines (VMs) using predefined catalog items created by the system administrator. A Catalog item is created by the system administrator, defining certain parameters like Cloud Name, Policies, Cost Model and Group Name etc., to which the VM will be bound.

• Select Policies > Catalogs
• Click on Add.

     + catalog name, catalog type, Group, Cloud name, Image
     + Application detail such as OS type
     + user credential
     + customisation including cost 

Note : image template must be available in vCenter beforehand. Otherwise, you will not see the Image when you create the Catalog.
1.1.catalog.png


Specify OS but I did not specify any application here.
1.3.catalog_custom.png

You can specify the cost computation or other customisation action here 
1.3.catalog_custom.png


Verify Catalog name, Cloud, Image, User Group.
1.4.catalog_summary.png


2- Computing Policy : VMware Computing Policy
 + In here we define policy name, cloud name, host node, ESX type, Min condition, resizing option (vCPUs, memory). Fairly self explanatory.
     • Select Policies > Computing > VMware Computing Policy
     • Click Add
    
Note : We will associate "Cloud Name" from the pre-requisite task.
2.1.compute_pol.png



3- Network Policy
The Network Policy defines resources like network settings like DHCP or Static IP and option to add multiple vNICs for VMs provisioned using this policy.
     • Select Policies > Network > VMware Network Policy tab
     • Click Add.

Note :
- remember IP address range in the pre-requisite task. 
- If you decide to use "Static IP Pool", this IP address pool will be assigned to VM when the VM provision is performed. 
3.1.network_pol.png


4- Service Delivery policy (aka System Policy)
This is somewhat confusing. It is because in the configuration guide, it is often referred as System Policy and sometimes referred as Service delivery policy. They are basically the same thing.

The System Policy defines the system specific information like Template to be used, Time Zone, OS specific information etc. So if you browse some other menu, this might shows as "System policy". They are basically the same thing.
• Select Policies > Service Delivery > VMware System Policy tab
• Click Add.
     +  In here we define VM template name, Hostname policy, timezone, fns suffix, vm image type
4.1.service_delivery_pol.png


5- Storage policy
In this exercise we will skip this storage policy.
     • Select Policies > Storage > VMware Storage Policy tab
     • Click Add.



Step 3. VDC 
A Virtual Data Center is an environment that combines virtual resources, operational details, rules and policies to manage specific group requirements. So this task will be found under the Policies menu.
One important configuration task is in here you will define "Approval User" which is specific to a vDC. So later this user will access to the self service portal to do the approval task while doing the VM provisioning process.

• Select Policies > Virtual Data Centers.
• define a following : 
     + Group, cloud name
     + approval user name and contact detail (Make sure to note down the username for the approval. This user will be used when you access to the service portal for the approval process)
     + policies : system policy (service delivery policy), compute policy, network policy, storage policy + cost model
     + End user self-service options (VM power mgmt, resizing, deletion, etc)
5.1vdc.png


During VDC creation you will associate all the policies you created in earlier steps.
5.2.add_vdc.png

Note : later you can do the test and see if the self service portal user can perform the End user self-service options.


Step 4. Organization

1. Create Service Request

Either admin user or self portal user can perform this task. 

1.1. Self Portal User
Login as Service End-User 
Service tab > Create Request 
6.1.1.self_portal_user.png

1.2. Catalog selection (make sure to select a right catalog. If not, you cannot see the SR for approval later)
6.1.2.select_Catalog.png

1.3. Select VDC and provision type
6.1.3.select_vdc.png
 

1.4. Custom specification such as CPU core and memory
6.1.4.custom_specification.png

1.5. Verify summary
6.1.5.custom_workflow_summary.png



2. Login to Admin GUI as Admin user

2.1. Verify Service Request Submitted
6.1.6.SR_submit.png

2.2. Service Request Status 
6.1.7.SR_status.png


Step 5. Self Service Portal

1. Service Request approval
Go back to Self Service Portal to perform the approval process. You should login as user having approval responsibility
Note : We define this user in Administration and associate this responsibility when we create the VDC. 

     + Organization > Service Request tab
7.0.approval.png

     + My approval : check the SR and click Approval button.
7.1.approval.png

7.2.approval.png

7.3.approval_Status.png
 
   + Provision
7.4.provision.png


2. Check your email to see if you get the provisioning email.
7.5.email_notification.png

3. Go back to Service portal and check the log to understand how this is proceeding.
7.6.SR_log.png


4. Looks good. Go back to the Service request and verify the request status.
7.7.SR_complete.png

5. You will be also notified when it completes as below :
7.8.email_provision_complte.png



Result
Verify from vCenter and UCS director Admin GUI

1. Login to the vCenter and verify VM is provisioned properly as per the policy definition.
 
- We can see the VM creation completed successfully at vCenter.
8.0.vCenter.png

2. at CUIC we can see VM status is power on
8.1.cuic_vm_status.png

Wednesday, December 4, 2013

UCS and VMware : How to determine fnic and enic version?

Question


How do I determine if fnic driver and enic I installed are compatible with the OS and platform?

Answer

In order to use Cisco UCS compatibility matrix, you need to prepare a following information first :

Step 1 UCSM manager 

UCS release : 
Server model : 
Adapter :

Step 2 ESXi host

ssh to the ESXi host and run "vmware -vl" cmd to check the ESXi version.
Next check fnic and enid version.

vmkload_mod -s fnic
fnic.png

ethtool -i vmnic1
enic.png


Step3. Compatibility Matrix 

Once we have above, we are good to go to the compatibility matrix below and verify if we are using supported firmware.

http://www.cisco.com/web/techdoc/ucs/interoperability/matrix/matrix.html

compatibility_matrix.png

In above example, the fnic driver version we checked with "vmkload_mod -s fnic" is 1.5.0.8 and this is in the supported matrix.