• Logo
    LXD
  • canonical.com/lxd
  • More resources
    • Discourse
    • Matrix
    • GitHub
Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
LXD documentation 6.8
LXD documentation 6.8
  • LXD
  • Tutorial
  • How-to guides
    • Getting started
      • Install LXD
      • Initialize LXD
      • Access the UI
      • Access documentation locally
    • LXD server and client
      • Configure the LXD server
      • Expose LXD to the network
      • Configure single sign-on with OIDC
        • Configure Auth0
        • Configure Ory Hydra
        • Configure Keycloak
        • Configure Entra ID
        • Configure Pocket ID
      • Add remote servers
      • Add command aliases
    • Instances
      • Create instances
      • Configure instances
      • Manage instances
      • Use profiles
      • Troubleshoot errors
      • Auto attach Ubuntu Pro
      • Access files
      • Access the console
      • Run commands
      • Use cloud-init
      • Add a routed NIC to a VM
      • Back up instances
      • Import existing machines
      • Migrate instances
      • Pass NVIDIA GPUs
    • Images
      • Use remote images
      • Manage images
      • Associate profiles
      • Copy and import images
      • Create images
    • Projects
      • Create and configure projects
      • Work with projects
      • Confine users to projects
    • Storage
      • Manage pools
      • Manage volumes
      • Manage buckets
      • Create or move an instance in a pool
      • Back up a custom volume
      • Move or copy a custom volume
      • Use the LXD CSI driver with Kubernetes
    • Networking
      • Create a network
      • Configure a network
      • Configure as BGP server
      • Configure network ACLs
      • Configure forwards
      • Configure network zones
      • Configure your firewall
      • Integrate with resolved
      • Set up OVN
      • Configure load balancers
      • Configure peer routing
      • Display IPAM information
    • Clustering
      • Form a cluster
      • Manage a cluster
      • Configure networks
      • Configure storage
      • Manage instances
      • Set up cluster groups
      • Use placement groups
      • Recover a cluster
      • Recover orphaned volume entries
      • Set up a highly available virtual IP
      • Create cluster links
      • Manage cluster links
      • Set up replicators
      • Manage replicators
    • Production setup
      • Benchmark performance
      • Increase bandwidth
      • Monitor metrics
      • Send logs to Loki
      • Set up Grafana
      • Back up a server
      • Recover instances
      • Disaster recovery with storage replication
      • Disaster recovery with replicators
    • Manage the snap
    • Harden security
    • Troubleshooting
      • Configure your firewall
      • Troubleshoot instances
      • Troubleshoot networks
      • Troubleshoot Dqlite
      • Frequently asked
      • Debug LXD
    • Authenticate to the LXD API using bearer tokens
    • Authenticate to the DevLXD API
    • Get support
    • Contribute to LXD
  • Explanation
    • lxd and lxc
    • Containers and VMs
    • Local and remote images
    • Storage pools, volumes, and buckets
    • Networking setups
    • The LXD Dqlite database
    • lxc show and info
    • Remote API authentication
    • Remote API authorization
    • Instances grouping with projects
    • Clusters
    • Replicators
    • Performance tuning
    • Security
    • Privilege delegation using BPF Token
    • The LXD CSI driver
  • Reference
    • Requirements
    • Architectures
    • Guest OS compatibility
    • Container environment
    • Man pages
      • lxc
    • Release notes
      • LXD 6.8
      • LXD 6.7
      • LXD 6.6
    • Releases and snap
    • Remote image servers
    • Image format
    • Configuration option index
    • Server configuration
    • Instance configuration
      • Instance properties
      • Instance options
      • Devices
        • Standard devices
        • Type: none
        • Type: nic
        • Type: disk
        • Type: unix-char
        • Type: unix-block
        • Type: usb
        • Type: gpu
        • Type: infiniband
        • Type: proxy
        • Type: unix-hotplug
        • Type: tpm
        • Type: pci
      • Units for storage and network limits
    • Preseed YAML file fields
    • Project configuration
    • Storage drivers
      • Directory - dir
      • Btrfs - btrfs
      • LVM - lvm
      • ZFS - zfs
      • Ceph RBD - ceph
      • Dell PowerFlex - powerflex
      • Pure Storage - pure
      • HPE Alletra - alletra
      • CephFS - cephfs
      • Ceph Object - cephobject
    • Networks
      • Bridge network
      • OVN network
      • Macvlan network
      • Physical network
      • SR-IOV network
    • Placement group configuration
    • Clusters
      • Cluster member configuration
      • Cluster link configuration
    • Replicator configuration
    • Permissions
    • Production server settings
    • Provided metrics
    • REST API
      • Main API overview
      • Main API specification
      • Main API extensions
      • Events stream
      • DevLXD API for instances
    • LXD CSI driver reference
    • Internals
      • Environment variables
      • Daemon behavior
      • UEFI variables for VMs
      • System call interception
      • User namespace setup
      • OVN implementation
      • VM live migration implementation
      • Dqlite database for cluster state
    • Project repository
    • Image server
