Our software does bare metal recovery of servers, which essentially requires a boot disk to start the process and grab the original image off of the backup server. While we can automate testing of a lot of the backup procedures, I have yet to find a way to test the restore procedures.

Our restore process runs in ncurses. On a physical machine I can't think of any easy way to test this process, but what about in a VM? Is there anything that could run on the host machine and simulate keyboard presses?

2 Answers 2


I can think of a few options-

a USB keyboard emulator maybe ?

Use an RS232 output to drive and simulate an RS232 keyboard?

ipmi remote console, if your platform supports it


For a Mac host, there is Keyboard Maestro. For Windows hosts, there's AutohotKey. For Unix hosts, there are AutoKey, Xnee, or XDotool.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.