Re: [libvirt] PATCH: add support for -snapshot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, May 23, 2009 at 09:34:41PM +0200, Geert Jansen wrote:
> Hi,
> 
> i'm working on some infrastructure to run unit tests in a virtual
> environment. For this, I need to be able to pass a "snapshot=on"
> argument to a qemu virtual disk so that I know I start with the same
> state all the time.
> 
> The attached patch implements this. It adds a boolean <snapshot/> to
> the <disk> section in the XML.
> 
> Please consider for inclusion.

  Hi Geert,

Hum, qemu args may come and go, to really add this at the libvirt API,
one would need a clear semantic for the operation, and ideally an
implementation for a different hypervisor.
So your suggestion is to add an argument making a disk immutable between
runs for the domain, i.e. the disk will always revert to the initial
state when restarted, but this would bit affect Suspend/Resume or
Save/Restore/Migrate operations,

  Right ? If yes that would need to be described fully in the
documentation in docs/formatdomain.html.in

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]