search for: snapshotcreatexml

Displaying 20 results from an estimated 21 matches for "snapshotcreatexml".

2012 May 29
1
how to store an internal disk snapshot by use
Hello everyone, I am trying to find a way to store an internal disk snapshot and supposed to restore later. Here is the problems I met: 1) when I use SnapshotCreateXML() to create a disk_only snapshot while the domain is inactive, there is an error happened: disk snapshot of inactive domains not implemented yet. I am wondering is there and way I can save the disk_only snapshot when the domain is inactive right now? 2) also use snapshotCreateXML()...
2011 May 16
1
(no subject)
...eate, delete, list, revert, current. But when I try to do the same using libvirt, I get out of memory error. Here are the commands that i execute on my host in a python shell... import libvirt conn = libvirt.open("qemu:///system") dom = conn.lookupByName("vmtest") *snap = dom.snapshotCreateXML(None,0);* The error is as follows libvir: Remote error : out of memory Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/dist-packages/libvirt.py", line 669, in snapshotCreateXML if ret is None:raise libvirtErro...
2019 Sep 06
1
could not create snapshotxml on encryption image
...n't know if it's a native question, I create snapshots of virtual machines that use encrypted disk, The console gave me the following error: Traceback(most recent call last): File "/usr/lib/python2.7/site-packages/vdsm/virt/vm.py",line 4613, in snapshot self._dom,snapshotCreateXML(snapxml, snapFlags) File "/usr/lib/python2.7/site-packages/vdsm/virt/virdomain.py", in line 98, in f ret = attr(*args, **kwargs) File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py", line 130, in wrapper ret = f(*args, **kwargs) File...
2014 Jun 03
2
LIbvirt Python Snapshot -Domain Crashing
...> <description>Description</description> <state></state> <domain> <uuid></uuid> </domain> <parent> <name></name> </parent> </domainsnapshot> ---------------- API Call -------------- snp1=domain1.snapshotCreateXML(snp_xml,0) here I'm passing flag value as zero.. Its created first snapshot without any error, but when I tried for second snapshot 1) Domain switched its state to pause and its not coming back I installed ubuntu12.04 OS in the domian. Rgds -Sijo -------------- next part -------------- An H...
2018 Mar 20
2
About libvirt domain snapshot problem(for single disk snapshot)
...xml</description> <disks> <disk name='vda' snapshot='external'> </disk> </disks> </domainsnapshot> """ flags = 0 flags |= libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY flags |= libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE ret = dom.snapshotCreateXML(xmlDesc=xml, flags=flags) ``` ``` result [root@10k03 ~]# ls -lh /opt/Images/*sysdisk_by_xml -rw-------. 1 qemu qemu 194K 3月 20 23:52 /opt/Images/00d76a58-9637-4402-9739-21afd1246e06.sysdisk_by_xml -rw-------. 1 qemu qemu 1.2M 3月 21 00:03 /opt/Images/8d582c1c-355a-4297-9434-2f2f562c77df.sysdisk_by...
2015 May 28
2
Re: Concurrent scanning of same disk
...would be to take a > consistent snapshot. Assuming the guest is well-behaved and the > filesystem uses journalling and the journalling is implemented > correctly, a consistent snapshot should not have such errors. > > Rich. To create the snapshots I'm using the libvirt command snapshotCreateXML with no flag set. Does libvirt support consistent snapshotting or shall I rely on QEMU backup new feature only?
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'/> &l...
2015 May 28
2
Re: Concurrent scanning of same disk
2015-05-28 10:40 GMT+03:00 Richard W.M. Jones <rjones@redhat.com>: > On Thu, May 28, 2015 at 10:33:48AM +0300, NoxDaFox wrote: > > To create the snapshots I'm using the libvirt command snapshotCreateXML > > with no flag set. Does libvirt support consistent snapshotting or shall I > > rely on QEMU backup new feature only? > > According to: http://wiki.libvirt.org/page/Snapshots > virDomainSnapshotCreateXML is only consistent if the guest is paused > during the operation. &gt...
2014 Jun 03
1
Re: LIbvirt Python Snapshot -Domain Crashing
...ter point of time It should be possible 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...
2013 Jun 26
2
Re: snapshot-create-as for a single disk not all disks
try snapshot-create-as like below: virsh snapshot-create-as vm --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> > <d...
2013 Jun 25
2
Re: snapshot-create-as for a single disk not all disks
Thanks for you reply! Firstly, I'm very sorry I forgot introduce the scenarios in my experiments. Supposing a case, I have a virtual machine with two disks. One is mounted as a root partition and the other is data partition and the second disk is an iscsi lun, that is to say, not a local disk or image. Now the result wanted is that creating a snapshot for the root disk but not for the data
2012 Sep 26
1
Create and revert to snapshot fails silently after device update on running domain
...ice defined (see below). When started, I want to mount an ISO file to it. So I do updateDeviceFlags in libvirt-python or update-device in virsh (both have the same problem). This works fine, the ISO image becomes available to the domain. Now I create a snapshot on the still running domain using snapshotCreateXML in libvirt-python or snapshot-create in virsh. The command returns immediately without error (a normal snapshot takes several seconds to complete). If I revert to this snapshot this command also returns immediately without error, but the snapshot is not actually reverted to, the domain remains...
2015 May 28
0
Re: Concurrent scanning of same disk
On Thu, May 28, 2015 at 10:33:48AM +0300, NoxDaFox wrote: > To create the snapshots I'm using the libvirt command snapshotCreateXML > with no flag set. Does libvirt support consistent snapshotting or shall I > rely on QEMU backup new feature only? According to: http://wiki.libvirt.org/page/Snapshots virDomainSnapshotCreateXML is only consistent if the guest is paused during the operation. The new qemu feature is called...
2011 Feb 14
1
Use libvirt-python to attach cdrom
Hi all, I want to attach cdrom by libvirt.py .But can't find a func in libvirt.py can finish this work. Who can help me ? Regard -- Seven Ling E-mail: jiejie.ling at qq.com
2014 Jun 03
0
Re: LIbvirt Python Snapshot -Domain Crashing
...t; <state></state> > <domain> > <uuid></uuid> > </domain> > <parent> > <name></name> > </parent> > ></domainsnapshot> >---------------- > > >API Call >-------------- >snp1=domain1.snapshotCreateXML(snp_xml,0) >here I'm passing flag value as zero.. > >Its created first snapshot without any error, but when I tried for second >snapshot >1) Domain switched its state to pause and its not coming back > > >I installed ubuntu12.04 OS in the domian. > I do not know much...
2015 May 28
0
Re: Concurrent scanning of same disk
On Thu, May 28, 2015 at 10:57:51AM +0300, NoxDaFox wrote: > 2015-05-28 10:40 GMT+03:00 Richard W.M. Jones <rjones@redhat.com>: > > > On Thu, May 28, 2015 at 10:33:48AM +0300, NoxDaFox wrote: > > > To create the snapshots I'm using the libvirt command snapshotCreateXML > > > with no flag set. Does libvirt support consistent snapshotting or shall I > > > rely on QEMU backup new feature only? > > > > According to: http://wiki.libvirt.org/page/Snapshots > > virDomainSnapshotCreateXML is only consistent if the guest is paused >...
2013 Jun 25
0
Re: snapshot-create-as for a single disk not all disks
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' snapsho...
2018 Mar 22
0
回复: Fwd: About libvirt domain snapshot problem(for single disk snapshot)
...SHOT_CREATE_DISK_ONLY > > > > > > > > > > > > flags |= libvirt.VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE > > > > > > > > > > > > > > > > > > > > > > > > > > > > ret = dom.snapshotCreateXML(xmlDesc=xml, flags=flags) > > > > > > > > > > > > ``` > > > > ``` result > > > > > > > > [root@10k03 ~]# ls -lh /opt/Images/*sysdisk_by_xml > > > > > > > > > > > > -rw-------. 1 qem...
2013 Jun 26
0
Re: snapshot-create-as for a single disk not all disks
...apshot. 在 2013-06-26 09:10:31,"Gao Yongwei" <itxx00@gmail.com> 写道: try snapshot-create-as like below: virsh snapshot-create-as vm --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' snapsho...
2015 May 28
1
Re: Concurrent scanning of same disk
...May 28, 2015 at 10:57:51AM +0300, NoxDaFox wrote: > > 2015-05-28 10:40 GMT+03:00 Richard W.M. Jones <rjones@redhat.com>: > > > > > On Thu, May 28, 2015 at 10:33:48AM +0300, NoxDaFox wrote: > > > > To create the snapshots I'm using the libvirt command > snapshotCreateXML > > > > with no flag set. Does libvirt support consistent snapshotting or > shall I > > > > rely on QEMU backup new feature only? > > > > > > According to: http://wiki.libvirt.org/page/Snapshots > > > virDomainSnapshotCreateXML is only consisten...