From: David Mair Subject: Re: howto control VM from outside (shutdown...) Date: Mon, 19 Jan 2009 14:40:04 -0700 Message-ID: <4974F334.7010200@mair-family.org> References: <4974E154.5020404@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: KVM List To: Paolo Pedaletti Return-path: Received: from mair-family.org ([160.7.248.25]:52280 "EHLO mail.mair-family.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760424AbZASVsf (ORCPT ); Mon, 19 Jan 2009 16:48:35 -0500 In-Reply-To: <4974E154.5020404@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Paolo Pedaletti wrote: > Ciao, > > the question was posted here: > http://www.linux-kvm.com/content/daemonize-vs-monitor-commands > > "The original post asked about gracefully shutting down KVM guest using > scripts" > > When I shutdown the host machine, I want to > hibernate/shutdown/screendump/savevm/senkeys/system_powerdown(/migrate?) > also all the VM running (without using libvirt) > > I could ssh to each VM and halt it, but does exist a better/cleaner > solution? > > How can I communicate to kvm console? Take a look at the qemu -monitor option. You can use it to re-direct the monitor console to a large number of character devices, including sockets. The settings are the same as for the -serial option. I've used it to access the monitor console from a telnet client. -- David.