How to Blacklist a Kernel Module in CentOS

How to Blacklist a Kernel Module in CentOS

How to Blacklist a Kernel Module in CentOS is an important piece of knowledge for the sysadmin. In Centos Linux, preventing a kernel module from loading during boot is also called blacklisting. We add the module name into the blacklist file. We must remove the module from the /etc/modprobe.d, /etc/modprobe.conf, /etc/rc.modules and the /etc/sysconfig/modules/* folder. For each respective Red Hat versions, you must execute the following commands:

Blacklisting Centos 5 and 6 kernel module

Add the kernel module to be blacklisted into the blacklist.conf file. Do:

echo “blacklist the_module name” >> /etc/modprobe.d/blacklist.conf

As an example:

echo “blacklist qlgc-5.8 >> /etc/modprobe.d/blacklist.conf

If the module you are blacklisting is a dependency of another module, the blacklsting will fail. It will be loaded.

Blacklisting a Centos 4 kernel module

# echo “alias <module-name> off” >> /etc/modprobe.conf

If you want to remove the module for testing purposes or temporarily, you can remove the already loaded module by

running:

# modprobe -r  module_name_goes_here

ie.

# modprobe -r qlgc

时间: 2024-11-19 13:32:44

How to Blacklist a Kernel Module in CentOS的相关文章

Linux Kernel Module(LKM) Init、Delete Code Principle Learning

目录 1. Linux模块(LKM)简介 2. 使用Linux模块 3. LKM模块加载原理 4. LKM模块卸载原理 1. Linux模块(LKM)简介 模块是一种向linux内核添加"设备驱动程序"."文件系统"."其他组件"的有效方法,而无须重新编译内核或重启系统,这消除了许多限制,同时带来了很多的优点 1. 通过使用模块,内核程序员能够预先编译大量驱动程序,而不会致使内核映像的尺寸发生膨胀.在自动检测硬件或用户提示后,安装例程会选择适当的

OpenWrt Kernel Module Creation Howto

OpenWrt Kernel Module Creation Howto About OpenWrt Kernel Module Compilation You are planning to compile a kernel module? This howto will explain what you have to do, to have your kernel module installable as an ipkg. Enable the kernel options Enable

Android Studio模拟器启动工程时报错:HAX kernel module is not installed!

Android Studio 1.0 已经放出来了,以后的Android平台开发激昂逐步从Eclipse向Android Studio迁移,为了能不落伍我也特意从Google下载了Android Studio的安装包,并且兴高采烈地创建了我的第一个android项目.但是当运行的时候就他么悲催了,一启动模拟器就开始报错: 错误信息: emulator: ERROR: x86 emulation currently requires hardware acceleration!Please ens

Virtualbox报错------&gt;make sure the kernel module has been loaded successfully

错误描述 很久没有用virtualbox了,今天打算在virtualbox上安装一个Ubuntu系统的时候,新建好Ubuntu后启动的时候,直接报错: Cannot access the kernel driver! Make sure the kernel module has been loaded successfully. 解决方法 1.找到vboxdrv.inf文件 1.进入VirtualBox的安装路径(我的电脑上路径为:C:\Program Files\Oracle\Virtual

emulator: ERROR: x86 emulation currently requires hardware acceleration!Please ensure Intel HAXM is properly installed and usable.CPU acceleration status: HAX kernel module is not installed!

Android Studio 1.0 已经放出来了,以后的Android平台开发激昂逐步从Eclipse向Android Studio迁移,为了能不落伍我也特意从Google下载了Android Studio的安装包,并且兴高采烈地创建了我的第一个android项目.但是当运行的时候就他么悲催了. emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is

Failed to fetch URL https://dl-ssl.google.com CPU acceleration status: HAX kernel module is not installed!

1.打开C:/WINDOWS/system32/drivers/etc中的hosts文件  在最后一行添加74.125.237.1 dl-ssl.google.com 2.如果仍然链接失败 就打开SDK Manager.exe,选中tool栏,点Android SDK Manager ,在下面Force https://...sources to be fetched using http://... 打上勾就行了,这个主要是把受保护的协议 https 转成普通http 3.仍然失败,继续尝试如

rhca 442 kernel module

Manage Kernel Modules display modules >lsmod Check modules parameters >modinfo -p usb_storage|st|sc8 Load modules >modprobe usb_storage|st|sc8 Rmove mdules > rmmod usb_storage|st|sc8 Set default modules parameters /etc/modprobe.d/my.conf >o

解决HAX kernel module is not installed问题

启动模拟器报错:emulator: ERROR: x86 emulation currently requires hardware acceleration!Please ensure Intel HAXM is properly installed and usable.CPU acceleration status: HAX kernel module is not installed! 解决方案: 1.进入bios,打开intel的虚拟化支持. 2.找到haxm,需要下载下来,可以去官网

如何处理VirtualBox启动错误消息:The vboxdrv kernel module is not loaded

我在启动minikube时,遇到如下错误消息: Starting local Kubernetes v1.10.0 cluster... Starting VM... E1010 03:27:37.920050 4827 start.go:174] Error starting host: Error creating host: Error executing step: Running precreate checks. : We support Virtualbox starting wi