ESX 3.5 U3 Scripted Install Improvement

For those of us that prefer to script our installs instead of creating hand crafted environments, you’ll be thrilled to see that VMware has addressed a pretty annoying bug that has existed in 3.5 regarding vSwitch creation. No more jumping through hoops to make vmnics active. From the release notes :

Network adapters lose bonding during scripted installation
The esxcfg-vswitch -L command now works as expected and with the same functionality as in 3.0.x.

During a scripted installation, the following two commands did not result in a bonded pair of active network adapters on virtual switch VS_VM1. Instead, vmnic3 became the active adapter and vmnic4 became the standby adapter.
esxcfg-vswitch -L vmnic3 VS_VM1
esxcfg-vswitch -L vmnic4 VS_VM1

vbScript That Reads a List of Servers and Performs an Action

Between Windows-centric projects, I usually forget how to get a vbscript to read a text file with a list of servers and perform some action on them. So, I’m posting this one for that functionality mainly. This one happens to look for Network Adapter speeds. The MSDN site is a great resource to see all the Win32 Classes.

This isn’t necessarily pretty and I’m sure there’s better examples, but it gets the job done discovering necessary hardware information for virtualization planning.

Free P2V and V2P with Open Source Tools

This is from http://wyae.de/docs/img_dd.php. I wanted to copy it in case the site went away.
I have used this to P2V (Physical to Virtual) and V2P (Virtual to Physical) SuSE machines successfully and it worked great.

How to duplicate a complete PC via network

Imagine you get the task to quickly set up a number of identical workstations. Unfortunately either the available removable media (e.g. CD) is too small, or the imaging tool you use insists on not recognizing your favourite file system type (esp. Ext3, XFS, JFS, Reiser), or the duplication won’t work with your bizarre multiboot configuration. Here’s how to do with on-board tools. [Read more...]

ESX Post Installation Script

This is a script that will configure the networks, VLAN’s and ntp service on the ESX servers after you have a base installation complete. Just save this as a bash script and run it on each Service Console before adding the hosts to the cluster.

#!/bin/bash

#Add VMotion vmkernel port to vSwitch0
/usr/sbin/esxcfg-vswitch -A VMotion vSwitch0
/usr/sbin/esxcfg-vmknic -a -i 192.15.1.124 -n 255.255.255.0 VMotion

[Read more...]