1 |
Am Montag, den 24.05.2021 um 11:52:22 Uhr +0100 schrieb Michael <confabulate@××××××××.com>: |
2 |
> On Monday, 24 May 2021 02:01:15 BST Oliver Dixon wrote: |
3 |
> > Hi, |
4 |
> > |
5 |
> > I decided to bite the bullet yesterday and switch from clunky, and generally |
6 |
> > untoward, VirtualBox to QEMU/KVM for developing kernel modules. I have a |
7 |
> > working Gentoo VM with all the bells and whistles I need/want (UEFI |
8 |
> > booting, NIC passthrough, SSH forwarding, NFSv4 support, etc.), but it's |
9 |
> > running in an SDL window, which means the guest TTY will become confused |
10 |
> > and pretty much unusable whenever I change the window size. (Which is |
11 |
> > rather often since I use a tiling window manager.) |
12 |
> |
13 |
> Have you tried '-display sdl,gl=on -vga virtio' and then use Ctrl+Alt+f to |
14 |
> maximise it early in the boot process? It seems to work OK here, without |
15 |
> distorting the contents of the VM window. |
16 |
|
17 |
Why don't you (Oliver) just use ssh to log in? That way you wouldn't have to |
18 |
work around TTY resizing problems. If you don't see a prompt over the serial |
19 |
connection, than maybe there is no getty/agetty instance listening there. |
20 |
Unfortunately I can't help further in that direction. |
21 |
|
22 |
As a different approach you could also put the qemu output into a VNC socket |
23 |
with '-vnc unix:/path/to/socket'. With '-vga virtio' and '-vga std' I had at |
24 |
least a reproducible screen resolution at startup. |
25 |
|
26 |
Inspired by app-emulation/nemu I wrote a short shell script which does this and |
27 |
works for me. I'll attach it here - feel free to take useful parts out of it, |
28 |
e.g. the daemon mode of qemu could be interesting for you aswell. |