From: Anthony Liguori <anthony@codemonkey.ws>
To: Matthias Pfafferodt <syntron@web.de>
Cc: kvm-devel@lists.sourceforge.net
Subject: Re: Boot script
Date: Tue, 11 Mar 2008 16:56:16 -0500 [thread overview]
Message-ID: <47D70000.5000901@codemonkey.ws> (raw)
In-Reply-To: <200803112238.35032.syntron@web.de>
Matthias Pfafferodt wrote:
> Hello,
>
> my server runs XEN with 5 domains at the moment. I will get new hardware this
> week and I think about trying to do the virtualisation using KVM.
>
> Xen has small scripts which
>
> * set up the bridged network at boot
>
I just manually configure a bridge through my distro's networking
scripts. I've got what I do fully documented at
http://kvm.qumranet.com/kvmwiki/AnthonyLiguori/Networking
You can also use libvirt to manage KVM in which case, it will
automagically configure networking for you.
> * start all domains at boot time (or restore saved domains)
>
I just use a script in /etc/init.d/ that I wrote but libvirt will also
do this for you.
> * save the domains at shutdown
>
As in, do a save at shutdown? That seems pretty scary to me. I don't
know what libvirt does on shutdown but I'm sure someone can chime in.
> Are there such scripts for KVM? I would like to have an init script which does
> all the things listed above.
>
> Is this even possible with qemu/kvm (save/restore a domain using shell
> commands)?
>
You have two options. If you use libvirt, you can issue commands via
virsh. If you don't use libvirt, you need to have the monitor sit on a
unix domain socket or on a TCP socket and you can issue commands to the
monitor via a tool like socat.
libvirt is by far the simplest choice for managing KVM but it's possible
to do these things without it.
Regards,
Anthony Liguori
> Thanks
>
> Matthias
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> kvm-devel mailing list
> kvm-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
prev parent reply other threads:[~2008-03-11 21:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-11 21:38 Boot script Matthias Pfafferodt
2008-03-11 21:53 ` Javier Guerra
2008-03-11 21:56 ` Anthony Liguori [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47D70000.5000901@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=kvm-devel@lists.sourceforge.net \
--cc=syntron@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.