-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB Device Passthrough not working #48
Comments
same here with ConBee II... |
i'm stuck at these point:
The Stick is mounted to the VM using "USB Vendor/Device ID" - but i also tried "use USB port" instead of device On the client-vm, neigther the USB-Device nor the ttyACM0 appears |
i think i got it working after digging through the whole internet :-) you have to pass the hosts-serial manually to the VM to make it working... (Inspired by this thread)
that passes the Conbee2 to the VM - but it will be mapped to /dev/ttyS0 inside the VM
If there is an easier way, let me know - i'm very interessted in... |
same issue here, thing but with a USB Camera |
USB passthrough worked for me "out of the box" but has random "resets" that kill the USB device inside the VM.
|
I had this also with my USB Flash Drive, the problem was that the drvie became to hot. Is this the case? |
@Sysadminfromhell I did a bit more testing and I believe its mainly power delivery. Im waiting for a power hub from amazon today to test again. My wifi usb is running on low tx power (I dont need to blast myself when Im next to it) so Im not sure if its really a power problem but there no excess heat for me. Check your USB power delivery. |
Yea I thought about it too, but I'm using a different (higher) power cord so I checked and saw that actually the pi used less then it could from the power adapter. So no worry's there. But when I tried to touch the USB it was super hot and refused even to work on my windows PC so I figured that it was simply hot for some reason. But sure thing on you it can be the power problem. Use a active usb hub and you should be fine. |
Im no advance Elec Eng but high heat = lots of Amps right? I think there is something wrong with the stick and requires more power. Measuring rPi power supply delivery might not be the right way. I read somewhere that rPi have a hard limit per USB port (and overall USB power limit). (Its my speculation at this point… Ill report back with the power hub testing) |
there seems to be different types of USB-Passthrough-problems.. But the problem described by this issue is, that a special type of USB-Adapters are not presented inside the VM (CONBEE is a usb to serial adapter).... So i would suggest not to mix these issues |
Yes I think pUSB passthrough has some issues as I did the same test on bare metal PI and the USB was ok (I have a test running for hours now (lets not jinx it!) What would be the best way to approach this and debug it? |
@daleksec197
or at UEFI CLI wit Machine at Default (i440fx). |
some month ago, hard to remember :-D--- |
Thanks @Dattel ! Will try it now inside VM from scratch by arm64-net.iso installation. |
Ok, in this way it works...! Thanks. |
yeah... i remembered, that installing HA in a CT is not supported, you definitely need a VM.. |
It appears that qemu can actually handle usb passthrough perfectly, but proxmox is unable to configure it properly. Instead of adding the device by proxmox's hardware page, just edit the vm conf file and do the passthrough through args |
Brilliant... |
Hi @Dattel , Already try your suggestion and it works like charm for activate the "Zigbee Home Automation" integration. But can not use for "Zigbee2Mqtt". Already change to /dev/ttyS0 for configuration.yaml in Zigbe2Mqtt addon but failed to start. Could you advise how to make this work for Zigbee2Mqtt ? |
Sadly not... |
Thanks. This method work very well. |
According to QEMU USB docs
You should use the first option, adding it twice, one per device instance. Bus and address could be determined by |
Hi. I tried it. They have same ID, so I can't use ID for passthrough lsusb -t I added below line at 100.conf but there is only one zigbee stack at sub os. |
@Dattel Hi, but it's impossible for me to launch the VM after adding the line "args:..."... any ideas ? |
Hi @darekxan Since the usb device passthrough is working well, is it possible the bluetooth built-in RPi module passthrough as well? Let you know below the bluetooth host is up and running well and need to passthrough to guest machine. root@myhome:~# hciconfig -a Could you help how to do it? Is it possible do the passthrough through args? and what's the complete command to use? Thank you |
@mr12obot According to these docs (🔎bluetooth) I would try adding: |
@darekxan already try adding the guest machine have error below: any complete command or could you help to tested it as well? |
Everything WORKING. THANKYOU!!! With zigbeemqtt |
Maybe "Your adapter requires additional configuration parameters. Check supported Adapters section to find out if your adapter requires extra parameters (eg. ConBee II / RaspBee II)."
|
I cannot seem to get my ConBee II working on HA. Using the same configuration with a pi3 and direct install of HAos works fine. |
Checkout the |
Hi, thank you it worked now. For anyone having problems, looking at how the lsusb command works helped me. So you add this line at the end of |
This worked for me BUT only when plugging my USB device into the Pi's USB 2.0 ports. No luck with USB 3.0 so far... Anyone have luck passing through usb 3? |
@mr12obot have you resolved an issue with passing built-in Bluetooth on Raspi 4 connected to UART? |
ty this worked! |
I installed Pimox on raspios_lite_arm64-2021-11-08-Image using the installer-script,
created a new machine configured like the example in docs/VM-configuration.md
and installed debian 11.2 using the current arm64-net.iso.
Everything works fine.
It was even possible to setup a working homeassistant-supervised-installation in this VM!
I tried to use the ConBee II USB Stick as well as some other USB Devices to pass through to the guest os but it is not recognized. In syslog it only tells me a speed mismatch but is trying to connect anyway.
I had to uncheck "use USB 3" otherwise it tries to connect to a pci device
.
The text was updated successfully, but these errors were encountered: