Remotes
=======

Proxmox Datacenter Manager allows you to add arbitrary Proxmox VE nodes or clusters and Proxmox
Backup Server instances as remotes. This allows for a structured, unified overview of every host,
VM, container, and datastore across different locations.

To take a remote out of service without removing it, edit it under "Remotes > Configuration" and
clear **Enable**. Proxmox Datacenter Manager stops collecting data from the remote and leaves it
out of operational views. Its configuration, access permissions, and cached data are not deleted,
and you can still edit the remote and check its certificates. The remote remains listed in the
sidebar with a disabled icon; opening it shows a notice with an **Edit** button, enabled with the
``Resource.Modify`` privilege on the remote. When removing a disabled remote, **Keep the API token
on the remote** stays checked and locked so Proxmox Datacenter Manager does not contact it. Select
**Enable** again to resume normal operation.

On the command line, disable or re-enable a remote with ``remote update <id> --disable true`` or
``--disable false`` using either ``proxmox-datacenter-manager-client`` or
``proxmox-datacenter-manager-admin``. Both commands also accept ``--delete <property>`` to remove
optional settings (``web-url`` or ``disable``).

Resource Operation
------------------

Through the Proxmox Datacenter Manager, administrators can manage the lifecycle of virtual workloads
at scale. Supported operations include starting, stopping, and rebooting guests across the inventory
without the need to log in to individual nodes.

Additionally, the platform supports live migration of guests. This capability extends to migrations
between independent clusters, facilitating load balancing and planned maintenance while maintaining
high availability.

Data Collection
---------------

Collecting data like RRD metrics, worker task status, logs, and other operational information is a
primary function of Proxmox Datacenter Manager. The system aggregates metrics to provide insight
into usage, performance, and infrastructure growth.

This allows for introspection into the server fleet, providing a central overview but also allowing
you to explore specific remotes or resources. Dashboards and RRD graphs visualize this data to
assist in detecting trends, optimizing resource allocation, and planning future capacity.

By default, metrics are collected from the remotes every ten minutes, and the history of remote
tasks is kept for seven days. Both can be changed, see :ref:`node_options`.

.. _remote_status:

Remote Status
-------------

The list of remotes under "Remotes > Configuration" shows the connection status and the version of
each remote next to its configuration. It is based on the data that Proxmox Datacenter Manager
collects in the background, so the remotes are not contacted to show the list. The list refreshes
every 30 seconds.

* **Connection**: Whether Proxmox Datacenter Manager can collect metrics from the remote and reach
  its configured endpoints. This differs from the status on the dashboard, which reflects problems
  within the remote, like offline cluster nodes.

  * ``OK``: The last metric collection succeeded and all endpoints are reachable.
  * ``Degraded``: The last metric collection succeeded, but the last connection attempt to some of
    the endpoints failed, for example because a cluster node is down. Requests use the other
    endpoints.
  * ``Failed``: The last metric collection failed, or none of the endpoints is reachable. The
    endpoints of Proxmox VE remotes are checked about once a minute, so an unreachable remote shows
    up before the next collection fails.
  * ``Unknown``: No metrics have been collected from the remote yet.
  * ``Disabled``: The remote is disabled, so no background checks or metric collections run.

  The "Details" button opens the details of the selected remote: the check the status is based on,
  the error of the last metric collection, the time of the last successful one, the other remotes
  that manage the same cluster, the unreachable endpoints with their errors, and the version of
  each node. Their text can be selected and copied. An information icon next to ``Degraded``,
  ``Failed``, or ``Unknown``, or next to the status of an enabled remote with a detected duplicate,
  also opens the details.

  Proxmox VE 9.3 and newer can report an ID of their cluster, which Proxmox Datacenter Manager
  collects to detect remotes that manage the same cluster. If it has collected the same cluster ID
  from another remote, the "Add Remote" wizard refuses the duplicate.
* **Version**: The installed version of Proxmox VE or Proxmox Backup Server, as found by the last
  update check. Update checks run every six hours and when using "Refresh all" under "Remotes >
  Updates". Proxmox Datacenter Manager also refreshes a node after observing a finished package
  index update task, such as one started by Proxmox VE's "Refresh" button or daily ``pveupdate``
  job. For Proxmox VE, this is best effort: only recent tasks are listed, and tasks of other users
  appear only if the remote's API token has ``Sys.Audit`` on ``/``. For Proxmox Backup Server, it
  applies to tasks tracked by Proxmox Datacenter Manager, including updates started from it. If the
  nodes of a cluster run different versions, the highest one is shown with an information icon that
  opens the details dialog with each node's version.

The column **Last Collection**, the time since metrics were last collected successfully, can be
shown through the "Columns" entry in the menu of any column header.

