• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Jellyfin on proxmox

    Pages (6): « Previous 1 2 3 4 5 6 Next »

     
    • 0 Vote(s) - 0 Average

    Jellyfin on proxmox

    final server installation
    madsepperl
    Offline

    Junior Member

    Posts: 12
    Threads: 0
    Joined: 2024 Aug
    Reputation: 0
    Country:Germany
    #11
    2024-10-14, 07:52 AM
    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
    wbravin
    Offline

    Member

    Posts: 94
    Threads: 20
    Joined: 2023 Sep
    Reputation: 0
    Country:Italy
    #12
    2024-10-14, 09:14 AM (This post was last modified: 2024-10-14, 09:15 AM by wbravin.)
    @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
    Servers: Dell r720 128gb ram  2x 5690  24tb HGST
    Supermicro x10 32 gb ram 1 X 5675   20TB HGST
    Proxmox on all machines hosting OPNsense Home Assistant OS Truenas scale with Jellyfin  in a jail in truenas   
    I still say to use less internet and use more cabernet (responsibly (only if driving))
    be well now


    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #13
    2024-10-14, 03:50 PM
    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
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    madsepperl
    Offline

    Junior Member

    Posts: 12
    Threads: 0
    Joined: 2024 Aug
    Reputation: 0
    Country:Germany
    #14
    2024-10-14, 06:28 PM
    Hi wbravin,

    we're getting closer now Smiling-face

    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
    //192.168.1.124/Music /mnt/Music cifs credentials=/.smbcred,x-systemd.automount,iocharset=utf8,rw,file_mode=0777,dir_mode=0777,vers=3 0 0
    //192.168.1.124/Shows /mnt/Shows cifs credentials=/.smbcred,x-systemd.automount,iocharset=utf8,rw,file_mode=0777,dir_mode=0777,vers=3 0 0
    wbravin
    Offline

    Member

    Posts: 94
    Threads: 20
    Joined: 2023 Sep
    Reputation: 0
    Country:Italy
    #15
    2024-10-15, 07:13 AM (This post was last modified: 2024-10-15, 07:14 AM by wbravin.)
    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
    Servers: Dell r720 128gb ram  2x 5690  24tb HGST
    Supermicro x10 32 gb ram 1 X 5675   20TB HGST
    Proxmox on all machines hosting OPNsense Home Assistant OS Truenas scale with Jellyfin  in a jail in truenas   
    I still say to use less internet and use more cabernet (responsibly (only if driving))
    be well now


    GrumpyNick
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:United Kingdom
    #16
    2024-10-15, 09:21 AM
    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/tutori...es.101795/

    For moving the container between hosts you need to add "shared=1" to the mounts within the container conf file.
    wbravin
    Offline

    Member

    Posts: 94
    Threads: 20
    Joined: 2023 Sep
    Reputation: 0
    Country:Italy
    #17
    2024-10-15, 10:18 AM (This post was last modified: 2024-10-15, 10:21 AM by wbravin. Edited 1 time in total.)
    @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
    Servers: Dell r720 128gb ram  2x 5690  24tb HGST
    Supermicro x10 32 gb ram 1 X 5675   20TB HGST
    Proxmox on all machines hosting OPNsense Home Assistant OS Truenas scale with Jellyfin  in a jail in truenas   
    I still say to use less internet and use more cabernet (responsibly (only if driving))
    be well now


    GrumpyNick
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:United Kingdom
    #18
    2024-10-15, 11:32 AM
    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.
    wbravin
    Offline

    Member

    Posts: 94
    Threads: 20
    Joined: 2023 Sep
    Reputation: 0
    Country:Italy
    #19
    2024-10-15, 12:00 PM (This post was last modified: 2024-10-15, 12:39 PM by wbravin. Edited 1 time in total.)
    @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
    Servers: Dell r720 128gb ram  2x 5690  24tb HGST
    Supermicro x10 32 gb ram 1 X 5675   20TB HGST
    Proxmox on all machines hosting OPNsense Home Assistant OS Truenas scale with Jellyfin  in a jail in truenas   
    I still say to use less internet and use more cabernet (responsibly (only if driving))
    be well now


    GrumpyNick
    Offline

    Junior Member

    Posts: 8
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:United Kingdom
    #20
    2024-10-15, 01:46 PM
    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
    Pages (6): « Previous 1 2 3 4 5 6 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode