How to increase video memory in libvirt/KVM gui

kvm-virtualizationlibvirtvirtual-machines

In the 'Virtual Hardware details', it lists the model as 'cirrus' with 9MB of RAM. The RAM field cannot be changed, but how to increate the video RAM? My host OS is RH6 and gust OS is Fedora16.

EDIT: From guest OS, when I run xvinfo it displays 'no adaptors present'.

I was trying to play a video using gstreamers xvimagesink plugin (XFree86 video output plugin using Xv extension). The problem is that xvimagesink is using hardware acceleration for video performance and hence the error Could not initialize Xv output.

I guess I'll have to configure hardware acceleration for the guest.

Best Answer

Should be as easy as virsh edit DOMAIN and changing vram attribute of /domain/devices/video/model:

...
<video>
  <model type='cirrus' vram='9216' heads='1'/>                                                            
  <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
...
Related Topic