this post was submitted on 17 Sep 2023
7 points (100.0% liked)

Proxmox

1061 readers
1 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
 

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.

top 5 comments
sorted by: hot top controversial new old
[–] walden@sub.wetshaving.social 1 points 1 year ago (1 children)

Is the VM using the USB drive at the same time?

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

No, I have an extra USB drive to test it out.

[–] ThorrJo@lemmy.sdf.org 1 points 1 year ago (1 children)

FWIW, I ended up just using a VM when probems like this would inevitably crop up with LXCs running software which goes too far off the garden path so to speak. My knowledge is a lil dated as I set most of my shit up about 2 years ago but at that time I got the distinct impression that LXCs were not fully-baked for running a number of things. Mostly I absorbed that info from reading the Proxmox forum. I'd love to hear if it's improved since 2021.

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

No idea. I'm new to proxmox and Linux by about 2 weeks, so I'm mainly just trying to learn. I figured since the tteck script sets up a LXC, it would be possible, but I can't really find any record of someone else doing it.

[–] makingrain@lemmy.world 1 points 1 year ago

LXC and USB drives will give you problems. It'd be easier to run OMV as a VM and then pass the USB through in Proxmox web UI.