[ovirt-users] fail to shutdown ubuntu guest

Michal Skrivanek michal.skrivanek at redhat.com
Fri Jun 13 10:32:56 UTC 2014


On 13 Jun 2014, at 12:19, Dan Kenigsberg wrote:

> On Fri, Jun 13, 2014 at 09:22:37AM +0800, John Xue wrote:
>> I went through the xfce GUI options "Settings Manager" - "Power
>> Manager" to the field "When power button is pressed", set to power
>> off, but only successful one time, after reboot it was already set to
>> "Ask". If no one login to guest(just power on from console, and power
>> off), it always fail.
>> 
>> I try to modify acpi configuration:
>> #cat /etc/acpi/events/powerbtn
>> event=button[ /]power
>> #action=/etc/acpi/powerbtn.sh
>> action=/sbin/poweroff
>> 
>> It work, but I think this isn't a good solution. Any idea? Thanks!
>> 
>> On Thu, Jun 12, 2014 at 11:50 PM, Dan Kenigsberg <danken at redhat.com> wrote:
>>> On Thu, Jun 12, 2014 at 01:37:19PM +0000, Sven Kieske wrote:
>>>> are you sure acpid is running inside the guest?
>>> 
>>> ... or a guest agent?
>> 
>> yes, both of them are running in guest.
>> 
>>> 
>>> Can you find the shutdown request on /var/log/vdsm/vdsm.log on the host
>>> that runs your guest?
>> 
>> yes, this is the log:
>> 
>> Thread-158109::DEBUG::2014-06-12
>> 16:08:26,589::BindingXMLRPC::965::vds::(wrapper) client
>> [10.10.10.75]::call vmShutdown with
>> ('b552d1aa-bc35-4788-a448-1726d4b984d5', '30', 'System Administrator
>> has initiated shutdown of this Virtual Machine. Virtual Machine is
>> shutting down.') {} flowID [5939b847]
>> Thread-158109::DEBUG::2014-06-12
>> 16:08:26,590::vm::2532::vm.Vm::(shutdown)
>> vmId=`b552d1aa-bc35-4788-a448-1726d4b984d5`::guestAgent shutdown
>> called
>> Thread-158109::DEBUG::2014-06-12
>> 16:08:26,590::guestIF::304::vm.Vm::(desktopShutdown)
>> vmId=`b552d1aa-bc35-4788-a448-1726d4b984d5`::desktopShutdown called
>> Thread-158109::DEBUG::2014-06-12
>> 16:08:26,591::BindingXMLRPC::972::vds::(wrapper) return vmShutdown
>> with {'status': {'message': 'Machine shut down', 'code': 0}}
> 
> I there no attempt to use ACPI lower in the logs?

if the agent is responsive (which it is here) then no ACPI is attempted
guest agent just runs /sbin/shutdown directly

Thanks,
michal

> 
> Anyway, it seems that an ACPI even is received by the guest. Could you
> now share the log of your guest agent, in order to see if it received
> the shutdown request and handled it somehow?
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users




More information about the Users mailing list