Fix the ESXi not responding problem

Situation:

A “not responding” are displayed after all esxi hypervisor shown in vsphere client which linked to the vcenter. Right click any of the esxi and select “Connect” will bring it back. But after a short while, no more than 90 secs, it will be back to not responding status.

Solution:

1 In vShpere client, open menu “Administration” — “vCenter Server Settings”, click “Runtime Settings” from the left panel, make sure that all IP and server name are correct. If not, re-enter it. Close and reopen your vSphere client — This is important.

2 Try to ping from your vCenter, not the vSphere client, to each of esxi hypervisors.

3 If you are using Windows Server 2008/R2 or any OS with firewall for vCenter, you need to add or change some firewall rules:

change:

Enable the “File and Printer Sharing (Echo Request – ICMPv4-In)”

Enable the “File and Printer Sharing (Echo Request – ICMPv6-In)”

Add a rule to allow TCP 903 income for ESXi heartbeat.

Add a rule to allow UDP 902 income for ESXi heartbeat.

4 Try to reconnect all ESXi hypervisors.

 

If the problem still exists, you have to google it again.

Windows Live Messenger Error 8100030d

When you get this error, you may need to delete your cache of WLM.

For XP users,?delete these folders:

  • C:\Documents and Settings\Your Windows logon name\Contacts\Your Messenger e-mail address
  • C:\Documents and Settings\Your Windows logon name\Local Settings\Application Data\Microsoft\Windows Live Contacts\Your Messenger email address

For Vista/Win7 users, delete these folders:

  • C:\Users\Your Windows logon name\Contacts\Your Messenger e-mail address
  • C:\Users\Your Windows logon name\AppData\Local\Microsoft\Windows Live Contacts\Your Messenger e-mail address

You may need to shutdown your WLM completely and some services like wlcomm.exe by Task Manager.

Remove vSphere snapshot automatically

From version 7 of VMware workstation, a new function named AutoProtect is added, which makes it easier to create and remove snapshots automatically. Unfortunately, vSphere doesn’t have some function like that.

In my situation, I need to protect some crucial services, like configuration management database, by creating snapshots, which can be done by daily scheduled tasks. But I still need to delete old snapshots manually which was created 5 days ago. In another word, I need to keep only about 5 latest snapshots for each specified VM.

After some research, I find a tool named PowerCLI. I made some PowerShell scripts to delete snapshots.

Connect-VIServer localhost
$i = new-object System.Int32
$a = Get-VM "CM Database" | get-snapshot -name: 'Daily Backup'
$i = 0
while ($a.Count-$i -gt 5) {$a[$i] | remove-snapshot -confirm: $false; $i++;}
$a = Get-VM "SVN" | get-snapshot -name: 'Daily Backup'
$i = 0
while ($a.Count-$i -gt 5) {$a[$i] | remove-snapshot -confirm: $false; $i++;}
Disconnect-VIServer -confirm: $false

By running this script in PowerCLI environment, the snapshots of vm “CM Database” and “SVN” with a name “Daily Backup” will be deleted from older to newer, until only 5 left — to keep the 5 latest snapshots. All snapshots with other names will not be affected.

I saved this script to file C:\RemoveDailySnapshot.ps1. Create a batch file to run this script:

C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -psc "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -c ". \"C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-VIToolkitEnvironment.ps1\";C:\RemoveDailySnapshot.ps1"

Update: code above is for vSphere 4.x; below is for vSphere 5.0.

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -psc "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -c ". \"C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1\";C:\RemoveDailySnapshot.ps1"

(You may need to change the path string in this code above.)
Finally, by adding this batch file as a Windows schedule task, the AutoProtect for vSphere has been reached.

I still wonder that why this useful function is not included in vSphere?

64bit world, without windows phone sync

From Office 2010, native x64 version is included. The funny thing is, if you install an x64 version of Outlook into your windows, no matter windows xp (x64), vista (x64) or win7(x64), you just cannot synchronize the data between Outlook and your windows phones.

It seems that ActiveSync(xp) and Windows Mobile Device Center(vista and win7) cannot recognize the x64 version of Outlook. And, the x64 version Outlook cannot be installed on the operation system which contains any x86 office components.

If you need to sync your windows phones with outlook, you have to install the 32bit office.

Virus remove manually (00333.cn)

There is a virus appeared recently which set your homepage of IE to 00333.cn frequently.

Now I provide a way to get you out of the trap. (Windows XP/2003/2003 R2/Vista/2008/7/2008 R2)

1 Navigate to the system32 folder of your windows system.
2 Get all files in that folder which like “mshtml??.dll”. You may find several files.
3 Check these files one by one. You can just submit file to?virustotal to check. Remember the file name which contains a virus.
4 Kill explorer.exe process by using Task Manager or some other tool.
5 Unregister that virus by running command: “regsvr32.dll /u mshtmlXX.dll” (without quote mark, and the file name is the same as the found one in step 3.)
6 Delete mshtmlXX.dll. If you cannot delete it (access denied), you can move that file into another folder (like the root of the driver which contains your operation system).
7 Restart computer.
8 Delete the file from your target folder if you cannot delete it in step 6.

Good luck.

BTW:
By the register information of 00333.cn (provided by www.miibeian.gov.cn), the owner of that site named Liu Yan (zh: 柳严). The register number is Shanghai-ICP-Reg-09032544(zh: ICP备09032544号).
This virus is coded by VB and activated by the context menu of explorer.exe. I dunno how my computer was infected.

Need we choose the Ultimate version of Windows 7 ?

Windows 7 Ultimate has all functions but it costs much expensive. In many cases, the additional functions are not so useful for us, or we can use some cheaper softwares instead.

Microsoft told us that, if you choose Professional version instead of Ultimate, you will lose these functions:

1 Help protect data on your PC and portable storage devices against loss or theft with BitLocker. (OK, if I really need this, why not to purchase another software instead )

2 Work in the language of your choice and switch between any of 35 languages. (Great, but not needed, at least for me.)

If you choose Home Premium version instead of the Professional one, several functions more are lost:

1 Run many Windows XP productivity programs in Windows XP Mode. (Yes, you may have known that is not so easy for use and cost lots of resources.)

2 Connect to company networks easily and more securely with Domain Join. (I think it’s not necessary at all for a home user.)

3 Recover your data easily with automatic backup to your home and business network. (It’s not the system restore, but a standalone backup tool. And, this is the only one function, backing up to a network destination. You still can backup to your hard disks and removable devices without it.)

And, with the much cheaper version, Home Premium:

Windows 7 Home Premium makes it easy to create a home network and share all of your favorite photos, videos, and music. You can even watch, pause, rewind, and record TV. Get the best entertainment experience with Windows 7 Home Premium.

  • Simplify your PC with new navigation features like Aero ShakeJump Lists, and Snap.
  • Customize Windows to look and feel the way you like by changing themes and taskbar programs.
  • Setting up a home network and connecting to printers and devices is easier than ever.
  • Windows 7 Home Premium supports the latest hardware and software.
  • Designed to make your PC sleep and resume quicker.
  • Takes full advantage of 64-bit PC hardware and memory.
  • Connecting to wireless networks is fast and easy.
  • Watch, pause, rewind, and record TV with Windows Media Center.
  • Watch your favorite DVD movies.
  • Includes integrated video and Dolby audio codecs.

Check it here: http://windows.microsoft.com/en-US/windows7/products/compare-editions