From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id C8F9587041 for ; Wed, 29 Dec 2021 11:01:29 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B49CCDE58 for ; Wed, 29 Dec 2021 11:00:59 +0100 (CET) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 78B0DDE4B for ; Wed, 29 Dec 2021 11:00:57 +0100 (CET) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 7FFAC3200DA8; Wed, 29 Dec 2021 04:55:28 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 29 Dec 2021 04:55:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heiber.me; h= from:content-type:content-transfer-encoding:mime-version:subject :message-id:date:to; s=mesmtp; bh=b5nY+eDQeKTX+zyizoNgMuVqlB84Q5 u0m9iwAKAqX7I=; b=CaaCw+c5rL3+rIklr29Wa5YWKstt2AWAOZYJC5+OgbJsTy dJf7g5BjsKbnIs5u+tdnUHUD8/9yEOgyD17Yh0xUY005Nfq5RhKsTbcbcVVgiHL0 EGl0HuxJEX3OFfYomrLSSo/I+0yrX7+augRxtX7dT6S7gzu4POb2QOHRWZx1Y= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=b5nY+e DQeKTX+zyizoNgMuVqlB84Q5u0m9iwAKAqX7I=; b=NM/Cn4HA683KOxae80eY/t adfuoSRXcUQu416oJV0cBYXNUE8o3omtaI/u5Y6wEnxalUvnRV6/p2C1TKgfvlPE TLSAtrQNp/pFK2C9KDUfqfVy0pHViA/4VdgShW7Ds8QwnEAbY1r5wa2CjlQomLud KB4HRUEgyQn3t6ezC2PTZK4/nrkUakA752v1FtvM5y5+FDYBUBFN6r/HVZ539rW0 JU/AEy0LssN6wRNtxDaeOr+beAdm+0llW9zE36M4awf2lJzZL/bnolhfXrp9He9q scP0UFwEH1LKP1TLMs/sL7cFTZiAByqxavdBx4Lf7SCW/aNh94OZBpBZZCY7xcMg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddvuddgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffohhmrghinhculdegledmne cujfgurhephfgtgfgguffkfffvofesthhqmhdthhdtjeenucfhrhhomhephfhlohhrihgr nhcujfgvihgsvghruceofhhlohhrihgrnheshhgvihgsvghrrdhmvgeqnecuggftrfgrth htvghrnhepjedvgeekheetjefhieetjeefveetudekkeduleffgffgffejteeuteevhfet hfefnecuffhomhgrihhnpehgihhthhhusgdrihhopdguvghvihgrnhhtrdgvnhhgihhnvg gvrhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehf lhhorhhirghnsehhvghisggvrhdrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 29 Dec 2021 04:55:27 -0500 (EST) From: Florian Heiber Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.20.0.1.32\)) Message-Id: Date: Wed, 29 Dec 2021 10:55:26 +0100 To: pve-user@lists.proxmox.com X-Mailer: Apple Mail (2.3693.20.0.1.32) X-SPAM-LEVEL: Spam detection results: 0 AWL 1.100 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain KAM_INFOUSMEBIZ 0.75 Prevalent use of .info|.us|.me|.me.uk|.biz|xyz|id|rocks|life domains in spam/malware RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust RCVD_IN_MSPIKE_H3 0.001 Good reputation (+3) RCVD_IN_MSPIKE_WL 0.001 Mailspike good senders SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_NONE 0.001 SPF: sender does not publish an SPF Record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [deviant.engineer, messagingengine.com, github.io, heiber.me] Subject: [PVE-User] USB device passthrough X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Dec 2021 10:01:29 -0000 Hi all, I=E2=80=99m trying to pass multiple USB devices from my host through = into my container. I=E2=80=99ve followed a few tutorials ([1], [2]) that = describe the process, but I can=E2=80=99t 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=E2=80=99s 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=3Dfile= 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=20 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=E2=80=99m missing here? One point I=E2=80=99m 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, =E2=80=93 Florian [1]: = https://drozmotix.github.io/languages/en/BasicSetup/03.ProxmoxLXC.html#wha= t-is-lxc [2]: https://deviant.engineer/2016/11/lxc-passthrough/