Displaying 3 results from an estimated 3 matches for "qmeu_info".
2016 May 04
2
Re: [libvirt] Creating a storage volume for raw format file
...<owner>{uid}</owner>
<group>{gid}</group>
</permissions>
</target>
</volume>"""
stat = os.stat(src)
qmeu_info = images.qemu_img_info(src)
return xml.format(**{'name': name,
'capacity': qmeu_info.virtual_size,
'allocation': qmeu_info.disk_size,
'src_path': src,...
2016 May 04
0
Re: [libvirt] Creating a storage volume for raw format file
...owner>{uid}</owner>
> <group>{gid}</group>
> </permissions>
> </target>
> </volume>"""
> stat = os.stat(src)
> qmeu_info = images.qemu_img_info(src)
> return xml.format(**{'name': name,
> 'capacity': qmeu_info.virtual_size,
> 'allocation': qmeu_info.disk_size,
> 'src_p...
2016 May 04
2
[libvirt] Creating a storage volume for raw format file
Hi
I'm trying to create a volume in an existing storage pool using python
by calling createXML() on the pool object.
If the file that is the subject of the new volume exists you get and
error, also if it doesn't exist
I worked out that specifying
<source>
<path>path to copy of file</path>
</source>
works, seemingly by copying the 'source' file to