search for: sysdisk_by_xml

Displaying 2 results from an estimated 2 matches for "sysdisk_by_xml".

2018 Mar 20
2
About libvirt domain snapshot problem(for single disk snapshot)
...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_ONLY flags |= libvirt.VIR_DOMAIN...
2018 Mar 22
0
回复: Fwd: About libvirt domain snapshot problem(for single disk snapshot)
...; > > > > > > > > > > > > > > > > > > > > xml = """ > > > > > > > > > > > > <domainsnapshot> > > > > > > > > > > > > <name>sysdisk_by_xml</name> > > > > > > > > > > > > <description>By xml</description> > > > > > > > > > > > > <disks> > > > > > > > > > > > > <disk name='vda' snapsh...