Get the latest tech news

Setup QEMU Output to Serial Console and Automate Tests with Shell Scripts (2019)


SSH. Expect. Named pipes. Input/output to the host terminal. Early boot messages.

The history professor is raising funds towards a situational alert system for Ukraine’s Air Defence Forces. While struggling to automate QEMU guest (communicate and control with the shell scripts), I faced a lot of incomplete, partially working solutions around the Internet. Now, I've got a pretty decent collection of working recipes to tune up a QEMU guest, so I decided to organize all that stuff here, and it could be definitely useful for anyone else.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of serial console

serial console

Photo of shell scripts

shell scripts

Photo of setup qemu output

setup qemu output

Related news:

News photo

Techniques I use to create a great user experience for shell scripts

News photo

Ruby: A great language for shell scripts

News photo

Enabling a USB Serial Console on Linux (2022)