A. Mikkelsen VMware ESX scripts, commands, tools and other nice to know things that will make your virtualization days easier!!!!

Monday, July 28, 2008

VirtualCenter Passthrough Authentication

Filed under: ESXi,Tools,Virtual Center,vSphere (ESX) — A. Mikkelsen @ 20:39 pm

Dominic Rivera has documented a undocumented feature of VirtualCenter.

A very useful, yet very undocumented feature of the Virtual Infrastructure Client is that it can be configured to automatically pass your Active Directory credentials without you typing them in. To use: create a shortcut to the Virtual Infrastructure Client, then right-click on it and edit the shortcut properties. You’ll need to pass the program two arguments when calling it like so:

“C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe” -passthroughAuth -s vc.yourdomain.com

Where “vc.yourdomain.com” is replaced with the DNS name for your VirtualCenter server. It’s extremely simple and just might hold of carpel tunnel syndrome for an extra few days.

Thursday, July 10, 2008

Top 10 Free Tools for VMware administrators

Filed under: Tools — A. Mikkelsen @ 21:23 pm

vmware-land.com has released his list of the top 10 free tools a VMware administrator needs in his toolkit.

Take a look at it and see it you are missing a few  ones.

Top 10 free tools

Howto move the VC database from one MSSQL to another MSSQL

Filed under: Virtual Center,White Papers — A. Mikkelsen @ 21:16 pm

Today i came accross this guide on howto move the Virtual Center database from one MSSQL server to another.

Read the full guide here..

I know that this guide will be usefull when i next week have to do just that.

Read my local copy here

PuTTy Connection Manager

Filed under: Tools — A. Mikkelsen @ 21:08 pm

Ever looked for a tabbed version of famous PuTTY?

PuTTY Connection Manager is a free PuTTY Client Add-on for Windows platforms which goal is to provide a solution for managing multiple PuTTY instances. This is one of the most important missing feature of PuTTY.

Get it now…. Here

Wednesday, July 9, 2008

Quick guide to tweak a VM for better performance

Filed under: ESXi,Performance,Tools,vSphere (ESX),White Papers,Workstation — A. Mikkelsen @ 18:39 pm

Today i came accoss this handy little guide to boost performance of a VM.

  1. Disable the pre-logon screensaver:
    Open Regedit
    HKEY_USERS\.DEFAULT\Control Panel\Desktop
    Change the value of “ScreenSaveActive” to 0.
  2. Disable updates of the last access time attribute for your NTFS filesystem, especially for i/o intensive vm’s this is a real boost:
    Open CMD
    fsutil behavior set disablelastaccess 1
  3. Disable all visual effects:
    Properties on your desktop
    Appearance -> Effects
    Disable all options.
  4. Disable mouse pointer shadow:
    Control Panel -> Mouse
    Click on the tab “pointers” and switch “enable pointer shadow” off.

A big thanks goes to Yellow Bricks – Read the full guide here

Need to check your ESX 3.5 enviroment security?

Filed under: ESXi,Security,Tools,vSphere (ESX) — A. Mikkelsen @ 18:03 pm

TripWire is here….

Came accross this cool free tool to check your ESX 3.5 enviroment security against VMware hardening guide.

——————————–
Tripwire® ConfigCheckTM
is a free utility that rapidly assesses the security of VMware ESX 3.5 hypervisor configurations compared to the VMware Infrastructure 3 Security Hardening guidelines. Developed by Tripwire in cooperation with VMware, Tripwire ConfigCheck ensures ESX environments are properly configured—offering…… (Read More)
——————————–

I’m really looking forward to see what else they can come up with 🙂

Monday, July 7, 2008

vRanger Script version 2.0 – released

Filed under: Disaster Recovery,Scripting,vRanger — A. Mikkelsen @ 21:52 pm

I’m now done with the new script and it’s working perfectly.

Background for the script:

At work we use vRanger to take DR snapshots of all our VM’s (more than 400).

We decided that we would only snapshot drive 0 and use a TSM client to backup the data in each VM and that the snapshots were only to be taken outside working hours.
These choices gave us some problems when running vRanger because we couldn’t schedule the snapshots from vRanger.

Because we have more than 400 VM’s we had to divide the list of witch VM’s to backup, into 14 days.
This means that one specific VM will only be snapshotted every 2 weeks.

In Virtual Center we created a custom field (=Backup) to tell the script witch VM’s to snapshot witch days.
We use full weekdays together with Even / Odd for dividing the VM’s into 14 days.
Ex. “Monday-Even” or “Sunday-Odd”

The solution was to make our own script that would handle the logic and just use vRanger to do the actual snapshotting.
We created a VBS script to hold the logic.
1.
Create a log file
2.
Delete snapshots from the day before (due to lack of storage space on the server)
3.
Generate the .cmd file from information in a custom field (Backup) in VC
4.
Call the .cmd file that was created earlier and contains the information on which VM’s to snapshot (Based on weekday – one file for each day).
5.
Start TSM (send the VM’s snapshots to tape)
6.
Send a status mail

(You have to use vRanger GUI to choose which drives to snapshot – changed from 3.17 -> 3.20)

I know this solution isn’t very dynamic but i works.

You can download the new script here – version 2.0.

Great guide for getting started with PowerShell

Filed under: PowerShell,Scripting,White Papers — A. Mikkelsen @ 20:56 pm

VMware has released the LAB guide for PowerShell from VMworld 2008 – Cannes.

It is great for getting inspriation for scripts or just to learn how the PowerShell for VMware works.

Get it here form VMware.com
Or my local copy here.

Powered by WordPress