Re: How to properly turn off guest VM on server shutdown?

2010-01-26 Thread Kenni Lund
2010/1/26 Markus Breitländer : > Hello Glennie, > > Am 26.01.2010 14:46, schrieb Glennie Vignarajah: >> Le 24/01/2010 vers 18:16, dans le message intitulé "Re: How to properly turn >> off guest VM on server shutdown?", Markus Breitländer(Markus Breitländer >&

Re: How to properly turn off guest VM on server shutdown?

2010-01-26 Thread Markus Breitländer
Hello Glennie, Am 26.01.2010 14:46, schrieb Glennie Vignarajah: > Le 24/01/2010 vers 18:16, dans le message intitulé "Re: How to properly turn > off guest VM on server shutdown?", Markus Breitländer(Markus Breitländer > ) a écrit: > >> Hi! > > Hello; > &

Re: How to properly turn off guest VM on server shutdown?

2010-01-26 Thread Glennie Vignarajah
Le 24/01/2010 vers 18:16, dans le message intitulé "Re: How to properly turn off guest VM on server shutdown?", Markus Breitländer(Markus Breitländer ) a écrit: > Hi! Hello; > Does anyone have sample scripts for this job? #!/bin/bash CONNECT_STRING="qemu:///system"

Re: How to properly turn off guest VM on server shutdown?

2010-01-25 Thread Jan Kiszka
Michael Tokarev wrote: > Jernej Simončič wrote: >> On Sunday, January 24, 2010, 19:28:47, Jean-Philippe Menil wrote: >> >>> Maybe the same can be done with windows guest. >> Should work with any Windows, and verified to work with Vista x64 >> guest. > > The only problem is that windows does not wa

Re: How to properly turn off guest VM on server shutdown?

2010-01-25 Thread Michael Tokarev
Jernej Simončič wrote: > On Sunday, January 24, 2010, 19:28:47, Jean-Philippe Menil wrote: > >> Maybe the same can be done with windows guest. > > Should work with any Windows, and verified to work with Vista x64 > guest. The only problem is that windows does not want to shut down when you need

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Jernej Simončič
On Sunday, January 24, 2010, 19:28:47, Jean-Philippe Menil wrote: > Maybe the same can be done with windows guest. Should work with any Windows, and verified to work with Vista x64 guest. -- < Jernej Simončič ><><><><>< http://eternallybored.org/ > It works better if you plug it in. --

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Daniel Bareiro
On Sunday, 24 January 2010 15:27:23 -0300, Daniel Bareiro wrote: > > Does the 'system_powerdown' monitor command initiate an ACPI > > shutdown? If so, I guess you can make an rc.d script that calls it > > during shutdown? > Interesting... I didn't know this command of Qemu Monitor. > > Doing a

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Jean-Philippe Menil
Avishay Traeger a écrit : kvm-ow...@vger.kernel.org wrote on 01/24/2010 05:29:08 PM: Anthony Liguori But the origin of the question here is probably, can something automatically shut down guests when a machine shutdowns down via the normal mechanism. AFAIK, libvirt does not support this tod

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Daniel Bareiro
On Sunday, 24 January 2010 19:41:42 +0200, Avishay Traeger wrote: > > But the origin of the question here is probably, can something > > automatically shut down guests when a machine shutdowns down via the > > normal mechanism. AFAIK, libvirt does not support this today > > although there are som

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Markus Breitländer
Hi! Does anyone have sample scripts for this job? I know you can send the 'system_powerdown' command to the qemu-monitor, this CAN work for windows guests as far as i know. What other commands could be used in shutdown scripts? Regards, Markus Am 24.01.2010 18:00, schrieb Daniel Bareiro: >

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Avishay Traeger
kvm-ow...@vger.kernel.org wrote on 01/24/2010 05:29:08 PM: > Anthony Liguori > But the origin of the question here is probably, can something > automatically shut down guests when a machine shutdowns down via the > normal mechanism. AFAIK, libvirt does not support this today although > there are

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Daniel Bareiro
Hi, Anthony. On Sunday, 24 January 2010 09:29:08 -0600, Anthony Liguori wrote: > But the origin of the question here is probably, can something > automatically shut down guests when a machine shutdowns down via the > normal mechanism. AFAIK, libvirt does not support this today although > there a

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Anthony Liguori
On 01/24/2010 09:15 AM, Avi Kivity wrote: On 01/24/2010 05:11 PM, Daniel Bareiro wrote: But also it would interest to me to know if this can be done without using libvirt. Well, it can, but you get to duplicate all the libvirt code that does this. I don't think it can. The original questio

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Avi Kivity
On 01/24/2010 05:11 PM, Daniel Bareiro wrote: But also it would interest to me to know if this can be done without using libvirt. Well, it can, but you get to duplicate all the libvirt code that does this. -- error compiling committee.c: too many arguments to function -- To unsubscribe fr

Re: How to properly turn off guest VM on server shutdown?

2010-01-24 Thread Daniel Bareiro
On Sunday, 24 January 2010 15:33:21 +0100, André Weidemann wrote: > Hi, Hi, André. > is there a mechanism inside qemu-kvm that can shutdown the OS inside a > VM when the qemu-kvm process receives a kill signal? > I am running Windows7 Pro inside a VM and I would like kvm to shut the > Window

How to properly turn off guest VM on server shutdown?

2010-01-24 Thread André Weidemann
Hi, is there a mechanism inside qemu-kvm that can shutdown the OS inside a VM when the qemu-kvm process receives a kill signal? I am running Windows7 Pro inside a VM and I would like kvm to shut the Windows system down before the process is killed. I know that VMware can shut down the guest OS w