![]() |
Jellyfin on proxmox - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions) +--- Thread: Jellyfin on proxmox (/t-jellyfin-on-proxmox) |
RE: Jellyfin on proxmox - madsepperl - 2024-10-14 Seems your share name is not recognized or somehow wrong. Please post the output of smbclient -L 192.168.1.124 and ls -la /mnt RE: Jellyfin on proxmox - wbravin - 2024-10-14 @madsrpperi root@pve:~# smbclient -L 192.168.1.124 Password for [WORKGROUP\root]: Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (Proxmox TrueNAS VM Server) Backups Disk Apps Disk Documents Disk Shows Disk Computers Disk Music Disk Movies Disk SMB1 disabled -- no workgroup available root@pve:~# ls -la/mnt ls: invalid option -- '/' Try 'ls --help' for more information. root@pve:~# Here is also my fstab file <file system> <mount point> <type> <options> <dump> <pass> /dev/pve/root / ext4 errors=remount-ro 0 1 UUID=AA01-F313 /boot/efi vfat defaults 0 1 /dev/pve/swap none swap sw 0 0 proc /proc proc defaults 0 0 # Mount CIFS share on demand with rwx permissions for use in LXCs //192.168.1.124/media/Movies /mnt/Movies cifs credentials=/.smbcred,x-systemd.automount,iocharset=utf8,rw,file_mode=0777,dir_mode=0777,vers=3 0 0 //192.168.1.124/media/Music /mnt/Shows cifs credentials=/.smbcred,x-systemd.automount,iocharset=utf8,rw,file_mode=0777,dir_mode=0777,vers=3 0 0 //192.168.1.124/media/shows /mnt/Music cifs credentials=/.smbcred,x-systemd.automount,iocharset=utf8,rw,file_mode=0777,dir_mode=0777,vers=3 0 0 in my pve shell i have the following /mnt/Movies /mnt/Shows /mnt/Music If i understand you correctly @TheDreadedPirate my syntax should be as follows source //192.168.1.124/media/Movies and destination /mnt/Movies so all the folder in truenas Movies are mounted in /mnt/Movies in proxmox Thank you all for your patience with me RE: Jellyfin on proxmox - TheDreadPirate - 2024-10-14 My recommendation was based on the info provided. The output of smbclients indicates it should be //192.168.1.124/Movies //192.168.1.124/Music //192.168.1.124/Shows RE: Jellyfin on proxmox - madsepperl - 2024-10-14 Hi wbravin, we're getting closer now ![]() First of all you should take care that you mount the remote filesystems within the LXC shell and not on PVE host. Sometimes you post screenshots where you use "root@pve" and sometimes from "root@jellyfin". If "jellyfin" is your Jellyfin LXC then the following commands only have to be performed on that host, NOT on the PVE host. first parameter in /etc/fstab describes the remote filesystem. So you can use everyting that "smbclient -L 192.168.1.124" shows. In your case: //192.168.1.124/Movies //192.168.1.124/Music //192.168.1.124/Shows second parameter in /etc/fstab matches directories on the local filesystem. You must create these local directories manually before mounting. In your case: /mnt/Movies /mnt/Shows /mnt/Music So /etc/fstab in your case could be something like (in the jellyfin LXC, not the PVE host!): Code: //192.168.1.124/Movies /mnt/Movies cifs credentials=/.smbcred,x-systemd.automount,iocharset=utf8,rw,file_mode=0777,dir_mode=0777,vers=3 0 0 RE: Jellyfin on proxmox - wbravin - 2024-10-15 Hello all for all your contributions and patience I delete from the pve shell all the /mnt directories i created during this adventure. I also deleted all the subsequent entries created in the pve fstab file I added user wbravin and root to the jellyfin lxc (user root already existed) I created in the jellyfing lxc /mnt/Moves /mnt/Music /mnt/Shows I nano /etc/fstab (when i opened it it was empty) I added the following line as per above //192.168.1.124/Movies /mnt/Movies cifs credentials=/.smbcred,x-systemd.automount,iocharset=utf8,rw,file_mode=0777,dir_mode=0777,vers=3 0 0 i get the following root@jellyfin:~# systemctl daemon-reload root@jellyfin:~# mount /mnt/Movies mount: /mnt/Movies: permission denied. dmesg(1) may have more information after failed mount system call. root@jellyfin:~# I tried to add user= and pass= after /mnt/Movies and at the end.... not good Once i get this sorted i will add the other 2 Thank you once again RE: Jellyfin on proxmox - GrumpyNick - 2024-10-15 This is a guide I followed for my unprivileged LXC, works well and I can move the container between hosts. https://forum.proxmox.com/threads/tutorial-unprivileged-lxcs-mount-cifs-shares.101795/ For moving the container between hosts you need to add "shared=1" to the mounts within the container conf file. RE: Jellyfin on proxmox - wbravin - 2024-10-15 @GrumpyNick Thank you very much for this suggestion. I was following this recommendation on youtube from jim's garage. As i am by no means an IT guy, i get vastly confused by the different ways one could achieve this integration. I need to keep thing simple for example I have in my truenas the following structure /mnt/poolname/datasets ....simple brilliant In this thread there is a line groupadd -g 10000 lxc_shares and then mkdir -p /mnt/lxc_shares/nas_rwx can i replace lxc_shares with /mnt/media? Can i replace lxc_shares/nas_rws and have mkdir -p /mnt/media/Movies? then replicate this for music and shows. From what i understand, from jim's garage is when i bind mount, the mount code will automatically add all directories to /mnt/media, for movies, music and shows. Which is different from what was said in this thread which was to first create the directories for each dataset in /mnt then bind mount each truenas dataset individually I then would have /mnt/media/Movies, /mnt/media/Music etc therefore //192.168.1.124/Music/ /mnt/media/Music cifs _netdev,x-systemd.automount,x-systemd.idle-timeout=3min,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=USER,pass=PASSWORD 0 0 in this case i would have to have such a line for each dataset (movies music shows). This makes sense to me and i would understand that it should solve my permission denied issue... Correct? Once again thank you all for this help RE: Jellyfin on proxmox - GrumpyNick - 2024-10-15 In short yes, you can map the shares however you'd like that guide is just an example of how the author did their setup. I also use TrueNAS and have a share for TV-Shows and one for Films so they require a mapping each. If you add more than one share/mapping to an LXC make sure to increment the device so the example has 'mp0' if you add another you'd need 'mp1' and so on. RE: Jellyfin on proxmox - wbravin - 2024-10-15 @GrumpyNick Thank for the confirmation I now deleted the LXC re created the lxc anew in the pve shell created mkdir -p /mnt/truenas nano /etc/fstab : this is the fstab <file system> <mount point> <type> <options> <dump> <pass> /dev/pve/root / ext4 errors=remount-ro 0 1 UUID=AA01-F313 /boot/efi vfat defaults 0 1 /dev/pve/swap none swap sw 0 0 proc /proc proc defaults 0 0 //192.168.1.24/Movies/ /mnt/truenas cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=root,pass=bikerdude30 0 0' ; } | tee> I only added the last line saved it mount /mnt/truenas and this is the output root@pve:~# mount /mnt/truenas mount: /etc/fstab: parse error at line 1 -- ignored mount: /etc/fstab: parse error at line 6 -- ignored mount: /mnt/truenas: can't find in /etc/fstab. root@pve:~# The line 1 error could be due ext4 ro=1 i do not know what line 6 error is however i find strange the /mnt/truenas can't find /etc/fstab once again thank you RE: Jellyfin on proxmox - GrumpyNick - 2024-10-15 Try the following.
//192.168.1.24/Movies/ /mnt/truenas cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=root,pass=bikerdude30,iocharset=utf8 0 0
|