483d953a86
Save and restore (also known as suspend and resume) permits a snapshot to be taken of a guest's state that can later be resumed. In the current implementation, bhyve(8) creates a UNIX domain socket that is used by bhyvectl(8) to send a request to save a snapshot (and optionally exit after the snapshot has been taken). A snapshot currently consists of two files: the first holds a copy of guest RAM, and the second file holds other guest state such as vCPU register values and device model state. To resume a guest, bhyve(8) must be started with a matching pair of command line arguments to instantiate the same set of device models as well as a pointer to the saved snapshot. While the current implementation is useful for several uses cases, it has a few limitations. The file format for saving the guest state is tied to the ABI of internal bhyve structures and is not self-describing (in that it does not communicate the set of device models present in the system). In addition, the state saved for some device models closely matches the internal data structures which might prove a challenge for compatibility of snapshot files across a range of bhyve versions. The file format also does not currently support versioning of individual chunks of state. As a result, the current file format is not a fixed binary format and future revisions to save and restore will break binary compatiblity of snapshot files. The goal is to move to a more flexible format that adds versioning, etc. and at that point to commit to providing a reasonable level of compatibility. As a result, the current implementation is not enabled by default. It can be enabled via the WITH_BHYVE_SNAPSHOT=yes option for userland builds, and the kernel option BHYVE_SHAPSHOT. Submitted by: Mihai Tiganus, Flavius Anton, Darius Mihai Submitted by: Elena Mihailescu, Mihai Carabas, Sergiu Weisz Relnotes: yes Sponsored by: University Politehnica of Bucharest Sponsored by: Matthew Grooms (student scholarships) Sponsored by: iXsystems Differential Revision: https://reviews.freebsd.org/D19495 |
||
---|---|---|
.. | ||
a.out.5 | ||
acct.5 | ||
ar.5 | ||
autofs.5 | ||
bluetooth.device.conf.5 | ||
bluetooth.hosts.5 | ||
bluetooth.protocols.5 | ||
boot.config.5 | ||
cd9660.5 | ||
core.5 | ||
devfs.5 | ||
devfs.conf.5 | ||
devfs.rules.5 | ||
device.hints.5 | ||
dir.5 | ||
disktab.5 | ||
elf.5 | ||
ethers.5 | ||
eui64.5 | ||
ext2fs.5 | ||
fbtab.5 | ||
fdescfs.5 | ||
forward.5 | ||
freebsd-update.conf.5 | ||
fs.5 | ||
fstab.5 | ||
fusefs.5 | ||
group.5 | ||
hesiod.conf.5 | ||
hosts.5 | ||
hosts.equiv.5 | ||
hosts.lpd.5 | ||
intro.5 | ||
libmap.conf.5 | ||
link.5 | ||
linprocfs.5 | ||
linsysfs.5 | ||
mailer.conf.5 | ||
make.conf.5 | ||
Makefile | ||
Makefile.depend | ||
moduli.5 | ||
motd.5 | ||
mount.conf.5 | ||
mqueuefs.5 | ||
msdosfs.5 | ||
networks.5 | ||
nsmb.conf.5 | ||
nsswitch.conf.5 | ||
nullfs.5 | ||
os-release.5 | ||
passwd.5 | ||
pbm.5 | ||
periodic.conf.5 | ||
pf.conf.5 | ||
pf.os.5 | ||
phones.5 | ||
portindex.5 | ||
portsnap.conf.5 | ||
procfs.5 | ||
protocols.5 | ||
quota.user.5 | ||
rc.conf.5 | ||
rctl.conf.5 | ||
regdomain.5 | ||
remote.5 | ||
resolver.5 | ||
services.5 | ||
shells.5 | ||
smbfs.5 | ||
src.conf.5 | ||
stab.5 | ||
style.Makefile.5 | ||
style.mdoc.5 | ||
sysctl.conf.5 | ||
tmpfs.5 | ||
unionfs.5 |