How to Pass TTY2 Key Combo to Guest VM?

Your command xdotool search --name QUBE key ctrl+alt+F2 results in sending the ctrl+alt+F2 keystroke to dom0.

After exploring xdotool, I found that these steps result in reproducible success:

  1. Use xdotool to find the ID of the desired window:

    xdotool selectwindow
    

The cursor will change into a target selector, proceed to click on the target window. In my case, this was the open StandaloneVM Qubes OS installer window. xdotool selectwindow then outputs an 8 digit number string (Ex: 27831926) that is the ID of the target window.

  1. Using the output from xdotool selectwindow, proceed to inject the TTY2 keystroke command

    xdotool key --window 27831926 ctrl+alt+F2
1 Like