Page 1 of 1
Send scripted keyboard input to headless VM ?
Posted: 7. Oct 2010, 15:29
by mark_orion
Is there a way to send keyboard input to a VM from the command line so that it can be scripted ? I want to be able to control (shutdown / reboot) a virtual appliance that has no guest additions installed and is not ACPI aware. The appliance is "Zeroshell" running on a Linux host (Ubuntu 10.04 Lucid).
Re: Send scripted keyboard input to headless VM ?
Posted: 9. Oct 2010, 01:13
by Sasquatch
Unless it has network access with SSH like remote options, then there is no way to do that other than a forced reboot/power down.
Re: Send scripted keyboard input to headless VM ?
Posted: 21. Oct 2010, 03:00
by kihjin
Did you try:
VBoxManage controlvm keyboardputscancode
Re: Send scripted keyboard input to headless VM ?
Posted: 21. Oct 2010, 09:03
by HubTou
Hello,
kihjin wrote:VBoxManage controlvm keyboardputscancode
You might want to check:
http://forums.virtualbox.org/viewtopic.php?f=1&t=33560
I have a shell library to ease the translation of command lines into scancode discussed there.
Best regards,
Hubert