New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 844082 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Allow crosvm to send kernel logs to syslog

Project Member Reported by smbar...@chromium.org, May 17 2018

Issue description

Early 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.

 
Cc: sigquit@google.com
Status: Available (was: Untriaged)
Monorail won't let me assign ownership to sigquit@, so cc will have to suffice for now.
Owner: sigquit@google.com
Status: Assigned (was: Available)
Project Member

Comment 3 by bugdroid1@chromium.org, 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

Status: Fixed (was: Assigned)
Project Member

Comment 6 by bugdroid1@chromium.org, 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