如何恢复意外删除的 kvm 模块

如何恢复意外删除的 kvm 模块

我意外地这样做了modprobe -r kvm但无法让 kvm 恢复工作。尝试通过yum install kvm安装 qemu-system-x86.x86_64 2:2.0.0-1.el7.6 来重新安装它。

但它仍然不起作用。

[root@centos ~]# lsmod  | grep kvm
kvm                   525409  0 

libvirtd状态:

● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2016-11-01 19:27:40 IST; 2s ago
     Docs: man:libvirtd(8)
           http://libvirt.org
 Main PID: 24959 (libvirtd)
   CGroup: /system.slice/libvirtd.service
           ├─ 3670 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
           ├─ 3671 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
           └─24959 /usr/sbin/libvirtd

Nov 01 19:27:41 centos.chn.com dnsmasq[3670]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Nov 01 19:27:41 centos.chn.com dnsmasq-dhcp[3670]: read /var/lib/libvirt/dnsmasq/default.hostsfile
Nov 01 19:27:41 centos.chn.com libvirtd[24959]: libvirt version: 1.2.17, package: 13.el7_2.5 (CentOS BuildSystem <http://bugs.centos.org>,...tos.org)
Nov 01 19:27:41 centos.chn.com libvirtd[24959]: File /run/media/mukesh/Local Disk SSD/ova/OVA/LabIPA-small/Labipa_2.0_3s-disk1.vmdk matche...dhat.com
Nov 01 19:27:41 centos.chn.com libvirtd[24959]: File /home/mukesh/Downloads/OVA/server2/server2_2.0_5-disk1.vmdk matches vmdk magic, but v...dhat.com
Nov 01 19:27:41 centos.chn.com libvirtd[24959]: File /home/mukesh/Downloads/OVA/server2/server2_2.0_5-disk2.vmdk matches vmdk magic, but v...dhat.com
Nov 01 19:27:41 centos.chn.com libvirtd[24959]: File /home/mukesh/Downloads/OVA/LabIPA-small/Labipa_2.0_3s-disk1.vmdk matches vmdk magic, ...dhat.com
Nov 01 19:27:41 centos.chn.com libvirtd[24959]: File /home/mukesh/Downloads/OVA/IE10.Win7.For.Windows.VMware/IE10_-_Win7-disk1.vmdk matche...dhat.com
Nov 01 19:27:41 centos.chn.com libvirtd[24959]: cannot open path '/home/mukesh/Downloads/LabIPA-small': No such file or directory
Nov 01 19:27:41 centos.chn.com libvirtd[24959]: Failed to autostart storage pool 'LabIPA-small-1': cannot open path '/home/mukesh/Download...irectory
Hint: Some lines were ellipsized, use -l to show in full.

答案1

的反义词modprobe -r kvmmodprobe kvm,但是您的lsmod输出表明kvm kermel模块已加载。

您的问题可能来自您所包含的第二个输出,具体来说:

cannot open path '/home/mukesh/Downloads/LabIPA-small': No such file or directory

相关内容