Pages

Friday, February 21, 2014

Kill Stuck VM tools installation task in ESXi

While installing VM tools, on one of the virtual machines tools installation task was getting hung. 
Was not able to cancel the task using vCenter or directly connecting to the host. Due to this all the features like Snapshot, Migrate were disabled on the VM.

To kill the VM tools installation task through command line, we need to identify VMID and kill the vm tools insall for the corresponding VM. 
Please follow the below steps. (applicable to ESXi).

1. Enable ssh on the host holding the VM.
2. Login to the host using SSH client. eg., Putty
3. Run the command line /usr/bin/vim-cmd vmsvc/getallvms

This will return list of the VMs with VM ID. Then run the below command to kill the VM tools install process for the VM facing issue.

4. /usr/bin/vim-cmd vmsvc/tools.cancelinstall VMID

Hope this quickly helps in getting the VM back to normal.

--Alternate way of achieving the same using PowerCLI would be:
get-vm "VMname" | Dismount-Tools

Thanks!





Achieved Rackspace CloudU Certification



Recently I was searching for some good course to understand the cloud computing key elements, delivery models etc.,. I came across the article that details about different courses/certifications available to get good idea of Cloud Computing Fundamentals. 

As Rackspace has strong market base in Cloud Computing and also providing vendor-neutral Cloud Computing curriculum 'CloudU' thought will take up the CloudU Training (online). Moreover, the course/exam is free of cost. The course curriculum is good and the author Ben Kepes has excellently presented the key elements of cloud computing in a course that consists 10 lessons.


What is CloudU all about: According to Rackspace, Cloud U is a vendor-neutral curriculum designed for IT professionals and business leaders that covers and certifies knowledge of the fundamentals of Cloud Computing. Cloud U content is available to any professional at any time, but if you want a formal recognition of your knowledge about Cloud Computing, you should complete the courses and requirements for a certificate.

How to prepare: Study each Cloud U lesson whitepaper, and then successfully complete each of 10 Cloud U lesson quizzes based on the whitepaper's content. Successfully complete a 50-question final exam drawn from materials covered in the 10 Cloud U lessons. More details are here

Here's my certificate :)  

Thursday, February 13, 2014

vCenter Service not starting after the windows vCenter server restarts

I have experienced this on vCenter Server 5.5.0b. When the windows server is restarted, the vcenter servies does not come up automatically when the service startup type is set to Automatic. When the service is set to Automatic, there are possiblities that the SQL Server/database might not be completely loaded before the vCenter Server service trys to get started. It can be fixed by setting the service startup type to Automatic (Delayed Start).

Wednesday, February 12, 2014

VM - Multiple Networks displayed, but only one NIC is configured on the VM

If the VM has active snapshots, till the time snapshot is deleted, VM will display the multiple networks that were used on the VM. The host stores the multiple networks information which would be required if you plan to revert to the snapshot which might need the particular network.

Sunday, February 9, 2014

VMware VirtualCenter Server service fails with the error: Windows could not start the VMware VirtualCenter Server on Local Computer (1038138)

VMwareKB

This issue occurs when transaction log (.ldf ) size of the vCenter Server database exceeds the maximum limit.

To resolve this issue, change the recovery model to simple and shrink the transactional logs. For steps to troubleshoot transaction log issues in the Microsoft SQL database server, see Troubleshooting transaction logs on a Microsoft SQL database server (1003980).

This issue may also occur if the password for the account on the SQL database server used to connect to the vCenter Server database has expired.

To resolve this issue, ensure that the account password is valid. For more information, see VirtualCenter Server service fails to start with the error: The password for user account ' ' has expired (1012498).

For a vCenter Server installation with a database on an embedded SQL Server Express, the issue might occur if the transaction log size is reached.

To resolve this issue, verify the name of the SQL Server instance and change the transaction log size.
To verify the name of the SQL Server instance and change the transaction log size:

1.Verify the actual name of the SQL Server instance used with vCenter Server.
1.Start the ODBC Data Sources manager from the Control Panel > Administrative Tools > Data Sources (ODBC).
2.Select VMware VirtualCenter DSN in the System DSN tab and click configure to see the details.
3.The server name is shown in the Server edit box.

2.Use the SQL Server command line tool to change the transaction log size limit.
1.Start the command prompt.
2.Run the command osql -S -E
3.Run next SQL:
a.go
b.ALTER DATABASE [VIM_VCDB]
c.MODIFY FILE ( NAME = N'VIM_VCDB_LOG', MAXSIZE = UNLIMITED )
d.go
4.Exit the command tool by typing exit.