quickemu-project / quickemu

Quickly create and run optimised Windows, macOS and Linux virtual machines
MIT License
10.73k stars 470 forks source link

Add option to adjust vram #211

Closed Slaviusz closed 2 years ago

Slaviusz commented 2 years ago

Expected behaviour

Set display resolution to 4k on macos monterey

Actual behaviour

In macos monterey it is not possible to set display resolution higher than 2560x1440 as VRAM shows only 14MB

Steps to reproduce the behaviour

Create vm macos monterey Go to system preferences -> Display List custom resultions -> highest is 2560x1440

Quickemu output

--Not related--

Linux Distribution & Kernel

Run the following and paste the output.

$ uname -a
Linux gentoo 5.15.1-tkg-cacule-llvm #1 TKG SMP PREEMPT Sun Nov 7 17:03:18 CET 2021 x86_64 AMD Ryzen 7 3800X 8-Core Processor AuthenticAMD GNU/Linux

$ EIX_LIMIT=0 eix -c --installed | grep -iE "(spice|qemu|libvirt)"
[I] acct-group/qemu (0-r1@11/07/2021): System group: qemu
[I] acct-user/qemu (0-r1@11/07/2021): System user: qemu
[I] app-emulation/libvirt (7.8.0(0/7.8.0)@11/07/2021): C toolkit to manipulate virtual machines
[I] app-emulation/qemu (6.0.1-r1@11/07/2021): QEMU + Kernel-based Virtual Machine userland tools
[I] app-emulation/spice (0.15.0@11/07/2021): SPICE server
[I] app-emulation/spice-protocol (0.14.3@11/07/2021): Headers defining the SPICE protocol
[I] media-libs/virglrenderer (0.9.1@11/07/2021): library used implement a virtual 3D GPU used by qemu
[I] net-misc/spice-gtk (0.39-r1@11/07/2021): Set of GObject and Gtk objects for connecting to Spice servers and a client GUI
[I] net-misc/vde (2.3.2-r6@11/07/2021): Virtual distributed ethernet emulator for emulators like qemu, bochs, and uml
github-actions[bot] commented 2 years ago

Hello there πŸ‘‹ Thanks for submitting your first issue to the Quickemu project πŸ› We'll try and take a look at your issue soon ⏲

In the meantime you might want to join the Wimpys World Discord πŸ—£ where we have a large community of Linux 🐧 enthusiasts and passionate open source developers πŸ§‘β€πŸ’»

You might also be interested in following Wimpys World Twitch πŸ“‘ channel where Wimpy streams let's code video, including this project, several times a week. A back catalog of past live stream and other Linux related content is available on Wimpys World YouTube πŸ“Ί channel.

flexiondotorg commented 2 years ago

I think a good place to start with this issue is allocate a sensible amount of VRAM by default. Here are the video RAM properties that each of the display device support:

virtio-vga and virtio-gpu do not have any VRAM tunables.

Quickemu does attempt to allocate 128MB VRAM by default, but the display device coverage is lacking so macOS doesn't get that uplifted VRAM allocation.

flexiondotorg commented 2 years ago

I've made sure vram_size_mb and vgamem are appropriately configure to allocate 128MB VRAM. macOS still only reports 7MB.

flexiondotorg commented 2 years ago

Qemu maximum supported screen resolution is 4 megapixels (2560x1600). Maximum number of heads is 4.

So,allocating more VRAM isn't going to enae 4K.