search for: vol_xml

Displaying 13 results from an estimated 13 matches for "vol_xml".

2009 Jul 29
0
[PATCH server] Remove ununsed utils.rb file.
...umes - return @remote_pool.list_volumes - end - - def lookup_vol_by_path(dev) - return @remote_pool.lookup_volume_by_path(dev) - end - - def lookup_vol_by_name(name) - return @remote_pool.lookup_volume_by_name(name) - end - - def create_vol(type, name, size, owner, group, mode) - @vol_xml = Document.new - @vol_xml.add_element("volume", {"type" => type}) - @vol_xml.root.add_element("name").add_text(name) - @vol_xml.root.add_element("capacity", {"unit" => "K"}).add_text(size.to_s) - @vol_xml.root.add_element...
2009 Jul 09
1
[PATCH 1/5 ovirt-server] Add glusterfs to task-omatic API for {task_storage,utils}
...# 2. Make libvirtd multi-threaded + # 3. Make taskomatic multi-threaded + super("netfs", name, size, owner, group, 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" => "qcow2"}) + + # FIXME: Add allocation 0 element so that we create a sparse file. + # This was done because qmf was timing out waiting for the create + # operation to complete. This needs to...
2009 Jul 31
0
[TAKE-2][PATCH 1/5] Add glusterfs to task-omatic API for task_storage
...# 2. Make libvirtd multi-threaded + # 3. Make taskomatic multi-threaded + super("netfs", name, size, owner, group, 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" => "qcow2"}) + + # FIXME: Add allocation 0 element so that we create a sparse file. + # This was done because qmf was timing out waiting for the create + # operation to complete. This needs to...
2009 May 29
0
[PATCH server] Add more debugging to storage tasks
...;/', '_')}" - super('netfs', target) + super('netfs', target, logger) @type = 'netfs' @host = ip_addr @@ -276,6 +280,7 @@ class NFSLibvirtPool < LibvirtPool # however. We want to have non-sparse files for performance reasons. @vol_xml.root.add_element("allocation").add_text('0') + @logger.debug("Creating new volume on pool #{@remote_pool.name} - XML: #{@vol_xml.to_s}") result = @remote_pool.createVolumeXML(@vol_xml.to_s) raise "Error creating remote pool: #{result.text}" unles...
2016 May 04
2
Re: [libvirt] Creating a storage volume for raw format file
...e 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
...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...
2010 Mar 31
3
[PATCH] Remove v2v-snapshot
...which will include information on the backing - # store - my $vol; - eval { - $vol = _get_volume($path, $pool); - }; - if($@) { - print STDERR $@; - return -1; - } - - # Get the volume's backing store - my $vol_xml = $vol->get_xml_description(); - my $vol_dom = new XML::DOM::Parser->parse($vol_xml); - my ($backing_store) = $vol_dom->findnodes('/volume/backingStore'); - - # Skip it if it doesn't have a backing store - unless($backing_store) { - print...
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
2010 Feb 18
2
[PATCH 1/2] ESX: Look harder for potential transfer failures
...message(__x("Error writing to {path}: {error}", path => $self->{_v2v_volpath}, @@ -205,6 +216,7 @@ sub create_volume unless (defined($name)); my $size = $response->content_length(); + $self->{_v2v_volsize} = $size; my $vol_xml = " <volume> -- 1.6.6
2010 Mar 30
3
[PATCH 1/2] Refactor guest and volume creation into Sys::VirtV2V::Target::LibVirt
...+ +package Sys::VirtV2V::Target::LibVirt::Vol; + +sub _new +{ + my $class = shift; + my ($vol) = @_; + + my $self = {}; + bless($self, $class); + + $self->{vol} = $vol; + + return $self; +} + +sub _create +{ + my $class = shift; + my ($pool, $name, $size) = @_; + + my $vol_xml = " + <volume> + <name>$name</name> + <capacity>$size</capacity> + </volume> + "; + + my $vol; + eval { + $vol = $pool->create_volume($vol_xml); + }; + die(user_message(__x("Failed to cre...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...use Locale::TextDomain 'virt-v2v'; -sub _new -{ - my $class = shift; - my ($vol) = @_; - - my $self = {}; - bless($self, $class); - - $self->{vol} = $vol; - - return $self; -} - -sub _create -{ - my $class = shift; - my ($pool, $name, $size) = @_; - - my $vol_xml = " - <volume> - <name>$name</name> - <capacity>$size</capacity> - </volume> - "; - - my $vol; - eval { - $vol = $pool->create_volume($vol_xml); - }; - die(user_message(__x("Failed to cre...
2010 Jan 29
4
[FOR REVIEW ONLY] ESX work in progress
The following patches are where I'm currently at with ESX support. I can now import a domain from ESX along with its storage. Note that I'm not yet doing any conversion. In fact, I've never even tested past the import stage (I just had an exit in there). The meat is really in the 4th patch. The rename of MetadataReader->Connection was because the Connection is now really providing
2010 Feb 01
9
[ESX support] Working ESX conversion for RHEL 5
With this patchset I have successfully[1] imported a RHEL 5 guest directly from ESX with the following command line: virt-v2v -ic 'esx://yellow.marston/?no_verify=1' -op transfer RHEL5-64 Login details are stored in ~/.netrc Note that this is the only guest I've tested against. I haven't for example, checked that I haven't broken Xen imports. Matt [1] With the exception of