我无法在CentOS 6服务器上启动qemu-kvm

时间:2015-09-12 07:53:01

标签: qemu libvirt

我在CentOS 6.6节点上使用qemu-kvm。由于没有明显原因,此节点在夜间重新启动,并且虚拟机未在启动时自动启动。

我正在尝试启动机器,我收到此错误:

# start srv50
error: Failed to start domain srv50
error: internal error problem reading /sys/devices/system/node/node0: No such file or directory

我试图检查/ sys / devices / system / node / node0是否可访问,它似乎是:

drwxr-xr-x 3 root root 0 Sep 12 08:22 /sys/devices/system/node/node0

这是libvirt日志文件:

2015-09-12 07:47:43.039+0000: 2933: info : libvirt version: 0.10.2, package: 54.el6 (CentOS BuildSystem <http://bugs.centos.org>, 2015-07-24-04:48:57, c6b9.bsys.dev.centos.org)
2015-09-12 07:47:43.039+0000: 2933: info : virNetlinkEventServiceStart:517 : starting netlink event service with protocol 0
2015-09-12 07:47:43.040+0000: 2933: info : virNetlinkEventServiceStart:517 : starting netlink event service with protocol 15
2015-09-12 07:47:43.044+0000: 2945: info : dnsmasqCapsSetFromBuffer:667 : dnsmasq version is 2.48, --bind-dynamic is NOT present, SO_BINDTODEVICE is NOT in use
2015-09-12 07:47:43.045+0000: 2945: info : networkReloadIptablesRules:1980 : Reloading iptables rules
2015-09-12 07:47:43.094+0000: 2945: info : networkRefreshDaemons:1342 : Refreshing network daemons
2015-09-12 07:47:43.095+0000: 2945: info : virStorageBackendVolOpenCheckMode:1093 : Skipping special dir '..'
2015-09-12 07:47:43.095+0000: 2945: info : virStorageBackendVolOpenCheckMode:1093 : Skipping special dir '.'
2015-09-12 07:47:43.095+0000: 2945: info : virStorageBackendVolOpenCheckMode:1093 : Skipping special dir '..'
2015-09-12 07:47:43.095+0000: 2945: info : virStorageBackendVolOpenCheckMode:1093 : Skipping special dir '.'
2015-09-12 07:47:43.223+0000: 2945: info : qemudLoadDriverConfig:443 : Configured cgroup controller 'cpu'
2015-09-12 07:47:43.223+0000: 2945: info : qemudLoadDriverConfig:443 : Configured cgroup controller 'cpuacct'
2015-09-12 07:47:43.223+0000: 2945: info : qemudLoadDriverConfig:443 : Configured cgroup controller 'cpuset'
2015-09-12 07:47:43.223+0000: 2945: info : qemudLoadDriverConfig:443 : Configured cgroup controller 'memory'
2015-09-12 07:47:43.223+0000: 2945: info : qemudLoadDriverConfig:443 : Configured cgroup controller 'devices'
2015-09-12 07:47:43.223+0000: 2945: info : qemudLoadDriverConfig:443 : Configured cgroup controller 'blkio'
2015-09-12 07:47:43.225+0000: 2945: error : virNodeParseNode:263 : problem reading /sys/devices/system/node/node0: No such file or directory
2015-09-12 07:47:43.225+0000: 2945: warning : qemuCapsInit:880 : Failed to get host CPU
2015-09-12 07:47:43.347+0000: 2945: info : virDomainLoadAllConfigs:15374 : Scanning for configs in /var/run/libvirt/qemu
2015-09-12 07:47:43.354+0000: 2945: info : virDomainLoadAllConfigs:15374 : Scanning for configs in /etc/libvirt/qemu
2015-09-12 07:47:43.354+0000: 2945: info : virDomainLoadAllConfigs:15396 : Loading config file 'srv50.xml'
2015-09-12 07:47:43.355+0000: 2945: info : virDomainLoadAllConfigs:15396 : Loading config file 'srv51.xml'
2015-09-12 07:47:43.355+0000: 2945: info : qemuDomainSnapshotLoad:494 : Scanning for snapshots for domain srv51 in /var/lib/libvirt/qemu/snapshot/srv51
2015-09-12 07:47:43.355+0000: 2945: info : qemuDomainSnapshotLoad:494 : Scanning for snapshots for domain srv50 in /var/lib/libvirt/qemu/snapshot/srv50
2015-09-12 07:47:43.378+0000: 2945: info : lxcSecurityInit:1380 : lxcSecurityInit (null)
2015-09-12 07:47:43.378+0000: 2945: info : virDomainLoadAllConfigs:15374 : Scanning for configs in /var/run/libvirt/lxc
2015-09-12 07:47:43.378+0000: 2945: info : virDomainLoadAllConfigs:15374 : Scanning for configs in /etc/libvirt/lxc

我尝试将CentOS升级到最新版本,因为这会重置libvirtd配置,但我仍然会遇到相同的错误。

如何启动这些虚拟机以及节点文件有什么问题?

1 个答案:

答案 0 :(得分:1)

根据最近的一些类似案例,您的服务器可能会遭到入侵。

您应该检查/etc/rc.local,看看是否添加了_-pud_-minerd等内容。如果他们存在,那么你就是受害者之一。

要恢复您的虚拟机,您需要删除这些文件:

  • /usr/bin/_-minerd
  • /usr/bin/_-pud
  • /usr/bin/_-config
  • /etc/ld.so.preload
  • /lib64/libncom.so.4.0.1
  • /tmp/initramfs.*/lib64/libncom.so.4.0.1

不要忘记删除/etc/rc.local中的这两行:

  • nohup /usr/bin/_-pud 119.78.232.8 >/dev/null
  • nohup /usr/bin/_-minerd -c /usr/bin/_-config 2> /dev/null&

虚拟机应该在您下次重启时启动并运行。

请记住检查您的IPMI或iDRAC是否可以从Internet访问,此问题是由IPMI固件中的漏洞引起的。建议更新到新版本的固件。

参考文献: