Quickemu --vm ubuntu-22.04.conf # Display spice is incompatible with the GL context

 - system: `"x86_64-linux"` 
 - host os: `Linux 5.15.43, NixOS, 22.05 (Quokka), 22.05.751.8b66e3f2ebc` 
 - multi-user?: `yes` 
 - sandbox: `yes` 
 - version: `nix-env (Nix) 2.8.1` 
 - channels(root): `"home-manager-22.05.tar.gz, nixos-22.05"` 
 - channels(usera): `""` 
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
quickemu --vm ubuntu-22.04.conf
Quickemu 3.15 using /nix/store/rip5wzqm2wvf33v8qlzg85aa4pgjyhg3-qemu-7.0.0/bin/qemu-system-x86_64 v7.0.0
 - Host:     "NixOS 22.05 (Quokka)" running Linux 5.15 (nixosP34)
 - CPU:      Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
 - CPU VM:   1 Socket(s), 4 Core(s), 2 Thread(s), 16G RAM
 - BOOT:     EFI (Linux), OVMF (/nix/store/k42akcjj7yk8srkpilf3ddrykh7clbr9-OVMF-202202-fd/FV/OVMF_CODE.fd), SecureBoot (off).
 - Disk:     ubuntu-22.04/disk.qcow2 (16G)
             Looks unused, booting from ubuntu-22.04/ubuntu-22.04-desktop-amd64.iso
 - Boot ISO: ubuntu-22.04/ubuntu-22.04-desktop-amd64.iso
 - Display:  SDL, virtio-vga, GL (on), VirGL (on)
 - ssh:      On host:  ssh user@localhost -p 22220
 - SPICE:    On host:  spicy --title "ubuntu-22.04" --port 5930 --spice-shared-dir /home/ae/Public
 - WebDAV:   On guest: dav://localhost:9843/
 - 9P:       On guest: sudo mount -t 9p -o trans=virtio,version=9p2000.L,msize=104857600 Public-ae ~/Public
 - Process:  Starting ubuntu-22.04.conf as ubuntu-22.04 (155106)

 qemu-system-x86_64: Display spice is incompatible with the GL context

The pc is using a nvidia gpu.

How to get a better understanding of whats wrong?
How to adjust the GL context to get compatible?

Try:

quickemu --vm ubuntu-22.04.conf --display spice
4 Likes

Adding --display spice worked for me. Thank you!

2 Likes

can you mark it as a solution, if discord lets you… sometimes it doesn’t,

I cannot set any solution …

yeah, i think you need a certain level of reputation to do it… which to me seems a bit silly.

I’m not entirely sure, but I think only specific categories have the “solution” button. My other topic under “learn” has it for example.