search for: removeattributenode

Displaying 10 results from an estimated 10 matches for "removeattributenode".

2010 Apr 07
1
[PATCH] Connection: Handle case of cdrom with no <source> element
...$disk->appendChild($driver); - } - $driver->setAttribute('name', 'qemu'); - $driver->setAttribute('type', $vol->get_format()); - - # Remove the @file or @dev attribute before adding a new one - $source_e->removeAttributeNode($source); - - # Set @file or @dev as appropriate - if ($vol->is_block()) - { - $disk->setAttribute('type', 'block'); - $source_e->setAttribute('dev', $path); - } else { - $disk-...
2010 Mar 31
1
[PATCH] Add LocalCopy transfer method to transfer local files to a target
...ld($driver); - } - $driver->setAttribute('name', 'qemu'); - $driver->setAttribute('type', $vol->get_format()); - - # Remove the @file or @dev attribute before adding a new one - $source_e->removeAttributeNode($source); - - # Set @file or @dev as appropriate - if ($vol->is_block()) - { - $disk->setAttribute('type', 'block'); - $source_e->setAttribute('dev', $path); - } else {...
2010 Apr 08
1
[PATCH] Move all interaction with the config file into Sys::VirtV2V::Config
..."mapping in config: {config}", - config => $mapping->toString())); - return; - } + # Replace @bridge or @network in the source element with the correct + # mapped attribute name and value + $source->removeAttributeNode($name); + $source->setAttribute($newtype, $newname); - # Check type is something we recognise - unless ($newtype eq 'network' || $newtype eq 'bridge') { - print STDERR user_message(__x("WARNING: Unknown interface type ". -...
2011 Mar 11
2
[PATCH 1/2] Allow reading more data than the reported size of a volume
If a volume is not an exact multiple of 512 bytes, qemu-img will report its size rounded down to a 512 byte boundary. However, when copying, the file is still read until EOF, which will return more data than was expected. This change prevents that causing a failure in itself. The situation is still not resolved, however, as there are still situations where this will cause a failure. For example,
2010 Feb 09
5
[PATCH 1/6] Convert config file to XML, and translate networks/bridge for all connections
...type => $newtype, + config => $mapping->toString())); + } + + my ($source) = $if->findnodes('source'); + + # Replace @bridge or @network in the source element with the correct mapped + # attribute name and value + $source->removeAttributeNode($oldname); + $source->setAttribute($newtype, $newname); + + # Update the type of the interface + $if->setAttribute('type', $newtype); +} + =back =head1 COPYRIGHT diff --git a/v2v/virt-v2v.conf b/v2v/virt-v2v.conf deleted file mode 100644 index 86e0b02..0000000 --- a/v2v/v...
2010 Mar 30
3
[PATCH 1/2] Refactor guest and volume creation into Sys::VirtV2V::Target::LibVirt
...$format ||= 'auto'; - - $driver->setAttribute('type', $format); + $driver->setAttribute('type', $vol->get_format()); # Remove the @file or @dev attribute before adding a new one $source_e->removeAttributeNode($source); - $path = $vol->get_path(); - # Set @file or @dev as appropriate - if ($vol->get_info()->{type} == - Sys::Virt::StorageVol::TYPE_FILE) + if ($vol->is_block()) { -...
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
2010 Feb 12
11
[PATCH 1/9] Convert config file to XML, and translate networks/bridge for all connections
...type => $newtype, + config => $mapping->toString())); + } + + my ($source) = $if->findnodes('source'); + + # Replace @bridge or @network in the source element with the correct mapped + # attribute name and value + $source->removeAttributeNode($oldname); + $source->setAttribute($newtype, $newname); + + # Update the type of the interface + $if->setAttribute('type', $newtype); +} + =back =head1 COPYRIGHT diff --git a/v2v/virt-v2v.conf b/v2v/virt-v2v.conf index 86e0b02..7101e1e 100644 --- a/v2v/virt-v2v.conf +++ b...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...driver->setAttribute('name', 'qemu'); - $driver->setAttribute('type', $vol->get_format()); + $driver->setAttribute('type', $dst->get_format()); # Remove the @file or @dev attribute before adding a new one $source_e->removeAttributeNode($source); # Set @file or @dev as appropriate - if ($vol->is_block()) { + if ($dst->is_block()) { $disk->setAttribute('type', 'block'); $source_e->setAttribute('dev', $path); } else { @@ -165,7 +220,6 @@...