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

Friday, April 11, 2008

New website will lanch soon

Filed under: Uncategorized — A. Mikkelsen @ 14:35 pm

A new website will lanch soon http://govirtual.tv/

It will feature premire video tutorials and educational screencasts related to enterprise virtualization technology.

I’m looking forward to see what they can cook up.

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:

NO_QUIESCE="";

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, April 10, 2008

Upgraded this site to WordPress 2.5

Filed under: Uncategorized — A. Mikkelsen @ 21:25 pm

Today i finally got time to upgrade this site to WordPress version 2.5.
And i must say that i’m impressed with this new version.
It has a few new cool features and the admin pages design has changed alot – AND I LIKE IT. It is easier to find your way around the menus.

I can only say if you don’t already use WordPress get your copy today – www.wordpress.org

Powered by WordPress