diff options
author | Sebastian Arcus <s.arcus@open-t.co.uk> | 2017-06-07 07:17:02 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-06-10 10:47:30 +0700 |
commit | 942af95bd1342a34bbd0121249b8371e527aae6c (patch) | |
tree | 25aee79c3521f5d996b360048fd55df09d77626a /libraries/libvirt/README | |
parent | 2f03ac59d744b94e13f5b7f4e879b3a1b4db7bfd (diff) | |
download | slackbuilds-942af95bd1342a34bbd0121249b8371e527aae6c.tar.gz |
libraries/libvirt: managesave running VMs on shutdown by default
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/libvirt/README')
-rw-r--r-- | libraries/libvirt/README | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libraries/libvirt/README b/libraries/libvirt/README index 55b664a2e7..fbe09fd2b6 100644 --- a/libraries/libvirt/README +++ b/libraries/libvirt/README @@ -18,6 +18,7 @@ to /etc/rc.d/rc.local if [ -x /etc/rc.d/rc.libvirt ]; then /etc/rc.d/rc.libvirt start fi + and if you want it to stop at shutdown add this to /etc/rc.d/rc.local_shutdown @@ -26,6 +27,21 @@ and if you want it to stop at shutdown add this to /etc/rc.d/rc.libvirt stop fi +The enclosed rc.libvirt script will do a 'managedsave' on all running +and paused guests when issuing 'rc.libvirt stop'. Please note that this +saves the RAM of each guest to the host system's disk (by default under +/var/lib/libvirt/qemu/save) - so make sure enough space is available. If +you prefer to perform a full shutdown on all running guests instead, +issue a 'rc.libvirt guests_shutdown' followed by 'rc.libvirt shutdown'. + +By default 'rc.libvirt stop' and 'rc.libvirt guests_shutdown' will wait +a maximum of 5 minutes for all guests to shutdown, after which any +guests still running will be destroyed. Adjust this to a suitable value +for your system, as destroying a running guest carries a high risk of +data loss! + +There is also a 'guests_reboot' for rebooting all running guests. + Have a look at the commented part of rc.libvirt for some gotchas. netcat-openbsd is an optional dependency (needed if you |