search for: _transfer_path

Displaying 9 results from an estimated 9 matches for "_transfer_path".

2010 May 26
1
[PATCH] Fix error in Converter::Windows when there is no transfer iso
...----- 3 files changed, 72 insertions(+), 91 deletions(-) diff --git a/lib/Sys/VirtV2V/Config.pm b/lib/Sys/VirtV2V/Config.pm index 334adf9..10ef8be 100644 --- a/lib/Sys/VirtV2V/Config.pm +++ b/lib/Sys/VirtV2V/Config.pm @@ -203,6 +203,44 @@ sub get_transfer_iso return $iso_path; } +=item get_transfer_path(path) + +Return the path to I<path> as accessible by the libguestfs appliance. This +function will also ensure that the transfer iso is mounted. + +=cut + +sub get_transfer_path +{ + my $self = shift; + my ($g, $path) = @_; + + # Check that the transfer iso is mounted + if (!exist...
2010 May 14
1
[PATCH] Use RHN to retrieve replacement packages
...$kernel_pkg, $kernel_arch); - }; - # Return undef if we didn't find a kernel - if ($@) { - print STDERR $@; - return undef; - } + my ($min_virtio_ver, @kern_vr, @preinst_cmd, @inst_cmd, $inst_fmt); - my @missing; - if (!$self->{g}->exists($self->_transfer_path($app))) { - push(@missing, $app); + # filter out xen/xenU from release field + if ($kernel_ver =~ /^(\S+)-(\S+?)(xen)?(U)?$/) { + @kern_vr = ($1, $2); + $kernel_ver = join('-', @kern_vr); + } + + # RHEL-5 + if ($desc->{distr...
2010 May 07
1
[PATCH] List all missing dependencies at once
...index 1fd7d14..77d9332 100644 --- a/lib/Sys/VirtV2V/GuestOS/RedHat.pm +++ b/lib/Sys/VirtV2V/GuestOS/RedHat.pm @@ -484,12 +484,22 @@ sub add_kernel return undef; } - return undef if ($self->_newer_installed($app)); + my @missing; + if (!$self->{g}->exists($self->_transfer_path($app))) { + push(@missing, $app); + } else { + return undef if ($self->_newer_installed($app)); + } my $user_arch = $kernel_arch eq 'i686' ? 'i386' : $kernel_arch; + my @deps = $self->_get_deppaths(\@missing, $user_arch, @$depnames); + + # We...
2010 May 06
1
[PATCH v2v] Pre-convert Windows guests.
...t; + my $devices = shift; + my $config = shift; + + my $driverpath = "/windows/system32/drivers"; + $driverpath = $g->case_sensitive_path ($driverpath); + + my ($app, $depnames) = $config->match_app ($desc, "viostor", $desc->{arch}); + $app = $self->_transfer_path ($app); + $g->cp ($app, $driverpath); +} + +sub _upload_service +{ + my $self = shift; + my $g = shift; + my $tmpdir = shift; + my $vmm = shift; + my $desc = shift; + my $devices = shift; + my $config = shift; + + my $path = "/temp/v2v"; + $path = $g->c...
2010 May 19
8
RHN support and capabilities
This patch series includes a repost of Milan's unmodified RHN support patch because I haven't pushed it yet. On top of that patch, it includes the capabilities patch in as many bits as I could make it into. The big one is 7/8. I've tested all of the following guests both with and without RHN registration: Xen RHEL 54 PV Xen RHEL 51 PV Xen RHEL 48 PV ESX RHEL 54 FV
2010 Feb 09
5
[PATCH 1/6] Convert config file to XML, and translate networks/bridge for all connections
Previously, only the LibVirtXML connection translated network and bridge names in imported metadata. This change moves this functionality in Converter, making it available to LibVirt connections as well. At the same time, the format of the config file is switched to XML. The primary driver for this is that the allowable syntax of a foreign network/bridge name is not known. Rather than create a
2010 Apr 08
1
[PATCH] Move all interaction with the config file into Sys::VirtV2V::Config
...push(@install, $dep) unless($self->_is_installed($dep)); } $self->_install_rpms(1, @install); @@ -500,7 +509,7 @@ sub add_kernel my $version; my $g = $self->{g}; foreach my $file ($g->command_lines - (["rpm", "-qlp", $self->_transfer_path($path)])) + (["rpm", "-qlp", $self->_transfer_path($app)])) { if($file =~ m{^/boot/vmlinuz-(.*)$}) { $version = $1; @@ -509,9 +518,9 @@ sub add_kernel } die(user_message(__x("{path} doesn't contain a valid kernel", -...
2010 May 13
1
[PATCH] Improve augeas error reporting
...$g->aug_load(); }; - die($@) if($@); - # Make augeas reload in case the removal changed anything - $g->aug_load(); + $self->_augeas_error($@) if ($@); } =item get_application_owner(file) @@ -969,15 +1034,14 @@ sub _install_rpms @rpms = map { $_ = $self->_transfer_path($_) } @rpms; my $g = $self->{g}; + $g->command(['rpm', $upgrade == 1 ? '-U' : '-i', @rpms]); + + # Reload augeas in case the rpm installation changed anything eval { - $g->command(['rpm', $upgrade == 1 ? '-U' : '-i',...
2010 Feb 12
11
[PATCH 1/9] Convert config file to XML, and translate networks/bridge for all connections
Previously, only the LibVirtXML connection translated network and bridge names in imported metadata. This change moves this functionality in Converter, making it available to LibVirt connections as well. At the same time, the format of the config file is switched to XML. The primary driver for this is that the allowable syntax of a foreign network/bridge name is not known. Rather than create a