OpennebulaCommand execution fail: /var/tmp/one/vmm/kvm/shutdown

故障现象:

Thu Oct 17 16:10:19 2013 [LCM][I]: New VM state is SHUTDOWN
Thu Oct 17 16:15:28 2013 [VMM][I]: Command execution fail: /var/tmp/one/vmm/kvm/shutdown one-126 node01 126 node01Thu Oct 17 16:15:28 2013 [VMM][E]: Timed out shutting down one-126
Thu Oct 17 16:15:28 2013 [VMM][I]: ExitCode: 255
Thu Oct 17 16:15:28 2013 [VMM][I]: Failed to execute virtualization driver operation: shutdown.
Thu Oct 17 16:15:28 2013 [VMM][E]: Error shuting down VM: Timed out shutting down one-126
Thu Oct 17 16:15:28 2013 [LCM][I]: Fail to shutdown VM. Assuming that the VM is still RUNNING (will poll VM).
Thu Oct 17 16:15:28 2013 [VMM][I]: ExitCode: 0
Thu Oct 17 16:15:28 2013 [VMM][D]: Monitor Information:

问题原因:

1.Opennebula使用ACPI功能实现虚拟机电源管理,ACPI功能没有开启,故出现上述问题。

2.虚拟机需要安装ACPI。

acpi下载地址(适用于CentOS6):

http://mirror.centos.org/centos/6.4/os/x86_64/Packages/acpid-1.0.10-2.1.el6.x86_64.rpm

解决办法:

办法1:

1.在虚拟机模版中添加:

FEATURES=[

  ACPI="yes",           //开启ACPI功能。

  PAE="yes" ]          //PAE为内存地址扩展,可让32位系统主机使用超过4G的内存。

2.虚拟机需要安装acpi:

#yum -y install acpid

办法2:

1.创建模式时做如下设置:

2.虚拟机需要安装acpi:

#yum -y install acpid

*****************************************************************************************


原文地址:https://www.cnblogs.com/myiaas/p/4161347.html