Install the required build tools and headers: sudo apt install build-essential dkms linux-headers-$(uname -r) Re-run the Guest Additions installer. For RHEL / CentOS / AlmaLinux / Rocky Linux
mokutil --sb-state
sudo mokutil --disable-validation