|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Clean shutdown of domain0 and guest domains?
Hi Morten,
> I'm just wondering about how Xen works when it comes to
> shutting down / rebooting the host.
Xen itself doesn't really care about cleanly shutting down domains. Ensuring
this happens is the job of tools running in dom0.
There's an init script called "xendomains" which can be used to shutdown (or
suspend to disk) guest operating systems when the dom0 system goes down, and
restart (or restore from disk) when dom0 comes up.
It's not perfect, and you do need to be careful not to confuse things (e.g.
don't change a guest's filesystem image whilst it's saved and then let
xendomains restart it without you meaning to - disk corruption happens here,
as it always will if you modify the filesystem of a suspended guest then
restore it). The automatic suspend / restore of guests is cool though - as a
result of it, I know of at least one person running domUs with a greater
total uptime than dom0 :-)
> When I enter reboot on domain0, does shutting down of
> guest domains always go well (it is something the kernel
> takes care of) or should I have some scripts to make
> sure that things are properly shut down before shutting
> down domain0?
Xendomains will help you, but it can't really deal with errors in the guests.
I'm not quite sure what happens if a guest refuses to shutdown, so there's
potentially an issue in trusting your guests to be polite and let dom0
reboot.
Take a look at this script, I suspect it'll do more or less what you want.
It's in tools/examples/init.d/, along with a sysconfig file for setting
various parameters relating to it's operation.
Hope that helps, please come back and pester us if not, or let us know if you
have a cool configuration.
Cheers,
Mark
--
Dave: Just a question. What use is a unicyle with no seat? And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|