Cannot run ls /dev/serial/by-id/ on PVE - No such file or directory (5.15.102-1-pve)

uihuizui

New Member
Mar 13, 2023
27
2
3
Hi,

I am running a Proxmox VE installed by iso image based on version 7.3 (https://www.proxmox.com/de/downloads/item/proxmox-ve-7-3-iso-installer).

uname -r shows
5.15.102-1-pve

I need to passthrough an USB Stick into a LXC and for this i need the unique name of the stick.
Usualy i get it by using "ls /dev/serial/by-id/" but when i run this on my PVE system it just shows "ls: cannot access '/dev/serial/by-id/': No such file or directory"

I found some threads about installing "linux-modules-extra" but this package seems to not be available to PVE and i was not able to find similar options.

Also some hints show up to install "apt-get install linux-headers-generic", i get a response:
Package linux-headers-generic is a virtual package provided by:
linux-headers-amd64 5.10.162-1
pve-headers-6.2 7.3-8
pve-headers-6.1 7.3-6
pve-headers-5.19 7.2-15
pve-headers-5.15 7.3-3
pve-headers-5.13 7.1-9
You should explicitly select one to install.

And decided to install "pve-headers-6.1 7.3-6" als 7.3-6 is the current used Proxmox version on my system.

But also nothing changed.

Can anybody help me to get a result from "ls /dev/serial/by-id/ " on the PVE host?

OR: Maybe another ID - as i only need the unique device name. Is it "device unique" or "device>system-unique"? An idea would be to start up the system with a live OS and to read the needed data. But i am not sure if the IDs und Unique name will be the same when starting the system with PVE.

Best Regards
 
Last edited:
I found some threads about installing "linux-modules-extra" but this package seems to not be available to PVE

As I told you here: [1], this package regards Ubuntu. (PVE is based on Debian (with a modified/extended Ubuntu-kernel).)

uname -r shows
5.15.102-1-pve
And decided to install "pve-headers-6.1 7.3-6" als 7.3-6 is the current used Proxmox version on my system.

Installing the headers for the 6.1 kernel makes also no sense, when you are actually using the current default 5.15 kernel.

I really doubt, that the kernel-headers will help with your problem, but if you still want to try it, install at least the corresponding ones for your used kernel: apt install pve-headers. This metapackage should (currently, because, as I said, 5.15 is the current default) pull in the pve-headers-5.15 metapackage and that in turn the actual pve-headers-5.15.102-1-pve package.

Did you already try USB-passthrough to a VM? If this works for your scenario without hassle, consider simply using a VM, instead of a LXC...

[1] https://forum.proxmox.com/threads/sonoff-zigbee-3-0-no-serial-id.109926/post-541700
 
Did you already try USB-passthrough to a VM? If this works for your scenario without hassle, consider simply using a VM, instead of a LXC...
Thanks - i will check if the header install will change something. Also I will fix the kernel version.

I’ve tried to use a VM instead. I used Ubuntu server (22.04.2 LTS) but also cannot run the command in the vm - it end up in the same error message.