Question about shutting down Guest KVM during HOST OS shutdown

2009-11-23 Thread Arun Khan
Greetings, I have been working on a script (kvminit) that starts and shuts down Guest KVMs during HOST OS boot/shutdown. The setup is in a small network wherein HOST OS is openSUSE 11.1 and Guest KVMs is a bunch of openSUSE and CentOS servers installation doing dedicated tasks (e.g. openLDAP +

Re: Question about shutting down Guest KVM during HOST OS shutdown

2009-11-23 Thread Bernhard Held
Hi Arun! send_cmd() { QEMU_MONITOR_COMMAND=$1 echo ${QEMU_MONITOR_COMMAND} | socat - UNIX-CONNECT:${FILE_MONITOR} } which sends the exit command to the qemu process via a socket file. Just send system_powerdown, and your guest will receive an ACPI shutdown request. Bernhard

RE: Question about shutting down Guest KVM during HOST OS shutdown

2009-11-23 Thread Neil Aggarwal
Arun: I have been working on a script (kvminit) that starts and shuts down Guest KVMs during HOST OS boot/shutdown. The setup is in a small I asked the same question on the CentOS-virt mailing list about using the virsh command to shutdown all guest VMs. That command is supposed to do a