As a long-time VirtualBox user I'm used to being able to set video memory available to my virtual machines, but unfortunately I cannot seem to find such an option for when I start KVM/QEMU VMs with:
qemu-kvm -boot d OS.img
I know how to set RAM available, however, with the -m RAM
option, which I'm mentioning in the hope that people won't confuse what I'm asking about with RAM. Here's a screenshot showing how I set this option in VirtualBox VM settings:
Best Answer
The video memory size can be defined using the
vgamem_mb
property on the VGA device:will allocate 64 MiB to the framebuffer (instead of the default 16 MiB IIRC).
Some drivers have specific properties:
max_hostmem
instead to specify how much host memory it’s allowed to use;ram_size_mb
,vram_size_mb
, andvram64_size_mb
, to define the size of the two regions it uses:ram
stores the framebuffer, command rings, rendering commands and image data, andvram
stores spice surfaces (see this email for details).