I’m having trouble allocating more VRAM to my QEMU virtual machine. Currently, I’m using the following command to launch my VM:

qemu-system-x86_64 -enable-kvm -boot menu=on -drive file=QEMU -m 2G -cpu host -vga virtio

Can anyone help me figure out how to increase the VRAM allocation in QEMU?

Solution by [email protected] qemu-system-x86_64 [...] -vga qxl -global qxl-vga.vram_size_mb=128 -global qxl-vga.ram_size_mb=128

  • lnxtx
    link
    fedilink
    English
    64 days ago

    Not sure, but maybe the QXL driver will help:

    qemu-system-x86_64 [...] -vga qxl -global qxl-vga.vram_size_mb=128 -global qxl-vga.ram_size_mb=128
    
    • @proxyOP
      link
      24 days ago

      It’s an improvement, but 500MB+ would be perfect.

      • lnxtx
        link
        fedilink
        English
        3
        edit-2
        3 days ago

        Replace the value 128 to 512. And try again :)

        • @proxyOP
          link
          33 days ago

          I was under the impression that QXL driver were capped at 256MB too, thanks.

    • @proxyOP
      link
      2
      edit-2
      3 days ago

      If I’m reading correctly, there isn’t a modern GPU driver for QEMU that supports customizing VRAM?

      • @[email protected]
        link
        fedilink
        English
        3
        edit-2
        3 days ago

        Qxl does, it’s fairly modern.

        Otherwise you have virtio and virglrenderer, which are as modern as it gets this side of pcie pass through or intel’s sriov.

    • @proxyOP
      link
      2
      edit-2
      4 days ago

      Thanks the list is very useful.

    • @proxyOP
      link
      14 days ago

      deleted by creator