Requirements

Hardware requirements

MicroCloud supports up to 50 machines as members of the same cluster.

  • For testing and development, you can use physical or virtual machines as cluster members. A single machine can be used to create a single-member cluster.

  • For production environments, a minimum of 3 physical machines is required as cluster members. We do not recommend using virtual machines as cluster members in production.

  • For critical deployments, we recommend a minimum of 4 cluster members. While 3 members are sufficient for high availability, an extra member provides redundancy for running critical applications.

Tip

If you want to add further members to a cluster after initialization, use the microcloud add command.

Processor architectures

You can mix different processor architectures within the same MicroCloud cluster.

Memory requirements

We recommend at least:

  • 8 GiB of RAM for test and development environments

  • 32 GiB of RAM for production environments

For detailed RAM requirements related to distributed storage, see the RAM and Memory sections of Ceph’s hardware requirements.

Storage requirements

All storage disks should be free of existing partitions or file systems.

Also see Ceph’s Hardware Recommendations.

Local storage

Local storage is fast and convenient. It is commonly used in production and is typically sufficient on its own for testing and development. To use local storage, each cluster member requires at least one local disk.

The default file system type for local storage is ZFS.

Distributed storage

You can set up distributed storage on a test cluster with a single member, but such a cluster cannot support the recommended replication configuration which ensures high availability.

High availability

For high availability, and the ability to recover a cluster should something go wrong, use distributed storage with at least three additional disks for use by Welcome to Ceph. These disks must be located across at least three different cluster members.

Production environments

For production environments, we recommend at least 3 NVMe disks per cluster member:

  • 1 for OS

  • 1 for local storage

  • 1 for distributed storage

Full disk encryption

If you intend to use full disk encryption on any cluster member, the dm-crypt kernel module must be available, and the snap dm-crypt plug must be connected to MicroCeph. The dm-crypt module is available by default in Ubuntu 24.04 and higher.

For further information, see the Prerequisites section of this page: Full disk encryption in MicroCeph. Note that the command shown on that page to connect the snap dm-crypt plug can only be performed once MicroCeph is installed. The MicroCloud installation steps include installing MicroCeph; thus, install MicroCloud first, then connect the plug.

Networking requirements

Required network interfaces

For networking, use at least two dedicated network interfaces for each machine in a MicroCloud cluster: one for intra-cluster communication and one for external connectivity. These can be connected to the same network, or different networks.

In production environments, we recommend dual-port network cards with a minimum 10 GiB capacity, or higher if low latency is essential.

Network interface for intra-cluster traffic

MicroCloud requires one network interface that is pre-configured with an IP address (IPv4 or IPv6) that is within the same subnet as the IPs of the other cluster members. The network that it is connected to must support multicast.

This network interface can be, for example, a dedicated physical network interface, a VLAN, or a virtual function on an SR-IOV-capable network interface. It serves as the dedicated network interface for MicroCloud and is used for multicast discovery (during setup) and all internal traffic between the MicroCloud, OVN, and Ceph members. The address selected for internal traffic is also used by each LXD cluster member to serve the LXD REST API, so it should be reachable by users accessing LXD.

Single network interface configuration

For testing or development environments, it is possible to use a single network interface per cluster member, with a bridge in front of each for external connectivity to the uplink network. An OVS bridge is preferable to a native bridge to avoid an extra hop for OVN uplink traffic.

However, this configuration is neither supported nor recommended, because it prevents traffic segregation of intra-cluster and uplink traffic. If you wish to experiment with this setup, you can find basic examples of bridge configuration using Netplan in the Netplan documentation. Note that this is a general reference and does not cover the use of OVS or MicroCloud. You must determine the appropriate configuration for your environment.

Optional network interfaces

MicroCloud requires additional network interfaces to implement either of the following optional setups:

These interfaces can be physical NICs, or VLAN interfaces on top of one or more NICs (which can optionally be bonded for failover).

Cluster member IP addresses

The IP addresses of the cluster members must not change after installation, so they must be configured as static addresses.

Network ports

MicroCloud and its components use the following ports on each cluster member. Make sure that no other services use these ports:

Port

Protocol

Used by

6443

TCP

MicroOVN

7443

TCP

MicroCeph

8443

TCP

LXD (API and UI)

9443

TCP

MicroCloud

9444

UDP

MicroCloud multicast discovery

The TCP ports must be reachable between all cluster members. Port 9444 is only used for multicast discovery while setting up the cluster or adding new members. It only needs to be reachable on the initiator, the cluster member on which you run microcloud init or microcloud add.

Ceph and OVN use additional ports for their own services, as detailed in the MicroCeph attack surface documentation and the MicroOVN hardening guide.

Software requirements

MicroCloud requires snapd version 2.59 or newer.

We recommend an LTS version of Ubuntu 22.04 or newer. Production deployments subscribed to Ubuntu Pro are required to use an LTS version.

If you intend to use ZFS storage, use a non-HWE (Hardware Enabled) variant of Ubuntu 22.04.

If you do not set up distributed networking with MicroOVN, MicroCloud falls back on the Ubuntu Fan for networking (see Alternatives), which requires the vxlan kernel module.

Also see LXD’s Requirements and Ceph’s OS Recommendations.

Snaps

To run MicroCloud, you must install the following snaps:

See How to install MicroCloud for installation instructions, as well as Releases and snaps for a matrix of supported and compatible versions.