Displaying 20 results from an estimated 73 matches for "s_qemu_uri".
Did you mean:
qemu_uri
2018 Aug 14
0
[PATCH] v2v: Verify that ’source.s_disks.s_disk_id‘s are all unique.
...t = int end)
(* Conversion mode, either normal (copying) or [--in-place]. *)
type conversion_mode =
@@ -234,10 +235,15 @@ and open_source cmdline input =
if source.s_disks = [] then
error (f_"source has no hard disks!");
- List.iter (
- fun disk ->
- assert (disk.s_qemu_uri <> "");
- ) source.s_disks;
+ let () =
+ let ids = ref IntSet.empty in
+ List.iter (
+ fun { s_qemu_uri; s_disk_id } ->
+ assert (s_qemu_uri <> "");
+ (* Check s_disk_id are all unique. *)
+ assert (not (IntSet.mem s_disk_id !ids)...
2015 Oct 20
1
[PATCH v3 01/13] v2v: factor out opening input VM
...data") hv
- | _ -> ()
- );
-
- assert (source.s_name <> "");
- assert (source.s_memory > 0L);
- assert (source.s_vcpu >= 1);
- if source.s_disks = [] then
- error (f_"source has no hard disks!");
- List.iter (
- fun disk ->
- assert (disk.s_qemu_uri <> "");
- ) source.s_disks;
-
- (* Map source name. *)
- let source =
- match output_name with
- | None -> source
- (* Note the s_orig_name field retains the original name in case we
- * need it for some reason.
- *)
- | Some name -> { source with s_name...
2015 Oct 20
1
[PATCH v3 02/13] v2v: factor out overlay creation
...to fstrim/blkdiscard and avoid copying significant parts of the
- * data over the wire.
- *)
- message (f_"Creating an overlay to protect the source from being modified");
- let overlay_dir = (new Guestfs.guestfs ())#get_cachedir () in
- let overlays =
- List.map (
- fun ({ s_qemu_uri = qemu_uri; s_format = format } as source) ->
- let overlay_file =
- Filename.temp_file ~temp_dir:overlay_dir "v2vovl" ".qcow2" in
- unlink_on_exit overlay_file;
-
- let options =
- "compat=1.1" ^
- (match format wit...
2015 Oct 20
1
[PATCH v3 03/13] v2v: factor out populating targets list
...he format when reading it.\n\nHowever because the input format was not defined, we do not know what output format you want to use. You have two choices: either define the original format in the source metadata, or use the '-of' option to force the output format") ov.ov_sd ov.ov_source.s_qemu_uri in
-
- (* What really happens here is that the call to #disk_create
- * below fails if the format is not raw or qcow2. We would
- * have to extend libguestfs to support further formats, which
- * is trivial, but we'd want to check that the files being
- *...
2015 Oct 20
0
Re: [PATCH v3 11/13] v2v: add --in-place mode
...osing the %s") guestfs_kind;
See above.
> +and populate_disks (g:G.guestfs) src_disks =
As far as I know, the type annotation here should not be necessary.
But if it is necessary, then put some spaces in, ie:
... (g : G.guestfs) ...
> + List.iter (
> + fun ({s_qemu_uri = qemu_uri; s_format = format}) ->
> + match format with
> + | None ->
> + g#add_drive_opts qemu_uri ~cachemode:"unsafe" ~discard:"besteffort"
> + | Some fmt ->
> + g#add_drive_opts qemu_uri ~format:fmt ~cachemode:"unsafe...
2015 Oct 20
2
[PATCH v3 11/13] v2v: add --in-place mode
...off")
and open_source input print_source =
message (f_"Opening the source %s") input#as_options;
@@ -269,6 +299,17 @@ and populate_overlays (g:G.guestfs) overlays =
~copyonread:true
) overlays
+and populate_disks (g:G.guestfs) src_disks =
+ List.iter (
+ fun ({s_qemu_uri = qemu_uri; s_format = format}) ->
+ match format with
+ | None ->
+ g#add_drive_opts qemu_uri ~cachemode:"unsafe" ~discard:"besteffort"
+ | Some fmt ->
+ g#add_drive_opts qemu_uri ~format:fmt ~cachemode:"unsafe"
+...
2015 Aug 11
0
[PATCH v2 03/17] v2v: factor out overlay creation
...ould allow us
+ * to fstrim/blkdiscard and avoid copying significant parts of the
+ * data over the wire.
+ *)
+ message (f_"Creating overlays to protect the sources from being modified");
+ let overlay_dir = (new Guestfs.guestfs ())#get_cachedir () in
+ List.mapi (
+ fun i ({ s_qemu_uri = qemu_uri; s_format = format } as source) ->
+ let overlay_file =
+ Filename.temp_file ~temp_dir:overlay_dir "v2vovl" ".qcow2" in
+ unlink_on_exit overlay_file;
+
+ let options =
+ "compat=1.1" ^
+ (match format with None ->...
2016 Nov 04
0
[PATCH 4/5] v2v: ova: don't extract files from OVA if it's not needed
...\"raw\", \"offset\":\"%Ld\", \"size\":\"%Ld\", \"file\": { \"filename\":\"%s\" } } }"
+ offset size ova
+ )
+ in
let disk = {
s_disk_id = i;
- s_qemu_uri = filename;
+ s_qemu_uri = qemu_uri;
s_format = Some "vmdk";
s_controller = controller;
} in
--
2.10.1
2015 Jul 27
4
[PATCH] v2v: add --in-place mode
...to fstrim/blkdiscard and avoid copying significant parts of the
- * data over the wire.
- *)
- message (f_"Creating an overlay to protect the source from being modified");
let overlay_dir = (new Guestfs.guestfs ())#get_cachedir () in
- let overlays =
- List.map (
- fun ({ s_qemu_uri = qemu_uri; s_format = format } as source) ->
- let overlay_file =
- Filename.temp_file ~temp_dir:overlay_dir "v2vovl" ".qcow2" in
- unlink_on_exit overlay_file;
-
- let options =
- "compat=1.1" ^
- (match format wit...
2015 Jul 28
0
Re: [PATCH] v2v: add --in-place mode
...lay_dir = (new Guestfs.guestfs ())#get_cachedir () in
Part of this patch is a refactoring -- moving the overlay_dir
assigning from within the loop up to here. Put that into a separate
commit, as it's trivial to review on its own.
> - let overlays =
> - List.map (
> - fun ({ s_qemu_uri = qemu_uri; s_format = format } as source) ->
> - let overlay_file =
> - Filename.temp_file ~temp_dir:overlay_dir "v2vovl" ".qcow2" in
> - unlink_on_exit overlay_file;
> -
> - let options =
> - "compat=1.1" ^...
2016 Nov 12
0
[PATCH v2 4/5] v2v: ova: don't extract files from OVA if it's not needed
...\"raw\", \"offset\":\"%Ld\", \"size\":\"%Ld\", \"file\": { \"filename\":\"%s\" } } }"
+ offset size ova
+ )
+ in
let disk = {
s_disk_id = i;
- s_qemu_uri = filename;
+ s_qemu_uri = qemu_uri;
s_format = Some "vmdk";
s_controller = controller;
} in
--
2.10.1
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.
2017 Mar 13
0
[PATCH 2/2] v2v: -i ova: Factor out the OVF parsing into a separate module.
...]
- ] in
- let uri =
- sprintf "json:%s" (JSON.string_of_doc ~fmt:JSON.Compact doc) in
- debug "json: %s" uri;
- uri
- ) in
-
- let disk = {
- s_disk_id = i;
- s_qemu_uri = qemu_uri;
- s_format = Some "vmdk";
- s_controller = controller;
- } in
- push_front disk disks;
- ) else
- error (f_"could not parse disk rasd:HostResource from OVF document")
- done in
- let disks = List.rev !di...
2015 Oct 21
2
[PATCH] v2v: use open_guestfs everywhere
...ate_overlays src_disks =
* data over the wire.
*)
message (f_"Creating an overlay to protect the source from being modified");
- let overlay_dir = (new Guestfs.guestfs ())#get_cachedir () in
+ let overlay_dir = (open_guestfs ())#get_cachedir () in
List.mapi (
fun i ({ s_qemu_uri = qemu_uri; s_format = format } as source) ->
let overlay_file =
@@ -944,7 +944,7 @@ and target_bus_assignment source targets guestcaps =
and preserve_overlays overlays src_name =
(* Save overlays if --debug-overlays option was used. *)
- let overlay_dir = (new Guestfs.guestfs ())#...
2016 Nov 12
0
[PATCH v2 2/5] v2v: ova: don't detect compressed disks, read the OVF instead
...if shell_command cmd <> 0 then
- error (f_"error uncompressing %s, see earlier error messages")
- filename;
- new_filename
- )
- else filename in
-
let disk = {
s_disk_id = i;
s_qemu_uri = filename;
diff --git a/v2v/test-v2v-i-ova-gz.ovf b/v2v/test-v2v-i-ova-gz.ovf
index e10ad2b..4a03e85 100644
--- a/v2v/test-v2v-i-ova-gz.ovf
+++ b/v2v/test-v2v-i-ova-gz.ovf
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Envelope vmw:buildId="build-175078...
2019 Apr 09
1
[PATCH] v2v: Implement the --bandwidth* options to control network bandwidth.
This is built on top of the following patch series:
https://www.redhat.com/archives/libguestfs/2019-April/msg00054.html
Rich.
2014 Oct 18
5
GIT: [PATCH 0/5] v2v: Multiple fixes for handling semi-standard OVA files (RHBZ#1152998).
OVA not a real standard. Colour me surprised ...
2015 Aug 11
0
[PATCH v2 02/17] v2v: factor out opening input VM
...input#source () in
@@ -68,7 +54,6 @@ let rec main () =
printf "%s\n" (string_of_source source);
exit 0
);
-
if verbose () then printf "%s%!" (string_of_source source);
(match source.s_hypervisor with
@@ -87,6 +72,9 @@ let rec main () =
assert (disk.s_qemu_uri <> "");
) source.s_disks;
+ source
+
+let amend_source source output_name network_map =
(* Map source name. *)
let source =
match output_name with
@@ -97,26 +85,43 @@ let rec main () =
| Some name -> { source with s_name = name } in
(* Map networks and...
2018 Mar 16
7
[PATCH v2 0/5] Add --print-target with machine-readable version.
This adds --print-target. In addition, v2 provides a machine-readable
version (in JSON format).
All of the record -> JSON boilerplate in this patch could be
eliminated if we moved the baseline to OCaml 4.02.
Rich.
2017 Nov 02
3
[PATCH 0/2] v2v: Handle SATA controller (RHBZ#1508874).
https://bugzilla.redhat.com/show_bug.cgi?id=1508874
Also avoids a warning.
Rich.