Display in Virtual Machine (Qemu/KVM)


  • OpenMandriva Lx version:

  • Desktop environment (KDE, LXQT…):
    KDE Plasma

  • Description of the issue (screenshots if relevant):
    Cannot set the display resolution to 1600x900

  • Relevant informations (hardware involved, software version, logs or output…):

I have installed additionally spice-vdagent.
Display is spice-server, video is Virtio, 3D acceleration enabled.

If I set the resolution to 1600x900 in Systemsettings -> Display and Monitor, it always stalls at 1024x768. Hardware is a Sony Vaio E series notebook with 17’ screen. It works well with other distros e.g. Mageia and Fedora.

Btw. I am a bit jealous that you have made the transitions I want to see in Mageia: dnf and NetworkManager.

Best regards,

Welcome @Bequimao to OpenMandriva forum and the OM distro. We hope you enjoy your time spent here and with OM Lx.

Post-edit: Unfortunatly I’m not much help for your issue. OM officially supports running OM Lx in VirtualBox only. We do have developers that use Qemu and I suspect we will hear from one when they get some time and see this. Being a small group and all volunteer we do the best we can at helping users.

Hi @bequimao

maybe this will help you

Hi Tomasz,

Thanks for the link. I tested QXL video and didn’t see any difference. The default memory of 16 MB should be sufficient - my own calculation. 1600 x 900 isn’t exactly high resolution. The default memory is not shown, host is Virt-Manager on openSUSE 15.1.

I found another one (German)
I modified /etc/default/grub


The resolution of the virtual console is now at 1600x900, but the display still stucks as if hardcoded.

The cursor gets caught. Message is "Press Ctrl_L and Alt_L to release … That is quite annoying. This shortcut locks the screen under System settings -> Desktop behaviour -> Screen locking. After disabling it is still valid in other applications, e.g. konsole.

Kind greetings,

QXL: driver, kernel module qxl
Virtio : driver, kernel module virtio-pc

xrandr --output Virtual-1 --mode 1600x900
both cases: Configure crtc 0 failed.

My findings so far

spice-vdagent was installed, but not running.
In order to start it, I had to do the following steps:

# systemctl enable spice-vdagentd.service

Modify /etc/systemd/system/spice-vdagentd.target.wants/spice-vdagentd.service

# PIDFile=/var/run/spice-vdagentd/spice-vdagentd.pid

Modifiy /usr/lib/tmpfiles.d/spice-vdagentd.conf

d /run/spice-vdagentd 0755 root root -

Add 2 devices in Virt-Manager

  1. Channel spice
  2. Channel qemu-ga

It helps a lot to have spice-vdagentd running. But unfortunately the screen resolution problem is not yet solved.

spice-vdagent-0.12.0-9 is a tad outdated. As Openmandriva 4.0 is a fresh release, I would have expected version 0.19. It might be a security issue, too.


Retested. Screen resolution 1600x900 works now with upgraded Openmandriva 4.1.


Good to here from you @Bequimao. And thanks for letting us know. It helps.

Closing thread.