Sunday, September 9, 2012

Cmd addnode failed for primary node internal aam error agent could not start

cmd addnode failed for primary node internal aam error agent could not start

At the cluster level, disable HA, then reenable

The DSN is not a 32 bit system DSN

Upon installation of Windows 2008 Standard, installing vCenter using the SQL Server 6.00 driver provided, the following error is received:
"The DSN, 'vCenter' does not exist or is not a 32 bit system DSN'

For starters, don't use the OBDC administrator found under Start -> All Programs -> Administrative Tools -> Data Sources (ODBC), this is the 64bit version.  Instead, navigate to c:\windows\SysWOW64\odbcad32.exe.

The SQL Server driver available is not supported, you need to download the 'SQL Server Native' driver found here:


It's also good to know, a new install of Windows 2008 Server x64 doesn't include the "SQL Server Native" driver. The following link provides downloads for the new SQL 2008 feature packs. I tested this with vCenter 4.0 and it works great.

http://www.microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73C&displaylang=en

Saturday, June 12, 2010

Performance Reporting

Not too long ago, I wrote a script for Script-O-Mania, the idea of the script was to gather CPU Ready times from VMs across one or more ESX hosts and display their values on a nice graph. I felt like this would be a useful tool because the only way to see the CPU Ready Time information in vCenter is on a VM by VM basis, there is no way to select a single host and see the CPU Ready Time for several VMs on a single graph. Since that particular counter can be useful in identifying sluggish VMs, I felt like it would be really useful to be able to see several VMs together as well as to compare VMs on one ESX host to another. The original script can be found on the Script-O-Mania contest page.

After writing that script, I thought it could be even more useful if it could be used for other performance counters besides just CPU Ready and also if instead of grouping the VMs just by the ESX host, if I could group them by any object that is visible in vCenter such as a cluster, folder, resource pool etc. In vCenter the graphs you see for these objects contain specific counters pertinent to those objects, the performance tab does not allow you to graph VMs that contained in the specified group object.

I used PrimalForms 2009 to make it more user friendly with a GUI front end. To use this little app, please make sure you have the following prerequisites installed.

Prerequisites:
- Powershell 2.0
- PowerCli
- Microsoft Excel 2007
- The underlying Powershell script is not signed, so set your Powershell settings accordingly

Feel free to leave your comments and suggestions.

Download here

Tuesday, June 8, 2010

VMware Converter - Error: Unable to obtain hardware information

While trying to use VMware Converter stand-alone version 4.01 to convert a Windows 2008 R2 vm, I kept getting the error "Unable to obtain hardware information". I found this post which mentioned faking out the system by changing the source VM OS, so I gave that a try and changed my source VM from Windows 2008 R2 to Windows Vista, then tried to convert and low and behold, it worked like a charm!

Tuesday, May 25, 2010

Use VMware Converter to Import Windows XP VM

If you ever use VMware Converter to import a Windows XP machine from for example a VMware workstation image, you may find that when you boot it up, it sits there at a black screen with a cursor in the top left hand part of the screen. Left alone, the VM will start to use 100% CPU.

I ran into this issue yesterday and discovered that the problem was due to the original Windows XP machine having IDE disks. When importing a VM like this from VMware Workstation, change the disks to SCSI when you setup the converter job.

Wednesday, April 7, 2010

vSphere 4.0 Quick Start Guide

Just received the latest book I ordered, vSphere 4.0 Quick Start Guide. I was a little surprised when I received the package, I wasn't expecting such a small compact book ... but, good things come in small packages! I can tell just by thumbing through this book that it is packed full of juicy tidbits, can't wait to dive in!

Friday, March 19, 2010

Powershell - Get Snapshots for all VMs in a Resource Pool

Recently needed to find all the snapshots in a resource pool, so to do that, I needed to first get all the VMs in the resource pool like this:

Get-VM -Location (Get-ResourcePool mypoolname)

And get the snapshots, so pipe the output and voila:

$snaplist = Get-VM -Location (Get-ResourcePool mypoolname) | Get-Snapshot

Nice and easy!