> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pcd-ts/host/troubleshooting-host-onboarding-issues.md).

# Troubleshooting Host Onboarding Issues

## Problem

This document describes how to identify and resolve issues that occur when onboarding a host using the `pcdctl prep-node` command.

## Environment

* Private Cloud Director Virtualization - v2025.4 and Higher
* Self-Hosted Private Cloud Director Virtualization - v2025.4 and Higher
* pcdctl

## Procedure

The `pcdctl prep-node` without a prior configuration, prompts interactively for account information that can be directly retrieved from the **GUI -> Infrastructure -> Cluster Hosts -> Add a New Host** . The GUI is pre-filled with the Account URL, Username, Region, and Tenant for the logged-in user.

All the configuration details like the Platform9 Account URL, Username, Password, Region, and Tenant are persisted in a local `config.json` file under `/pf9/db/` .

Logs for `pcdctl` command execution are stored in the `/pf9/logs/pcdctl-<DATE>.log file`

1. Start with reviewing the pcdctl log file to trace the exact error.
2. Ensure to provide all the details correctly, without typos and extra space as the installer The installer authenticates with the Keystone API using these values. Any incorrect entry can cause authentication failure or DNS resolution errors.

{% tabs %}
{% tab title="pcdctl logs" %}

```bash
"msg":"Received a call to fetch keystone authentication for fqdn: https://[FQDN] and user: [USER] and tenant: [TENANT], mfa_token: <br>"}
"msg":"Error calling keystone API:Post \"https://[FQDN]/keystone/v3/auth/tokens?nocatalog\": dial tcp: lookup example1.pcd.platform9.co on 127.0.0.53:53: no such host<br>"}
```

{% endtab %}
{% endtabs %}

