Created
March 6, 2024 22:48
-
-
Save DeflateAwning/4ff9e586a9693b532cbefb8a923fb05c to your computer and use it in GitHub Desktop.
Send text to a running VirtualBox instance via the keyboard. No Guest Additions required.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install virtualbox | |
import virtualbox | |
vbox = virtualbox.VirtualBox() | |
machine = vbox.find_machine("Ubuntu 20") | |
session = machine.create_session() | |
session.console.keyboard.put_keys("Hello, world!") | |
# Source: https://github.com/sethmlarson/virtualbox-python/issues/142 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment