search for: create_vol_xml

Displaying 5 results from an estimated 5 matches for "create_vol_xml".

Did you mean: create_vm_xml
2016 May 04
2
Re: [libvirt] Creating a storage volume for raw format file
...eate the storage pool then copy the file to the directory it fails to create the storage pool because the file does not exist. I figured out that if I create the file in another directory then create the storage volume as follows... def create_volume(self, vol_name, src_path): def create_vol_xml(name, src): xml = """<volume type='file'> <name>{name}</name> <allocation unit='bytes'>{allocation}</allocation> <capacity unit='bytes'>{capac...
2016 May 04
0
Re: [libvirt] Creating a storage volume for raw format file
...w up in listVolumes. createXML is only for telling libvirt to create an entirely new disk image (likely by invoking qemu-img), not to teach it about an existing image... that's what pool.refresh() is essentially for - Cole > def create_volume(self, vol_name, src_path): > def create_vol_xml(name, src): > xml = """<volume type='file'> > <name>{name}</name> > <allocation unit='bytes'>{allocation}</allocation> > <capacity unit='byte...
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
2009 Jul 29
0
[PATCH server] Remove ununsed utils.rb file.
...mode) - - # FIXME: we have to add the format as raw here because of a bug in libvirt; - # if you specify a volume with no format, it will crash libvirtd - @vol_xml.root.elements["target"].add_element("format", {"type" => "raw"}) - @remote_pool.create_vol_xml(@vol_xml.to_s) - end - - def xmlequal?(docroot) - return (docroot.attributes['type'] == @type and - docroot.elements['source'].elements['host'].attributes['name'] == @host and - docroot.elements['source'].elements['dir'].att...
2009 Jul 09
1
[PATCH 1/5 ovirt-server] Add glusterfs to task-omatic API for {task_storage,utils}
...mode) + + # FIXME: we have to add the format as raw here because of a bug in libvirt; + # if you specify a volume with no format, it will crash libvirtd + @vol_xml.root.elements["target"].add_element("format", {"type" => "raw"}) + @remote_pool.create_vol_xml(@vol_xml.to_s) + end + + def xmlequal?(docroot) + return (docroot.attributes['type'] == @type and + docroot.elements['source'].elements['host'].attributes['name'] == @host) and + docroot.elements['source'].elements['dir'].at...