What have I tried:
- Make a fresh Fedora Server 42 install (via virt-manager)
- Enable RPMFusion, perform dnf upgrade and reboot
- Run the following:
sudo dnf install akmod-nvidia
sudo dnf install xorg-x11-drv-nvidia-cuda
sudo reboot
# After reboot
sudo sh -c 'echo "%_with_kmod_nvidia_open 1" > /etc/rpm/macros.nvidia-kmod'
sudo akmods --kernels $(uname -r) --rebuild
- nvidia-smi fails, but modinfo shows driver version:
> nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
> modinfo -F version nvidia
570.144
Also, seems like installing the driver also install GUI things like pipewire and adawaita icons. The server is for running local LLM and is headless. Is it possible to skip installing the GUI related packages?