search for: arch_suffix

Displaying 4 results from an estimated 4 matches for "arch_suffix".

2010 Jun 08
2
[PATCH 1/2] Target: Pass os description to create_guest
This will allow use of raw data from os description in addition to libvirt XML when writing guest output. --- lib/Sys/VirtV2V/Target/LibVirt.pm | 2 +- lib/Sys/VirtV2V/Target/RHEV.pm | 2 +- v2v/virt-v2v.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Sys/VirtV2V/Target/LibVirt.pm b/lib/Sys/VirtV2V/Target/LibVirt.pm index
2020 May 15
1
[PATCH] v2v: fix UEFI bootloader for linux guests
...checks if 'source' contains 's' *) +let contains source s = + let re = Str.regexp_string s in + try + ignore (Str.search_forward re source 0); + true + with Not_found -> false + +(* Helper function to get architecture suffixes for uefi files *) +let get_uefi_arch_suffix arch = + let arch_suffix = + if contains arch "x86_64" then "X64" + else if contains arch "x86_32" then "X32" + else "" in + arch_suffix + +(* Function fixes uefi boot. It's used in both cases: legacy grub and grub2 *) +let fix_uefi g...
2011 Apr 26
7
[PATCH 1/7] Push $desc creation into Sys::VirtConvert::Converter->convert
...$g, $root); my $ovf = new XML::DOM::Parser->parse(<<EOF); <ovf:Envelope @@ -798,23 +798,24 @@ EOF # one of the above values in case we're wrong. sub _get_os_type { - my ($desc) = @_; + my ($g, $root) = @_; + + my $arch = $g->inspect_get_arch($root); my $arch_suffix = ''; - if ($desc->{arch} eq 'x86_64') { + if ($arch eq 'x86_64') { $arch_suffix = 'x64'; - } elsif ($desc->{arch} ne 'i386') { - logmsg WARN, __x('Unsupported architecture: {arch}', - arch =>...
2020 Jul 24
3
[PATCH v2] v2v: fix UEFI bootloader for linux guests
...re = Str.regexp_string s in + try + ignore (Str.search_forward re source 0); + true + with Not_found -> false + ) in + + let cant_fix_uefi () = + info (f_"Can't fix UEFI bootloader. VM may not boot.") + in + + let get_uefi_arch_suffix = function + | "x86_64" -> Some "X64" + | "x86_32" -> Some "X32" + | _ -> None + in + + match get_uefi_arch_suffix inspect.i_arch with + | None -> cant_fix_uefi () + | Some suffix -> ( + let uefi_...