<commit_before># Self Service

The self-service feature is the possibility for users to create new VMs. That's different from delegating existing resources to them, and it leads to a lot of side-effects.

## Set of resources

To create a new set of resources, go inside the "Self Service" section in the main menu:

![](./assets/selfservice_menu.png)

### Create a set

> Only an admin can create a set of resources

To allow people creating VMs as they want, we need to give them a *part* of your XenServer resources (disk space, CPUs, RAM). You can call this "general quotas" if you like. But you need first to decide which resources will be used.

In this example below, we'll create a set called **"sandbox"** with:

* "devs" group could access this set (all users in the group)
* "Lab Pool" is the pool where they can play
* "Debian 8 Cloud Ready" is the only template they could use
* "SSD NFS" is the only SR where they can create VMs
* "Pool-wide network with eth0" is the only available network for them

![](./assets/selfserviceset.png)

As you can see, only compatible hosts are shown and could be used for this resource set (here, hosts in another pools aren't). This way, you can be sure to have resource free for other task than self-service.

> Don't forget to add an ISO SR to allow your users to install VMs with CD if necessary

#### Quotas

Then, you can define quotas on this set:

* max vCPUs
* max RAM
* max disk usage

When you click on create, you can see the resource set and remove or edit it:

![](https://xen-orchestra.com/blog/content/images/2016/02/selfservice_recap_quotas.png)

## Usage (user side)

As soon a user is inside a resource set, it displays a new button in its main view: the gree icon with the "plus" sign:

![](./assets/selfservice_newvm.png)

Now, the user can create a VM with only the resources given in the set:

![](./assets/selfservice_createvm.png)

And the recap before creation:

![](https://xen-orchestra.com/blog/content/images/2016/02/selfservice_summary_quotas.png)

If the "Create" button is disabled, it means the user requested more resources than available.

Finally, if a user is inside many sets, they can be switched in the top right of the screen.
<commit_msg>Note about self service resources and snapshot (#105)<commit_after># Self Service

The self-service feature is the possibility for users to create new VMs. That's different from delegating existing resources to them, and it leads to a lot of side-effects.

## Set of resources

To create a new set of resources, go inside the "Self Service" section in the main menu:

![](./assets/selfservice_menu.png)

### Create a set

> Only an admin can create a set of resources

To allow people creating VMs as they want, we need to give them a *part* of your XenServer resources (disk space, CPUs, RAM). You can call this "general quotas" if you like. But you need first to decide which resources will be used.

In this example below, we'll create a set called **"sandbox"** with:

* "devs" group could access this set (all users in the group)
* "Lab Pool" is the pool where they can play
* "Debian 8 Cloud Ready" is the only template they could use
* "SSD NFS" is the only SR where they can create VMs
* "Pool-wide network with eth0" is the only available network for them

![](./assets/selfserviceset.png)

As you can see, only compatible hosts are shown and could be used for this resource set (here, hosts in another pools aren't). This way, you can be sure to have resource free for other task than self-service.

> Don't forget to add an ISO SR to allow your users to install VMs with CD if necessary

#### Quotas

Then, you can define quotas on this set:

* max vCPUs
* max RAM
* max disk usage

> Note: Snapshotting a VM within a self-service will use the quota from the resource set. The same rule applies for backups and replication.  

When you click on create, you can see the resource set and remove or edit it:

![](https://xen-orchestra.com/blog/content/images/2016/02/selfservice_recap_quotas.png)

## Usage (user side)

As soon a user is inside a resource set, it displays a new button in its main view: the gree icon with the "plus" sign:

![](./assets/selfservice_newvm.png)

Now, the user can create a VM with only the resources given in the set:

![](./assets/selfservice_createvm.png)

And the recap before creation:

![](https://xen-orchestra.com/blog/content/images/2016/02/selfservice_summary_quotas.png)

If the "Create" button is disabled, it means the user requested more resources than available.

Finally, if a user is inside many sets, they can be switched in the top right of the screen.

{'fraction_non_alphanumeric': 0.07503234152652005, 'fraction_numerical': 0.0066839154808106946, 'mean_word_length': 4.086622807017544, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5859750', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1295, 'n_words': 722}