search for: domainsnapshot

Displaying 20 results from an estimated 43 matches for "domainsnapshot".

2014 May 22
2
Live snapshots of a single block device
...only --atomic --no-metadata --diskspec "vda" I run this command for each block device (e.g vda, vdb, etc). However, after running the above command (to only backup vda), I see that a snapshot has also been created for vdb. I tried running it with --print-xml, which gives this output: <domainsnapshot> <name>05-22-14_17-09-25</name> <description>05-22-14_17-09-25</description> <disks> <disk name='vda'/> </disks> </domainsnapshot> What am I doing wrong - how can I tell snapshot-create-as to create an external snapshot for a s...
2012 Aug 02
2
Excluding RAW disk from snapshot
...ntly runs the system on a qcow2 based virtual disk, and an NFS export volume on RAW. I'd like to take a snapshot before a somewhat risky upgrade of oVirt and can't with the raw image attached. Looking at the documentation for the snapshot XML, I created this XML file for the snapshot <domainsnapshot> <name>20120802</name> <description>oVirt 3.1 upgrade</description> <disks> <disk name='vda' snapshot='yes' /> <disk name='vdb' snapshot='no' /> </disks> </domainsnapshot> When I try the snapsh...
2014 Jun 03
2
LIbvirt Python Snapshot -Domain Crashing
Hi, I'm using libvirt(1.0.0) with python, for managing virtual machines.. but while taking multiple snapshot domain is crashing... Snapshot XML ------------------------- <domainsnapshot> <name>snp1</name> <creationTime></creationTime> <description>Description</description> <state></state> <domain> <uuid></uuid> </domain> <parent> <name></name> </parent> <...
2017 Apr 04
2
Live migration with non-shared ZFS volume
...tal data since last snapshot itself but this feature is not there (AFAIK). So I am thinking about a workaround: 1. Create snapshot using: "virsh snapshot-create --xmlfile snap.xml --disk-only --no-metadata test-domain" which will start writing snapshot data into temporary qcow2 file <domainsnapshot> <disks> <disk name='/dev/zstore/test-volume'> <source file='/tmp/test-volume.qcow2'/> </disk> </disks> </domainsnapshot> 2. Create snapshot of backing ZFS volume and send it to destination host. 3. Migrate the domain Curre...
2017 Apr 28
1
Re: Live migration with non-shared ZFS volume
...9;ve found a solution which I consider at least acceptable: 1. create zfs snapshot of domain disk (/dev/zstore/test-volume) 2. save original XML domain definition 3. create snapshot in libvirt like this: virsh snapshot-create --xmlfile snap.xml --disk-only --no-metadata test-domain snap.xml: <domainsnapshot> <disks> <disk name='/dev/zstore/test-volume'> <source file='/tmp/test-volume.qcow2'/> </disk> </disks> </domainsnapshot> This creates overlay qcow snapshot on top of my base ZFS volume 3. Transfer ZFS volume (with last snap...
2012 Nov 28
1
error: argument unsupported: unable to handle disk requests in snapshot
Hello, a problem occurred during making a snapshot for a guest, ask for help... 1. the xml for snapshotdomain like this: # cat deployment.1 <domainsnapshot> <name>a</name> <disks> <disk name='/home/qcow2/disk.0'> <driver type='qcow2'/> <source file='/home/qcow2/disk.3'/> </disk> </disks> </domainsnapshot> 2. when i execute the command , a mist...
2018 Mar 20
2
About libvirt domain snapshot problem(for single disk snapshot)
...Images/8d582c1c-355a-4297-9434-2f2f562c77df.sys_disk3 ``` 2、 ``` python #!/usr/bin/env python # -*- coding: utf-8 -*- import libvirt import libvirt_qemu import json import sys name = sys.argv[1] print name conn = libvirt.open() dom = conn.lookupByName(name) xml = """ <domainsnapshot> <name>sysdisk_by_xml</name> <description>By xml</description> <disks> <disk name='vda' snapshot='external'> </disk> </disks> </domainsnapshot> """ flags = 0 flags |= libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_DISK_O...
2019 Jul 03
1
libvirt-python Create External Snapshot
Hi Libvirt, Does libvirt-python currently support the creation of external snapshots? I ran domain.snapshotCreateXML(xml) where xml is <domainsnapshot> <name>snap1</name> <description>Snapshot of OS install and updates</description> <disks> <disk name='vda'> <source file='/home/potato/libvirt/backups/test-snap1.qcow2'/> </disk> </disks> </domai...
2019 Nov 20
1
virsh snapshot-create --print-xml seems to ignore most arguments
...ted XML to create a snapshot via a perl script, and Sys::Virt only seems to support snapshots using a XML description of the arguments. timos@cerberus:~$ sudo virsh snapshot-create-as --domain web guest- state1 --diskspec hda,file=overlay1.qcow2 --disk-only --atomic --no- metadata --print-xml <domainsnapshot> <name>guest-state1</name> <disks> <disk name='hda'> <source file='overlay1.qcow2'/> </disk> </disks> </domainsnapshot> timos@cerberus:~$ sudo virsh snapshot-create-as --domain web guest- state1 --diskspec hda,...
2011 Oct 12
1
XML file format for snapshot-create
...However when running the virsh command, it doesn't like the formatting. # virsh snapshot-create proxy_0 /vmstore/proxy_0/proxy_0_ss.xml error: XML description for failed to parse snapshot xml document is not well formed or invalid This are the XML file contents... # cat proxy_0_ss.xml <domainsnapshot> <name></name> <description>Before updating to CR repo</desciption> </domainsnapshot> I'm running libvirt-0.8.7 on CentOS 6 x86_64. I can take snapshots just fine without defining the XML file, but I'd like to be able to add a description. Thanks - Tr...
2012 Apr 26
1
proper way to snapshot
Hi, While there are a few howtos floating around, what is the standard way to snapshot guests? I went through and converted from raw to pre allocated meta data qcow2 images for this purpose. Some howtos suggest to do an xml snapshot file as so; <domainsnapshot> <name>UbuntuServer_10.10-16032011</name> <description>Snapshot of OS install and updates</description> </domainsnapshot> And then to run as so; virsh snapshot-create UbuntuServer_10.10 UbuntuServer_10.10-ss.xml Seems a bit over kill. I was thinking more a...
2014 May 22
0
Re: Live snapshots of a single block device
...-no-metadata --diskspec "vda" > > I run this command for each block device (e.g vda, vdb, etc). However, after running the above command (to only backup vda), I see that a snapshot has also been created for vdb. I tried running it with --print-xml, which gives this output: > <domainsnapshot> > <name>05-22-14_17-09-25</name> > <description>05-22-14_17-09-25</description> > <disks> > <disk name='vda'/> > </disks> The problem you are facing is that the snapshot code MUST have an action for every disk; and if...
2011 Sep 27
2
Snapshot Error
Hey When I want to take a snapshot for a Domain by using virDomainSnapshotCreateXML. The Error as below happen: libvir: QEMU error : Requested operation is not valid: Disk '/var/lib/libvirt/images/fedora-qcow.qcow2' does not support snapshotting The snapshot Configuration is : <domainsnapshot> <description>Snapshot of OS install and updates</des...
2014 Jun 03
1
Re: LIbvirt Python Snapshot -Domain Crashing
...sible to revert to the actual domain state when I took the snapshot), I'm using libvirt APIs python bindings, there are many flags defined, so which way I can accomplish it..? as of now I"m using flag value as zero. API Call -------------- snp1=domain1.snapshotCreateXML(snp_xml,0) virDomainSnapshotCreateFlags enum virDomainSnapshotCreateFlags { VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE = 1 Restore or alter metadata VIR_DOMAIN_SNAPSHOT_CREATE_CURRENT = 2 With redefine, make snapshot current VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATA = 4 Make snapshot without remembering it VIR_DOMAIN_SNAPSHOT_CREATE_H...
2012 Jul 19
1
Questions related to the snapshot
...and output to a new file in python, there is a slightly different. But, the new XML file can't be recognized even if I restart my laptop. The new XML file miss the attribute <active> as far as I can see, is it so important? Here is one example: The original XML in the default folder: <domainsnapshot> <name>Ex</name> <description>Snapshot of OS updates</description> <state>running</state> <parent> <name>1342427860</name> </parent> <creationTime>1342428835</creationTime> <domain> <uuid>2c...
2013 Jun 26
2
Re: snapshot-create-as for a single disk not all disks
...m --disk-only --diskspec "vda,snapshot=external" 2013/6/25 cmcc.dylan <dx10years@126.com> > > Hi, everyone, > I have found the API snapshotCreateXML() can create a snapshot for a > virtual machine, and the xml configuration file - snapshot.xml as folllows: > <domainsnapshot> > <name>snapshot01</name> > <description>Snapshot of OS install and updates</description> > <disks> > <disk name='vda' snapshot='external'> > <source file='/data10/snapshot'/> > </disk&gt...
2015 Jun 30
0
qemu-img snapshots configuration
Hello. What it the difference in external snapshot configuration with and without <domainsnapshot> ? What is the difference between vda and vdb in the following example? (From https://libvirt.org/formatsnapshot.html) <domainsnapshot> ... <memory snapshot='no'/> <disks> <disk name='vda' snapshot='external'> <driver type='...
2015 Jun 30
0
qemu-img snapshots configuration
Hello. What it the difference in external snapshot configuration with and without <domainsnapshot> ? What is the difference between vda, vdb and vdc in the following example? (From https://libvirt.org/formatsnapshot.html) <domainsnapshot> ... <memory snapshot='no'/> <disks> <disk name='vda' snapshot='external'> <driver type=...
2013 Mar 28
1
Snapshot without volumes temporarily
...volume check when I do the snapshot. (Which means I want to do a snapshot without detaching the volume) So I try to write a snapshot XML refer by http://libvirt.org/formatsnapshot.html as following: vda is my VM basic disk (qcow2) vdb is a volume (raw) ================ t1.xml =============== <domainsnapshot> <disks> <disk name='vda' snapshot='internal'> <source file='/var/lib/libvirt/VM1/disk' /> </disk> <disk name='vdb' snapshot='no' /> </disks> </domainsnapshot> ===================================== with this comma...
2019 Sep 06
1
could not create snapshotxml on encryption image
...f(*args, **kwargs) File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line 92, in wrapper return func(inst, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2620, in snapshotCreateXML if ret is None:raise libvirtError('virDomainSnapshotCreateXML() failed', dom=self) libvirtError: internal error: unable to execute QEMU command 'transaction': Parameter 'encrypt.key-secret' is required for cipher And try adding encryption fields to domainsnapshot, as shown below <?xml version='1.0' encoding='ut...