<a id="howto-storage-create-instance"></a>

# 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](https://canonical.com/lxd/docs/default/explanation/storage/index.html.md#storage-default-pool) for detailed information.

CLI

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:

```none
lxc launch <image> <instance_name> --storage <storage_pool>
```

UI

To create an instance in a specific storage pool, override the root storage during instance creation.

To do this, begin the [instance creation wizard](https://canonical.com/lxd/docs/default/howto/instances_create/index.html.md#instances-create). Once the Base Image is selected, the Devices section of the left-hand sub-menu becomes available. From this section, select Devices > Disk.

![LXD Create instance form](images/instances/create_instance_form_disk_devices.png)

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

![LXD Create instance disk devices form](images/instances/create_instance_form.png)

From here, you can override the pool and size of the root storage by editing their respective fields.

<!-- Include content from [storage_move_volume.md](storage_move_volume.md) -->

## Move instance storage volumes to another pool

To move an instance storage volume to another storage pool, [stop the instance](https://canonical.com/lxd/docs/default/howto/instances_manage/index.html.md#instances-manage-stop) that contains the storage volume you want to move.

CLI

Use the following command to move the instance to a different pool:

```none
lxc move <instance_name> --storage <target_pool_name>
```

UI

Navigate to the overview page of the selected instance, and click on the Migrate button in the top right corner.

![LXD Instance overview page](images/instances/instance_overview_page.png)

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

![LXD Instance root storage move method modal](images/instances/move_instance_modal.png)

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

![LXD Instance root storage move pool selection modal](images/instances/move_instance_modal_2.png)

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

![LXD Instance root storage confirmation modal](images/instances/move_confirmation_modal.png)
