Allow crosvm to send kernel logs to syslog |
|||
Issue descriptionEarly kernel logs are lost if the VM fails to boot. We should capture these and send them to syslog. A few options to do this: 1) Invoke logger from concierge and connect a pipe from crosvm stdout -> logger stdin 2) Add a command line flag to crosvm to send serial console directly to syslog 3) Have concierge take stdout from crosvm and send it to syslog The syslog forwarder in the VM should also stop sending kernel logs to the host to prevent duplicate logs.
,
May 17 2018
,
Jun 8 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform2/+/eec6d0a6c3962e71e3b1a7db2dfaa422ec88a15e commit eec6d0a6c3962e71e3b1a7db2dfaa422ec88a15e Author: Alex Dale <sigquit@google.com> Date: Fri Jun 08 06:33:48 2018 vm_tools: concierge: Added a logger process to pipe crosvm stdout to host syslog. BUG= chromium:844082 TEST=Manual launch with log checking Change-Id: I9960363a00cccbc5e419878f1aae58c273b0d695 Reviewed-on: https://chromium-review.googlesource.com/1077189 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Alex Dale <sigquit@google.com> Reviewed-by: Stephen Barber <smbarber@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> [modify] https://crrev.com/eec6d0a6c3962e71e3b1a7db2dfaa422ec88a15e/vm_tools/concierge/virtual_machine.cc [modify] https://crrev.com/eec6d0a6c3962e71e3b1a7db2dfaa422ec88a15e/vm_tools/concierge/virtual_machine.h
,
Jun 14 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform2/+/49d66d7e63798bf31f0ab4d113f8fb122f80c80e commit 49d66d7e63798bf31f0ab4d113f8fb122f80c80e Author: Alex Dale <sigquit@google.com> Date: Thu Jun 14 00:02:13 2018 vm_tools: syslog: Removed functionality for guest kernel log piping to host syslog. BUG= chromium:844082 TEST=Manual launch with log checking Change-Id: Idf42184a5b8c3048df8318ff6699c225098b723f Reviewed-on: https://chromium-review.googlesource.com/1090152 Commit-Ready: Alex Dale <sigquit@google.com> Tested-by: Alex Dale <sigquit@google.com> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> [modify] https://crrev.com/49d66d7e63798bf31f0ab4d113f8fb122f80c80e/vm_tools/syslog/parser_unittest.cc [modify] https://crrev.com/49d66d7e63798bf31f0ab4d113f8fb122f80c80e/vm_tools/syslog/collector.cc [modify] https://crrev.com/49d66d7e63798bf31f0ab4d113f8fb122f80c80e/vm_tools/syslog/parser.h [modify] https://crrev.com/49d66d7e63798bf31f0ab4d113f8fb122f80c80e/vm_tools/syslog/collector.h [modify] https://crrev.com/49d66d7e63798bf31f0ab4d113f8fb122f80c80e/vm_tools/syslog/parser.cc [modify] https://crrev.com/49d66d7e63798bf31f0ab4d113f8fb122f80c80e/vm_tools/syslog/collector_unittest.cc
,
Jun 27 2018
,
Jul 16
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform2/+/be206196f1258bedf0e4274815774e802012f338 commit be206196f1258bedf0e4274815774e802012f338 Author: Alex Dale <sigquit@google.com> Date: Mon Jul 16 23:32:34 2018 vm_tools: concierge: Change VMBOOT() to VM() for VM console log. BUG= chromium:844082 TEST=Manual launch with log checking Change-Id: I0e55e55ca3e785a4d04dc6746c9c7783413e2665 Reviewed-on: https://chromium-review.googlesource.com/1102997 Commit-Ready: Alex Dale <sigquit@google.com> Tested-by: Alex Dale <sigquit@google.com> Reviewed-by: Stephen Barber <smbarber@chromium.org> [modify] https://crrev.com/be206196f1258bedf0e4274815774e802012f338/vm_tools/concierge/virtual_machine.cc |
|||
►
Sign in to add a comment |
|||
Comment 1 by smbar...@chromium.org
, May 17 2018Status: Available (was: Untriaged)