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

Thursday, February 14, 2008

The ultimate plugin to VC 2.5 – SVmotion

Filed under: ESX Migrate/Upgrade,ESXi,Tools,Virtual Center,vSphere (ESX) — A. Mikkelsen @ 13:47 pm

The people over at Lostcrations have created the first known third party plugin to VC 2.5.

It enables you to SVmotion your VM’s VMDK’s between different storage locations

Take a look at it

Free Disaster Recovery for physical servers

Filed under: Disaster Recovery,Scripting,Security,White Papers — A. Mikkelsen @ 10:49 am

Frane Borozan has created a automated script based on VMware Converter to take a physical server and make fresh replica of it on VMware Server.

It is worth a look.

A. Mikkelsen

Saturday, February 9, 2008

vRanger script

Filed under: Disaster Recovery,Scripting,Security,Virtual Center,vRanger,vSphere (ESX) — A. Mikkelsen @ 16:47 pm

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

We decided that we would only snapshot drive 0 and use a TSM client to backup tha 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.

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.
Create a log file
Delete snapshots from the day before (do to lack of storage space on the server)
Call the .cmd file that holds the information on witch VM’s to snapshot (Based on weekday – one file for each day).
Start TSM (send the VM’s snapshots to tape)
Send a status mail

We then created 7 .cmd files (one for each weekday) in witch we add a line for each VM to snapshot that day.
(You have to use vRanger GUI to choose witch drives to snapshot – changed from 3.17 -> 3.20)

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

I’m in the process of upgrading the script so that it dynamicly creates a list of witch VM’s to snapshot based on a custom field in VC.
Furthermore i also want to create a script to update the vRanger database with witch drives to snapshot based on a custom field in VC.

I will upload the updated script as soon as it is done.
You can download the current script here.

Thursday, February 7, 2008

Nice Windows GUI for SVmotion

Filed under: ESX Migrate/Upgrade,ESXi,Scripting,Tools,vSphere (ESX) — A. Mikkelsen @ 10:29 am

Just stumbled upon this nice tool to do SVmotion from a Windows server

A. Mikkelsen

Tuesday, February 5, 2008

Script – Checking ESX Disk Space Usage from a Central Linux Box

Filed under: Scripting,Tools,vSphere (ESX) — A. Mikkelsen @ 11:46 am

How nice is this …..
Scalethemind.com has released a updated version of a script to generate a overview of how your ESX hosts disk space are used.
Check it out.

Monday, February 4, 2008

Howto: Send mails from your ESX 3.x host

Filed under: Scripting,Tools,vSphere (ESX),White Papers — A. Mikkelsen @ 18:47 pm

Yellow-bricks.com has been so nice to update the smtp_send.pl script and host a copy of it.
You can find the latest version on his website

A. Mikkelsen

Root access with ESX 3.x

Filed under: vSphere (ESX) — A. Mikkelsen @ 18:25 pm

Edit the sshd_config file by entering the command:

vi /etc/ssh/sshd_config

Look for the line called “PermitRootLogin no” and change it to “PermitRootLogin yes“

After changing the line you have to restart the host or the sshd server by running the command:

./etc/init.d/sshd restart

A. Mikkelsen
(This is so i don’t forget 🙂 )

vmReference Card ver. 1.0 has been released

Filed under: Tools,vSphere (ESX) — A. Mikkelsen @ 13:04 pm

Finally the vmReference Crad version 1.0 has been released.
This card gives you alot of very usefull information.
It speakes for it self.
Take a look at it, you won’t regreat it – i didn’t

Powered by WordPress