Hi,
So I'm baffled. I, finally, managed to configure GPU Passthrough in my Ubuntu (24.04) VM in Proxmox. After a few sheananigans with changing the BIOS type from Bios to UEFI.
So no probleme my main VM, with Jellyfin, has (now) a working GPU (NVIDIA QUADRO P1000), with the 575 drivers. NVIDIA-SMI is showing it, and showing it working when Jellyfin is playing something :
So here's my problem : the transcoding is working flawlessly for any file I send it from Jellyfin. Like right now a 4K/HDR/7.1 movie is playing on my second screen, with full transcode to 1080p/SDR/Stereo, no frame drop, no problem. BUT, if I want to play another file at the same time (on another screen for example), the transcoding is crashing with this line in the Jellyfin logs :
I GUESS the important line is this :
[AVHWDeviceContext @ 0x5f00132bcec0] cu->cuCtxCreate(&hwctx->cuda_ctx, desired_flags, hwctx->internal->cuda_device) failed -> CUDA_ERROR_LAUNCH_FAILED: unspecified launch failure
Device creation failed: -542398533.
Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
Here's my config in Proxmox for this VM :

Available for any information more you could need to help me. It's very frustrating, after weeks of trial and error to manage, at last, to get a working GPU in my VM, only for a silly bug like that.
So I'm baffled. I, finally, managed to configure GPU Passthrough in my Ubuntu (24.04) VM in Proxmox. After a few sheananigans with changing the BIOS type from Bios to UEFI.
So no probleme my main VM, with Jellyfin, has (now) a working GPU (NVIDIA QUADRO P1000), with the 575 drivers. NVIDIA-SMI is showing it, and showing it working when Jellyfin is playing something :

So here's my problem : the transcoding is working flawlessly for any file I send it from Jellyfin. Like right now a 4K/HDR/7.1 movie is playing on my second screen, with full transcode to 1080p/SDR/Stereo, no frame drop, no problem. BUT, if I want to play another file at the same time (on another screen for example), the transcoding is crashing with this line in the Jellyfin logs :
Code:
ffmpeg version 7.1.1-Jellyfin Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 13 (Ubuntu 13.3.0-6ubuntu2~24.04)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
[AVHWDeviceContext @ 0x5f00132bcec0] cu->cuCtxCreate(&hwctx->cuda_ctx, desired_flags, hwctx->internal->cuda_device) failed -> CUDA_ERROR_LAUNCH_FAILED: unspecified launch failure
Device creation failed: -542398533.
Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
Error parsing global options: Generic error in an external libraryffmpeg version 7.1.1-Jellyfin Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 13 (Ubuntu 13.3.0-6ubuntu2~24.04)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
[AVHWDeviceContext @ 0x5f00132bcec0] cu->cuCtxCreate(&hwctx->cuda_ctx, desired_flags, hwctx->internal->cuda_device) failed -> CUDA_ERROR_LAUNCH_FAILED: unspecified launch failure
Device creation failed: -542398533.
Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
Error parsing global options: Generic error in an external library
I GUESS the important line is this :
[AVHWDeviceContext @ 0x5f00132bcec0] cu->cuCtxCreate(&hwctx->cuda_ctx, desired_flags, hwctx->internal->cuda_device) failed -> CUDA_ERROR_LAUNCH_FAILED: unspecified launch failure
Device creation failed: -542398533.
Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
Here's my config in Proxmox for this VM :

Available for any information more you could need to help me. It's very frustrating, after weeks of trial and error to manage, at last, to get a working GPU in my VM, only for a silly bug like that.