From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DFPNf-0002O7-9R for qemu-devel@nongnu.org; Sat, 26 Mar 2005 23:28:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DFPLF-0001S1-Uz for qemu-devel@nongnu.org; Sat, 26 Mar 2005 23:25:42 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DFPLE-0001J1-GP for qemu-devel@nongnu.org; Sat, 26 Mar 2005 23:25:36 -0500 Received: from [64.233.184.206] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DFOm2-0003JY-Aa for qemu-devel@nongnu.org; Sat, 26 Mar 2005 22:49:14 -0500 Received: by wproxy.gmail.com with SMTP id 58so48944wri for ; Sat, 26 Mar 2005 19:49:13 -0800 (PST) Message-ID: Date: Sat, 26 Mar 2005 21:49:13 -0600 From: Ryan Rempel Subject: Re: [Qemu-devel] Suggestion - trap window-close of VM Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Reply-To: Ryan Rempel , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Nov 29, 2004 at 21:46:54 +0100, Lennert Buytenhek wrote >On Mon, Nov 29, 2004 at 08:43:56PM +0000, Richard Neill wrote: > >> A thought that occurred to me. If one is running a virtual machine (eg >> copy of WinXP), then simply closing the qemu window is a really bad >> idea, since it will effectively crash the guest. > >Related thought -- it would be way cool if we could make killing qemu >do exactly happens when you press the power button on an ACPI-capable >machine with any recent OS on it (auto shutdown.) I was wondering if anyone has followed up on this suggestion. I'm putting together a Qemu-based setup for some relatively naive users, and ideally I'd like to be able to deal with this in a reasonable elegant way (the ACPI hook sounds very elegant indeed). Alternatively, how do people deal with the problem of naive users who might just close the Qemu window without shutting down the guest properly? I'm working in a KDE environment -- perhaps there is a way in KDE to prevent the close button from appearing? But that wouldn't catch every case either (for instance, if the user were to shut down the host).