VI Toolkit Extensions

Today I tested the VI Toolkit extensions.  The VI Toolkit extensions are cmdlets that makes your life easier. Here are some functions of what the cmdlets can do:

6a00d8341c328153ef01053565af86970b-800wi

The VI toolkit extensions require PowerShell V2 CTP 2 and the VI Toolkit. The VI toolkit extension can be downloaded @ http://www.codeplex.com/vitoolkitextensions

Example:

list all VMs by name and list the size of the snapshots

– Open VI-toolkit

– Connect-VIserver VCservername

– To add the extension, use the following command:

Add-Module “D:\Scripts\viToolkitExtensions.psm1”

Get-VM | Get-TkeSnapshotExtended | select Name, VM, SizeMB

Output:

image

The VMware VirtualCenter Server service terminated unexpectedly

After rebooting the VMware VirtualCenter (VC) server, i was unable to logon using the VI-client in VC. In the Windows event log the following  Error is listed:

Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7031
Date:  25-9-2008
Time:  13:39:58
User:  N/A
Computer: VC1
Description:
The VMware VirtualCenter Server service terminated unexpectedly.  It has done this 1 time(s).  The following corrective action will be taken in 300000 milliseconds: Restart the service.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

It seems that the VC server service is started before the SQL 2005 service is started. The solution is the delay the VirtualCenter service from starting till the Microsoft SQL 2005 service is started. Microsoft has a KB article “How to delay loading of specific services”.

I did the following:

Open the regedit.exe and browse to the HKLM\SYSTEM\CurrentControlSet\Services\MSSQLSERVER (for MS SQL 2005 standard). So you know the name of the service.

image

Browse to HKLM\SYSTEM\CurrentControlSet\Services\vpxd and open the DependOnService property

image

Add the name MSSQLSERVER to this multi-string. Ensure that the last line is empty.

image

Close the Registry Editor and restart the VirtualCenter server and test if it VMware VirtualCenter service starts.

[ad#verticaal]

Choosing between SQL 2005 Express or SQL standard/Enterprise for the VC database

VMware VirtualCenter uses standard the Micrososft SQL Express 2005 database. The statement of VMware is:

Microsoft SQL Server 2005 Express is intended to be used for small deployments of up to 5 hosts and 50 virtual machines

Microsoft SQL 2005 Expresss supports 1 CPU, 1 GB of RAM and a maximum database size of 4 GB.

There is a nice SQL Server 2005 Features Comparison page table available between Microsoft SQL Express, Workgroup, Standard and Enterprise link. Thanks ablej for pointing.