Building a Linux Red Hat Image

In the example below we build a Red Hat 5.2 64-bit in this case.

5.2-32bit, 5.4-32bit and 5.4-64bit are built in the same way. Red Hat 4.6 had slightly different Red Hat install screens, but the principles here work for 4.6 as well.


  • You need the Red Hat DVD iso file uploaded to a datastore. I put mine in the "mgmt_disk" datatstore.
  • You might need your Red Hat Key depending on what you want to install. In my case, I just installed basic packages so likely didn't need it.

In Virtual Center

  • Login to Virtual Center
  • Switch to a Inventory view of "Hosts and Clusters"
  • Right click on one of your hosts - (whatever has access to the datastore where you stored your iso file.
  • Select "New virtual Machine"
  • Choose Typical and press Next
  • For a name, pick something you like... I called mine "RHEL5.2-64bit" and click Next.
  • For a place to store the image, I choose image_repo_disk
  • Choose "Linux" and from the pulldown window choose "Red Hat Enterprise Linux 5 (64-bit)" and press Next.
  • For number of virtual processes, pick at least 2. (It seems that Windows will load a different kernel for 1 cpu as opposed to multi processors.)
  • Memory probably doesn't matter, but for mine I chose 1024 and pressed next.
  • For the number of Nics, I choose 2. Nic 1 = vlan100 and Nic 2 = VM Network. Press Next
  • For Disk size, I choose 5GB. Click Next (note, it turned out 5GB was overkill... so future Linux releases I used 4GB and that seemed to work well.)
  • Click on "Finish"

Work on your new image

  • Right Click on your new image (Mine is called "RHEL5.2-64bit") and select "Edit Settings"
  • Click on the CD/DVD drive 1
  • On the right of the CD/DVD screen, choose the checkbox next to "Datastore ISO file" and browse to where you stored your Red Hat 5.2-64bit iso file. In my case, I stored mine in mgmt_disk and it's called RHEL5.2-Server...x86_64-DVD.iso. Press "OK"
  • While still on the CD/DVD screen, notice that at the top right, you now have the option to check "Connect at power on." This is important to check, otherwise your image won't boot off the CD drive! Once checked, press "OK"
  • Power on your image either by hitting the "play" button at the top, or by right clicking on it.
  • Open up a console for your image either by hitting the "console" button at the top or by right clicking on it.

Install Red Hat 5.2 - this assumes you're looking at the console of your newly started Red Hat image

  • I prefer text installation, so typed in "linux text" and pressed enter at the prompt
  • I skipped the CD media test and pressed enter.
  • At the welcome sign, I pressed enter at "OK"
  • I choose English and pressed enter
  • I choose US keyboard and pressed enter
  • I entered my Red Hat key: and pressed enter
  • I pressed enter on "Yes" to initialize the drive
  • I chose "Create custom layout" and pressed enter
  • I ended up creating the following two filesytems:

1. Mount point: /bootFile

System type: ext3

Size = 100

Fixed size = checked

2. Mount point: /File

System type: ext3

Size = 1000

Fill all available space = checked

Then I pressed "OK" (Ignore the missing swap partition warning)

  • I pressed enter on "OK" to accept the default GRUB boot loader
  • I pressed enter on "OK" to accept the default boot loader Configuration (empty)
  • I pressed enter on "OK" to accept the default grub password information (empty)
  • I pressed enter on "OK" to accept the default /dev/sda2 Boot Loader Configuration
  • I pressed enter on "OK" to accept the default /dev/sda = MBR and /dev/sda1 as first sector of boot partition
  • I left eth0 and eth1 unconfigured and pressed enter on "OK"
  • I left the network gateway/DNS entries empty and pressed enter on "OK"
  • I pressed enter on continue (ignoring the missing gateway warning)
  • For hostname, I typed in "localhost" and pressed enter on "OK"
  • For timezone, I chose "America/Los Angeles" and pressed enter on "OK"
  • For the root password, I typed "my_pwd" twice and then pressed enter on "OK"
  • For Package Selection, I unselected "Virtualization" and pressed enter on "OK"
  • Now it installs the operating system... after a minute or so I hit enter on "OK" to acknowledge that the install log is under /root/install.log
  • Press enter on "Reboot" and then POWER off the VMware image. (Otherwise, it'll boot back onto the Linux CD-rom
  • Go into the "Edit Settings" of your Red Hat image, click on CD/DVD Drive 1 and unselect "Connect at Power On" and choose "Client Device" for Device Type and press "OK"

Power up the Image - bring up a console to watch it boot

  • The Setup Agent comes up - I ran the tool on the following:

Authentication: leave "use SHADOW Passwords" and press Next

Firewall configuration: I changed Security Level to "Disabled" and SELinux to Disabled and then pressed "OK"

Keyboard configuration: Skip this - it'll be U.S. English already

Network Configuration: Skip this as CloudBurst will configure it for you when the image is deployed. (Note, if you'll need network for updates/further configuration, then you need to configure network!)

System Services: I'm not a big fan of "avahi-daemon" or "sendmail" so unselected them and pressed "OK" and enter

Timezone configuration: Skip this - should already be Americas/Los Angeles

Press "exit" and enter to get out of the setup agent

Customize the image

  • Login as root with a password of my_pwd
  • In Virtual Center, right-click on your image and select "Install/Upgrade VMware Tools" and press "OK"
  • Back on the Linux console of your image, mount the vmware tools disk with the following command: # mount /dev/hda /media
  • Install VMware Tools with the following command: (start typing VMwareTools and use autocomplete to find the exact name of the .rpm package... in my case it was the following): # rpm -Uhv /media/VMwareTools-3.5.0-199239.i386.rpm
  • Unmount the VMware tools media: # umount /dev/hda
  • Configure the VMware tools:# (Note - the first time I ran this, I received "VFS busy inodes on changed media" over and over, so I rebooted and ran again - this time it looks ok)
  • Choose your screen resolution - I chose 3 (1024x768) and pressed enter
  • Now VMware Tools should show "OK" in the Summary tab of your new image.

Clean up the image and save it to be used for CloudBurst

  • Install any updates/middleware now if you wanted them. (Note, you'd likely have to configure the network)
  • Cleanup the network configuration if you'd set it - I usually change everything to be DHCP
  • Remove the ssh system keys: # rm -f /etc/ssh/ssh_host_*
  • Write zero's (so it gzip's nicer) across all the empty space of the drive with the following commands: # dd if=/dev/zero of=/0bits bs=10M ; rm -f /0bits
  • Clear out the bash history with the following command:# history -c
  • Shutdown the image: # halt
  • If this is Red Hat image, it will NOT powerdown after halting. You'll need to watch for the "System halted" message in the console, then hit the "Power Off" button manually
  • Once the image is halted/powered off - In VirtualCenter, right click on your new image and choose "Convert to Template"

In Maximo UI, discover the new template you created

  • Login to maximo UI using user maxadmin
  • Click Go-To -> Discovery -> Provisioning Discovery-> Discovery Configurations
  • type "vmware" and press enter.
  • At the bottom of the list, click on "VMware VI3 - Virtual Center Template Discovery"
  • On the far right, click on "Run Discovery"
  • On the popup screen, click "Select" and choose "Computers" and then find the "virtualcenter" computer and press "OK"
  • Press submit
  • You should see the Satus of your "Discovery.OnDevice" = Scheduled. If you keep hitting refresh, you'll see it switch to "In Progress" and eventually to "Succeeded" (this take a few minutes)
  • Then you need to add a "SRT" to this now discovered image.
  • Click Go-To -> IT Infrastructure -> Software Catalog -> Software Stacks
  • Click on your new image - mine looked like this: "VMware Template -- RHEL5.2-64bit"
  • Chose "Select Action" and pull down to "Add SRT" and click that.
  • Name = "New SRT" (You can name it about anything you want...)
  • Create from a template definition = selected
  • type "vmware" in the space provided and press enter - you'll see two possible selections. Choose the "Discovered_VMWare_VI3_Stack_Linux" template
  • Default = selected
  • Press OK
  • At the bottom of the screen, click on your new "New SRT" (or whatever you called it) and then expand the arrow next to "admin-password"
  • Parameter Value = my_pwd (or whatever your root password is for your image)
  • Then press the save icon. IMPORTANT - verify that Maximo really saved your input. Do this by verifying that the Value next to admin-password has "********" in it. If it is blank, then it didn't save correctly and you'll likely need to exit out of your image definition and then re-enter it - at that point you should be able to save the password and verify it again.

In TSAM UI, register this new Red Hat 5.2 image:

  • Login to TSAM UI as PMRDPCAUSR
  • Register the image by: Click Request a New Service -> Virtual Server Management ->Manage Image Library -> Register Image
  • Choose your "VMware Template -- RHEL5.2-64bit" image from the "Discovered Image" pulldown.
  • For a Name, I called mine "RHEL5.2-64bit"
  • For the number of Virtual CPUs, I made mine 1 minimum and 2 recommended
  • For the number of Physical CPUs, I made mine 0.1 minimum and 0.4 recommended
  • For the amount of memory, I made mine 0.5 minimum and 1024 recommended
  • For disk space, I made mine 5 minimum and 6 recommended
  • Press OK
  • Press "F5" on your browser to refresh until you see that "Register Image RHEL5.2-64bit" is "resolved" in the My Requests in the upper right.
  • Try provisioning an image: Click Request a New Service -> Virtual Server Management -> Create Project with VMware ServersProject name = Red Hat 5.2-64bit test

Team = My Team

Image = RHEL5.2-64bit

Disk = 10 (To verify it's resizing the disk right) swap = 1GB is good for a test too.

NOTE: Do NOT choose the ITM agent yet. We have more work to do here later. First, we just want to see if the image works.* Press "OK"

  • Press "F5" to refresh the browser, and you should see your create project request in the queue. Then In Progress. And after 6 minutes or so, it'll hopefully say "Resolved." (Note, you can watch virtual center to see the clone operation)
  • When Resolved, you can login to your image and check the following:
  • Make sure the disk size is really 5GB (mine is showing 4.8GB which is close enough)
  • Make sure that the swap is really there

Configuring for ITM agent deployment

  • Login to maximo UI using user maxadmin
  • In the lowest right hand section, (Data model object finder) in the "Object" section type in the name of your registered image. (In my case, "RHEL5.2-64bit") and press enter.
  • You should find at least half a dozen objects, but take note of your "Software Stack" ID number. In my case, mine is "13,432"
  • Now you need to enter 13432 into that dependicies_1 variable. Click Go-To -> IT Infrastructure -> Software Catalog -> Software Stacks
  • Click on "ESXPoolStack"
  • Click on "IBM Tivoli Monitoring Agent"
  • Near the top of the page, click the "Variables" tab
  • Expand the arrow twisty next to "dependencies_1" and append to the end of the Value list a comma and then your new object ID. In my case, I added to the end of the list ",13432" and pressed the save icon.
  • You need to wait - give Maximo/TSAM some time to notice the new dependancy. 5-10 minutes is probably OK
  • Now you should be able to select the RHEL5.2-64bit image together with the ITM agent and have it work. Good luck!