2024-06-18, 07:45 PM
(This post was last modified: 2024-06-18, 07:47 PM by pol77. Edited 1 time in total.)
It is and thank you. Dash added but the validation error remains.
I have also followed your advice and created an account at the qnap forum and posted the following:
Hi all.
First off, I'm a total newbie to qnas, linux, containers, yaml and Jellyfin. So, please excuse the ignorance.
I have managed to sucessfully run a container for a jellyfin server, which I created using the GUI. I quickly realized that I need a GPU so I purchased and installed a Quadro P1000.
I installed the driver in the App Center and set it to container station mode.
When I run this command:
In the QNAP SSH I get the response:
But if I run it in the container terminal, I get:
Is there a way to correct what is needed in my current Jellyfin container to get the GPU working in it?
I have also tried the YAML approach.
This is what I have so far:
When I try to validate it, I get the error message:
Any help with either getting my current container to utilize my GPU or creating a yaml code to make a new container that does, will be greatly appreciated.
I will let you know if they have any helpful informaiton.
I have also followed your advice and created an account at the qnap forum and posted the following:
Hi all.
First off, I'm a total newbie to qnas, linux, containers, yaml and Jellyfin. So, please excuse the ignorance.
I have managed to sucessfully run a container for a jellyfin server, which I created using the GUI. I quickly realized that I need a GPU so I purchased and installed a Quadro P1000.
I installed the driver in the App Center and set it to container station mode.
When I run this command:
Code:
/sbin/getcfg NVIDIA_GPU_DRV Install_Path -f /etc/config/qpkg.conf -d None
In the QNAP SSH I get the response:
Code:
/share/ZFS530_DATA/.qpkg/NVIDIA_GPU_DRV
But if I run it in the container terminal, I get:
Code:
bash: /sbin/getcfg: No such file or directory
Is there a way to correct what is needed in my current Jellyfin container to get the GPU working in it?
I have also tried the YAML approach.
This is what I have so far:
Code:
version: "3.9"[/color]
[color=#0074d9]services:[/color]
[color=#0074d9] jellyfin:[/color]
[color=#0074d9] image: jellyfin/jellyfin[/color]
[color=#0074d9] container_name: PolFlix[/color]
[color=#0074d9] user: 1000:1000[/color]
[color=#0074d9] network_mode: "host"[/color]
[color=#0074d9]devices:[/color]
[color=#0074d9] - /dev/nvidia0:/dev/nvidia0[/color]
[color=#0074d9] - /dev/nvidiactl:/dev/nvidiactl[/color]
[color=#0074d9] /dev/nvidia-uvm:/dev/nvidia-uvm[/color]
[color=#0074d9]environment:[/color]
[color=#0074d9] - VERSION=docker[/color]
[color=#0074d9] - PATH=/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin[/color]
[color=#0074d9] - NVIDIA_VISIBLE_DEVICES=all[/color]
[color=#0074d9] - NVIDIA_DRIVER_CAPABILITIES=all[/color]
[color=#0074d9]ports:[/color]
[color=#0074d9] - 32666:8096[/color]
[color=#0074d9] - 32667:8920[/color]
[color=#0074d9]volumes:[/color]
[color=#0074d9] - /Container/jellyfin/config:/config[/color]
[color=#0074d9] - /Container/jellyfin/cache:/cache[/color]
[color=#0074d9] - /Storage/Movies:/Movies:ro[/color]
[color=#0074d9]deploy:[/color]
[color=#0074d9] resources:[/color]
[color=#0074d9] reservations:[/color]
[color=#0074d9] devices:[/color]
[color=#0074d9] - driver: nvidia[/color]
[color=#0074d9] count: all[/color]
[color=#0074d9] capabilities:[/color]
[color=#0074d9] - gpu[/color]
[color=#0074d9]restart: unless-stopped
When I try to validate it, I get the error message:
Code:
Invalid Compose YAML Code[/color]
[color=#0074d9]validate compose config failed: operateApp action [convert] failed: exit status 15: volumes must be a mapping
Any help with either getting my current container to utilize my GPU or creating a yaml code to make a new container that does, will be greatly appreciated.
I will let you know if they have any helpful informaiton.