From 571269bf72a4ccbce22d723ca2a166593a8cc34e Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 20 Jan 2017 14:47:51 +0100 Subject: [PATCH] p2v: log also environment on conversion server Save the content of the environment on the conversion server, so it is one additional help when debugging failed conversions. --- p2v/conversion.c | 5 +++++ p2v/virt-p2v.pod | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/p2v/conversion.c b/p2v/conversion.c index 3c379cb6f..b8bab34d2 100644 --- a/p2v/conversion.c +++ b/p2v/conversion.c @@ -1060,6 +1060,11 @@ generate_wrapper_script (struct config *config, const char *remote_dir, fprintf (fp, "rm -f $log\n"); fprintf (fp, "\n"); + fprintf (fp, + "# Log the environment where virt-v2v will run.\n"); + fprintf (fp, "printenv > environment\n"); + fprintf (fp, "\n"); + fprintf (fp, "# Run virt-v2v. Send stdout back to virt-p2v. Send stdout\n" "# and stderr (debugging info) to the log file.\n"); diff --git a/p2v/virt-p2v.pod b/p2v/virt-p2v.pod index 075256e03..ec8eff244 100644 --- a/p2v/virt-p2v.pod +++ b/p2v/virt-p2v.pod @@ -662,6 +662,12 @@ The dmesg output from the physical machine. Useful for detecting problems such as missing device drivers or firmware on the virt-p2v ISO. +=item F + +I<(before conversion)> + +The content of the environment where L will run. + =item F =item F