Offline docs (switch to live docs)                        

How to use resource pools

*Errors or typos? Topics missing? Hard to read? Let us know.

Administrators can manage MAAS resource pools to group machines in sensible ways. All MAAS installations have a resource pool named “default,” to which MAAS automatically adds new machines.

Add a resource pool

To add a resource pool to MAAS:

    maas $PROFILE resource-pools create name=$NAME description="$DESCRIPTION"

Delete a resource pool

If you delete a resource pool, all machines that belong to that resource pool will return to the default pool. There is no confirmation dialogue; pools are deleted immediately. To delete a resource pool:

    maas $PROFILE resource-pool delete $RESOURCE_POOL_ID

Add a machine to a pool

To add a machine to a resource pool:

    maas $PROFILE machine update $SYSTEM_ID pool=$POOL_NAME

Remove a machine from a pool

To remove a machine from a resource pool:

    maas $PROFILE machine update $SYSTEM_ID pool="default"

Add a VM host to a pool

To add a VM host to a resource pool:

With the UI in all other versions of MAAS, you can add a VM host to a resource pool when you create a new VM host, or you can edit the VM host’s configuration:

image
    maas $PROFILE machine update $SYSTEM_ID pool=$POOL_NAME

Remove a VM host from a pool

To remove a VM host from a resource pool:

image
    maas $PROFILE machine update $SYSTEM_ID pool="default"

List resource pools (CLI)

Via the MAAS CLI, use the following command:

maas $PROFILE resource-pools read

List a single pool

Via the MAAS CLI, use the following command:

maas $PROFILE resource-pool read $RESOURCE_POOL_ID

Update a pool

Via the MAAS CLI, use the following command:

maas $PROFILE resource-pool update $RESOURCE_POOL_ID name=newname description="A new description."

The description field is optional.