[Bug 350936] Re: Should shut down domains on system shutdown

2011-08-01 Thread dbendlin
Here's my /etc/init.d/libvirt-bin file

** Attachment added: "libvirt-bin"
   
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/350936/+attachment/2248342/+files/libvirt-bin

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to kvm in Ubuntu.
https://bugs.launchpad.net/bugs/350936

Title:
  Should shut down domains on system shutdown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/350936/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 350936] Re: Should shut down domains on system shutdown

2011-08-01 Thread dbendlin
Hello Guys,

I wanned to share my workarroud on this issue, Im using debian squeeze
as OS for a couple of virtualization hosts, each one of them holding a
number of vm's.

What I need is that when shuting down my virtualization host (from cli,
by cron, by ups low batt or by pressing the power button (ACPI)), the
host hast to shutdown each vm before going down.

I used one of the scripts from earlier posts:
1.-  I copied it to /usr/local/bin
2.- Changed ownership (chown root:root /usr/local/bin/libvirt-shutdown-domains)
3.- Chandeg permitions (chmod 775 /usr/local/bin/libvirt-shutdown-domains)
4.- Edited /etc/init.d/libvirt-bin, adding a reference to this file as the 
secound line in the stop section of the init file

Before actually executing the libvirt-bin stop logic, it calls the first
script witch shutdown each vm's, when that script ends (after every vm
is gracefully halted), the libvirt-bin init script continues.

** Attachment added: "libvirt-shutdown-domains"
   
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/350936/+attachment/2248329/+files/libvirt-shutdown-domains

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to kvm in Ubuntu.
https://bugs.launchpad.net/bugs/350936

Title:
  Should shut down domains on system shutdown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/350936/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs