Macro 32 Ramblings

Mind Archive

iSCSI Boot from SAN on Cisco UCS

iSCSI Boot from SAN on Cisco UCS

Last week Cisco released the new 2.0 code for Cisco UCS.  I had some time to play with the update and tried out the new iSCSI Boot from SAN support feature to see how it works.  Here are some of the steps I used to get a VMware ESXi 5.0 host up and running via iSCSI storage on UCS.

Service Profile and vNIC Configuration

1)      In the UCSM, create a Service Profile.  This profile will be created as usual(except for vHBAs) but make sure that you create 2 vNICs that will be reserved for iSCSI traffic.  UCS will use these vNICs as “Overlay NICs” that will provide the VLAN connectivity details for the iSCSI vNICs in the Service Profile.
2)      Configure the VLANs on the Overlay vNICs by selecting the vNIC and clicking the Modify VLANs link in the working pane.
3)      In the Modify VLANs window, Select your VLAN for iSCSI and select the “Native VLAN” radial button for the VLAN.  Making this the native VLAN for the Overlay vNICs will pass the frames for the iSCSI VLAN untagged and ease the configuration and installation of the OS.  Click OK, and then click the Save Changes button in the working pane for the vNIC.  Repeat these steps for the 2nd vNIC that will be used as an Overlay vNIC for iSCSI.
Create Boot Policy for iSCSI
1)      Highlight the Service Profile in the left pane, click the Boot Order tab in the working pane and click “Modify Boot Policy”.
2)      In the Modify Boot Policy Window Click Create Boot Policy.
3)      Enter the Boot Policy name and Description, and check the “Enforce vNIC/vHBA/iSCSI name” box.
4)      Add a CD-ROM device.
5)      Expand iSCSI vNICs, Click Add iSCSI Boot, then enter the iSCSI vNIC name and click Ok.  Repeat for the 2nd iSCSI vNIC.  Click OK.
Creating the iSCSI vNICs
1)      Click the + sign next to the Service Profile, select “iSCSI vNICs” then click the Add button at the bottom of the working pane.  Enter the name for the iSCSI vNIC, select the first Overlay vNIC you created earlier, the iSCSI Adapter Policy if necessary and then select the VLAN for iSCSI traffic(or leave at default) then click ok.  Repeat for the 2ndiSCSI vNIC.Note:  Do not configure the MAC Address Assignment for Palo cards

Configuring iSCSI Boot Parameters
1)      Select the Service Profile in the left pane click the Select the Boot Order in the working pane and then click the Modify Boot Policy link.
2)      Select the preconfigured Boot Policy that you have created to boot from iSCSI from the drop down then click OK.
3)      Back in the Boot Order tab, Select the first iSCSI object then click the Set ISCSI Boot Parameters button.
4)      Enter the Initiator Name that you have created for this server
Note:  The UCSM will not generate an iqn for the server/service profile.  While it may not be necessary, I recommend creating iqns similar to the iqn naming standard.  Make sure that the iqn for each server is unique!
5)      In the Initiator Address section, Select Static from the drop down then enter the IP Address information for this specific iSCSI vNIC.
6)      Next select iSCSI Target Interface, then click the + sign.
7)      In the Create iCSCI Target window, enter the iqn for the target volume you created earlier in LeftHand CMC.  Enter the IP address, and make sure the that LUN ID is zero.  Click OK, Then Click OK again.
8)      Repeat steps 3 through 7 of this section for the 2nd iSCSI vNIC.
Booting the Server
1)      With the iSCSI and Overlay vNICs configured and the Boot Parameters complete, you are now ready to boot the server
2)      Apply the Service Profile to a supported blade(Blade must be using a Palo Interface Card for this guide).
3)      Once the Service Profile has completed the association process, Boot the server
4)      When the Cisco splash screen appears, click the Esc key to see the devices load prompts during boot.
5)      When the Cisco VIC loads, make sure that the screen displays the information for your iSCSI volume.
6)      When the server prompts for boot media, connect to the ISO file for VMware ESXi 5.0 and follow the installation prompts to complete the installation.  You should see the configured Lefthand volume when prompted for the installation location.
7)      Select the drive and continue the installation.
8)      Reboot the server once the installation is complete.
From:  http://haroldsimon.blogspot.com/2011/09/iscsi-boot-from-san-on-cisco-ucs.html