* initiating linux guest shutdown from host
@ 2008-04-23 8:40 extmaillist
2008-04-23 9:18 ` Luca Tettamanti
0 siblings, 1 reply; 7+ messages in thread
From: extmaillist @ 2008-04-23 8:40 UTC (permalink / raw)
To: kvm-devel; +Cc: Nikola Ciprich
Hi,
I'm trying libvirt-0.4.2, it should support initiating guest shutdown for
KVM domains. But for some reason it doesn't work for me, I'm using linux
guests with external kernel, if I run poweroff from within the domain, it
shutdowns correctly, but trying to shutdown the domain from host using
libvirt doesn't have any effect.
Does somebody know where the problem could be? How does sending shutdown
work in KVM/qemu at all? How can I debug it?
thanks in advance!
BR
nik
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: initiating linux guest shutdown from host
2008-04-23 8:40 initiating linux guest shutdown from host extmaillist
@ 2008-04-23 9:18 ` Luca Tettamanti
2008-04-23 9:32 ` extmaillist
0 siblings, 1 reply; 7+ messages in thread
From: Luca Tettamanti @ 2008-04-23 9:18 UTC (permalink / raw)
To: extmaillist; +Cc: kvm-devel, Nikola Ciprich
On Wed, Apr 23, 2008 at 10:40 AM, <extmaillist@linuxbox.cz> wrote:
> Hi,
> I'm trying libvirt-0.4.2, it should support initiating guest shutdown for
> KVM domains. But for some reason it doesn't work for me, I'm using linux
> guests with external kernel, if I run poweroff from within the domain, it
> shutdowns correctly, but trying to shutdown the domain from host using
> libvirt doesn't have any effect.
> Does somebody know where the problem could be? How does sending shutdown
> work in KVM/qemu at all? How can I debug it?
libvirt sends "system_powerdown" to the monitor; is ACPI is enabled
then the guest sees the event but it's free to ignore it (it's the
same as pressing the power button on a real machine: the OS sees the
event and may start the shutdown, ask the user what to do, ignore it,
etc.); e.g. the default ACPI script of the debian stops the desktop
manager if it's running but doesn't shut down the machine. If the ACPI
daemon is not running in the guest then the event is lost...
Luca
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: initiating linux guest shutdown from host
2008-04-23 9:18 ` Luca Tettamanti
@ 2008-04-23 9:32 ` extmaillist
2008-04-23 10:08 ` Avi Kivity
0 siblings, 1 reply; 7+ messages in thread
From: extmaillist @ 2008-04-23 9:32 UTC (permalink / raw)
To: Luca Tettamanti; +Cc: kvm-devel, Nikola Ciprich
On Wed, 23 Apr 2008, Luca Tettamanti wrote:
> libvirt sends "system_powerdown" to the monitor; is ACPI is enabled
> then the guest sees the event but it's free to ignore it (it's the
> same as pressing the power button on a real machine: the OS sees the
> event and may start the shutdown, ask the user what to do, ignore it,
> etc.); e.g. the default ACPI script of the debian stops the desktop
> manager if it's running but doesn't shut down the machine. If the ACPI
> daemon is not running in the guest then the event is lost...
>
> Luca
>
>
Hi Luca,
thanks for the answer. Well, then it works as I expected. I already tried
starting acpid in debug mode, but system doesn't seem to receive any
event, although according to dmesg, ACPI itself seems to work (and I can
poweroff from the guest)
n.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: initiating linux guest shutdown from host
2008-04-23 9:32 ` extmaillist
@ 2008-04-23 10:08 ` Avi Kivity
2008-04-23 10:20 ` extmaillist
0 siblings, 1 reply; 7+ messages in thread
From: Avi Kivity @ 2008-04-23 10:08 UTC (permalink / raw)
To: extmaillist; +Cc: kvm-devel, Nikola Ciprich
extmaillist@linuxbox.cz wrote:
>
>
> On Wed, 23 Apr 2008, Luca Tettamanti wrote:
>
>
>> libvirt sends "system_powerdown" to the monitor; is ACPI is enabled
>> then the guest sees the event but it's free to ignore it (it's the
>> same as pressing the power button on a real machine: the OS sees the
>> event and may start the shutdown, ask the user what to do, ignore it,
>> etc.); e.g. the default ACPI script of the debian stops the desktop
>> manager if it's running but doesn't shut down the machine. If the ACPI
>> daemon is not running in the guest then the event is lost...
>>
>> Luca
>>
>>
>>
>
> Hi Luca,
> thanks for the answer. Well, then it works as I expected. I already tried
> starting acpid in debug mode, but system doesn't seem to receive any
> event, although according to dmesg, ACPI itself seems to work (and I can
> poweroff from the guest)
>
A recent regression caused powerdown SCI to stop working. I've reverted
this and it should work again in kvm-68.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: initiating linux guest shutdown from host
2008-04-23 10:08 ` Avi Kivity
@ 2008-04-23 10:20 ` extmaillist
2008-04-23 10:22 ` Avi Kivity
0 siblings, 1 reply; 7+ messages in thread
From: extmaillist @ 2008-04-23 10:20 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel, Nikola Ciprich
Hi Avi,
thanks for info. Can You tell me which commit has caused the problem so I
can revert it in my testing sources? I don't see any reverts in git (yet).
thanks!
n.
On Wed, 23 Apr 2008, Avi Kivity wrote:
> extmaillist@linuxbox.cz wrote:
>>
>>
>> On Wed, 23 Apr 2008, Luca Tettamanti wrote:
>>
>>
>>> libvirt sends "system_powerdown" to the monitor; is ACPI is enabled
>>> then the guest sees the event but it's free to ignore it (it's the
>>> same as pressing the power button on a real machine: the OS sees the
>>> event and may start the shutdown, ask the user what to do, ignore it,
>>> etc.); e.g. the default ACPI script of the debian stops the desktop
>>> manager if it's running but doesn't shut down the machine. If the ACPI
>>> daemon is not running in the guest then the event is lost...
>>>
>>> Luca
>>>
>>>
>>>
>>
>> Hi Luca,
>> thanks for the answer. Well, then it works as I expected. I already tried
>> starting acpid in debug mode, but system doesn't seem to receive any event,
>> although according to dmesg, ACPI itself seems to work (and I can poweroff
>> from the guest)
>>
>
> A recent regression caused powerdown SCI to stop working. I've reverted this
> and it should work again in kvm-68.
>
> --
> Do not meddle in the internals of kernels, for they are subtle and quick to
> panic.
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: initiating linux guest shutdown from host
2008-04-23 10:20 ` extmaillist
@ 2008-04-23 10:22 ` Avi Kivity
2008-04-23 11:20 ` extmaillist
0 siblings, 1 reply; 7+ messages in thread
From: Avi Kivity @ 2008-04-23 10:22 UTC (permalink / raw)
To: extmaillist; +Cc: kvm-devel, Nikola Ciprich
extmaillist@linuxbox.cz wrote:
> Hi Avi,
> thanks for info. Can You tell me which commit has caused the problem
> so I can revert it in my testing sources? I don't see any reverts in
> git (yet).
6bb0805aeabd5c6ef5408f57c7da5ca6385dd0f5.
--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: initiating linux guest shutdown from host
2008-04-23 10:22 ` Avi Kivity
@ 2008-04-23 11:20 ` extmaillist
0 siblings, 0 replies; 7+ messages in thread
From: extmaillist @ 2008-04-23 11:20 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm-devel, Nikola Ciprich
My fault, of course I couldn't find, I was looking into kvm.git and not
kvm-userspace.git :-/
but anyways, it works properly now, thanks a lot!
n.
On Wed, 23 Apr 2008, Avi Kivity wrote:
> extmaillist@linuxbox.cz wrote:
>> Hi Avi,
>> thanks for info. Can You tell me which commit has caused the problem so I
>> can revert it in my testing sources? I don't see any reverts in git (yet).
>
> 6bb0805aeabd5c6ef5408f57c7da5ca6385dd0f5.
>
>
> --
> Do not meddle in the internals of kernels, for they are subtle and quick to
> panic.
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-04-23 11:20 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-23 8:40 initiating linux guest shutdown from host extmaillist
2008-04-23 9:18 ` Luca Tettamanti
2008-04-23 9:32 ` extmaillist
2008-04-23 10:08 ` Avi Kivity
2008-04-23 10:20 ` extmaillist
2008-04-23 10:22 ` Avi Kivity
2008-04-23 11:20 ` extmaillist
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox