fuel-virtualbox/contrib/send-sysrq
Maksim Malchuk 1f356e5b1b Add useful scripts and README.md files
Please read README.md files for more information.

Change-Id: I4f65d7ea6c9d9bf8f02d97e63ec09a2f1aae0006
Closes-Bug: #1592592
Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
2016-06-15 01:56:24 +03:00
..
README.md Add useful scripts and README.md files 2016-06-15 01:56:24 +03:00
send-sysrq Add tool for sending Alt-SysRq to VMs 2016-06-02 17:18:33 +03:00

README.md

send-sysrq

This tool is a helper for sending Alt+SysRq+ combination to the guest OS in VirtualBox VM, which is used in Linux for printing different sorts of debug messages to the kernel log, like list of processes, stack traces of CPUs and so on, or for performing actions: reboot, sync e.t.c. It's very useful when all other ways to communicate to the VM become unavailable.

Please, set sysctl kernel.sysrq to 1 in the guest OS to make all sysrq commands available:

sysctl -w kernel.sysrq=1 # in the guest OS

Examples of usage (useful for fuel developers):

  • Increase log verbosity:
send-sysrq fuel-slave-1 loglevel-7
  • Print processes information to the kernel log:
send-sysrq fuel-slave-1 show-task-states
  • Print verbose memory usage to the kernel log:
send-sysrq fuel-slave-1 show-memory-usage
  • Print, what system is doing right now:
send-sysrq fuel-slave-1 show-registers
  • More examples:
send-sysrq