
Vultr Cloud GPU instances provide access to NVIDIA vGPU technology, enabling virtualized graphics processing for applications requiring GPU acceleration. This includes machine learning workloads, video processing, and virtual desktop infrastructure (VDI) solutions. Proper management of vGPU drivers and licensing ensures optimal performance and compliance with NVIDIA's licensing requirements.
Follow this guide to manage vGPU on your Vultr Cloud GPU instances.
Before you begin, you need to:
Dynamic Kernel Module Support (DKMS) is a Linux framework that simplifies the management of kernel modules by automatically building, installing, and updating them whenever the kernel changes. Kernel modules such as GPU drivers, VirtualBox drivers, or ZFS are normally compiled for a specific kernel version, which can cause compatibility issues after a system update. DKMS eliminates this problem by recompiling and reinstalling modules against the new kernel, ensuring they remain functional and consistent across upgrades without requiring manual intervention.
Debian-based Distributions
RPM-based Distributions
Before installing, verify that your system detects the NVIDIA GPU hardware and confirm whether the NVIDIA kernel module is already loaded. The installation script should only be run if the GPU is detected but the driver is not installed.
Verify that your system detects the NVIDIA GPU hardware.
This command should always return a result on GPU-enabled instances, even if drivers are not installed.
Your output should be similar to the one below:
If no output is displayed, your server does not have an attached NVIDIA GPU, and you should not proceed with driver installation.
Check if the NVIDIA kernel module is loaded.
If the above command shows an output, the NVIDIA driver is already installed and loaded; otherwise, it is not installed or not loaded, and you should proceed to the installation step below.
If your system detects the NVIDIA GPU but the driver is not loaded, you need to install it manually. Skip this step if the driver was already found in the previous check.
Ensure the DKMS package is installed, then run the NVIDIA driver installation script.
Reboot your system to load the new NVIDIA driver and nouveau blacklist to take effect.
After reboot, verify that the drivers are installed and the GPU is accessible.
Output:
Before updating, verify that your system detects the NVIDIA GPU and that the current driver is installed. The update script should only be run if the GPU is present and the driver is already loaded.
Verify that your system detects the NVIDIA GPU hardware.
If no output is displayed, your server does not have an attached NVIDIA GPU, and you should not proceed with updating the driver.
Check if the NVIDIA kernel module is loaded.
If this command shows no output, the driver is not installed, and you should complete the Install NVIDIA Driver section instead of updating. If output is displayed, proceed with the update.
Run the NVIDIA driver update script.
This updates the drivers while preserving your existing configuration and licensing settings.
Reboot your system to apply the update.
After reboot, verify that the updated drivers are active.
Your output should be similar to the one below:
If your NVIDIA drivers or vGPU services are not working as expected, use the steps below to diagnose and resolve common issues. These checks help you verify whether essential services are running, licensing is valid, and drivers are properly installed. If any component is missing or inactive, reinstalling the drivers with DKMS support usually resolves the problem.
The nvidia-driver-manager.service unit file should be installed on your system as part of the NVIDIA driver package. This service is primarily used to manage GPU drivers but does not need to remain running continuously.
Check the driver manager service status.
Output:
If the service is missing, ensure your operating system's DKMS package is installed and reinstall the drivers using sudo /opt/nvidia/install.sh.
The nvidia-gridd.service manages NVIDIA vGPU licensing to enable advanced features such as multi-instance GPU (MIG) and virtual desktop infrastructure (VDI). This service must be active and correctly configured for licensed vGPU deployments.
Verify that the service is running and license is present.
Output:
If nvidia-gridd.service is missing, ensure your OS DKMS package is installed for your operating system and reinstall the drivers using sudo /opt/nvidia/install.sh.
Verify that the NVIDIA drivers are properly installed and loaded by checking both the driver status and the kernel modules.
Output:
If either nvidia-smi fails or no NVIDIA kernel modules are listed, ensure your operating system's DKMS package is installed and reinstall the drivers using sudo /opt/nvidia/install.sh.
For Linux distributions that are not officially supported, you can use the alternative GPU installation script. This script provides best-effort support and may not receive the same level of validation as standard drivers.
Ensure that the DKMS package is installed on your system.
Run the alternative GPU installation script.
This script is provided as a courtesy and is best-effort only. Vultr does not provide support for custom installations or non-GPU deployments on GPU instances. Use at your own risk.
Reboot your system to apply the configuration and load the drivers
After reboot, verify the installation.
If successful, the output should confirm that the NVIDIA drivers are loaded and the GPU is accessible
Managing NVIDIA vGPU on Vultr Cloud GPU instances ensures that your GPU resources are properly configured, drivers are up to date, and licensing is valid. By following this guide, you have learned how to:
nvidia-gridd.service and ensure licensing is active.
0 Comments
Be the first to comment and share your perspective with the community.