Virtualization, High Performance Computing, Healthcare IT, Enterprise Computing

January 2011

You are currently browsing the monthly archive for January 2011.

Installing the Hyper-V R2 Linux Integration Components inside a Linux Virtual Machine provides the following features:

  1. Optimized Drivers: The Linux integration components include support for storage and network controllers specifically optimized for Hyper-V R2.
  2. Fastpath Boot Support: Boot devices now take advantage of the storage VSC to provide enhanced performance.
  3. Timesync: The clock inside the virtual machine will remain synchronized with the clock on the host.
  4. Integrated Shutdown: Virtual machines running Linux can be shut down from either Hyper-V Manager or System Center Virtual Machine Manager, using the “Shut Down” command .
  5. Symmetric Multi-Processing (SMP) Support: Up to 4 virtual processors (VP) per virtual machine.
  6. Heartbeat: Allows the host to detect whether the guest is running and responsive.
  7. Pluggable Time Source: A pluggable clock source module is included to provide a more accurate time source to the guest. ( Not supported on 64-bit RHEL ( and by extension CentOS) see the workaround below.

Step 1. Download the Linux Integration Components for Hyper-V R2

First download the integration components download them from Microsoft. You will have to do this form a Windows Machine as it is .EXE file that must be clicked on to extra the ISO image.

Step 2. Mount the ISO image in the Virtual Machine

Mount the ISO image to your existing CentOS/RHEL Virtual Machine executable like below:

Step 3. Prepare your Virtual Machine to Build the Integration Components

Snapshot your VM and have a backup so you can roll back if something goes wrong, don’t do this on a production VM.

Next, you will want to make sure you are running the latest kernel before installing the IC components. Note each time you upgrade the kernel, you will have to rebuild.

yum update

The development tools are also needed to compile the IC components

yum install kernel-devel
yum groupinstall "development tools"

Finally, we can build the Linux IC components with these commands:

Step 4. Build the IC Components

cp -pR /media/CDROM /tmp/
cd /tmp/CDROM
make install

Step 5. Install timekeeping fix and reboot

yum install adjtimex
shutdown -r now

Step 6. Check the kernel modules reloaded on reboot

Check that the vmbus kernel module loaded on startup with this command:

/etc/init.d/vmbus status

Step 7. Turn off eth0, enable seth0

You can now use the


command to configure the networking for seth0, and then configure the the old legacy “eth0” interface to not start on boot (set “ONBOOT=no” in /etc/sysconfig/network-scripts/ifcfg-eth0 using the VI editor).

Finally restart the networking with

/etc/init.d/network restart


Recently a customer needed to automatically wipe the disks on hundreds of HP blades that were being returned on lease. To facilitate this HiperLogic created a custom boot Linux CD to wipe the disks that had the following features:

1. Re-configured the RAID from STRIPED to MIRRORED to 1/2 the wiping time.
2. Wiped the disks using the linux shred utility without user intervention.
3. Halted the machine on completion.

This CD is easily mounted across all blades in the chassis via the USB media. A custom solution was developed as some of the popular free wipe utilities were too old to support the latest HP blades.

Here is the guide to creating your own:

Building the SLAX ISO IMAGE

SLAX was chosen because it was simple, had the shred utility installed, and had all the linux drivers needed out of the box. These same principles could be applied to your distro of choice.

Step 1. Download the SLAX iso image, then do the following:

  mount -o loop slax-6.1.2.iso /mnt/loop
  cp -a /mnt/loop /tmp/slax
  cd /tmp/slax

Step 2. Create the following inside the slax directory :


The contents of this file are like below:
# cat rootcopy/etc/rc.d/rc.local

   nohup /usr/local/sbin/shredit &

#cat rootcopy/usr/local/sbin/shredit


#delete the existing RAID 0 array. This command is specific to your layout.
echo "Y"  | /opt/compaq/hpacucli/bld/hpacucli ctrl slot=0 ld 1 delete 

#create a RAID 1 array. This command is specific to your layout
/opt/compaq/hpacucli/bld/hpacucli  ctrl slot=0 create type=ld raid=1 

#This says do a one pass overwrite of the device with random data, then follow up with a zero write pass.
shred -n 1 -z -v /dev/cciss/c0d0
#Now halt after completion

Step 3:
Download and install the HP hpacucli RPM. This utility is used to re-create the RAID0 raid to RAID1 to speed up the wipe. SLAX isn’t RPM based, but you can use rpm2cpio on another box to get a CPIO archive to install.
Step 4. Create the ISO
Now just run the


command included with SLAX to build your custom ISO image. Assuming you called it shred.iso, follow the instructions below to mount it on the blades.

Automatically mounting the ISO on the blades

There are a couple ways to mount the ISO image, if you have the ILO Advanced Pack you can use the following method:

Use RIBCL in the OA to download and mount the ISO as a virtual CD drive for one time nooy

1. Put the ISO image somewhere on a webserver on your network.
2. Create this XML in a text file which we will use in the next step via copy/paste, replacing the myloginhere and mypassword here with your admin credentials for the Onboard Administrator (OA). This will mount the shred.iso via http, and configure the blade for a one time boot into this ISO image.

  <LOGIN USER_LOGIN="myloginhere" PASSWORD="mypasswordhere">
  <RIB_INFO MODE="write">
    <INSERT_VIRTUAL_MEDIA DEVICE="CDROM" IMAGE_URL="http://someipaddresshere/shred.iso"/>

Now copy the above lines, SSH to the OA in the chassis and then type ONE of the following examples depending if you want to shred ALL blades, one blade, or a range of blades.

Applies to All blades in chassis. | is the termination character


Applies to Bay 1 only

  HPONCFG 1 << |

Applies to Bays 1 through 8

HPONCFG 1-8 << |

Applies to Bays 1, 2, 9 and 10

HPONCFG 1,2,9,10 << |

Now PASTE the XML we copied in the previous step after this.

Finally just type


on a line by itself and hit enter to execute the XML string.

Boot the ISO off of a USB key in the OA

The second option works with standard ILO but you need to do the following:

1. Copy the ISO image to a USB key, you should see the file shred.iso on the USB key. The OA will show all files with .ISO to mount.
2. Insert the ISO image into the OA of the chassis
3. Go to the OA web page, go to Enclosure Settings and then DVD drive
4. Mount the image on the blade(s) like in the screenshot below:

connect iso to a blade through the OA

After you power on the blade, it will begin the wiping proceses. It took about 3 hours for the wipe to complete, with each blade having dual 72GB 15k SAS drives. Once the wipe is complete, the blades will shut down.

© 2006-2010 HiperLogic, LLC.  |  Serving the Ann Arbor, Southeast Michigan, and Ohio region  |  (888)-268-3930  |