all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PVE-User] USB device passthrough
@ 2021-12-29  9:55 Florian Heiber
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Heiber @ 2021-12-29  9:55 UTC (permalink / raw)
  To: pve-user

Hi all,

I’m trying to pass multiple USB devices from my host through into my container. I’ve followed a few tutorials ([1], [2]) that describe the process, but I can’t get it to work.

What have I done?

I have connected the USB devices to my host. I can confirm that they work via /dev/ttyUSB0, etc. I created a udev rule to consistently have them available as /dev/reader0, etc. I can also confirm that I can use those aliases as if I was using the original device. I consider this a success.

I updated the container’s configuration at, in this case, /etc/pve/lxc/109.conf to include my mount points:

lxc.cgroup.devices.allow: c 7:* rwm
lxc.mount.entry: /dev/reader0 dev/reader0 none bind,optional,create=file

After a reboot of the container, the device appears as configured. Unfortunately, I looks like I have some issues with my permissions. When I try to print out the data coming from the reader, I only see a 

florian@datalogger:~$ cat /dev/reader0 | od -tx1
cat: /dev/reader0: Permission denied
0000000

This does, however, work as expected when I run this on the host itself.

Does anyone see what I’m missing here? One point I’m not too sure about is the major part in the lxc.cgroup.devices.allow line. I suppose it should reflect the major part of the device I'm trying to expose, but some tutorials used the one of the original device (/dev/ttyUSB0 in my case, 188) here.

Thank you for your time!

All the best,
– Florian

[1]: https://drozmotix.github.io/languages/en/BasicSetup/03.ProxmoxLXC.html#what-is-lxc
[2]: https://deviant.engineer/2016/11/lxc-passthrough/




^ permalink raw reply	[flat|nested] 2+ messages in thread
[parent not found: <mailman.404.1640776473.300.pve-user@lists.proxmox.com>]

end of thread, other threads:[~2021-12-30 10:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-29  9:55 [PVE-User] USB device passthrough Florian Heiber
     [not found] <mailman.404.1640776473.300.pve-user@lists.proxmox.com>
2021-12-30 10:45 ` Florian Heiber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal