Displaying 20 results from an estimated 38 matches for "add_network".
2016 Apr 11
0
[PATCH] v2v: Reject duplicate -b/-n parameters on the command line (RHBZ#1325825).
...g NetworkMap.t;
no_trim : string list;
output_alloc : output_allocation;
output_format : string option;
@@ -81,16 +87,25 @@ let parse_cmdline () =
error (f_"unknown -i option: %s") s
in
- let network_map = ref [] in
+ let network_map = ref NetworkMap.empty in
let add_network, add_bridge =
- let add t str =
+ let add flag name t str =
match String.split ":" str with
- | "", "" -> error (f_"invalid --bridge or --network parameter")
- | out, "" | "", out -> network_map := ((t, "&...
2018 Jul 04
4
[PATCH 0/3] v2v: Implement MAC address to network/bridge mapping.
Deep in the discussion of this bug, unfortunately mostly in private
comments:
https://bugzilla.redhat.com/show_bug.cgi?id=1594515
we decided it'd be more flexible for RHV if we had a way to map
individual NICs to target networks and bridges. This can be done by
adding a new --mac option so you can specify the exact mapping you
need:
$ virt-v2v [...] \
--mac
2015 Oct 20
2
[PATCH v3 11/13] v2v: add --in-place mode
...-i disk)";
+ "--in-place", Arg.Set in_place, " " ^ s_"Only tune the guest in the input VM";
"--machine-readable", Arg.Set machine_readable, " " ^ s_"Make output machine readable";
"-n", Arg.String add_network, "in:out " ^ s_"Map network 'in' to 'out'";
"--network", Arg.String add_network, "in:out " ^ ditto;
@@ -224,6 +226,7 @@ read the man page virt-v2v(1).
let input_conn = !input_conn in
let input_format = !input_format in
let...
2018 Feb 22
5
[PATCH v2 0/3] Make generated OVF more conforming to standard
The main reason for creating different OVF is that it can be used to create VM
by oVirt REST API. The RHV export domain flavor cannot be used that way.
v1 -> v2:
- introduced flavour types instead of booleans
- instead of referring to the new flavour as "standard OVF" or "fixed OVF" I
refer to it as oVirt flavour. While it is more conforming than the one used
in export
2019 Apr 16
0
[PATCH v2v v2 2/2] v2v: Copy static IP address information over for Windows guests (RHBZ#1626503).
...[[:xdigit:]]{2}:[[:xdigit:]]{2}:[[:xdigit:]]{2}:[[:xdigit:]]{2}:[[:xdigit:]]{2}):(network|bridge|ip):(.*)"
let parse_cmdline () =
let bandwidth = ref None in
@@ -100,6 +101,7 @@ let parse_cmdline () =
in
let network_map = Networks.create () in
+ let static_ips = ref [] in
let add_network str =
match String.split ":" str with
| "", "" ->
@@ -122,11 +124,30 @@ let parse_cmdline () =
if not (PCRE.matches mac_re str) then
error (f_"cannot parse --mac \"%s\" parameter") str;
let mac = PCRE.sub 1 and out = PC...
2015 Oct 20
5
[PATCH v4 0/3] v2v: add --in-place mode
This series is an attempt to add a mode of virt-v2v operation where it
leaves the config and disk image conversion, rollback on errors,
registering with the destination hypervisor, etc. to a third-party
toolset, and performs only tuning of the guest OS to run in the
KVM-based hypervisor.
Roman Kagan (3):
v2v: add --in-place mode
v2v: document --in-place
v2v: add test for --in-place
---
2019 Jul 11
2
[PATCH v3 0/2] v2v: Copy static IP address information over for Windows guests
Patch v2 was here:
https://www.redhat.com/archives/libguestfs/2019-April/thread.html#00114
There's no change here except that I've rebased it against the latest
master branch and retested. There was a comment by Pino
(https://www.redhat.com/archives/libguestfs/2019-April/msg00117.html)
which isn't incorporated into this patch.
Rich.
2016 Apr 26
4
v2v: Remove --no-trim, --vmtype options and other fixes.
The first two patches implement the change discussed here:
https://www.redhat.com/archives/libguestfs/2016-April/msg00178.html
The third patch fixes the mapping of inspection data to OVF VmType
which was inherited directly from old virt-v2v and had never been
changed. It had a number of problems.
The fourth patch is only slightly related to the others. It adds an
extra slow test to ensure that
2018 Feb 18
0
[PATCH 2/3] v2v: ovf: Create OVF more aligned with the standard
...ot;, Int64.to_string size_gb;
"ovf:fileRef", fileref;
"ovf:parentRef", "";
@@ -595,13 +634,22 @@ and add_disks targets guestcaps output_alloc sd_uuid image_uuids vol_uuids ovf =
(* This modifies the OVF DOM, adding a section for each NIC. *)
and add_networks nics guestcaps ovf =
let network_section =
- let sections = path_to_nodes ovf ["ovf:Envelope"; "Section"] in
- try find_node_by_attr sections ("xsi:type", "ovf:NetworkSection_Type")
- with Not_found -> assert false in
+ let nodes = path_to_...
2019 Apr 16
6
[PATCH v2v v2 2/2] v2v: Copy static IP address information.
Essentially identical to v1 except that it now uses (overloads?)
the --mac option to supply this data.
Rich.
2015 Aug 31
2
[PATCH 1/2] mllib: add and use set_standard_options
...ist short options";
- "--long-options", Arg.Unit display_long_options, " " ^ s_"List long options";
"--machine-readable", Arg.Set machine_readable, " " ^ s_"Make output machine readable";
"-n", Arg.String add_network, "in:out " ^ s_"Map network 'in' to 'out'";
"--network", Arg.String add_network, "in:out " ^ ditto;
@@ -163,7 +161,7 @@ let parse_cmdline () =
"--print-source", Arg.Set print_source, " " ^ s_"Print sour...
2019 Apr 15
0
[PATCH v2v 2/2] v2v: Copy static IP address information over for Windows guests (RHBZ#1626503).
...rs ->
+ let len =
+ try int_of_string len with
+ | Failure _ -> error (f_"cannot parse --force-interface prefix length field as an integer: %s") len in
+ add mac ip (Some gw) (Some len) nameservers
+ in
+
let network_map = Networks.create () in
let add_network str =
match String.split ":" str with
@@ -204,6 +225,8 @@ let parse_cmdline () =
s_"Compress output file (-of qcow2 only)";
[ L"debug-overlay"; L"debug-overlays" ], Getopt.Set debug_overlays,...
2016 Jun 24
2
[PATCH] RFC: OCaml tools: add and use a Getopt module
...-i disk)";
- "--in-place", Arg.Set in_place, " " ^ s_"Only tune the guest in the input VM";
- "--machine-readable", Arg.Set machine_readable, " " ^ s_"Make output machine readable";
- "-n", Arg.String add_network, "in:out " ^ s_"Map network 'in' to 'out'";
- "--network", Arg.String add_network, "in:out " ^ ditto;
- "--no-copy", Arg.Clear do_copy, " " ^ s_"Just write the metadata";
- "--no-trim&q...
2019 Apr 15
2
[PATCH v2v 1/2] v2v: windows: Add a helper function for installing Powershell firstboot scripts.
---
v2v/windows.ml | 24 ++++++++++++++++++++++++
v2v/windows.mli | 6 ++++++
2 files changed, 30 insertions(+)
diff --git a/v2v/windows.ml b/v2v/windows.ml
index 23d589b00..dde64e677 100644
--- a/v2v/windows.ml
+++ b/v2v/windows.ml
@@ -19,6 +19,7 @@
open Printf
open Common_gettext.Gettext
+open Std_utils
open Tools_utils
open Utils
@@ -45,3 +46,26 @@ and check_app { Guestfs.app2_name
2018 Aug 20
0
[PATCH 2/2] OCaml tools: simplify machine-readable handling
...s_"Map NIC to network or bridge";
- [ L"machine-readable" ], Getopt.Set machine_readable,
- s_"Make output machine readable";
[ S 'n'; L"network" ], Getopt.String ("in:out", add_network),
s_"Map network ‘in’ to ‘out’";
[ L"no-copy" ], Getopt.Clear do_copy,
@@ -297,7 +294,7 @@ A short summary of the options is given below. For detailed help please
read the man page virt-v2v(1).
")
prog in
- let opthandle...
2016 Jun 27
0
Re: [PATCH] RFC: OCaml tools: add and use a Getopt module
...> - "--in-place", Arg.Set in_place, " " ^ s_"Only tune the guest in the input VM";
> - "--machine-readable", Arg.Set machine_readable, " " ^ s_"Make output machine readable";
> - "-n", Arg.String add_network, "in:out " ^ s_"Map network 'in' to 'out'";
> - "--network", Arg.String add_network, "in:out " ^ ditto;
> - "--no-copy", Arg.Clear do_copy, " " ^ s_"Just write the metadata";
> - &q...
2016 Jul 18
0
[PATCH v2 2/3] mllib: Use L"..." and S '...' for long and short options.
...-place" ], Getopt.Set in_place, s_"Only tune the guest in the input VM";
- [ "--machine-readable" ], Getopt.Set machine_readable, s_"Make output machine readable";
- [ "-n"; "--network" ], Getopt.String ("in:out", add_network), s_"Map network 'in' to 'out'";
- [ "--no-copy" ], Getopt.Clear do_copy, s_"Just write the metadata";
- [ "--no-trim" ], Getopt.String ("-", no_trim_warning),
+ [ L"in-place" ], Getopt.Set in_place,...
2016 Jul 11
2
[PATCH v2] OCaml tools: add and use a Getopt module
...-i disk)";
- "--in-place", Arg.Set in_place, " " ^ s_"Only tune the guest in the input VM";
- "--machine-readable", Arg.Set machine_readable, " " ^ s_"Make output machine readable";
- "-n", Arg.String add_network, "in:out " ^ s_"Map network 'in' to 'out'";
- "--network", Arg.String add_network, "in:out " ^ ditto;
- "--no-copy", Arg.Clear do_copy, " " ^ s_"Just write the metadata";
- "--no-trim&q...
2018 Aug 20
2
[PATCH 1/2] mlstdutils/mltools: factorize the machine-readable option
Store the machine-readable flag globally, just like done for
verbose/debug/etc, and enhance create_standard_options to provide
--machine-readable automatically.
---
common/mlstdutils/std_utils.ml | 4 ++++
common/mlstdutils/std_utils.mli | 7 +++++--
common/mltools/tools_utils.ml | 7 ++++++-
common/mltools/tools_utils.mli | 5 ++++-
4 files changed, 19 insertions(+), 4 deletions(-)
diff
2016 Jul 13
3
[PATCH v3 1/2] OCaml tools: add and use a Getopt module
...-i disk)";
- "--in-place", Arg.Set in_place, " " ^ s_"Only tune the guest in the input VM";
- "--machine-readable", Arg.Set machine_readable, " " ^ s_"Make output machine readable";
- "-n", Arg.String add_network, "in:out " ^ s_"Map network 'in' to 'out'";
- "--network", Arg.String add_network, "in:out " ^ ditto;
- "--no-copy", Arg.Clear do_copy, " " ^ s_"Just write the metadata";
- "--no-trim&q...