public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nils Freydank <nils.freydank@posteo.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] QEMU -nographic Option with OVMF
Date: Sat,  5 Jun 2021 12:51:21 +0000	[thread overview]
Message-ID: <20210605125121.77exflu4jb7j6w44@pygoscelis.ansernet> (raw)
In-Reply-To: <7916209.T7Z3S40VBb@lenovo.localdomain>

[-- Attachment #1: Type: text/plain, Size: 1592 bytes --]

Am Montag, den 24.05.2021 um 11:52:22 Uhr +0100 schrieb Michael <confabulate@kintzios.com>:
> On Monday, 24 May 2021 02:01:15 BST Oliver Dixon wrote:
> > Hi,
> > 
> > I decided to bite the bullet yesterday and switch from clunky, and generally
> > untoward, VirtualBox to QEMU/KVM for developing kernel modules. I have a
> > working Gentoo VM with all the bells and whistles I need/want (UEFI
> > booting, NIC passthrough, SSH forwarding, NFSv4 support, etc.), but it's
> > running in an SDL window, which means the guest TTY will become confused
> > and pretty much unusable whenever I change the window size. (Which is
> > rather often since I use a tiling window manager.)
> 
> Have you tried '-display sdl,gl=on -vga virtio' and then use Ctrl+Alt+f to 
> maximise it early in the boot process?  It seems to work OK here, without 
> distorting the contents of the VM window.

Why don't you (Oliver) just use ssh to log in? That way you wouldn't have to
work around TTY resizing problems. If you don't see a prompt over the serial
connection, than maybe there is no getty/agetty instance listening there.
Unfortunately I can't help further in that direction.

As a different approach you could also put the qemu output into a VNC socket
with '-vnc unix:/path/to/socket'. With '-vga virtio' and '-vga std' I had at
least a reproducible screen resolution at startup.

Inspired by app-emulation/nemu I wrote a short shell script which does this and
works for me. I'll attach it here - feel free to take useful parts out of it,
e.g. the daemon mode of qemu could be interesting for you aswell.

[-- Attachment #2: control-vm.sh --]
[-- Type: application/x-sh, Size: 6722 bytes --]

      reply	other threads:[~2021-06-05 12:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-24  1:01 [gentoo-user] QEMU -nographic Option with OVMF Oliver Dixon
2021-05-24 10:52 ` Michael
2021-06-05 12:51   ` Nils Freydank [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210605125121.77exflu4jb7j6w44@pygoscelis.ansernet \
    --to=nils.freydank@posteo.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox