Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) RTX 4060 Laptop GPU
• DeepStream Version 6.4
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only) 535, but have tried with 550 & 560
• Issue Type( questions, new requirements, bugs) Bugs
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
I am using an Ubuntu 22.04 Hyper-V VM (hosted on Windows 11 home) to run a docker container which uses the Deepstream libraries. First, I passed my GPU to the VM using Microsoft’s Dxgkrnl module. This enabled nvidia-smi
to work on my VM. Then, I followed the steps in this doc (Configure The Runtime Environment — Savant 0.4.0 documentation). However, when I run the docker compose command, I see this error message:
always-on-sink-1 | RuntimeError: Received error "gst-resource-error-quark:
Could not open device '/dev/v4l2-nvenc' for reading and writing. (7)"
from nvv4l2h264enc0. Debug info: "v4l2_calls.c(713): gst_v4l2_open ():
/GstPipeline:pipeline0/nvv4l2h264enc:nvv4l2h264enc0:
always-on-sink-1 | system error: No such file or directory".
always-on-sink-1 | ERROR insight::savant::deepstream::encoding
> You have configured NVENC-accelerated encoding, but your
device doesn't support NVENC for codec 'h264'.
I tried different driver versions (nvidia-driver-535,550,560). Also, I found this github link ( Standalone NVENC encoder (0.21.0+) broke NVENC on Hyper-V with GPU passthrough · Issue #2141 · LizardByte/Sunshine · GitHub), suggesting that there may be some GeForce limitations in VM, specifically regarding NVENC library. However, that issue is only for windows to windows passthrough, not windows to Ubuntu. Further, they are using studio drivers, not proprietary drivers (like nvidia-driver-535).
How do I get NVENC to work inside the docker container? Is there a specific Nvidia driver version that fixes the issue? Do I need to install cuda toolkit? If so, do I install the Ubuntu or Ubuntu-WSL version?
I would like to avoid dual-booting Windows and Ubuntu due to security concerns. Also, since WSL is not yet supported on this project, I cannot use it.