Ticket #7633 (new enhancement)

Opened 3 years ago

Last modified 3 years ago

Add an example of scan codes for VBoxManage controlvm

Reported by: paulehoffman Owned by:
Priority: minor Component: documentation
Version: VirtualBox 3.2.10 Keywords: vboxmanage
Cc: Guest type: other
Host type: other


It is not clear from the documentation how to send Ctrl-Alt-Del to a vm using 'VBoxManage controlvm'. The solution is far from obvious, but the utility is high (as witnessed by the fact that there is a command for it in the GUI console. I propose adding the following bullet to 8.11:

  • VBoxManage controlvm keyboardputscancode allows you to send keystrokes to the virtual machine. This is particularly useful for virtual machines that are running headless. The keystrokes are entered as the hex values of the scancodes. To send Ctrl-Alt-Delete, use the sequence "1d 38 53 b8 9d".

Change History

comment:1 Changed 3 years ago by klaus

I see little value in adding an incorrect sequence, your suggestion would leave a stuck "Del" key. The sequence would be "1d 38 53 d3 b8 9d". Even with the correct sequence I'm sceptical if it's the job of the user manual to provide a PC keyboard scan code reference.

comment:2 Changed 3 years ago by paulehoffman

You are probably correct that the Del is stuck, but it works fine anyway. That is, create a Ubuntu guest and give the command I proposed: the system goes through a clean reboot. It is "the job of the user manual to provide a PC keyboard scan code reference": it is the job of the manual to be useful. This is a useful, non-obvious sequence.

comment:3 Changed 3 years ago by klaus

BTW, the reason for having a menu item for it in the GUI is very different: on Windows Ctrl-Alt-Del doesn't ever reach an application, so the only way of sending this sequence is using "other means".

comment:4 Changed 3 years ago by paulehoffman

Thus my justification of headless vms in the proposed wording. But it sounds like you really don't want this documented; maybe others do.

comment:5 Changed 3 years ago by ni81036 TUI has scancode table you can use, along with example of guest typing command (see typeGuest).

comment:6 Changed 3 years ago by paulehoffman

Maybe adding a mention of to the manual would be good too!

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use