3. Verify that the host has outbound network connectivity to the internet and the <code class="expression">space.vars.product\_name</code> management plane controller:
   * `$ curl -s https://<FQDN>`
   * `$ ping www.google.com`
   * `$ telnet`[`www.google.com`](http://www.google.com)`443`
4. Execute `pcdctl prep-node` with the `--verbose` flag to gather detailed logs of the host preparation process, including each command executed, checks performed, and any warnings or errors encountered.
5. Ensure the [primary prerequisites](https://platform9.com/docs/private-cloud-director/private-cloud-director/pre-requisites#hypervisor-host-prerequisites) are met, review below checks for additional validation:

* Verify the host is running a supported host operating system. On releases before 2026.1, Ubuntu 22.04 and 24.04 are supported. For the Ubuntu and Platform9 OS versions supported by your release, see [Host Operating System Support Matrix](https://platform9.com/docs/private-cloud-director/getting-started/host-operating-system-support-matrix).

{% tabs %}
{% tab title="Bash" %}

```bash
$ sudo cat /etc/os-release | grep -E '^NAME=|^VERSION_ID='
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Platform9 OS is built on Rocky Linux from CIQ, so this check reports `NAME="Rocky Linux"` and the corresponding Rocky Linux version on a Platform9 OS host. There is no separate Platform9 OS identity string in `/etc/os-release`.
{% endhint %}

* Confirm the host has sufficient CPU cores and memory. Minimum 8 CPU cores and 16 GB RAM are recommended for host onboarding.

{% tabs %}
{% tab title="Bash" %}

```bash
# CPU cores
$ sudo grep -c ^processor /proc/cpuinfo

# Total memory
$ sudo free -h | grep Mem:
```

{% endtab %}
{% endtabs %}

* Verify the root partition (`/`) has adequate free space. Minimum 250 GB of free disk space is required.

{% tabs %}
{% tab title="Bash" %}

```bash
$ sudo df -h /
```

{% endtab %}
{% endtabs %}

* Ensure no other package manager (apt or dpkg on Ubuntu, dnf on Platform9 OS) is running in the background. If any command returns a running process, wait for it to finish or terminate it before continuing.

{% tabs %}
{% tab title="Ubuntu" %}

```bash
# Review if any dpkg, apt process is held
$ sudo lsof /var/lib/dpkg/lock
$ sudo lsof /var/lib/apt/lists/lock

# Review package manager logs
$ sudo cat /var/log/dpkg.log 
$ sudo cat /var/log/apt/history.log
```

{% endtab %}

{% tab title="Platform9 OS" %}

```bash
# Check for a running dnf process
# dnf is a Python script, so match on the full command line with -f
$ pgrep -af dnf

# If no dnf process is running, check for leftover dnf lock files.
# "No such file or directory" means no lock is held; a listed .pid file means a transaction lock remains.
$ ls -l /var/cache/dnf/*.pid /var/lib/dnf/*.pid

# Review package manager logs
$ sudo cat /var/log/dnf.log
$ sudo cat /var/log/dnf.rpm.log
$ sudo dnf history
```

{% endtab %}
{% endtabs %}

* Confirm the root or current user has passwordless sudo privileges, the user must have unrestricted sudo privileges for all operations.

{% tabs %}
{% tab title="Bash" %}

```bash
$ sudo -l
    (ALL : ALL) ALL
    (ALL) NOPASSWD: ALL
```

{% endtab %}
{% endtabs %}

* Check the status of `firewalld` to ensure it does not block Platform9 service communication. Platform9 recommends stopping and disabling `firewalld` on these hosts using `sudo systemctl stop firewalld` and `sudo systemctl disable firewalld`.

{% tabs %}
{% tab title="Bash" %}

```bash
$ sudo systemctl is-active firewalld
inactive
```

{% endtab %}
{% endtabs %}

* Ensure NTP is enabled for accurate time synchronization across hosts. Verify the time synchronization service is running on the host (`systemd-timesyncd` on Ubuntu, `chronyd` on Platform9 OS).

{% tabs %}
{% tab title="Ubuntu" %}

```bash
$ sudo systemctl status systemd-timesyncd
$ sudo timedatectl status
```

{% endtab %}

{% tab title="Platform9 OS" %}

```bash
$ sudo systemctl status chronyd
$ chronyc sources
$ sudo timedatectl status
```

{% endtab %}
{% endtabs %}

6. For [hosts using a proxy server for outbound connectivity](https://platform9.com/docs/private-cloud-director/2025.8/private-cloud-director/pre-requisites#connectivity-via-https-proxy-server), ensure that the `/etc/environment` file has required variables configured. Also configure the package manager *\[apt on Ubuntu, dnf on Platform9 OS]* to properly fetch required packages through the proxy server, refer to the linked documentation.
7. As the last step, hostagent package is downloaded and installed on the host. Verify the `pf9-hostagent.service` status and `/var/log/pf9/hostagent.log` file to track the progress.

{% tabs %}
{% tab title="Bash" %}

```bash
$ sudo systemctl status pf9-hostagent
$ sudo cat /var/log/pf9/hostagent.log
```

{% endtab %}
{% endtabs %}

7. After onboarding the host to the <code class="expression">space.vars.product\_name</code>, it can be [Authorized & Assigned Roles](https://platform9.com/docs/private-cloud-director/private-cloud-director/add-hosts-Virtualized-Cluster#step-2-authorize-host-and-assign-roles) . This involves downloading and installation of service specific packages, service initialisation, that can be monitored through `/var/log/pf9/hostagent.log` file. The role packages are downloaded inside the `/var/cache/pf9apps` directory.
8. If these steps prove insufficient to resolve the issue, kindly reach out to the [Platform9 Support team](https://support.platform9.com/) for additional assistance.

### Most common causes

* Residual configuration from a prior failed node preparation can cause role assignment or installation to fail.
* The user running the prep-node command may not have proper `sudo` privileges, causing command failures.
* Packages are corrupted or not installed properly; `dpkg` or `apt` lock files (Ubuntu) or a held DNF or rpm transaction lock (Platform9 OS) preventing package installation or updates during prep-node execution. Review `/var/log/dpkg.log` (Ubuntu) or `/var/log/dnf.log` and `/var/log/dnf.rpm.log` (Platform9 OS) to verify whether packages are partially installed or misconfigured.
* Incorrect proxy configurations provided to `prep-node` can block the download of required packages or scripts.
* `Firewalld` or other firewall rules may block required ports, preventing communication with the management plane.
* NTP is not synchronized, which may cause authentication or communication failures.
* Connectivity to the <code class="expression">space.vars.product\_name</code> management plane controller is broken or unreachable.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://platform9.com/kb/pcd-ts/host/troubleshooting-host-onboarding-issues.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
