From: "Daniel P. Berrange" <berrange@redhat.com>
To: Jamie Lokier <jamie@shareable.org>
Cc: "François Revol" <revol@free.fr>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] wake-on-lan & IPMI implementation; real power-off and -no-shutdown
Date: Tue, 16 Mar 2010 17:44:55 +0000 [thread overview]
Message-ID: <20100316174455.GP23617@redhat.com> (raw)
In-Reply-To: <20100316172851.GB19160@shareable.org>
On Tue, Mar 16, 2010 at 05:28:51PM +0000, Jamie Lokier wrote:
> > The semantics of -no-shutdown are awful.
> >
> > I'd personally prefer to see the option deprecated and a new set of
> > options introduced with clearer semantics.
> >
> > Currently, -no-shutdown does too many things. It affects reboot
> > behaviour, shutdown behaviour, the behavior of the SDL close button.
> > Each of these things should be individual tunables.
>
> I'm not sure about -no-shutdown, but I've had some problems with -no-reboot,
> which I use for semi-automated OS installations.
>
> I use -no-reboot so that when the guest does a reboot during
> installation, as they invariably do one or more times, QEMU exits, my
> scripts does things eject the CD/floppy, or change it for the next in
> sequence, and modify the guest's installed files to add virtio
> drivers, install extra fiels, edit boot scripts and whatever else is
> useful, and then restart QEMU.
>
> The guest thinks it's just rebooted, but it has the virtualisation
> goodies in place to run better.
That's the way libvirt / virt-manager does provisioning too.
> Unfortunately with an MS-DOS 5.00 guest, -no-reboot does not
> work. It fails to exit QEMU; instead it just reboots. I guess that
> means a QJSON event would not be sent either.
>
> For my use case, it would be even better if guest reboot paused the
> guest and sent a QJSON event instead of having to use -no-reboot.
> Then I wouldn't have to close and restart the VNC client repeatedly
> during installs.
That would be nice!
> Now that we have ways to choose what kind of events and actions are
> triggered by the QEMU watchdog device, it would be nice to fit guest
> reboot (perhaps even the different types of reboot) / host-forced
> reboot / guest powerdown / host-forced powerdown (like holding down
> the power button for 5 seconds on a real PC) into the same/similar
> framework as the watchdog, with same/similar event types and action
> choices.
Agreed, it'd be good to have a more generalized method of controlling
the lifecycle actions in QEMU.
Regards,
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
next prev parent reply other threads:[~2010-03-16 17:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-15 15:01 [Qemu-devel] wake-on-lan & IPMI implementation; real power-off and -no-shutdown François Revol
2010-03-15 15:26 ` Paul Brook
2010-03-15 15:37 ` François Revol
2010-03-15 15:51 ` Anthony Liguori
2010-03-15 16:00 ` François Revol
2010-03-15 15:55 ` Daniel P. Berrange
2010-03-15 16:29 ` Anthony Liguori
2010-03-15 16:36 ` François Revol
2010-03-16 17:28 ` Jamie Lokier
2010-03-16 17:44 ` Daniel P. Berrange [this message]
2010-03-16 18:22 ` François Revol
2010-03-16 13:53 ` Luiz Capitulino
2010-03-16 14:26 ` François Revol
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=20100316174455.GP23617@redhat.com \
--to=berrange@redhat.com \
--cc=jamie@shareable.org \
--cc=qemu-devel@nongnu.org \
--cc=revol@free.fr \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).