jirutka/qemu-openrc

qemush in SSH session not working: Not a tty

fdedden opened this issue · 0 comments

In a SSH session, when trying to connect to a virtual machine console, using the command qemush <machine> an error is shown:
2020/03/02 20:22:28 socat[4944] E tcsetattr(5, TCSADRAIN, 0x563ccfc90b40): Not a tty

Replacing the following line in /usr/bin/qemush:
socat -,raw,echo=0,escape=0x0f "UNIX-CONNECT:$socket_path"
with
socat /dev/stdin,raw,echo=0,escape=0x0f "UNIX-CONNECT:$socket_path"
fixes the problem. I don't exactly know why, and if it has any other implications.

I assume this has something to with starting socat from an SSH session, but I am not sure.

Installed versions:
Alpine 3.11
qemu-openrc-0.7.0-r0 x86_64
socat-1.7.3.3-r1 x86_64