SR-IOV Debian package installation#
The amdgpu-exporter-sriov Debian package installs the Device Metrics
Exporter and a matching GPU Agent build on an SR-IOV/GIM hypervisor host for
MI-series platforms. It is versioned independently from the bare-metal
amdgpu-exporter package (see Standalone Debian package installation).
System requirements#
Operating System: Ubuntu 22.04 or Ubuntu 24.04
Platform: MI-series GPU configured for SR-IOV/GIM virtualization
GIM driver: version 9.0.0.K or later must already be installed on the hypervisor host before installing this package. See the MxGPU-Virtualization releases page for GIM driver installation instructions.
Installation#
Step 1: Install the APT prerequisites for the exporter#
Update the package list and install necessary tools, keyrings and keys:
sudo apt update sudo apt install vim wget gpg sudo mkdir --parents --mode=0755 /etc/apt/keyrings wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | gpg --dearmor | sudo tee /etc/apt/keyrings/rocm.gpg > /dev/null
Add the SR-IOV Device Metrics Exporter repository to the APT sources:
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/device-metrics-exporter/sriov/1.0.0 jammy main" \ | sudo tee /etc/apt/sources.list.d/device-metrics-exporter-sriov.list
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/device-metrics-exporter/sriov/1.0.0 noble main" \ | sudo tee /etc/apt/sources.list.d/device-metrics-exporter-sriov.list
Update the package list again:
sudo apt update
Step 2: Install the SR-IOV exporter#
Install the SR-IOV Device Metrics Exporter:
sudo apt install amdgpu-exporter-sriov
This installs two systemd units:
gpuagent-sriov.service: the SR-IOV/GIM GPU Agent buildamd-metrics-exporter-sriov.service: the metrics exporter (Wants=/After=gpuagent-sriov.service)
Enable and start both services:
sudo systemctl enable gpuagent-sriov.service amd-metrics-exporter-sriov.service sudo systemctl start gpuagent-sriov.service amd-metrics-exporter-sriov.service
Check service status:
sudo systemctl status gpuagent-sriov.service sudo systemctl status amd-metrics-exporter-sriov.service
Default settings#
Configuration file:
/etc/metrics/config.jsonGPU Agent socket:
/var/run/gpuagent.sock(Unix Domain Socket)GPU Agent binary:
gpuagent-sriov(SR-IOV/GIM build, distinct from the bare-metalgpuagent)Health monitoring is disabled by default in this package’s config
See the Hypervisor column in the List of Available Metrics for the list of metrics supported under this deployment
Removing the SR-IOV exporter#
Stop both services:
sudo systemctl stop amd-metrics-exporter-sriov.service sudo systemctl stop gpuagent-sriov.service
Remove the package:
sudo apt purge amdgpu-exporter-sriov
Troubleshooting#
Tech support collection#
sudo metrics-exporter-ts.sh
Logs#
sudo journalctl -xu amd-metrics-exporter-sriov
sudo journalctl -xu gpuagent-sriov
Common issues#
amd-metrics-exporter-sriov.servicefails to start:Confirm
gpuagent-sriov.serviceis running first. The exporter service hasWants=andAfter=dependencies on it.Verify the GIM driver (9.0.0.K or later) is installed on the host
Metric collection issues:
Check that the GIM driver version meets the minimum requirement
Confirm the host is configured for SR-IOV/GIM virtualization