<a id="howto-snap"></a>

# How to manage the snaps

Manage MicroCloud and its components (LXD, MicroCeph, and MicroOVN) through their snap packages.

For the installation guide, refer to [How to install MicroCloud](https://canonical.com/microcloud/docs/default/how-to/install/index.html.md#howto-install). For details about the snaps, including [supported and compatible releases](https://canonical.com/microcloud/docs/default/reference/releases-snaps/index.html.md#ref-releases-matrix), [tracks](https://canonical.com/microcloud/docs/default/reference/releases-snaps/index.html.md#ref-snaps-microcloud-tracks), and [release processes](https://canonical.com/microcloud/docs/default/reference/releases-snaps/index.html.md#ref-releases-microcloud), refer to [Releases and snaps](https://canonical.com/microcloud/docs/default/reference/releases-snaps/index.html.md#ref-releases-snaps).

<a id="howto-snap-info"></a>

## View snap information

To view information about a snap, including the available channels and installed version, run:

```bash
snap info <microcloud|lxd|microceph|microovn>
```

To view information about the installed version only, run:

```bash
snap list <microcloud|lxd|microceph|microovn>
```

Sample output:

`root@instance:~# ``snap list microcloud`
```text
Name        Version        Rev   Tracking  Publisher   Notes
microcloud  2.1.0-3e8b183  1144  2/stable  canonical✓  in-cohort,held
```

The first part of the version string corresponds to the release (in this sample, `2.1.0`).

<a id="howto-snap-daemon"></a>

## Manage the MicroCloud daemon

Installing the MicroCloud snap creates the MicroCloud daemon as a snap service. Use the following `snap` commands to manage this daemon.

To view the status of the daemon, run:

```bash
snap services microcloud
```

To stop the daemon, run:

```bash
sudo snap stop microcloud
```

To start the daemon, run:

```bash
sudo snap start microcloud
```

To restart the daemon, run:

```bash
sudo snap restart microcloud
```

For more information about managing snap services, visit [Control services](https://snapcraft.io/docs/how-to-guides/manage-snaps/control-services/#how-to-guides-manage-snaps-control-services) in the Snap documentation.

## Related topics

How-to guides:

- [How to update and upgrade](https://canonical.com/microcloud/docs/default/how-to/update_upgrade/index.html.md#howto-update-upgrade)
- [How to install MicroCloud](https://canonical.com/microcloud/docs/default/how-to/install/index.html.md#howto-install)

Reference:

- [Releases and snaps](https://canonical.com/microcloud/docs/default/reference/releases-snaps/index.html.md#ref-releases-snaps)

In the LXD documentation:

- [How to manage the LXD snap](https://canonical.com/microcloud/docs/default/lxd/howto/snap/#howto-snap)
