Page 1 of 1

Sending Ctrl-Alt-Delete from VBoxManage?

Posted: 21. Oct 2010, 17:47
by paulehoffman
Greetings. I want to use VBoxManage to send Ctrl-Alt-Delete to a vm that is running headless. If the VM was running with a console, I could use the Machine->Insert Ctrl-Alt-Del command from the menus, but this is running headless. Any suggestions are appreciated.

Re: Sending Ctrl-Alt-Delete from VBoxManage?

Posted: 21. Oct 2010, 23:14
by Sasquatch
VBoxManage controlvm keyboardputscancode <hex> [<hex> ...] is probably what you're looking for. The hexadecimal values are the key codes.

Re: Sending Ctrl-Alt-Delete from VBoxManage?

Posted: 21. Oct 2010, 23:27
by paulehoffman
Sasquatch wrote:VBoxManage controlvm keyboardputscancode <hex> [<hex> ...] is probably what you're looking for. The hexadecimal values are the key codes.
What do you believe the keycode for Ctrl-Alt-Delete is? After a bunch of searching, I found no indication that such a single keycode exists, but I could have missed something.

Re: Sending Ctrl-Alt-Delete from VBoxManage?

Posted: 21. Oct 2010, 23:33
by Sasquatch
I don't know exactly how the command works, but maybe there is a way to send the three key codes in one go, like giving it three hex values as parameter.

Re: Sending Ctrl-Alt-Delete from VBoxManage?

Posted: 22. Oct 2010, 00:02
by paulehoffman
Sasquatch wrote:I don't know exactly how the command works, but maybe there is a way to send the three key codes in one go, like giving it three hex values as parameter.
I am hoping for a reply from someone who does knows how the command works for Ctrl-Alt-Delete, given that there does not appear to be a scan code for that key combination. The scan code for Ctrl-Del is 0x8B and the scan code for Alt-Del is 0x98. As far as I can tell, there is no scan code for the full combination, but I would be happy to be wrong.

I would also be happy if the solution was something else that came from someone who knows how the GUI console sends a Ctrl-Alt-Del to the guest.

Re: Sending Ctrl-Alt-Delete from VBoxManage?

Posted: 22. Oct 2010, 14:30
by HubTou
Hello,
Sasquatch wrote:I don't know exactly how the command works, but maybe there is a way to send the three key codes in one go, like giving it three hex values as parameter.
Yes you can send as many scancodes in one shot as you want.
paulehoffman wrote:I am hoping for a reply from someone who does knows how the command works for Ctrl-Alt-Delete [...]
I would also be happy if the solution was something else that came from someone who knows how the GUI console sends a Ctrl-Alt-Del to the guest.
If i remember well, you would send : 1d 38 53 b8 9d (meaning left-ctrl-down left-alt-down del left-alt-up left-ctrl-up) or 38 1d 53 9d b8 (alt before ctrl).

The reference i use for this is located at http://www.win.tue.nl/~aeb/linux/kbd/scancodes.html

You'll find a library for handling this in http://www.projet-hev.org/dist/generateur1-1.02.tar.bz2

Best regards,

Hubert

Re: Sending Ctrl-Alt-Delete from VBoxManage?

Posted: 22. Oct 2010, 17:38
by paulehoffman
HubTou wrote: If i remember well, you would send : 1d 38 53 b8 9d (meaning left-ctrl-down left-alt-down del left-alt-up left-ctrl-up) or 38 1d 53 9d b8 (alt before ctrl).
The first one works perfectly!
HubTou wrote: The reference i use for this is located at http://www.win.tue.nl/~aeb/linux/kbd/scancodes.html
I saw that, but I didn't realize that you could stack up the codes; I thought you needed to send just one for the key combination.

I will now see if we can get this into the manual as an example.

Re: Sending Ctrl-Alt-Delete from VBoxManage?

Posted: 27. Oct 2010, 12:37
by Bsoft
Good one thx.

Faster than the "fire RDP" then hit "Ctrl Alt End" that I used.... if u have 1d 38 53 b8 9d handy ;)

Re: Sending Ctrl-Alt-Delete from VBoxManage?

Posted: 26. Apr 2012, 16:04
by Max___31
Hello,
And so, how can i send RCtrl+F to my vm ?

Best regards,
Maxime