Displaying 20 results from an estimated 45 matches for "input_transport".
2017 Dec 08
1
Re: [PATCH v2 1/2] v2v: vddk: Switch to using ‘-it vddk’ to specify VDDK as input transport.
...o local -os /var/tmp
>
> where only the two lines marked with ‘|’ have changed.
> ---
> [...]
> @@ -286,6 +289,12 @@ read the man page virt-v2v(1).
> let input_conn = !input_conn in
> let input_format = !input_format in
> let input_mode = !input_mode in
> + let input_transport =
> + match !input_transport with
> + | None -> None
> + | Some "vddk" -> Some `VDDK
> + | Some transport ->
> + error (f_"unknown input transport ‘-it %s’") transport in
Another option could be to switch from a polymorphic variant to a...
2017 Dec 08
4
[PATCH v2 0/2] v2v: Add -it vddk and -it ssh flags.
The first patch was previously posted here:
https://www.redhat.com/archives/libguestfs/2017-December/msg00018.html
That patch hasn't changed except that I made the ‘input_transport’
variable type-safe.
The second patch adds a significant new mode for liberating data from
VMware: the ability to copy VMs over SSH directly from ESXi
hypervisors. Although this requires enabling SSH access (a check-box
in the vSphere UI), it is fast, very convenient and doesn't require
any p...
2017 Dec 08
0
[PATCH v2 2/2] v2v: -i vmx: Enhance VMX support with ability to use ‘-it ssh’ transport.
...| 2 +
v2v/virt-v2v.pod | 91 ++++++++++++++++++-----
8 files changed, 254 insertions(+), 60 deletions(-)
diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml
index 719e6f057..0c6af3ed8 100644
--- a/v2v/cmdline.ml
+++ b/v2v/cmdline.ml
@@ -292,6 +292,7 @@ read the man page virt-v2v(1).
let input_transport =
match !input_transport with
| None -> None
+ | Some "ssh" -> Some `SSH
| Some "vddk" -> Some `VDDK
| Some transport ->
error (f_"unknown input transport ‘-it %s’") transport in
@@ -357,7 +358,8 @@ read the man page virt-v2v(...
2018 Jun 05
4
[PATCH 0/3] v2v: Various refactorings.
Use -ip instead of --password-file, and various refactorings.
It strikes me that we should probably deprecate and eventually remove
virt-v2v-copy-to-local. With the introduction of the new SSH and VDDK
transports, and with RHEL 5 Xen becoming more irrelevant, it's no
longer needed.
Rich.
2017 Dec 08
1
Re: [PATCH v2 2/2] v2v: -i vmx: Enhance VMX support with ability to use ‘-it ssh’ transport.
...nput method will be widely used enough that it
> deserves its own example at the top of the man page.
> ---
> [...]
> +(* The single filename on the command line is intepreted either as
> + * a local file or a remote SSH path (only if ‘-it ssh’).
> + *)
> +let vmx_source_of_arg input_transport arg =
> + match input_transport, arg with
> + | None, arg -> File arg
> + | Some `SSH, arg ->
> + let arg1, path = String.split ":" arg in
> + if path = "" then
> + error (f_"expecting [user@]server:path with ‘-it ssh’");
> +...
2017 Dec 07
1
v2v: vddk: Switch to using ‘-it vddk’ to specify VDDK as input transport.
Proposed small change to the command line of virt-v2v when specifying
that you want VDDK mode.
Rich.
2017 Dec 08
0
[PATCH v2 1/2] v2v: vddk: Switch to using ‘-it vddk’ to specify VDDK as input transport.
...------
8 files changed, 126 insertions(+), 81 deletions(-)
diff --git a/v2v/cmdline.ml b/v2v/cmdline.ml
index a452458a1..719e6f057 100644
--- a/v2v/cmdline.ml
+++ b/v2v/cmdline.ml
@@ -57,15 +57,16 @@ let parse_cmdline () =
let input_conn = ref None in
let input_format = ref None in
+ let input_transport = ref None in
let in_place = ref false in
let output_conn = ref None in
let output_format = ref None in
let output_name = ref None in
let output_storage = ref None in
let password_file = ref None in
- let vddk = ref None in
let vddk_config = ref None in
let vddk_cookie = re...
2019 Apr 17
1
[PATCH] v2v: Implement SSH password authentication for Xen and VMX over SSH.
This isn't quite the full thing. I think that Pino is also working on
replacing the ssh and scp commands in the v2v/input_vmx.ml file with
libssh. Without those changes, -i vmx will still issue raw ssh and
scp commands, which will use ssh-agent (or keyboard-interactive).
The Xen input method doesn't use raw ssh and scp commands, so that one
is OK.
Rich.
2018 Mar 22
4
[PATCH INCOMPLETE 0/4] v2v: Add general mechanism for input and output options.
This patch isn't quite complete (see ‘assert false’).
Currently we have a bunch of ad hoc options like --vddk* and --vdsm*
(and proposed to add --rhv*) to handle extra parameters for input and
output modes/transports. This complicates the command line parsing
and also the clarity of the command line (becauseit's not very obvious
which options apply to which side of the conversion).
2018 Mar 22
0
[PATCH v7 4/6] v2v: Add general mechanism for input and output options (-io/-oo).
...or -i disk)";
+ [ M"io" ], Getopt.String ("option[=value]", set_input_option),
+ s_"Set option for input mode";
[ M"it" ], Getopt.String ("transport", set_string_option_once "-it" input_transport),
s_"Input transport";
[ L"in-place" ], Getopt.Set in_place,
@@ -223,6 +219,8 @@ let parse_cmdline () =
s_"Set output format";
[ M"on" ], Getopt.String ("name"...
2018 Mar 27
1
Re: [PATCH v7 4/6] v2v: Add general mechanism for input and output options (-io/-oo).
...t;;
> + [ M"io" ], Getopt.String ("option[=value]", set_input_option),
> + s_"Set option for input mode";
> [ M"it" ], Getopt.String ("transport", set_string_option_once "-it" input_transport),
> s_"Input transport";
> [ L"in-place" ], Getopt.Set in_place,
> @@ -223,6 +219,8 @@ let parse_cmdline () =
> s_"Set output format";
> [ M"on" ], Getopt...
2018 Mar 23
1
Re: [PATCH v7 4/6] v2v: Add general mechanism for input and output options (-io/-oo).
On Thursday, 22 March 2018 16:24:23 CET Richard W.M. Jones wrote:
> + (* Input transport affects whether some input options should or
> + * should not be used.
> + *)
> + let input_transport =
> + let is_query = input_options = ["?", ""] in
> + let no_options () =
> + if is_query then (
> + printf (f_"No -io (input options) are supported with this input transport.\n");
> + exit 0
> + )
> + else if inp...
2018 Mar 22
12
[PATCH v7 0/6] v2v: Add -o rhv-upload output mode (RHBZ#1557273).
v6 was here:
https://www.redhat.com/archives/libguestfs/2018-March/msg00126.html
This makes a number of significant changes:
- Input and output options now use a uniform set of -io and -oo
parameters.
- For -o rhv-upload, we use ‘-oo rhv-cafile=/tmp/ca.pem’ etc. The
‘--rhv*’ options have been dropped.
- Rearranges the documentation.
- As before includes (untested) support for zero,
2017 Dec 10
2
[PATCH] v2v: -i vmx: Allow ssh URLs to use spaces.
In previous discussion here:
https://www.redhat.com/archives/libguestfs/2017-December/thread.html#00027
we preferred to use ssh://... URLs instead of server:/path. However
the URL approach had the problem that the user had to replace spaces
with %20 in the paths.
However since using space gives an error, we can replace spaces with
%20 safely in code, thus removing one obstacle from users.
2020 May 25
1
[v2v PATCH] -i libvirt: print URI without connecting
...input_libvirt_xen_ssh.mli | 2 +-
9 files changed, 25 insertions(+), 26 deletions(-)
diff --git a/v2v/input_libvirt.ml b/v2v/input_libvirt.ml
index cd5f351c..352fae94 100644
--- a/v2v/input_libvirt.ml
+++ b/v2v/input_libvirt.ml
@@ -53,22 +53,22 @@ let input_libvirt input_conn input_password input_transport guest =
| Some _, None, _ (* No scheme? *)
| Some _, Some "", _ ->
- Input_libvirt_other.input_libvirt_other libvirt_conn guest
+ Input_libvirt_other.input_libvirt_other libvirt_conn ?input_conn guest
(* vCenter over https. *)
| Some...
2019 Jul 11
11
[PATCH v2 00/11] v2v: Change virt-v2v to use nbdkit for input in several modes.
Originally posted here:
https://www.redhat.com/archives/libguestfs/2019-April/thread.html#00054
https://www.redhat.com/archives/libguestfs/2019-April/msg00076.html
https://www.redhat.com/archives/libguestfs/2019-April/msg00126.html
This is a rebase on top of current master branch with no other
changes. The first patch in the old series was pushed a while back,
and the last "TEMPORARY"
2023 Mar 07
1
[V2V PATCH v2 5/5] v2v, in-place: introduce --block-driver command line option
...ith
+ | None | Some "virtio-blk" -> Virtio_blk
+ | Some "virtio-scsi" -> Virtio_SCSI
+ | Some driver ->
+ error (f_"unknown block driver ?--block-driver %s?") driver in
let input_conn = !input_conn in
let input_mode = !input_mode in
let input_transport =
@@ -524,7 +533,7 @@ read the man page virt-v2v(1).
(* Get the conversion options. *)
let conv_options = {
- Convert.block_driver = Virtio_blk;
+ Convert.block_driver = block_driver;
keep_serial_console = not remove_serial_console;
ks = opthandle.ks;
network_map;
--
2...
2023 Mar 10
2
[V2V PATCH v3 5/6] v2v, in-place: introduce --block-driver command line option
...ith
+ | None | Some "virtio-blk" -> Virtio_blk
+ | Some "virtio-scsi" -> Virtio_SCSI
+ | Some driver ->
+ error (f_"unknown block driver ?--block-driver %s?") driver in
let input_conn = !input_conn in
let input_mode = !input_mode in
let input_transport =
@@ -524,7 +533,7 @@ read the man page virt-v2v(1).
(* Get the conversion options. *)
let conv_options = {
- Convert.block_driver = Virtio_blk;
+ Convert.block_driver = block_driver;
keep_serial_console = not remove_serial_console;
ks = opthandle.ks;
network_map;
--
2...
2018 Feb 15
0
[PATCH] Introduce a wrapper around xmlParseURI.
...xtern xmlURIPtr guestfs_int_parse_nonstandard_uri (const char *uri);
+
+#endif /* GUESTFS_LIBXML2_UTILS_H_ */
diff --git a/v2v/input_vmx.ml b/v2v/input_vmx.ml
index a8b33f66f..b97fac700 100644
--- a/v2v/input_vmx.ml
+++ b/v2v/input_vmx.ml
@@ -38,11 +38,11 @@ type vmx_source =
let vmx_source_of_arg input_transport arg =
match input_transport, arg with
| None, arg -> File arg
- | Some `SSH, arg ->
+ | Some `SSH, uri ->
let uri =
- try Xml.parse_uri arg
- with Invalid_argument _ ->
- error (f_"remote vmx ‘%s’ could not be parsed as a URI") arg in
+...
2019 Jul 19
12
[PATCH v3 00/12] v2v: Change virt-v2v to use nbdkit for input in several modes.
v2 was posted here:
https://www.redhat.com/archives/libguestfs/2019-July/msg00115.html
This also has links to earlier versions.
v3:
- The 01/11 patch in v2 included a bunch of unnecessary plus one
necessary change to how input_password is passed around. I moved
the necessary change into the final patch (implementing SSH
password authentication) and dropped the rest.
- The 01/11