Cannot install Intel GPU drivers and OpenGL module
Operating system
QNAP QTS 5.2.6.3195 - KERNEL: 5.10.60-qnap
Description
I'm getting an error with dpkg when I enable hardware acceleration. The Container Station does have access to iGPU, I tested it in Ubuntu 24.04 docker image with privileged mode on
Specs:
I used Ubuntu LXD container for neofetch since Ubuntu docker and QNAP shell don't print GPU and disks
....
.',:clooo: .:looooo:.
.;looooooooc .oooooooooo'
.;looooool:,''. :ooooooooooc
;looool;. 'oooooooooo,
;clool' .cooooooc. ,, ubu@ubuntu-1
... ...... .:oo, ------------
.;clol:,. .loooo' OS: Ubuntu 24.04.2 LTS x86_64
:ooooooooo, 'ooool Kernel: Linux 5.10.60-qnap
'ooooooooooo. loooo. Uptime: 1 day, 8 hours, 54 mins
'ooooooooool coooo. Packages: 769 (dpkg)
,loooooooc. .loooo. Shell: bash 5.2.21
.,;;;'. ;ooooc Terminal: node
... ,ooool. CPU: Intel(R) Celeron(R) N5105 (4) @ 2.90 GHz
.cooooc. ..',,'. .cooo. GPU: Intel UHD Graphics @ 0.80 GHz [Integrated]
;ooooo:. ;oooooooc. :l. Memory: 7.41 GiB / 15.39 GiB (48%)
.coooooc,.. coooooooooo. Swap: 1.67 GiB / 29.29 GiB (6%)
.:ooooooolc:. .ooooooooooo' Disk (/): 1.25 TiB / 3.21 TiB (39%) - ext4
.':loooooo; ,oooooooooc Local IP (eth0): [redacted]
..';::c' .;loooo:' Locale: C.UTF-8
GPU info
root@3c828c4dafbf:/# ls -l /dev/dri
total 0
crw------- 1 root root 226, 0 Sep 4 13:56 card0
crw------- 1 root root 226, 128 Sep 4 13:56 renderD128
root@3c828c4dafbf:/# lspci -nn | grep -E 'VGA|3D|Display'
00:02.0 VGA compatible controller [0300]: Intel Corporation JasperLake [UHD Graphics] [8086:4e61] (rev 01)
Docker compose
services:
windows:
image: dockurr/windows
container_name: win10l
environment:
VERSION: "10l"
RAM_SIZE: "4G"
DISK_FMT: "qcow2"
CPU_CORES: "4"
REGION: "da-DK"
KEYBOARD: "da-DK"
HV: "N"
GPU: "Y"
devices:
- /dev/kvm
- /dev/net/tun
- /dev/dri
cap_add:
- NET_ADMIN
ports:
- 8007:8006
- 3390:3389/tcp
- 3390:3389/udp
volumes:
- /share/CACHEDEV3_DATA/Container/QEMU/Win10_LTSC/data:/data
- /share/CACHEDEV3_DATA/Container/QEMU/Win10_LTSC:/storage
restart: unless-stopped
stop_grace_period: 2m
privileged: true
Docker log
❯ Starting Windows for Docker v4.35...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Celeron N5105 | RAM: 8/16 GB | DISK: 2 TB (ext4) | KERNEL: 5.10.60-qnap...
❯ Installing Intel GPU drivers...
E: Sub-process /usr/bin/dpkg returned an error code (1)
❯ ERROR: Status 100 while: DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends -y install "$pkg" > /dev/null (line 138/66)
❯ Starting Windows for Docker v4.35...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Celeron N5105 | RAM: 8/16 GB | DISK: 2 TB (ext4) | KERNEL: 5.10.60-qnap...
❯ Installing OpenGL module...
E: Sub-process /usr/bin/dpkg returned an error code (1)
❯ ERROR: Status 100 while: DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends -y install "$pkg" > /dev/null (line 138/67)
❯ Starting Windows for Docker v4.35...
❯ For support visit https://github.com/dockur/windows
❯ CPU: Intel Celeron N5105 | RAM: 8/16 GB | DISK: 2 TB (ext4) | KERNEL: 5.10.60-qnap...
❯ Booting Windows using QEMU v10.0.2...
BdsDxe: loading Boot0004 "Windows Boot Manager" from HD(1,GPT,A8238470-4EED-411F-A698-8A0F53FF5154,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
BdsDxe: starting Boot0004 "Windows Boot Manager" from HD(1,GPT,A8238470-4EED-411F-A698-8A0F53FF5154,0x800,0x40000)/\EFI\Microsoft\Boot\bootmgfw.efi
❯ Windows started succesfully, visit http://127.0.0.1:8006/ to view the screen...
Screenshots (optional)
No response
I fixed the dpkg issue. See: https://github.com/AndroidMaster25/qemu/commit/b9ad681365717869d15f9d89b94832a4343d248c
However, there is still no hardware acceleration. Windows 10 is laggy af and 3d rendering causing 100% cpu usage. Red Hat VirtIO GPU DOD controller is installed. What I am missing?
It is working on Linux Mint. See my comment at my other issue https://github.com/qemus/qemu/issues/797#issuecomment-3259449787
It needs a driver in Windows that is not available yet, thats why there is no mention in the README about the GPU flag.
It needs a driver in Windows that is not available yet, thats why there is no mention in the README about the GPU flag.
Understood. There is also no mention at qemus/qemu repo too but I was surprised it is working under Linux Mint VM.