-**What this tutorial is:** An in-depth walk-through of how to get Pacemaker to
-integrate a remote node into the cluster as a node capable of running cluster
-resources.
-
-**What this tutorial is not:** A realistic deployment scenario. The steps shown
-here are meant to get users familiar with the concept of remote nodes as
-quickly as possible.
-
-Configure Cluster Nodes
-#######################
-
-This walk-through assumes you already have a Pacemaker cluster configured. For examples, we will use a cluster with two cluster nodes named pcmk-1 and pcmk-2. You can substitute whatever your node names are, for however many nodes you have. If you are not familiar with setting up basic Pacemaker clusters, follow the walk-through in the Clusters From Scratch document before attempting this one.
-
-Configure Remote Node
-#####################
-
-.. index::
- single: remote node; firewall
-
-Configure Firewall on Remote Node
-_________________________________
-
-Allow cluster-related services through the local firewall:
- No addresses specified for host 'remote1', using 'remote1'
- Sending 'pacemaker authkey' to 'remote1'
- remote1: successful distribution of the file 'pacemaker authkey'
- Requesting 'pacemaker_remote enable', 'pacemaker_remote start' on 'remote1'
- remote1: successful run of 'pacemaker_remote enable'
- remote1: successful run of 'pacemaker_remote start'
-
-That's it. After a moment you should see the remote node come online. The final ``pcs status`` output should look something like this, and you can see that it
-created the ocf:pacemaker:remote resource:
-
-.. code-block:: none
-
- [root@pcmk-1 ~]# pcs status
- Cluster name: mycluster
- Cluster Summary:
- * Stack: corosync
- * Current DC: pcmk-1 (version 2.1.2-4.el9-ada5c3b36e2) - partition with quorum
- * Last updated: Wed Aug 10 05:17:28 2022
- * Last change: Wed Aug 10 05:17:26 2022 by root via cibadmin on pcmk-1
- * 3 nodes configured
- * 2 resource instances configured
-
- Node List:
- * Online: [ pcmk-1 pcmk-2 ]
- * RemoteOnline: [ remote1 ]
-
- Full List of Resources:
- * xvm (stonith:fence_xvm): Started pcmk-1
- * remote1 (ocf:pacemaker:remote): Started pcmk-1
-
- Daemon Status:
- corosync: active/disabled
- pacemaker: active/disabled
- pcsd: active/enabled
-
-How pcs Configures the Remote
-#############################
-
-Let's take a closer look at what the ``pcs cluster node add-remote`` command is
-doing. There is no need to run any of the commands in this section.
-
-First, ``pcs`` copies the Pacemaker authkey file to the VM that will become the
-guest. If an authkey is not already present on the cluster nodes, this command
-creates one and distributes it to the existing nodes and to the guest.
-
-If you want to do this manually, you can run a command like the following to
-generate an authkey in ``/etc/pacemaker/authkey``, and then distribute the key
-**What this tutorial is:** An in-depth walk-through of how to get Pacemaker to
-manage a KVM guest instance and integrate that guest into the cluster as a
-guest node.
-
-**What this tutorial is not:** A realistic deployment scenario. The steps shown
-here are meant to get users familiar with the concept of guest nodes as quickly
-as possible.
-
-Configure Cluster Nodes
-#######################
-
-This walk-through assumes you already have a Pacemaker cluster configured. For examples, we will use a cluster with two cluster nodes named pcmk-1 and pcmk-2. You can substitute whatever your node names are, for however many nodes you have. If you are not familiar with setting up basic Pacemaker clusters, follow the walk-through in the Clusters From Scratch document before attempting this one.
-
-Install Virtualization Software
-_______________________________
-
-On each node within your cluster, install virt-install, libvirt, and qemu-kvm.
-Start and enable ``virtnetworkd``.
-
- .. code-block:: none
-
- # dnf install -y virt-install libvirt qemu-kvm
- # systemctl start virtnetworkd
- # systemctl enable virtnetworkd
-
-Reboot the host.
-
-.. NOTE::
-
- While KVM is used in this example, any virtualization platform with a Pacemaker
- resource agent can be used to create a guest node. The resource agent needs
- only to support usual commands (start, stop, etc.); Pacemaker implements the
- **remote-node** meta-attribute, independent of the agent.
-
-Configure the KVM guest
-#######################
-
-Create Guest
-____________
-
-Create a KVM guest to use as a guest node. Be sure to configure the guest with a
-hostname and a static IP address (as an example here, we will use guest1 and 192.168.122.10).
-Here's an example way to create a guest:
-
-* Download an .iso file from the |REMOTE_DISTRO| |REMOTE_DISTRO_VER| `mirrors
- list <https://mirrors.almalinux.org/isos.html>`_ into a directory on your
- cluster node.
-
-* Run the following command, using your own path for the **location** flag: