Modify number_of_vms for Items in a Catalog Bundle


I’m using Catalog Bundles to provision a series of VMs - all went well, but I’m stuck in modifying number of VMs for the Items. i.e.:

Bundle1 has two resources, Item1 and Item2. What I’m trying to achieve is to let the user select number of vms to be provisioned for each of Items, like 2 of Item1 and 3 of Item2.

This has been discussed before [1], and the recommendation was to set it before the request is approved - but I’ve had no luck setting number_of_vms property for child objects in


Has anybody tried a similar scenario? Any pointerswill be great…



Ekin Meroglu


This is a challenge because the :number_of_vms option is effectively ‘baked into’ the miq_provision_request_template that is created when the Service Catalog Item is created.

The best way to achieve what you want is to create your own ‘Generic’ Catalog Item that creates its own provision requests using $evm.execute(‘create_provision_request’). When you do this you have complete control over the requests, including :number_of_vms for each.

Kevin Morey has some excellent examples is his code collection here: (any of the *_build_vmprovision_request methods), and there’s a description of using/adapting Kevin’s code here:

Hope this helps,

1 Like

Hi Peter,

Thanks for the detailed explanation… I found the chapter you wrote after posting here - but it seems I need to study it a little bit more to fit in my catalogs and workflows.

btw, let me thank you for the amazing work you’ve done - your book literally saved my day more than once, and I can surely say it is the most extensive source of information on CloudForms automate. Thanks again.