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

Thursday, May 15, 2008

Tricks for getting a VM to boot from CD – bios.bootDelay

Filed under: ESXi,vSphere (ESX),Workstation — A. Mikkelsen @ 13:28 pm

Today i came accross a cool article about how to easy get your VM to boot from CD.
This only applies to ESX 3.0.x and not ESX 3.5.x, because in ESX 3.5.x you are able to use the VI Client to set this option and many more.

Read the full story here:

In summery:
add the following line anyware to your VM’s .vmx file.

bios.bootDelay = “boot delay in milliseconds”

Ex. Setting the boot delay to 15000 gives you 15 sec. to hit the F2.

Free ESXi quick guide

Filed under: ESXi,White Papers — A. Mikkelsen @ 12:49 pm

RTFM Education has released a quick guide for ESXi

Get it here

Friday, April 11, 2008

Undocumented VCB config.js feature

Filed under: Disaster Recovery,ESXi,VCB,vSphere (ESX) — A. Mikkelsen @ 14:12 pm

Duncan over at YellowBricks.com found a undocumented fearure in the VCB config.js file

One of my customers wanted to use the default VCB framework but did not want to quiesce the VM for several reasons. (Databases, Active Directory etc.) I could not find an option in the config.js file but noticed the following in the file glue.js:

// A fallback to be able to switch to non-quiesced snapshots
if (typeof(NO_QUIESCE) != "undefined") {
cmd +="-Q 0 ";

In other words, setting the option “NO_QUIESCE” with no value in config.js results in the VM not being quiesced, default it will quiesce the VM! I added the following line to the  config.js file to accomplish this:


Quick rename of VM

Filed under: ESXi,Virtual Center,vSphere (ESX) — A. Mikkelsen @ 13:50 pm

Duncan over at YelloBricks.com posted a nice easy howto on renaming a VM from within VC and from the service console.

There are a couple of ways to rename a Virtual Machine, but there are two in my opinion that stand out:

  1. Shutdown the VM
  2. Rename the VM in VirtualCenter
  3. Migrate the VM and move it to another Datastore
  4. done!

And from the service console:

  1. vmware-cmd -s unregister /vmfs/volumes/datastore/vm/vmold.vmx
  2. mv /vmfs/volumes/datastore/vm-old /vmfs/volumes/datastore/vm-new
  3. cd /vmfs/volumes/datastore/vm-new
  4. vmkfstools -E vm-old.vmdk vm-new.vmdk
  5. find . -name ‘*.vmx*’ -print -exec sed -e ’s/vm-old/vm-new/g’ {} \;
  6. mv vm-old.vmx vm-new.vmx
    for every file that hasn’t been renamed (.vmsd etc.)
  7. vmware-cmd -s register /vmfs/volumes/datastore/vm-new/vm-new.vmx

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

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

Monday, January 7, 2008

A easy way to document and import VC Roles and Permissions

Filed under: ESXi,Scripting,Virtual Center,vSphere (ESX) — A. Mikkelsen @ 9:03 am

René vd Linden  at www.renevdlinden.nl has released a excel sheet that can be used to document and update roles and permissions in VC.

It look very easy and straight forward.


A. Mikkelsen

Sunday, January 6, 2008

Create your own updated ESX 3i – bootable USB stick….

Filed under: ESXi,Hardware,Tools,vSphere (ESX),White Papers — A. Mikkelsen @ 13:11 pm

VCPaul has been so nice to share how he was able to create a bootable USB stick with the latest ESX 3i.

You can read his post in the VMware Community at

Or read it here:



  • 1 GB USB flash drive
  • WinImage
  • IZArc

Of course you can use your favourite tools and larger USB flash drives, but 1 GB is enough space for the boot image.

Perform the following steps to create a bootable ESX Server 3i USB flash drive:

  1. Download ESX Server 3i Installable ISO
  2. Extract INSTALL.TGZ from the root directory of the ISO image using an IZArc
  3. Extract /usr/lib/vmware/installer/VMware-VMvisor-big-3.5.0-67921.i386.dd.bz2 from INSTALL.TGZ using IZArc
  4. Extract VMware-VMvisor-big-3.5.0-67921.i386.dd from VMware-VMvisor-big-3.5.0-67921.i386.dd.bz2 using IZArc
  5. Attach the USB flash drive and make sure you no longer need the data on it
  6. Use WinImage to transfer VMware-VMvisor-big-3.5.0-67921.i386.dd to the USB flash drive
    1. Disk->Restore Virtual Hard Disk image on physical drive…
    2. Select the USB flash drive (Warning: If you select the wrong disk you will lose data!)
    3. Select the image file VMware-VMvisor-big-3.5.0-67921.i386.dd
    4. Confirm the warning message
    5. Wait for the transfer to complete
  7. Unplug the USB flash drive (Warning: If you forget to unplug the flash drive from the PC you might lose the data on your hard drives the next time you boot!)
  8. Attach the USB flash drive to the machine you want to boot (Warning: If ESX Server 3i recognizes local drives, you might lose the data on it, so make sure you don´t need it anymore or unplug all hard drives!)
  9. Turn the machine on and make sure the USB flash drive is selected as boot device
  10. Watch ESX Server 3i boot
  11. Configure
  12. Enjoy!

I cannot be held responsible for any damage or loss of data this procedure might cause.


Hope anyone can use this 🙂
I know I can….

A. Mikkelsen

« Newer Posts

Powered by WordPress