Sys::Virt::DomainSnapsUser3Contributed Perl DocumeSys::Virt::DomainSnapshot(3)NAMESys::Virt::DomainSnapshot - Represent & manage a libvirt guest domain
DESCRIPTION
The "Sys::Virt::DomainSnapshot" module represents a guest domain
managed by the virtual machine monitor.
METHODS
my $xml = $dom->get_xml_description()
Returns an XML document containing a complete description of the
domain's configuration
$dom->delete()
Deletes this snapshot object & its datra
$dom->revert_to()
Revert the domain to the state associated with this snapshot
CONSTANTS
SNAPSHOT CREATION
The following constants are useful when creating snapshots
Sys::Virt::DomainSnapshot::CREATE_CURRENT
Set the defined snapshot to be the current snapshot
Sys::Virt::DomainSnapshot::CREATE_DISK_ONLY
Only snapshot the disk, not the memory state
Sys::Virt::DomainSnapshot::CREATE_HALT
Stop the guest after creating the snapshot
Sys::Virt::DomainSnapshot::CREATE_NO_METADATA
Do not save any metadata for the snapshot
Sys::Virt::DomainSnapshot::CREATE_REDEFINE
Replace/set the metadata with the snapshot
SNAPSHOT DELETION
The following constants are useful when deleting snapshots
Sys::Virt::DomainSnapshot::DELETE_CHILDREN
Recursively delete any child snapshots
Sys::Virt::DomainSnapshot::DELETE_CHILDREN_ONLY
Only delete the child snapshots
Sys::Virt::DomainSnapshot::DELETE_METADATA_ONLY
Only delete the snapshot metadata
SNAPSHOT LIST
The following constants are useful when listing snapshots
Sys::Virt::DomainSnapshot::LIST_METADATA
Only list snapshots which have metadata
Sys::Virt::DomainSnapshot::LIST_ROOTS
Only list snapshots which are root nodes in the tree
SNAPSHOT REVERT
The following constants are useful when reverting snapshots
Sys::Virt::DomainSnapshot::REVERT_PAUSED
Leave the guest CPUs paused after reverting to the snapshot state
Sys::Virt::DomainSnapshot::REVERT_RUNNING
Start the guest CPUs after reverting to the snapshot state
AUTHORS
Daniel P. Berrange <berrange@redhat.com>
COPYRIGHT
Copyright (C) 2006 Red Hat Copyright (C) 2006-2007 Daniel P. Berrange
LICENSE
This program is free software; you can redistribute it and/or modify it
under the terms of either the GNU General Public License as published
by the Free Software Foundation (either version 2 of the License, or at
your option any later version), or, the Artistic License, as specified
in the Perl README file.
SEE ALSO
Sys::Virt, Sys::Virt::Error, "http://libvirt.org"
perl v5.14.1 2011-09-28 Sys::Virt::DomainSnapshot(3)