Back to top
Contribute to this page

How to manage cluster links¶

View cluster links¶

To list all cluster links (that you have permission to see), run:

lxc cluster link list

The list view shows each link’s addresses, identity status, and type.

To view the full configuration of a specific cluster link, run:

lxc cluster link show <cluster-link-name>

To view detailed information about the state of a specific cluster link, run:

lxc cluster link info <cluster-link-name>

The info view shows the link type and the status of each linked cluster member.

To list all cluster links (that you have permission to see), send the following request:

lxc query --request GET /1.0/cluster/links

To display detailed information about each cluster link, use Recursion:

lxc query --request GET /1.0/cluster/links?recursion=1

See GET /1.0/cluster/links and GET /1.0/cluster/links?recursion=1 for more information.

To view the full configuration of a specific cluster link, run:

lxc query --request GET /1.0/cluster/links/<name>

See GET /1.0/cluster/links/{name} for more information.

To view detailed information about the state of a specific cluster link, run:

lxc query --request GET /1.0/cluster/links/<name>/state

See GET /1.0/cluster/links/{name}/state for more information.

Manage cluster link permissions¶

To modify the permissions of a cluster link, add its identity to authentication groups. See Manage permissions for more information.

For example, you can create an authentication group with server viewer permissions and add the cluster link identity to it:

lxc auth group create viewers
lxc auth group permission add viewers server viewer
lxc auth identity group add tls/<cluster-link-name> viewers

Alternatively, you can specify an authentication group when creating a cluster link, which will automatically assign the cluster link identity to that group:

lxc cluster link create <cluster-link-name> --auth-group <group name>

Configure a cluster link¶

See Cluster link configuration for more details on cluster link configuration options.

There are multiple ways to update the configuration for a cluster link.

You can edit the entire configuration at once:

To edit a cluster link in your default text editor, enter the following command:

lxc cluster link edit <cluster-link-name>

To edit a cluster link, send the following request:

lxc query --request PUT /1.0/cluster/links/<name> --data "<link_configuration>"

See PUT /1.0/cluster/links/{name} for more information.

You can update a single property for a cluster link:

Use the set command with the --property flag:

lxc cluster link set <cluster-link-name> --property <key>=<value>

For example, to update the description property:

lxc cluster link set cluster_b --property description="Backup cluster in data center 2"

To modify a specific property, send the following request:

lxc query --request PATCH /1.0/cluster/links/<name> --data '{"<key>": "<value>"}'

Example:

lxc query --request PATCH /1.0/cluster/links/cluster_b --data '{"description": "Backup cluster in data center B"}'

See PATCH /1.0/cluster/links/{name} for more information.

Cluster links have the following properties:

config

Cluster link configuration map

Key: config
Type:

string set

Required:

no

description

Description of the cluster link

Key: description
Type:

string

Required:

no

name

Name of the cluster link

Key: name
Type:

string

Required:

yes

type

Type of the cluster link

Key: type
Type:

string

Required:

yes

You can also update a single configuration option for a cluster link. Run:

lxc cluster link set <cluster-link-name> <key>=<value>
lxc query --request PATCH /1.0/cluster/links/<name> --data '{"config": <config>}'

See PATCH /1.0/cluster/links/{name} for more information.

Delete a cluster link¶

To delete a cluster link, run:

lxc cluster link delete <cluster-link-name>
lxc query --request DELETE /1.0/cluster/links/<name>

See DELETE /1.0/cluster/links/{name} for more information.

To fully disconnect the cluster link on both sides

To fully disconnect the clusters, run the command on both clusters.

Deleting a cluster link removes the established trust and deletes the associated identity on the local cluster. If you only run the command on one cluster, the other cluster still has the cluster link identity and trust established (still allowing requests from the linked cluster).

Next
How to set up replicators
Previous
How to create cluster links
© 2014-2026 AGPL-3.0, LXD contributors
Last updated on Apr 29, 2026
Manage your tracker settings
Contents
  • How to manage cluster links
    • View cluster links
    • Manage cluster link permissions
    • Configure a cluster link
    • Delete a cluster link