On the command line, ``proxmox-datacenter-manager-client remote status`` shows the same
information for enabled remotes; disabled remotes are omitted from its output, while
``remote list`` marks them with ``disabled: true``.

Proxmox VE Remote
-----------------

Proxmox VE remotes integrate virtualization clusters and independent nodes into the central
management view. Once added, the interface displays the hierarchy of hosts, virtual machines,
containers, and storage resources, searchable via the central interface.

Specific management capabilities available for Proxmox VE remotes include:

* **Update Management**: A centralized panel provides an overview of available updates across the
  infrastructure and allows for the rollout of patches directly from the Datacenter Manager
  interface.
* **SDN Capabilities**: Administrators can configure EVPN zones and VNets across multiple remotes to
  manage network overlays and administrative tasks.

Proxmox Backup Server Remote
----------------------------

Proxmox Backup Server instances can be managed as remotes to oversee backup infrastructure alongside
virtualization hosts. The interface provides a consolidated overview of different datastores,
displaying content and storage utilization.

Metrics from Proxmox Backup Server remotes are integrated directly into the central dashboard
widgets, including RRD graphs for performance and usage monitoring.

.. _remote_node_power:

Rebooting and Shutting Down Nodes
---------------------------------

A node of a Proxmox VE remote can be rebooted or shut down with the "Reboot" and "Shutdown" buttons
in the header of its panel, for example to activate a new kernel after an update. The panel of a
Proxmox Backup Server remote offers the same for its server. This needs the
``Sys.PowerManagement`` privilege on the node, ``/resource/{remote}/node/{node}``, or for a Proxmox
Backup Server on ``/resource/{remote}``. The buttons are disabled for a node that its remote reports
offline.

Before a Proxmox VE node goes down, it shuts down its guests, and stops those that do not shut down
in time. Guests managed by HA are handled according to the HA shutdown policy of the cluster, which
can also migrate them to other nodes.

The confirmation names the node and its remote, and for a shutdown warns that
Proxmox Datacenter Manager cannot start the node again.

The remote answers before the node goes down, so there is no task to follow. The node is then
unreachable until it is back up, and shows as offline once the other nodes of its cluster notice
that it is down. If the node is the only endpoint of the remote, the whole remote is unreachable
meanwhile, and Proxmox Datacenter Manager keeps showing the last known state of its resources,
including the node as online, until the remote is reachable again.

On the command line, ``proxmox-datacenter-manager-client pve node reboot <remote> <node>`` and
``proxmox-datacenter-manager-client pbs node reboot <remote>`` reboot a node, and the ``shutdown``
commands shut it down. When run on a terminal, they ask for confirmation first.

Connection and Certificate Troubleshooting
-------------------------------------------

Proxmox Datacenter Manager validates a remote's TLS certificate against the system certificate
store. If the remote presents a publicly trusted certificate, for example one issued by Let's
Encrypt through ACME, no further trust configuration is needed and certificate renewals are handled
transparently.

When a remote's certificate is not in the system trust store, as with the default self-signed
Proxmox certificates, Proxmox Datacenter Manager instead pins the fingerprint you accepted when
adding the remote. If such a remote later renews or rotates its certificate, the pinned fingerprint
no longer matches the presented one and every connection to that remote fails. The web interface
and the command-line tools surface this as an error such as:

.. code-block:: text

    the certificate of 'pve1.example.com:8006' does not match the stored fingerprint - check
    whether the certificate changed

The most common cause is a legitimate certificate renewal on the remote. It can also indicate an
expired or otherwise invalid certificate or, if the change is unexpected, a man-in-the-middle
attack, so confirm the new certificate through a trusted channel before accepting it.

To recover, re-probe the certificate that the remote currently presents and update the stored
fingerprint:

* In the web interface, use **Check Certificate** below the error in the panel of the affected
  remote or, with the remote selected, in the toolbar under "Remotes > Configuration". It contacts
  the node, shows the certificate presented now, and lets you update the pinned
  fingerprint once you have confirmed the change. If the remote now uses a certificate that the
  system trust store accepts, you can instead clear the stored fingerprint to rely on that trust.
* On the command line, inspect the presented certificate with
  ``proxmox-datacenter-manager-client remote probe-certificate <remote> <node>``, then store the
  verified value with ``proxmox-datacenter-manager-client remote set-fingerprint <remote> <node>
  <fingerprint>`` (omit the fingerprint to clear the pin).

Probing a certificate with **Check Certificate** or ``remote probe-certificate`` requires the
``Resource.Audit`` privilege on ``/resource/{id}``. Updating or clearing the stored fingerprint
requires ``Resource.Modify`` on ``/resource/{id}``.

The system journal on the Proxmox Datacenter Manager host records additional detail, including the
fingerprint that the remote presented and the one that was expected.
