Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to improve the graphics performance of a KVM guest?

I suspect that the question is too general, so I will give my setup and requirements.

My ultimate goal is to use an Ubuntu guest as my primary OS. The only graphics-intensive things I do are watching videos and playing state-of-the-1990s games.

Current setup: Debian host (X+Fluxbox), KVM guest with SDL graphics, (emulated) vmware graphics card (the other one has >0.5s redraw times), and a standard Ubuntu installation. I can watch videos, but games are a bit choppy.

What doesn't seem to work: Non-SDL graphics (both VNC and X forwarding are very choppy), VGA passthrough (not implemented in KVM; Xen requires IOMMU, which my computer doesn't seem to support)

What I am thinking about (but I have very little knowledge on the subject): Trying to eliminate X from the host. I've heard myths about something called "framebuffer", but I don't know much else.

share|improve this question
I don't think you can get great video performance with KVM. That's not a high-priority design goal for it. Since your host is running Linux, you'd do better to run these programs directly on the host. – Gilles Nov 28 '11 at 1:56
Can you use other virtualization techniques? VirtualBox seems better designed to meet your specific needs. – Brian Cain Nov 28 '11 at 5:25
Use VBOX instead, KVM doesn't provide video acceleration – warl0ck Oct 24 '12 at 3:09
Run your games and videos in the Debian host. – haziz Jan 17 '13 at 21:59

SDL is ok, but you should also try SPICE. Check out the wikipedia page for more info as well.

share|improve this answer

You can try spice (http://spice-space.org/download.html). Spice has good performance at display and video. The performance of video of SDL is very poor. You should install spice guest program in the vm. This will install qxl driver, that will improve display and video performance.

Spice will consume much band of network, spice needs a band of network of at least 10Mb/s!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.