Spyke

Posts

Trying to set up openmediavault as an LXC. Having trouble getting the container to see an external USB drive.

I've followed this guide after setting up an openmediavault LXC using a tteck script. I want to run this container as unprivileged and haven't been able to get it to see my external USB drive.

Things I've tried:

  1. Using the actual minor number for the device instead of *
  2. Using cgroup2 instead of cgroup
  3. changing create=file to create=dir
  4. A privileged container

Maybe I'm missing a step after following this guide? To check my success, I go into the Storage→Disks section of openmediavault and see that nothing is listed there. Clicking the 'Scan for new devices' icon results in a 500 - Internal Server Error.

Maybe this guide is horribly outdated? It states: "Note: lsusb will not work inside the container because there are no devices there yet" but I am able to install usbutils and lsusb to see all USB devices on my host from within the LXC console.

I'm running omv as a VM currently while I try to figure this out. If I remember correctly, all I had to do was use the proxmox GUI to add the USB device to the VM in the hardware section, then omv was able to see the drive and interact with it just fine.

View original on lemm.ee

Having trouble mounting SMB shares in LXC

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?

View original on lemm.ee

I'm a beginner and want to use Proxmox. What should I use to make a USB hard drive accessible to other devices on my network?

I have a mini-PC running windows. On that, I run home assistant in virtualbox, have plex installed, and a cheap USB harddrive plugged in to keep my plex media. I've turned on sharing for a folder in this drive so other devices on my network can access it.

I've watched some videos and read some tutorials. I have a pretty good idea on how I'm going to run HA and Plex, but I'm unsure about turning my USB drive into something the rest of my devices can access as well as something Plex can directly access too.

What would you recommend as the most beginner friendly, easy way to accomplish this? I keep seeing TrueNAS pop up, but I'm not convinced this isn't way overkill for what I want to do. So what would you recommend I look at to start out? The amount of information and things I don't know yet is a little overwhelming.

After I get more familiar with the system, I'm totally happy to branch out and try more advanced things that most people prefer, but that's down the road for me now.

Edit: to be clear, I'm planning on completely ditching windows and setting everything back up in proxmox

View original on lemm.ee

Help finding a replacement for these dimmer+fan wall switches?

I'm in the US. My wife and I are moving into a new-build community in Feb. next year and they are using these wall controls for the rooms with lights and a fan.

I'm having a little trouble finding a home assistant compatible replacement. The 1-gang width probably limits my options severely. I'm open to converting these to 2-gang, so I'm open to 2-gang devices as well.

Zigbee is is my preference, then WiFi (local only), and I'm not interested in z-wave.

View original on lemm.ee

You reached the end