A non-transitory computer-readable storage medium including instructions that are configured, when executed by a computing system, to perform a method for allocating physical resources of a host physical computing system to a virtual machine in a virtualized computing environment comprising at least the host physical computing system hosting multiple virtual machines, the method comprising:
- receiving, at a connection server, a request for allocation of the virtual machine, for a user;
- in response to receiving the request for allocation of the virtual machine for the user,
- retrieving, from a stored user profile corresponding to the user, a plurality of attribute values corresponding to attributes of the user;
- retrieving a virtual machine configuration file, the configuration file defining an allocation of the physical resources on the host physical computing system for the virtual machine, wherein the configuration file requires a custom resource value to define the allocation of at least one physical resource for the virtual machine;
- determining the custom resource value, comprising:
- determining an attribute value designated for custom allocation of resources from the retrieved plurality of attribute values corresponding to attributes of the user based on a resource configuration template table, wherein the resource configuration template table defines which attribute value of the user is designated for assigning the custom resource value;
- comparing the determined attribute value with a plurality of values designated for the custom allocation of resources in a stored table, wherein the stored table defines for each of the plurality of values designated for the custom allocation of resources, corresponding resource values for allocation of physical resources;
- when the determined attribute value matches a value designated for the custom allocation of resources in the stored table, retrieving a resource value corresponding to the matched value from the stored table and using the retrieved resource value as the custom resource value, wherein the stored table further includes a default resource value, wherein the default resource value is used for the custom resource value if the determined attribute value does not match any values designated for the custom allocation of resources in the stored table;
- designating a virtual machine identification (VMID) for the requested virtual machine;
- and
- booting the virtual machine with the designated VMID for access by the user, the virtual machine being booted with the allocation of physical resources of the host physical computing system defined by the configuration file with the determined custom resource value.