InfoBlox IPAM and CloudFORMS Integration Part 1

This subject is only the hottest on the block at the moment…why? I guess because InfoBlox is pretty cool, it provides DHCP, DNS and IP Address Management services for any size of network. Its fairly easy to configure and InfoBlox are a good company who allow you to try their software for 60 days eval license. You can integrate using simple RestAPI (there is a Ruby GEM, but I don’t advise using it, I found it problematic, and Rest is so easy anyway!)

Continue reading “InfoBlox IPAM and CloudFORMS Integration Part 1”

Dialogs – Dynamic DropDowns

Its here and looks great. You can now populate a drop down list from an external source!

Simply create an Instance and Method, its advised you create a new Namespace to store dialog controls into rather than mixing them up into the general automation model.

The method requires the following code behind it;

Continue reading “Dialogs – Dynamic DropDowns”

Built In Method Example

These been some discussion about Build-In vs In-line methods,  here is a quick example of a Built-In method that sends email from instance attributes that is quite commonly done as a In-Line method when it does not need to be In-Line.

Start by creating a Class called Email

Continue reading “Built In Method Example”

Placement Profile – Best Fit Cluster using Tags

CloudFORMS has workflows for many different tasks including approval, quotas and placement to name just a few. This blog entry is going to add to the placement category of workflows. A previous post of mine showed how you could place new workloads NOT_NEAR “Workload Placement by Type (Not Near That)”¬†other workloads which I still think is really cool. This placement workflow is quite simple, it matches template tags against cluster tags. Example;

Continue reading “Placement Profile – Best Fit Cluster using Tags”

VM ReConfigure Approval Emails

The base automate model does not contain the email methods for the VM Reconfigure approval process, this post gives you this capability.

Ensure your CFME appliance can send a test email from the configuration page. If you get the test email, then continue otherwise keep trying until you do!

Continue reading “VM ReConfigure Approval Emails”

Exporting VM (VMware)

This is a really simple export routine for VMware using a custom button.

In an implementation I would maybe wrap this with

  1. A dialog to offer different export locations and naming of the export to include date/time stamp and maybe a checkbox to enable disable the overwrite of existing exports.
  2. Add in the approval system, basically some workloads should require authorisation by a manager to allow the export, we could do this by tag, and capture this in the method.
  3. Some error checking and folder creation stuff in the simple method.

Continue reading “Exporting VM (VMware)”

CloudFORMS CFME on KVM

If you so happen to have the VMware OVF version of CloudFORMs CFME, and you want to convert to run on KVM, this is how.

1. If the OVF is zipped, Unzip the appliance image:

$ unzip evm-v5.1.0.4-r.zip

2. Convert each of the 5 disks from VMDK format to RAW:
$ for i in `seq 1 5`; do qemu-img convert -p evm-v5.1.0.4-r/ovf-disk$i.vmdk disk$i.img; done

Continue reading “CloudFORMS CFME on KVM”

Workload Placement by Type (Not Near That)

Use Case – I want that when I provision a virtual machine I can specify certain workload types that I wish to avoid being placed with.

Example 1 – I will be requesting a virtual machine that will be very intensive on CPU or Disk I/O, therefore I want to ensure that I do not place it with any Database Servers, as I may impact their operation or they could equally stave me of resources. But I don’t know where the Database servers are located nor do I care, also real time the database servers are DRS managed therefore they may not be where they were first provisioned!

Continue reading “Workload Placement by Type (Not Near That)”