Skip to content

Instantly share code, notes, and snippets.

@ObiWahn
Created July 29, 2017 20:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ObiWahn/b29164daa1f83b31d3469a09dec9ef2a to your computer and use it in GitHub Desktop.
Save ObiWahn/b29164daa1f83b31d3469a09dec9ef2a to your computer and use it in GitHub Desktop.
qemu curses interface

source

qemu on Debian 9 has some issues showing the curses console when running a Debian 9 guest. To fix this the guest's grub needs to supply some extra parameters to the kernel and disable a module:

  • on the guest system open /etc/default/grub and add console=tty0 console=ttyS0 to GRUB_CMDLINE_LINUX this tells the linux kernel to use tty0 as console
    • note: see info -f grub -n 'Simple configuration' for difference between GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT
  • create (or change the file) /etc/modprobe.d/bochs_drm.conf so that its contents is the following line: install bochs_drm /bin/true
    • note: this configures modorobe to run /bin/true instead of loading bochs_drm, which disables the loading of
    • note: install is a modprobe command (not the shell command!), whereas /bin/true is a shell command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment