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

Thursday, October 2, 2008

Compare the installation og ESXi and HyperV

Filed under: ESXi,Microsoft — A. Mikkelsen @ 10:58 am

VMware has released a video comparing the two installations.
The video is worth watching


Comparing ESXi and HyperV

Recreating a missing VMDK descripter file

Filed under: Disaster Recovery,ESXi,vRanger,vSphere (ESX),White Papers — Tags: , , , , , , , , — A. Mikkelsen @ 8:47 am

A few weeks ago we were conducting a vRanger DR test of a VM (new host and new LUN).

The VM was restored succesfull, but when we powered it on we discovered that it for some unexplaned reason had lost the SCSI0:1 (100GB) and SCSI0:2(300GB) VMDK’s.
It had created two new 20GB VMDK’s instead.
We searched the LUN and found the two orginal *-flatvmdk files but not the descripter files.

Use Putty to identify the size of the *-flatvmdk file. ex. 100GB

ls -lah

From a VM (not running) create a new disk with the same size as the one you are missing. The name is not important.

Locate the newly created *.vmdk and *-flat.vmdk file. Copy the new *.vmdk file to the folder that contains the orginal *-flat.vmdk file.

cp rescue_me.vmdk /vmfs/volumes/mysan/rescued/rescued.vmdk

Use VI or NANO to change the following line as below from:
RW 419426200 VMFS “rescue_me-flat.vmdk”

RW 419430500 VMFS “rescued-flat.vmdk”

Make sure that the name of the .vmdk file correspond to the SCSI*:*.fileName in the vmx file.
Now just power on the VM and the orginal disks are intac.

Today I found out that esXpress has created a website that can create a VMDK descriptor file.

Below is an exampel for the rescure_me-flat.vmdk file with a size of 100GB (107374182400 bytes)
esXpress WMDK descriptor file creator

Sunday, September 28, 2008

Converting vcinfo from Perl to PowerShell

The past few days I have been trying to learn the basic of PowerShell and the VIToolkit for Windows.
And after playing around with it, I thought that the best way to learn PowerShell was to have a goal.

And what better goal than converting the vcinfo script I created with VIPerlToolkit.

A beta version of the script is now avaiable for download – get it here.
But I have to warn you – the script is still in beta.

I have added a few of the old information and some new ones.
More info will be added when I get the time.

If you have any suggestions on what info the script should show in VC, please let me know.

It’s now possible to run ESXi / ESX 3.5.x in Workstation 6.5

Filed under: ESXi,Virtual Center,vSphere (ESX),White Papers,Workstation — A. Mikkelsen @ 19:49 pm

This isn’t new!
But what is new, is that it’s now possible to run VM’s inside the hosts.

The performance isn’t the best, but it’s OK for testing.

Read the full article here.

Friday, August 8, 2008

Automate configuration of host with statelesx

Filed under: ESXi,Scripting,Tools,Virtual Center,vSphere (ESX) — A. Mikkelsen @ 22:31 pm

www.vinternals.com has release a super cool looking tool (appliance) for automating the configuration of multi hosts.
The appliance is called statelesx (pronounced “stateless”).

Get more details on this super cool appliance at www.vinternals.com.

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.

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 🙂

Wednesday, June 25, 2008

Listing DRS VMotion info from VC database

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

Ever wanted to see how many DRS VMotion your ESX enviroment is generating?

Using the following query you can extract the requried information from the VC database.

SELECT vpx_event.event_type, vpx_event.vm_name, vpx_event.create_time
from vpx_event where event_type like ‘%migrate%’

(Thanks to: Dave.Mishchenko

Also see http://www.gabesvirtualworld.com/?p=69 for an idear to what you can do with the information in Excel.

Wednesday, May 21, 2008

Troubleshooting VMware snapshots

Eric Siebert has writen a very good and explaining guide on how to troubleshoot snapshots on ESX 3.x.

Virtualization administrators can use snapshots on VMware ESX to travel back in time and figure out what went wrong with their virtual machines (VMs). But what do you do when your snapshots start acting funny? In this tip, we’ll troubleshoot potential problems that may come up when using snapshots on ESX.

Read it here or read my local copy.

« Newer PostsOlder Posts »

Powered by WordPress