Updated on 2025-07-30 GMT+08:00

What Do I Do If the Nouveau Driver Is Not Disabled?

Symptom

If the Nouveau driver is not disabled, the Linux OS may be suspended and the ECS may not be remotely logged in to. This issue generally occurs when you use your own private images (exported from ECSs or other sources).

Checking Nouveau Status

  1. Run the following command to check the keyword errors in the Linux kernel ring buffer:

    dmesg | grep error

    • If the command output contains nouveau, the Nouveau driver may not be disabled. Then, go to 2.
    • If the command output does not contain nouveau, go to 2.

  2. Run the following command to check whether the Nouveau driver has been installed:

    lsmod | grep nouveau

    • If there is no command output or the command output does not contain nouveau, the Nouveau driver has been disabled.
    • If the command output contains nouveau, the Nouveau driver has been installed. Then, disable the Nouveau driver.

Solution

  1. Edit the blacklist.conf file.

    If the /etc/modprobe.d/blacklist.conf file is unavailable, create one.

    vi /etc/modprobe.d/blacklist.conf

    Add the following statement to the end of the file:

    blacklist nouveau
    options nouveau modeset=0
  2. Run the following command to back up and create an initramfs application:
    • Ubuntu:

      sudo update-initramfs -u

    • CentOS:

      mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak

      dracut -v /boot/initramfs-$(uname -r).img $(uname -r)

  3. Run the following command to restart the ECS:

    reboot