Minimum privileges required to successfully deploy or export an OVA/OVF template in vCenter Server
book
Article ID: 409447
calendar_today
Updated On:
Products
VMware vCenter Server 8.0VMware vSphere ESXi
Issue/Introduction
When attempting to "Deploy OVF Template" the user is unable to select the datacenter or an ESXi Host under the "Select a compute resource" stage.
It gives either of the below errors:
The user trying to deploy the OVA/OVF isn't given an 'Administrator' role and cannot be given one because of the organizational restrictions. Therefore a 'custom' role has been created and assigned to allow the user to be able to provision OVA/OVF and nothing more.
Environment
VMware vCenter Server
Cause
The minimum privileges required to successfully deploy an OVA/OVF template are missing in the custom role.
The following errors (highlighted in bold) confirm the specific privilege which is missing in the custom role.
No accessible network found in the target environment - confirms the absence of "Assign network" privilege.
Unable to process template - confirms the absence of all or any virtual machine privilege.
No datastore with allocate permission available - confirms the absence of a Datastore privilege.
Resolution
Follow the instructions below to add the specified privileges to the custom role required for a user to be able to successfully deploy an OVA/OVF.
Login to the vCenter Server as "Administrator".
Navigate to Home > Administration > Roles.
Select the custom role and click on 'Edit'.
Remove all the privileges by deselecting the boxes with the exception of below ones.
Datastore:
Allocate space
Network:
Assign network
vApp:
Import
Virtual Machine:
Change Configuration Add new disk Add or remove device Advanced configuration Change Memory Change Settings Modify device settings
Edit Inventory:
Create new
Interaction:
Guest operation system management by VIX API Power on Power off
Save the changes made to the custom role.
Now assign the newly created role to your domain/local user under "Permissions" on the vCenter Server object. Make sure the "propagate to children" checkbox is selected when adding the permission.
Note: If "propagate to children" cannot be used at the vCenter level, then use additional permissions with a folder under the "VM and Templates" tab, as folders live directly under the datacenter object in permission hierarchy. If this is done, you then need to make sure the network and datastore have permissions to deploy the OVF template to
Logout and login as the user who has inherited the custom role. The user should be able to deploy an OVA/OVF template without issues.