search for: _get_dom

Displaying 8 results from an estimated 8 matches for "_get_dom".

Did you mean: get_dom
2010 Jun 18
1
[PATCH] Improve error message when LibvirtXML is given invalid domain XML
...hs} = \@paths; $self->{devices} = \@devices; } diff --git a/lib/Sys/VirtV2V/Connection/LibVirtXML.pm b/lib/Sys/VirtV2V/Connection/LibVirtXML.pm index 729f1e8..ac3e82b 100644 --- a/lib/Sys/VirtV2V/Connection/LibVirtXML.pm +++ b/lib/Sys/VirtV2V/Connection/LibVirtXML.pm @@ -95,6 +95,11 @@ sub _get_dom # Display any parse errors die(user_message(__x("Unable to parse domain from file {path}: {error}", path => $self->{path}, error => $@))) if ($@); + + # Check it looks like domain XML + my ($dummy) = $self->{dom}->findnodes('/do...
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
...else { - die(__x("WARNING: unknown configuration directive ". - "{directive} in {name} section.", - directive => $directive, name => 'libvirtxml')); - } - } - } - $self->_get_dom($path); # No transfer methods defined yet @@ -109,12 +83,9 @@ sub _get_dom # Open the input file my $xml; # Implicitly closed on function exit - if(!open($xml, '<', $self->{path})) { - print STDERR user_message - (__x("Failed to open {path}...
2010 Sep 21
1
[PREVIEW ONLY] Refactor data transfer code
...credlist => [ Sys::Virt::CRED_AUTHNAME, @@ -142,117 +121,41 @@ sub new uri => $uri, error => $@->stringify()))) if ($@); - $self->{sourcevmm} = $sourcevmm; - - $self->_check_shutdown(); - - $self->_get_dom(); - - my $transfer; - if ($self->{uri}->scheme eq "esx") { - $transfer = "Sys::VirtV2V::Transfer::ESX"; - } - - elsif ($self->{uri}->scheme =~ /\+ssh$/) { - $transfer = "Sys::VirtV2V::Transfer::SSH"; - } - - # Default to Loc...
2010 Feb 12
11
[PATCH 1/9] Convert config file to XML, and translate networks/bridge for all connections
...else { - die(__x("WARNING: unknown configuration directive ". - "{directive} in {name} section.", - directive => $directive, name => 'libvirtxml')); - } - } - } - $self->_get_dom($path); # No transfer methods defined yet @@ -109,12 +83,9 @@ sub _get_dom # Open the input file my $xml; # Implicitly closed on function exit - if(!open($xml, '<', $self->{path})) { - print STDERR user_message - (__x("Failed to open {path}...
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 Mar 31
1
[PATCH] Add LocalCopy transfer method to transfer local files to a target
...tadata itself is read from I<path>. +Storage will be copied to I<target>. =cut @@ -62,7 +63,7 @@ sub new { my $class = shift; - my ($path) = @_; + my ($path, $target) = @_; my $self = {}; $self->{path} = $path; @@ -71,8 +72,8 @@ sub new $self->_get_dom($path); - # No transfer methods defined yet - $self->_storage_iterate(undef, undef); + # Only support LocalCopy for libvirtxml + $self->_storage_iterate("Sys::VirtV2V::Transfer::LocalCopy", $target); return $self; } diff --git a/lib/Sys/VirtV2V/Target/LibVirt.p...
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