It's hard to send Alt+SysRQ+<key> combination to VirtualBox VMs

Bug #1588383 reported by Dmitry Guryanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Dmitry Guryanov
Mitaka
Fix Released
High
Dmitry Guryanov

Bug Description

Linux has a very useful debugging technique, magic sysrq - https://en.wikipedia.org/wiki/Magic_SysRq_key. It can perform different low-level operations or print debug information to the kernel log. It's not possible to press this combination using keyboard because of xinput, VirtualBox keyboard emulation or something else. But fortunately you can use VBoxManage command to send scancodes to the VM.

It hard to remember keyboard scancodes and type them every time you want to send alt+sysrq combination. So let's write some tool for it.

Changed in fuel:
importance: Undecided → Medium
status: New → Confirmed
assignee: nobody → Dmitry Guryanov (dguryanov)
milestone: none → 10.0
Revision history for this message
Bug Checker Bot (bug-checker) wrote : Autochecker

(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:

actual result

version

expected result

steps to reproduce

For more detailed information on the contents of each of the listed sections see https://wiki.openstack.org/wiki/Fuel/How_to_contribute#Here_is_how_you_file_a_bug

tags: added: need-info
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-virtualbox (master)

Reviewed: https://review.openstack.org/323171
Committed: https://git.openstack.org/cgit/openstack/fuel-virtualbox/commit/?id=30af233b8a98c2b86775b5de1cc6fc76a36074b4
Submitter: Jenkins
Branch: master

commit 30af233b8a98c2b86775b5de1cc6fc76a36074b4
Author: Dmitry Guryanov <email address hidden>
Date: Thu Jun 2 17:18:33 2016 +0300

    Add tool for sending Alt-SysRq to VMs

    This tool is a helper for sending Alt+SysRq+<key> 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.

    Closes-Bug: #1588383
    Change-Id: I63864d8e575a73f5efec6e55cc02483a59935307

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

Good work! We actually need this in 9.0 too.

Changed in fuel:
importance: Medium → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-virtualbox (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/324563

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-virtualbox (stable/mitaka)

Reviewed: https://review.openstack.org/324563
Committed: https://git.openstack.org/cgit/openstack/fuel-virtualbox/commit/?id=a53dba7a1c880243c7b932a67d4f2b31fb99efe4
Submitter: Jenkins
Branch: stable/mitaka

commit a53dba7a1c880243c7b932a67d4f2b31fb99efe4
Author: Dmitry Guryanov <email address hidden>
Date: Thu Jun 2 17:18:33 2016 +0300

    Add tool for sending Alt-SysRq to VMs

    This tool is a helper for sending Alt+SysRq+<key> 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.

    Closes-Bug: #1588383
    Change-Id: I63864d8e575a73f5efec6e55cc02483a59935307
    (cherry picked from commit 30af233b8a98c2b86775b5de1cc6fc76a36074b4)

tags: added: vbox-scripts
tags: added: on-verification
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

Very useful tool, thanks!

tags: removed: on-verification
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.