Enable CloudFORMS to clone a template, and retaining the disk layout. So CloudFORMS currently deploys new virtual machines in RHEV either by PXE or ISO. It does this by cloning a BLANK template and attaching new disks, where a PXE or ISO process will install an operating system. Those from the VMware world and those in Windows land will want to deploy directly from a template a clone, without having to install an operating system, because the template already has it installed in its disk. Reasonable request…. this is how…
You want to delete a Template in RHEV from the CloudFORMS UI, but how?
This is easy, because the ReST API’s are so lovely in RHEV. Here is how;
Create a custom button that will execute your method, remember this is for VM Template and not just VM.
Now create the Automate parts, (if you need assistance on the general wiring of automate, try here first)
CloudFORMS lacks currently the ability to create a template from an existing VM, here is the method to enable this function from a custom button.
First you need a dialog to collect from the new user the name of the template, so create a dialog of your liking, including at least;
Textbox – Name = dialog_name
Hooking Cobbler and CloudFORMS 2.0 together is actually quite simple. Lets first understand the use case.
We want to deploy virtual machines using PXE boot from Cobbler.
Cobbler stores each vm’s boot information as a “System Record”, there is a nice API that you can launch that will create these system records, you just need to pass the right parameters. The data required to drive Cobbler to create a system record are;