This shows you the differences between two versions of the page.
| wiki:ai:onboarding_nvidia_servers_running_ubuntu_linux_how-to [2026/05/14 12:54] – created smadanagopal | wiki:ai:onboarding_nvidia_servers_running_ubuntu_linux_how-to [2026/05/15 11:46] (current) – smadanagopal | ||
|---|---|---|---|
| Line 204: | Line 204: | ||
| sudo dpkg -i / | sudo dpkg -i / | ||
| </ | </ | ||
| + | |||
| + | < | ||
| + | |||
| + | === 5.4.1 Adding the GPG Key and APT Repository (Post-dpkg Setup) === | ||
| + | |||
| + | Run these commands on the air-gapped server to register the Datadog repository for future '' | ||
| + | |||
| + | **On the connected machine — download the GPG keyring:** | ||
| + | |||
| + | <code bash> | ||
| + | curl -fsSL https:// | ||
| + | | gpg --dearmor -o datadog-keyring.gpg | ||
| + | |||
| + | # Transfer to target server alongside the .deb: | ||
| + | scp datadog-keyring.gpg user@< | ||
| + | </ | ||
| + | |||
| + | **On the air-gapped server — install the key and add the repository: | ||
| + | |||
| + | <code bash> | ||
| + | # Install the GPG keyring | ||
| + | sudo mv / | ||
| + | sudo chmod 644 / | ||
| + | |||
| + | # Add the APT repository entry | ||
| + | echo "deb [signed-by=/ | ||
| + | https:// | ||
| + | | sudo tee / | ||
| + | </ | ||
| + | |||
| + | Future updates (once connectivity is available or via an internal mirror) will be handled by '' | ||
| + | |||
| + | === 5.4.2 Post-Install Configuration (datadog.yaml) === | ||
| + | |||
| + | When using '' | ||
| + | |||
| + | <code bash> | ||
| + | # Copy the example config as the working config | ||
| + | sudo cp / | ||
| + | |||
| + | # Set your API key | ||
| + | sudo sed -i 's/# api_key: | ||
| + | |||
| + | # Set your Datadog site (default is datadoghq.com) | ||
| + | sudo sed -i 's/# site: | ||
| + | |||
| + | # (Optional) Set a custom hostname | ||
| + | sudo sed -i 's/# hostname: | ||
| + | |||
| + | # Set correct ownership | ||
| + | sudo chown dd-agent: | ||
| + | |||
| + | # Enable and start the Agent | ||
| + | sudo systemctl enable datadog-agent | ||
| + | sudo systemctl start datadog-agent | ||
| + | </ | ||
| + | |||
| + | Verify the Agent is reporting correctly: | ||
| + | |||
| + | <code bash> | ||
| + | sudo datadog-agent status | ||
| + | </ | ||
| + | |||
| + | === 5.4.3 Recovery from Failed Installation === | ||
| + | |||
| + | If the installation partially fails or the Agent is misconfigured and non-functional, | ||
| + | |||
| + | **Step 1 — Stop and disable the Agent service (if it started):** | ||
| + | |||
| + | <code bash> | ||
| + | sudo systemctl stop datadog-agent | ||
| + | sudo systemctl disable datadog-agent | ||
| + | </ | ||
| + | |||
| + | **Step 2 — Remove the package while preserving config (for diagnosis): | ||
| + | |||
| + | <code bash> | ||
| + | sudo dpkg -r datadog-agent | ||
| + | </ | ||
| + | |||
| + | Or, for a full purge including config files: | ||
| + | |||
| + | <code bash> | ||
| + | sudo dpkg --purge datadog-agent | ||
| + | </ | ||
| + | |||
| + | **Step 3 — Remove residual files left outside the package manifest:** | ||
| + | |||
| + | <code bash> | ||
| + | sudo rm -rf / | ||
| + | sudo userdel dd-agent 2>/ | ||
| + | </ | ||
| + | |||
| + | **Step 4 — Clear the APT state (if the repository was partially added):** | ||
| + | |||
| + | <code bash> | ||
| + | sudo rm -f / | ||
| + | sudo rm -f / | ||
| + | sudo apt update | ||
| + | </ | ||
| + | |||
| + | **Step 5 — Reinstall.** Return to section 5.4 and repeat the download-and-install steps, or use the one-line installer (section 6) if internet access has become available. | ||
| + | |||
| + | <note tip> | ||
| ---- | ---- | ||