centos7 添加開機(jī)自動(dòng)加載模塊 方法
在CentOS7啟動(dòng)時(shí)自動(dòng)加載內(nèi)核模塊
添加相應(yīng)模塊 腳本
[root@localhost ~]# cat /etc/sysconfig/modules/kvm.modules
#!/bin/bash
/sbin/modinfo -F filename kvm > /dev/null 2>&1
if [ $? -eq 0 ]; then
/sbin/modprobe kvm
fi
[root@localhost ~]# chmod +x kvm.modules
重啟測試
時(shí)間是個(gè)偉大的作者,必將給出完美的答案。

浙公網(wǎng)安備 33010602011771號(hào)