Brian's Virtually Useful Blog

How to upgrade Cisco 9124 NX-OS

August 19, 2010

This is pretty simple, but for some reason hard to google4.

1) download the latest Kickstart and System image from cisco.com

2) tftp, or whatever method you like get the image onto the Cisco

3) Run this on cisco console in “config” mode

a) boot kickstart bootflash:/m9100-s2ek9-kickstart-mz.5.0.1a.bin

b) boot system bootflash:/m9100-s2ek9-mz.5.0.1a.bin

4) Save your Config, Reboot the Switch..and your done.

NOTES: 

You probably don’t want to skip versions, i.e. 3-5 directly. 

You can probabaly only hold 2 versions at a time, so if your on 3, upload 4, upgrade to 4, delete 3, then upload 5, update to 5, rinse, wash, repeat.

Lab Manager 4 datastore thresholds

July 14, 2010

I must like to learn things the hard way, like for instance when I run out of space on a Lab Manager LUN.  The default is 5GB of free space for a “yellow” alert, and 3GB for a “red” alert.  For my application, we burn through 50GB in a single deployment (yes even with linked clones) because we spin up a large number of machines simultaneously.  These alerts are configured on a PER LUN basis and not as a global setting (unfortunately).  So you have to go into Resources/Datastores/Lun Properties, then set your limits higher.  You must do that for every LUN you want to be alerted on.

Install ESX 4 host certificate from windows CA

June 18, 2010

I used this article and was able to get the certificate generated and installed
http://vm-help.com/esx/esx3i/change_name_and_cert.php

But after reboot I can SSH to my ESX host, but the certificate is not working the webpage is dead and I can’t add the ESX host back to vCenter

I found the problem, at the end of the article it has you put the key and cert in the wrong place

cp rui.key /host/ssl_key
cp esx.cer /host/ssl_cert

but that doesn't work. 

you need to do this instead:
cp rui.key /etc/vmware/ssl/
cp esx.cer /etc/vmware/ssl/

then

mv esx.cer rui.crt (must be renamed)

How to add Media Store to Lab Manager Organization

June 4, 2010

Often the media store is not available and it appears you can’t add a media store to an organizaiton.  To fix this make sure you go into Organizations/OrgName Properties.  Unless you add the Media Datastore to the “Datastores” it won’t let you add the Media Store to the “Media Stores” section.

Rename a Lab Manager 4 server

June 4, 2010

1) Disable Deployments to that server by going to Resources/Hosts click disable.

2) Migrate live VM’s to other blades with access to same datastores by going to vCenter, choose the server, Virtual Machines tab.  Select everything but the VMwareLM-ServiceVM and migrate to another host.  Wait for this step to complete.

3) Unprepare the host in LabManager, wait for complete

4) In vC Put the host in Maintenance Mode, wait for complete, then Disconnect, then Remove from the cluster.

5) SSH or local access to ESX host. 

Modify

/etc/hosts

/etc/sysconfig/network

Then run esxcfg-advcfg –s <HostName> /Misc/Hostname

Reboot

Wait for host to come back online

6) Add host back to vC cluster

7) Apply Host Profiles if applicable (you’ll need this for vDistributed Switches) Steps Below:

a) attach profile to host

b) check compliance

c) apply profile

d) Exit server from Maintenance Mode

8) Prepare host inside of LBM

Your done, but just to make sure everything worked as planned, migrate a VM from another host to this host, if that works, test some LBM Deployments and see if any deploy to this host.

Difficulty putting Lab Manager ESX host into maintenance mode.

June 1, 2010

The job gets to 2% and hangs, you have a VM on that blade called 000000-VMwareLM-ServiceVM-x00-x00 without VMware tools installed. 

The simple version is that this VM is there to help with “host spanning networks”.  So inside the Lab Manager UI Resources/Hosts, you must go into properties of the host and disabled the checkbox for “Host Spanning Enabled”, then the VM will power down and you will be able to enter maintenance mode gracefully.