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.
This commit is contained in:
Pino Toscano
2017-01-20 14:47:51 +01:00
parent 718ce7964c
commit 571269bf72
2 changed files with 11 additions and 0 deletions

View File

@@ -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");

View File

@@ -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<environment>
I<(before conversion)>
The content of the environment where L<virt-v2v(1)> will run.
=item F<lscpu>
=item F<lspci>