How to create an instance in a specific storage pool¶
Instance storage volumes are created in the storage pool that is specified by the instance’s root disk device. This configuration is normally provided by the profile or profiles applied to the instance. See Default storage pool for detailed information.
To use a different storage pool when creating or launching an instance, add the --storage
flag.
This flag overrides the root disk device from the profile.
For example:
lxc launch <image> <instance_name> --storage <storage_pool>
To create an instance in a specific storage pool, override the root storage during instance creation.
To do this, begin the instance creation wizard. Once the Base Image is selected, the Devices section of the left-hand sub-menu becomes available. From this section, select Devices > Disk.

In this page, in the Override column, click the Edit button to create an override.

From here, you can override the pool and size of the root storage by editing their respective fields.
Move instance storage volumes to another pool¶
To move an instance storage volume to another storage pool, stop the instance that contains the storage volume you want to move.
Use the following command to move the instance to a different pool:
lxc move <instance_name> --storage <target_pool_name>
Navigate to the overview page of the selected instance, and click on the Move button in the top right corner.

Within the move modal, click Move instance root storage to a different pool to view available storage pools to move to.

Click Select in the row of the target storage pool for the move.

On the resulting confirmation modal, click Move to finalize the process.
