So one of the stumbling blocks on my road to getting 3D emulation in a VM is how most people use qemu in deployed situations either via libvirt or GNOME boxes frontends.
If you use are using libvirt and have VMs running they have no connection to the running user session or user X server, they run as the qemu user and are locked down on what they can access. You can restart your user session and the VM will keep trucking. All viewing off the VM is done using SPICE or VNC. GNOME Boxes is similar except it runs things as the user, but still not tied to the user session AFAIK (though I haven't confirmed).
So why does 3D make this difficult?
Well in order to have 3D we need to do two things.
a) talk to the graphics card to render stuff
b) for local users, show the user the rendered stuff without reading it back into system RAM, and sticking it in a pipe like spice or vnc, remote users get readback and all the slowness it entails.
No in order to do a), we face a couple of would like to have scenarios:
1. user using open source GPU drivers via mesa stack
2. user using closed source binary drivers like NVIDIA or worse fglrx.
How to access the graphics card normally is via OpenGL and its window APIs like GLX. However this requires a connection to your X server, if your X server dies your VM dies, if your session restarts your VM dies.
For scenario 1, where we have open source kms based drivers, the upcoming render nodes support in the kernel will allow process outside the X server control to use the capabilities of the graphics card via the EGL API. This means we can render in a process offscreen. This mostly solves problem (a) how to talk to the graphics card at all.
Now for scenario 2, so far NVIDIA has mostly got no EGL support for its desktop GPUs, so in this case we are kinda out in the cold, until they have at least EGL support, in terms of completely disconnecting the rendering process from the running user X server lifecycle.
This leaves problem (b), how do we get the stuff rendered using EGL back to the user session to display it. My first initial hand-wave in this area involved EGL images and dma-buf, but I get the feeling on subsequent reads that this might not be sufficient enough for my requirements. It looks like something like the EGLStream extension might be more suitable, however EGLstream suffers from only being implemented in the nvidia tegra closed source drivers from what I can see. Another option floated was to somehow use an embedded wayland client/server somewhere in the mix, I really haven't figured out the architecture for this yet (i.e. which end has the compositor and which end is the client, perhaps we have both a wayland client and compositor in the qemu process, and then a remote client to display the compositor output, otherwise I wonder about lifetime and disconnect issues). So to properly solve the problem for open source drivers I need to either get EGLstream implemented in mesa, or figure out what the wayland hack looks like.
Now I suppose I can assume at some stage nvidia will ship EGL support with the necessary bits for wayland on desktop x86 and I might not have to do anything special and it will all work, however I'm not really sure how to release anything in the stopgap zone.
So I suspect initially I'll have to live with typing the VM lifecycle to the logged in user lifecycle, maybe putting the VM into suspend if the GPU goes away, but again figuring out to integrate that with the libvirt/boxes style interfaces is quite tricky. I've done most of my development using qemu SDL and GTK+ support for direct running VMs without virt-manager etc. This just looks ugly, though I suppose you could have an SDL window outside the virt-manager screen and virt-manager could still use spice to show you the VM contents slower, but again it seems sucky. Another crazy idea I had was to have the remote viewer open a socket to the X server and pass it through another socket to the qemu process, which would build an X connection on top of the pre opened socket,
therefore avoiding it having to have direct access to the local X server. Again this seems like it could be a largely ugly hack, though it might also work on the nvidia binary drivers as well.
Also as a side-note I discovered SDL2 has OpenGL support and EGL support, however it won't use EGL to give you OpenGL only GLES2, it expects you to use GLX for OPENGL, this is kinda fail since EGL with desktop OpenGL should work fine, so that might be another thing to fix!
Intelligence View
⚡ tsecurity.de Intelligence
disconnected VM operation and 3D
So one of the stumbling blocks on my road to getting 3D emulation in a VM is how most people use qemu in deployed situations either via libvirt or GNOME boxes…
Cloud & Tech-Stack · 5 Min. Lesezeit
Quelle: airlied.livejournal.com
Rubrik: Server Unix e Linux
Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Community-Hinweise zur Meldung
0 freigegeben Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
Powered by tsecurity.de
tsecurity.de Hub
Valutazione della community & prova sociale
⭐ Giudizio dei lettori
–
Ø / 5.0
★★★★★
Ancora nessuna valutazione dei lettori
Questo articolo ti è stato utile?
0
Powered by tsecurity.de
tsecurity.de Hub
Briefing di sicurezza Gratuito · disdetta in 1 clic
Intelligence Digest — gratuito
Ogni giorno le notizie di sicurezza più importanti · annullabile in qualsiasi momento
Cluster di storie correlate & fonti (IA vettoriale)
6 Cluster
Cluster di storie correlate & fonti (IA vettoriale)
14 fonti
I found the most capable PC under $300 for Cyber Monday — Origimagic's C7 Windows 11 Pro machine packs dual Thunderbolt 4, 2.5Gb LAN, a Core 3 100U, 16GB of RAM, and a 512GB SSD
Latest from TechRadar 16 min. fa
13 altre fonti
OOS X Daily14 min. faCyber Monday Deals: $300 Off 16″ PROLED MacBook Pro, $100 Off AirPods Pro 3, $100 Off iPad Air, & More LLatest from TechRadar36 min. faCyber Monday home office deals 2026 live — our top workspace picks from FlexiSpot, Dell, Anker, Logitech and more as Black Friday sale rolls on LLatest from TechRadar34 min. faThe best Cyber Monday deals in the UK in 2026: top picks from Amazon, Argos, Ninja, Lego and more LLatest from TechRadar44 min. faCyber Monday Australia laptop deals for 2026: score up to 52% off Lenovo, Apple, Dell, HP and more LLatest from TechRadar1 h faAmazon Australia Cyber Monday deals CCNET1 h faThis Pocket Battery Recharges Your Phone 4 Times, and it’s Only $38 for Cyber Monday LLatest from TechRadar1 h faFirebat's M1 is a cracking Ryzen AI 9 HX 470 mini PC for AI workloads — and it's packing OCuLink, 32GB of RAM, and a 1TB SSD for $1020 this Cyber Monday LLatest from TechRadar1 h faThe Lenovo IdeaCentre Tower Copilot+ PC with Core Ultra 7 CPU isn't discounted for Cyber Monday — and it's still the desktop computer I'd buy for work for $1049 TThe Verge1 h faQobuz is my streaming service of choice and it’s on sale during Cyber Monday CCNET12 giorni faThis Paramount Plus Cyber Monday Deal Gets You Ad-Free Viewing for Only $3 Per Month CCNET2 h faCyber Monday Meta Quest 3S Deal Knocks $53 Off and Gets You $50 Free Amazon Credit TThe Verge3 h faThese early Cyber Monday gaming laptop deals offer the most GPU for the least money LLatest from TechRadar4 h faGrab a TP-Link dual-band Wi-Fi 6 router with 1.5Gbps for $44 this Cyber Monday
13 fonti
Linux Overhauls Documentation For Reporting Kernel Security Bugs
Phoronix 35 min. fa
12 altre fonti
DDEV Community1 h faForgeOS Booted on a Real Server: Linux Kernel Below, Only Our Own Code Above VVulDB Updates2 h faCVE-2026-72239 | Linux Kernel sev x86/virt/sev/sev.c wbinvd_on_all_cpus state issue (WID-SEC-2026-2852) VVulDB Updates2 h faCVE-2026-72240 | Linux Kernel up to 7.1.4 mfd sm501_register_device memory leak (WID-SEC-2026-2852) VVulDB Updates2 h faCVE-2026-72241 | Linux Kernel up to 7.1.4 uleds strchr buffer overflow (WID-SEC-2026-2852) VVulDB Updates2 h faCVE-2026-72244 | Linux Kernel up to 6.12.100/6.18.41/7.1.4/7.2-rc2 gpu-buddy allocation of resources (WID-SEC-2026-2852) VVulDB Updates2 h faCVE-2026-72243 | Linux Kernel up to 7.2-rc2 selinux socket_sendmsg permission (Nessus ID 364200 / WID-SEC-2026-2852) VVulDB Updates2 h faCVE-2026-72245 | Linux Kernel up to 7.1.4 host1x host1x_device_parse_dt release of resource (WID-SEC-2026-2852) VVulDB Updates2 h faCVE-2026-72246 | Linux Kernel flowtable input validation (WID-SEC-2026-2852) VVulDB Updates2 h faCVE-2026-72247 | Linux Kernel up to 7.2-rc3 nf_conncount __nf_conncount_add dir comparison (WID-SEC-2026-2852) VVulDB Updates2 h faCVE-2026-72248 | Linux Kernel up to 7.1.4/7.2-rc2 flowtable nft_flow_dst_release buffer overflow (WID-SEC-2026-2852) LLinuxAndUbuntu3 h faLinux AutoFDO Benchmark: Clang Kernel Optimization VVulDB Updates4 h faCVE-2022-31607 | NVIDIA GPU Display Driver on Linux Kernel Mode Layer nvidia.ko input validation (EUVD-2022-53059 / Nessus ID 339047)
13 fonti
CVE-2026-135533 | Mozilla Firefox up to 115.45/153.7/160 Layout Tables off-by-one (Nessus ID 388625)
VulDB Updates 1 h fa
12 altre fonti
VVulDB Updates1 h faCVE-2026-135536 | Mozilla Firefox up to 115.45/153.7/160 DOM Editor uninitialized pointer (Nessus ID 388625) VVulDB Updates1 h faCVE-2026-135535 | Mozilla Firefox up to 115.45/153.7/160 Skia input validation (Nessus ID 388625) VVulDB Updates1 h faCVE-2026-135537 | Mozilla Firefox up to 115.45/153.7/160 Layout Text/Fonts out-of-bounds (Nessus ID 388625) VVulDB Updates1 h faCVE-2026-135525 | Mozilla Firefox up to 115.45/153.7/160 WebRender use after free (Nessus ID 388625) VVulDB Updates1 h faCVE-2026-135526 | Mozilla Firefox up to 115.45/153.7/160 Networking use after free (Nessus ID 388625) VVulDB Updates1 h faCVE-2026-135527 | Mozilla Firefox up to 115.45/153.7/160 DOM/HTML use after free (Nessus ID 388625) VVulDB Updates1 h faCVE-2026-135528 | Mozilla Firefox up to 153.7/160 HTTP race condition (Nessus ID 388625) VVulDB Updates1 h faCVE-2026-135530 | Mozilla Firefox up to 115.45/153.7/160 HTTP sandbox (Nessus ID 388625) VVulDB Updates1 h faCVE-2026-135529 | Mozilla Firefox up to 153.7/160 Text sandbox (Nessus ID 388625) VVulDB Updates1 h faCVE-2026-135520 | Mozilla Firefox up to 115.45/153.7/160 CanvasWebGL sandbox (Nessus ID 388625) VVulDB Updates1 h faCVE-2026-135524 | Mozilla Firefox JavaScript Engine use after free (Nessus ID 388625) VVulDB Updates1 h faCVE-2026-135521 | Mozilla Firefox up to 115.45/153.7/160 Navigation sandbox (Nessus ID 388625)
5 fonti
CVE-2026-138285 | Tenda FH1201 1.2.0.19(946) Httpd Service /cgi-bin/UploadCfg webCgiGetUploadFile boundary stack-based overflow
VulDB Updates 3 h fa
4 altre fonti
VVulDB Updates3 h faCVE-2026-138284 | Tenda FH1201 1.2.0.19(946) Login Authentication /bin/httpd authSecurityHandler mitUSERNAME stack-based overflow VVulDB Updates3 h faCVE-2026-138283 | Tenda FH1201 1.2.0.19(946) /bin/httpd UploadCfg data authenticity VVulDB Updates3 h faCVE-2026-138282 | Tenda FH1201 1.2.0.19(946) /goform/ate TendaAte stack-based overflow VVulDB Updates3 h faCVE-2026-138281 | Tenda FH1201 1.2.0.19 Web UI /goform/ate authSecurityHandler missing authentication
4 fonti
Black Friday laptop deals 2026: the huge savings on MacBooks, Chromebooks and Windows 11 laptops still available from Apple, Dell, HP and many more
Latest from TechRadar 26 min. fa
3 altre fonti
TThe Verge1 h faMy Frame TV died on Black Friday, so I bought a Hisense instead WWIRED1 h faThe 8 Best Black Friday Deals on Expert-Tested Laptops (2026): Up to $470 Off LLatest from TechRadar3 h faMissed out on Black Friday? Samsung's Galaxy S26 Ultra and Z Fold 8 Ultra deals are even better now — get up to $720 off our favorite devices
4 fonti
CVE-2026-138290 | D-Link DSL-2640B 3.0.6.0.41 IP Filter scoutflt/scinflt srcAddr os command injection (EUVD-2026-137802)
VulDB Updates 2 h fa
3 altre fonti
VVulDB Updates2 h faCVE-2026-138289 | D-Link DSL-2640B 3.0.6.0.41 DMZ Host SecCfgMngr::setDmzHost address os command injection (EUVD-2026-137801) VVulDB Updates2 h faCVE-2026-138288 | D-Link DSL-2640B 3.0.6.0.41 /wancfg.cmd cgiWanCfg ifname os command injection (EUVD-2026-137800) VVulDB Updates2 h faCVE-2026-138287 | D-Link DSL-2640B 3.0.6.0.41 Endpoint portmapcfg.cmd cgiPortMapQrySwitch pmapCfgName os command injection (EUVD-2026-137799)
Mehr aus dieser Kategorie
Blättern: Pfeiltasten [ ← ] [ → ] · Tasten j / k · mobil: Wischen
HAND-OFF
Auf Smartphone übergeben (ADVISORY)
Scannen Sie den QR-Code mit der Smartphone-Kamera für sofortigen mobilen Zugriff:
https://tsecurity.de/it/3500846/server-unix-e-linux/disconnected-vm-operation-and-3d/
💬 Discussione della community e commenti
Avvia la discussione nel flusso broadcast della Social Chat oppure invia qui sopra un contributo esperto tramite il modulo di integrazione.