Deploying a new host from a template in VMware

I am trying to deploy a new image based host from an existing template in
VMware.

We have a compute resource set up for our vCenter, we have created a new
image in the foreman UI for the template we wish to use.

However when try to deploy a new host on VMware, and select image based on
the Operating System tab, of the new host form. the image drop down is
blank.

any idea's on how to solve this. I am using Foreman 1.5.2 and vCenter 5.5

Thanks

> I am trying to deploy a new image based host from an existing template
> in VMware.
>
> We have a compute resource set up for our vCenter, we have created a new
> image in the foreman UI for the template we wish to use.

Not adding the image in the UI (under Compute Resources > your CR >
images) is the most usual thing, but it sounds like you have.

> However when try to deploy a new host on VMware, and select image based
> on the Operating System tab, of the new host form. the image drop down
> is blank.
>
> any idea's on how to solve this. I am using Foreman 1.5.2 and vCenter 5.5

I'd double and triple check the operating system and architecture for
the image versus what you're provisioning. e.g. the image might be set
to i386, but you're provisioning x86_64.

··· On 30/07/14 17:16, Gary Smithson wrote:


Dominic Cleal
Red Hat Engineering

We have created a service account and role for Foreman automated
provisioning of VMWare hosts but stuck at setting right permissions for
Foreman-VMware domain account
I have followed guidelines from this document -
http://www.vmware.com/pdf/vi3_vc_roles.pdf - page #8 - "Example: Allowing
Template Deployment to a Resource
Pool". I've created a custom role and assigned it to Foreman-VMware domain
account and all VMWare objects exactly as it outlined in manual…
No luck yet with this account (see below). However provisioning works fine
when we use Administrator level VMWare role but not this

··· ---- Failed to create a compute VCR1-vCenter (VMWare) instance vcr1vmtest1.domain.com: NoPermission: Permission to perform this operation was denied. /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:331:in `clone_vm' /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:279:in `create_vm' Failed to save: Failed to create a compute VCR1-vCenter (VMWare) instance vcr1vmtest1.domain.com: NoPermission: Permission to perform this operation was denied. ----

On Wednesday, July 30, 2014 9:16:27 AM UTC-7, Gary Smithson wrote:

I am trying to deploy a new image based host from an existing template in
VMware.

We have a compute resource set up for our vCenter, we have created a new
image in the foreman UI for the template we wish to use.

However when try to deploy a new host on VMware, and select image based on
the Operating System tab, of the new host form. the image drop down is
blank.

any idea’s on how to solve this. I am using Foreman 1.5.2 and vCenter 5.5

Thanks

Did you find the solution? I'm going through the same problem? Thanks in
advance

··· On Wednesday, July 30, 2014 9:16:27 AM UTC-7, Gary Smithson wrote: > > I am trying to deploy a new image based host from an existing template in > VMware. > > We have a compute resource set up for our vCenter, we have created a new > image in the foreman UI for the template we wish to use. > > However when try to deploy a new host on VMware, and select image based on > the Operating System tab, of the new host form. the image drop down is > blank. > > any idea's on how to solve this. I am using Foreman 1.5.2 and vCenter 5.5 > > Thanks >

I completely forgot about this thread as we figured it out shortly after I
posted it.

In our case we had selected the wrong OperatingSystem, in the images tab,
under Compute Resources > CR >
images

Once we choose the right one everything worked.

··· On Thursday, September 4, 2014 6:18:57 PM UTC+1, huhm4n wrote:

Did you find the solution? I’m going through the same problem? Thanks in
advance

On Wednesday, July 30, 2014 9:16:27 AM UTC-7, Gary Smithson wrote:

I am trying to deploy a new image based host from an existing template in
VMware.

We have a compute resource set up for our vCenter, we have created a new
image in the foreman UI for the template we wish to use.

However when try to deploy a new host on VMware, and select image based
on the Operating System tab, of the new host form. the image drop down is
blank.

any idea’s on how to solve this. I am using Foreman 1.5.2 and vCenter 5.5

Thanks