Sample Header Ad - 728x90

How to access agetty terminals (e.g. TTY2, 3, 4, etc.) from QEMU VM

1 vote
1 answer
3328 views
In my QEMU virtual machine (started with qemu-kvm -boot d arch-freebsd.img -m 4096) I'd like to access an agetty terminal, which I'd normally access with Ctrl+Alt+F2 (or F3 if I need tty3, F4 if tty4, *etc.*), unfortunately pressing these keys just merely changes me to an agetty terminal on my host (as opposed to the guest system I'm trying to go to tty2 in). If this were a VirtualBox VM I'd press Ctrl+F2 (specifically the Ctrl in the centre of my keyboard, i.e. my right Ctrl key) to access tty2, but this doesn't work with QEMU. If you suggest I press Ctrl+Alt+G to get the VM to grab all my keyboard and mouse inputs, then pressing the keys to access the agetty terminals I've tried doing that and it doesn't work. EDIT: The proposed duplicate link doesn't list what solved my problem, pressing Alt+Fx. I've tried Ctrl+Alt+Fx that seems to be suggested there (although I'm having trouble getting my head around what it's about as what VNC is, is a mystery to me), that's kind of the problem here.
Asked by Josh Pinto (3533 rep)
Aug 13, 2018, 08:19 AM
Last activity: Nov 28, 2018, 08:27 AM