3
submitted 1 year ago by alexrmay91@lemm.ee to c/proxmox@lemmy.world

For starters, I'm ultra new to proxmox and linux. I have my old PC running proxmox in the corner of my room so I can play around and learn it.

I have my main server (running Windows) sharing an attached hard drive as a samba share for other computers on my network. I can't seem to mount this share in a fresh LXC, but I can in a PlexMediaServer LXC I created using tteck helper scripts. I'll just attach what I'm doing below. Both are using the same container template (Ubuntu 22.04).

Plex LXC

root@plex:~# mkdir -p /mnt/wddrive
root@plex:~# mount -t cifs //192.168.1.3/Media /mnt/wddrive -o username=myusername,password=mypassword
root@plex:~# ls -la /mnt/wddrive
total 73409600
drwxr-xr-x 2 root root        4096 Sep  2 13:48  .
drwxr-xr-x 3 root root        4096 Sep  3 13:40  ..
-rwxr-xr-x 1 root root       14340 Jul  8 08:15  .DS_Store
drwxr-xr-x 2 root root           0 Jul  5 16:50  Books
drwxr-xr-x 2 root root           0 Jun  1 14:53  Financial
drwxr-xr-x 2 root root           0 Aug 24 08:20 'HOA Documents'
drwxr-xr-x 2 root root           0 Aug 26 13:09  Movies
-rwxr-xr-x 1 root root      414702 Jul  8 10:37  PXL_20220114_214638675.PORTRAIT.jpg
drwxr-xr-x 2 root root           0 Sep  2 13:55 'Plex Lib Files'
drwxr-xr-x 2 root root           0 Aug 31 16:32 'TV Shows'
-rwxr-xr-x 1 root root       17408 Jul 14 19:42  Thumbs.db
-rwxr-xr-x 1 root root    53934080 Aug 31 18:36  com.plexapp.plugins.library.db
-rwxr-xr-x 1 root root         420 Mar 15 20:38 'make show folders.bat'
-rwxr-xr-x 1 root root      173497 Jul  8 10:28  photo_2023-05-20_20-34-59.jpg
-rwxr-xr-x 1 root root        3252 Aug 31 18:41 'plex reg.reg'
-rwxr-xr-x 1 root root 53243232462 Nov 27  2022  takeout-20221128T031130Z-001.zip
-rwxr-xr-x 1 root root 21873610486 Nov 27  2022  takeout-20221128T031130Z-002.zip
root@plex:~# 

Fresh LXC Spinup

root@testcontainer:~# mkdir -p /mnt/wddrive
root@testcontainer:~# mount -t cifs //192.168.1.3/Media /mnt/wddrive -o username=myusername,password=mypassword
mount: /mnt/wddrive: permission denied.
root@testcontainer:~# ls -la /mnt/wddrive
total 8
drwxr-xr-x 2 root root 4096 Sep  3 20:42 .
drwxr-xr-x 3 root root 4096 Sep  3 20:42 ..
root@testcontainer:~# 

I think it's pretty obvious that I have a problem with permissions on the bare LXC that I don't with whatever that script is going to set up the LXC and install Plex for me. I'd like to be able to mount network shares as easily as this on all my other LXCs as well. Can anyone point me in the right direction?

top 3 comments
sorted by: hot top controversial new old
[-] HybridSarcasm@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

Is the LXC privileged or not?

[-] alexrmay91@lemm.ee 3 points 1 year ago

I just checked and the Plex container options say "unprivileged container: no"

So that seems to be it. I've only been trying with proxmox for a few days so all I've read about this is "don't do it, it's less secure". I don't really understand much about it yet.

But you helped me realize why that's happening, thank you.

[-] alexrmay91@lemm.ee 1 points 1 year ago

The code is formatted pretty poorly on my mobile app, so here are some screenshots of the console:

Plex LXC

Fresh LXC

this post was submitted on 03 Sep 2023
3 points (100.0% liked)

Proxmox

1052 readers
3 users here now

Proxmox VE is a complete, open-source server management platform for enterprise virtualization. It tightly integrates the KVM hypervisor and Linux Containers (LXC), software-defined storage and networking functionality, on a single platform. With the integrated web-based user interface you can manage VMs and containers, high availability for clusters, or the integrated disaster recovery tools with ease.

Proxmox VE Official site

K3S on Proxmox LXC

founded 1 year ago
MODERATORS