Citrix XenApp

Your Journey towards cloud.

Virtualization Picking up Speed

Are your Skills keeping up? Skill up. Be Relevant

Are you a System Admin

Learn Citrix XenApp, Its future.

Citrix XenApp

Industry-leading virtualization platform for building cloud.

Cloud Computing in Demand

Learn how to build cloud on Citrix XenApp.

Thursday, 26 April 2012

Large VM crashes during snapshot commit

Snapshots can be your friend but they can most certainly also make your life miserable. The other day we had a rather large VM (with 20 GB mem, 8 vCPUs and 28 TB storage divided on 22 .vmdk's) that crashed during a snapshot commit. The error stated: "Performing disk cleanup. Cannot power off." The snapshot had been taken while the VM was powered off and only a few changes had been made to the VM before the snapshot was committed.


After the crash, the VM would not power on. The error stated: "Reason: Cannot allocate memory" and in the error  description (see screendump below) there's an indication of disk a lock or disk error. Fortunately, the VM could be started from the service console (ESX 4.1 classic) with 'vmware-cmd'.

After boot, vCenter stated that there was no snapshots on the VM. However, 22 delta files on a single LUN was telling otherwise.

A normal procedure to do cleanup is to power off VM and clone it. However, with 28 TB storage in the VM, this was not an option.



Instead, the following did the trick: Log on to the service console, change directory to the folder where the .vmx file for the VM resides, take a new snapshot and then do a remove all snapshots (see this KB article for more info). This removes the new snapshot as well as the 'defect' snapshot.
To see if any snapshots exist (that will probably not be the case): 
vmware-cmd vmname.vmx hassnapshot

To take new snapshot (with no quiesce and no memory, see this KB article for details)

vmware-cmd vmname.vmx createsnapshot snapshot-name description 0 0


As you can see in screen dump below at first I tried to run the command without the two boolean arguments that relates to QuiesceFilesystem and IncludeMemory. 



To remove all snapshots:

 vmware-cmd vmname.vmx removesnapshots

In the screendump above the removesnapshots command returns an error code '1' which means that all is well and snapshots are gone.

Wednesday, 25 April 2012

VMware: How to check HBA firmware version without rebooting ESX host

I need to find out witch firmware version is running on my HBA without rebooting the ESX host.. I thought this was possible by GUI but couldn’t find it, so I decided to check this by console. Give the following commands:
Navigate to:
- cd proc/scsi/qla or lpfc820
- ls –lia
To view the HBA information:
- cat 6
- cat 7
Result:



Tuesday, 24 April 2012

Hide The Username On The Start Menu

Use this trick to hide the Username that is usually displayed in theXP start menu (not the Classic Start Menu, where the username isnot displayed).
 
Navigate to:
 
HCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
And to:HLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

Change the DWORD Value NoUserNameInStartMenu to
 1 to hide the username display. 
 The default is 0.

Monday, 23 April 2012

How To Add Your Own Windows Tips

Are you sick of seeing the same tips again and again when you first logon to Windows? Now you can change them to whatever you want, whether it's quotes, jokes or a to-do list, anything is possible.

Open your registry and find the key below.


HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows\ CurrentVersion\ Explorer\ Tips


Create a new string valued named by incrementing the existing value names and set it to the required tip text.


eg. 32 - Dont forget to Visit /
http://techsohail.blogspot.in

Sunday, 22 April 2012

Disable Desktop Cleanup Wizard

By default Windows will run the Desktop Cleanup Wizard every 60 days to remove unused desktop items and shortcuts. 
This setting will disable it from running automatically.
 

Navigate the following key:
HKEY_CURRENT_USERS\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz 

and create Dword 
value NoRun 
and give 1 to disable it.

Saturday, 21 April 2012

Enable Advanced File System and Sharing Security

This setting is used to enable the ability to control advanced NTFS permissions on local and shared files.
Navigate the following key:
HKEY_CURRENT_USERS\SYSTEM\CurrentControlSet\Control\Lsa
and create Dword value ForceGuest and give the value 1.

Friday, 20 April 2012

Disable the Ability to Customize Toolbars

By right clicking on a toolbar you are usually given the option to Customize, which allows you to change which functions are available from the toolbar. This tweak allows you to disable that function.
Navigate the following key:
HKEY_CURRENT_USERS\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer and create Dword value NoToolbarCustomize and give the value 1.