public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Startup/Shutdown scripts for KVM Machines in Debian (libvirt)
@ 2010-11-10  8:01 Hermann Himmelbauer
  2010-11-10  8:35 ` Avi Kivity
  2010-11-10  9:07 ` pradeep
  0 siblings, 2 replies; 4+ messages in thread
From: Hermann Himmelbauer @ 2010-11-10  8:01 UTC (permalink / raw)
  To: kvm

Hi,
I manage my KVM machines via libvirt and wonder if there are any init.d 
scripts for automatically starting up and shutting down virtual machines 
during boot/shutdown of the host?

Writing this for myself seems to be not that simple, as when shutting down, 
the system has somehow to wait until all machines are halted (not responding 
guests have to be destroyed etc.), and I don't really know how to accomplish 
this.

My host system is Debian Lenny, is there anything available? 
Perhaps libvirt offers something I'm unaware of?


Best Regards,
Hermann

-- 
hermann@qwer.tk
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Startup/Shutdown scripts for KVM Machines in Debian (libvirt)
  2010-11-10  8:01 Startup/Shutdown scripts for KVM Machines in Debian (libvirt) Hermann Himmelbauer
@ 2010-11-10  8:35 ` Avi Kivity
  2010-11-10  9:07 ` pradeep
  1 sibling, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2010-11-10  8:35 UTC (permalink / raw)
  To: Hermann Himmelbauer; +Cc: kvm, libvir-list@redhat.com

On 11/10/2010 10:01 AM, Hermann Himmelbauer wrote:
> Hi,
> I manage my KVM machines via libvirt and wonder if there are any init.d
> scripts for automatically starting up and shutting down virtual machines
> during boot/shutdown of the host?
>
> Writing this for myself seems to be not that simple, as when shutting down,
> the system has somehow to wait until all machines are halted (not responding
> guests have to be destroyed etc.), and I don't really know how to accomplish
> this.
>
> My host system is Debian Lenny, is there anything available?
> Perhaps libvirt offers something I'm unaware of?
>

I think it does.  Copying the libvirt mailing list.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Startup/Shutdown scripts for KVM Machines in Debian (libvirt)
  2010-11-10  8:01 Startup/Shutdown scripts for KVM Machines in Debian (libvirt) Hermann Himmelbauer
  2010-11-10  8:35 ` Avi Kivity
@ 2010-11-10  9:07 ` pradeep
  2010-11-10  9:18   ` Jean-Philippe Menil
  1 sibling, 1 reply; 4+ messages in thread
From: pradeep @ 2010-11-10  9:07 UTC (permalink / raw)
  To: Hermann Himmelbauer; +Cc: kvm

On Wed, 10 Nov 2010 09:01:40 +0100
Hermann Himmelbauer <dusty@qwer.tk> wrote:

> Hi,
> I manage my KVM machines via libvirt and wonder if there are any
> init.d scripts for automatically starting up and shutting down
> virtual machines during boot/shutdown of the host?
> 
> Writing this for myself seems to be not that simple, as when shutting
> down, the system has somehow to wait until all machines are halted
> (not responding guests have to be destroyed etc.), and I don't really
> know how to accomplish this.
> 
> My host system is Debian Lenny, is there anything available? 
> Perhaps libvirt offers something I'm unaware of?

You can set it using "autostart" in virsh.

> 
> 
> Best Regards,
> Hermann
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Startup/Shutdown scripts for KVM Machines in Debian (libvirt)
  2010-11-10  9:07 ` pradeep
@ 2010-11-10  9:18   ` Jean-Philippe Menil
  0 siblings, 0 replies; 4+ messages in thread
From: Jean-Philippe Menil @ 2010-11-10  9:18 UTC (permalink / raw)
  To: pradeep; +Cc: Hermann Himmelbauer, kvm

[-- Attachment #1: Type: text/plain, Size: 1215 bytes --]

Le 10/11/2010 10:07, pradeep a écrit :
> On Wed, 10 Nov 2010 09:01:40 +0100
> Hermann Himmelbauer<dusty@qwer.tk>  wrote:
>
>> Hi,
>> I manage my KVM machines via libvirt and wonder if there are any
>> init.d scripts for automatically starting up and shutting down
>> virtual machines during boot/shutdown of the host?
>>
>> Writing this for myself seems to be not that simple, as when shutting
>> down, the system has somehow to wait until all machines are halted
>> (not responding guests have to be destroyed etc.), and I don't really
>> know how to accomplish this.
>>
>> My host system is Debian Lenny, is there anything available?
>> Perhaps libvirt offers something I'm unaware of?
> You can set it using "autostart" in virsh.
>
>>
>> Best Regards,
>> Hermann
>>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Hi,

in libvirt, there is two startup script you need to be aware.
/etc/init.d/libvirt-bin for the libvirt daemon and the
/etc/init.d/libvirt-guest for a properly startup/shutdown of the guests.
And take a look at tht /etc/default/libvirt-*

Regards.

[-- Attachment #2: jean-philippe_menil.vcf --]
[-- Type: text/x-vcard, Size: 361 bytes --]

begin:vcard
fn:Jean-Philippe Menil
n:Menil;Jean-Philippe
org;quoted-printable:Universit=C3=A9 de Nantes;IRTS - DSI
adr;quoted-printable:;;2 rue de la Houssini=C3=A8re;Nantes;Loire-Atlantique;44382;France
email;internet:jean-philippe.menil@univ-nantes.fr
title;quoted-printable:Administrateur R=C3=A9seau
url:http://www.cri.univ-nantes.fr
version:2.1
end:vcard


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-10  9:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-10  8:01 Startup/Shutdown scripts for KVM Machines in Debian (libvirt) Hermann Himmelbauer
2010-11-10  8:35 ` Avi Kivity
2010-11-10  9:07 ` pradeep
2010-11-10  9:18   ` Jean-Philippe Menil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox