Help with jellyfin

bebito

New Member
May 1, 2024
2
0
1
Hola, soy nuevo en proxmox y estoy buscando la forma de conectar un disco USB con películas y poder reconocerlo una vez instalado jellyfin con el famoso script que hay ahí. No encuentro nada en YouTube y me gustaría hacerlo funcionar. Estoy usando una máquina Intel n100, debería estar bien, ¿verdad?
Gracias de antemano.
 
Hello,
please use English in this forum.

google translate:
Hello, I am new to proxmox and I am looking for a way to connect a USB disk with movies and be able to recognize it once jellyfin is installed with the famous script that is there. I can't find anything on YouTube and I would like to make it work. I'm using an Intel n100 machine, it should be fine right?Thanks in advance.

just add a USB device in the Hardware section of the VM configuration.
 
Hola,
Por favor use inglés en este foro.

Google Translate:


simplemente agregue un dispositivo USB en la sección Hardware de la configuración de VM.
Hola, lo siento, pensé que lo escribí en inglés.
No puedo agregar USB porque no es una VM. Estoy usando el script para instalar Jellyfin pero es un contenedor LXC. Mi idea es usar Jellyfin en proxmox y usar un disco USB con películas y series y que lo reconozca.
 
Last edited:
You are still writing in Spanish. ;)

You can mount the USB device on the host and bind mount the directory to the LXC container:
https://pve.proxmox.com/wiki/Linux_Container#_bind_mount_points
Hi there, same problems here,I have followed the howto without results. I have mounted usb storage into the host node, but bind mount does not work, even though I can see the mount, for example, jellyfin can see nothing.

Mounting external storage on unpriviledged LXC is quite difficult.

Any other howtos, please?
 
  • Like
Reactions: gralf
Hi, I have followed step by step the wiki for the uid and gid change and still have no access to the mountpoint

1- on the host i did

Code:
mkdir /mnt/USB

2
Code:
mount /dev/sda1 /mnt/USB

on the LXC

1
Makefile:
mkdir /mnt/USB
on the host I modified the file /etc/pve/lxc/103.conf (103 is the number of the jellyfin LXC container)

and added the following code

Code:
mp0: /mnt/USB,mp=/mnt/USB

then

lxc.idmap: u 0 100000 1005
lxc.idmap: g 0 100000 1005
lxc.idmap: u 1005 1005 1
lxc.idmap: g 1005 1005 1
lxc.idmap: u 1006 101006 64530
lxc.idmap: g 1006 101006 64530

then edited the file

/etc/subuid file on the host

added

Code:
root:1005:1

then edited /etc/subgid on the host

and added

Code:
root:1005:1


finally on the host executed

Code:
chown -R 1005:1005 /mnt/USB

started the LXC and went to /mnt/USB, result, permission denied

any suggestion


I find very very difficult to achieve this, how do people intended to setup a NAS at home?
 
Last edited:
HJi again, I discovered that

if I umount the USB and do a

Code:
ls -alL

I get this

Code:
drwxr-xr-x  2 1005 1005 4096 Nov 19 20:12 USB

but as soon I mount the device again, the
Code:
ls -alL
gives
Code:
dr-x------  1 root root 4096 Nov 19 19:58 USB
, dunno if this is relevant