- Newest
- Most votes
- Most comments
sudo /bin/sh ./NVIDIA-Linux-x86_64*.run (NVIDIA Proprietary)
Try installing NVIDIA Open drivers instead
I was able to install NVIDIA GRID on g6f.large instance running Ubuntu 24.04 using the install script from this article. Screenshot below
For G6f instances, you need to ensure you're using the correct NVIDIA GRID driver version. According to AWS documentation, G6f instances specifically require GRID 18.4 or later.
The error you're encountering with "Unable to load the kernel module 'nvidia-drm.ko'" is often related to kernel compatibility issues. Here are some steps to resolve this:
- Make sure you have all the necessary dependencies installed:
sudo apt update
sudo apt install -y gcc make build-essential dkms linux-headers-$(uname -r)
- When running the NVIDIA installer, try adding the
--no-drmflag as suggested in the error message:
sudo /bin/sh ./NVIDIA-Linux-x86_64*.run --no-drm
-
Alternatively, consider using a supported Amazon Machine Image (AMI) that already has the NVIDIA drivers pre-installed. This is actually a best practice as noted by AWS, as it eliminates the need for manual driver installation.
-
If you must update your kernel for security patches, be aware that this can break compatibility with the installed NVIDIA driver. In such cases, you may need to reinstall the driver after the kernel update.
-
For Ubuntu instances, you might need to install or update additional packages if the NVIDIA installer fails. The specific requirements depend on your operating system and kernel version.
The warnings about "tainting the kernel" are normal when installing third-party kernel modules like NVIDIA drivers and don't necessarily indicate a problem.
If these steps don't resolve the issue, you might want to consider using the AWS Deep Learning AMIs which come with optimized NVIDIA drivers pre-installed for better compatibility with GPU instances.
Sources
NVIDIA drivers for your Amazon EC2 instance - Amazon Elastic Compute Cloud
Resolve NVIDIA GPU and GPU driver issues in Amazon EC2 | AWS re:Post
answered a year ago
Relevant content
asked 4 years ago
asked 4 years ago

I just found out that installing
linux-modules-extra-$(uname -r)solves the problem. It's included in the guide you linked too. Thank you