VirtualBox Wont recognize Sonoff ZigBee 3.0

This specific USB dongle is by the way discussed here → ITead's "Sonoff Zigbee 3.0 USB Dongle Plus" (model "ZBDongle-P") based on Texas Instruments CC2652P +20dBm radio SoC/MCU

Are you running Home Assistant Operating System (HA OS, formerly HASSIO) in a VM in VirtualBox? Or are you running a different Linux distribution and other type of Home Assistant installation?

Not sure if needed when running the USB port in pass-through mode to a VM in VirtualBox under Windows 10 but normally when wanting to access the adapter direct under Windows 10 you would need to install drivers:

https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers

You absolutely want to use a very long USB extension cable and not connect it to USB 3.0 ports. Read:

https://github.com/home-assistant/home-assistant.io/pull/18864

Another reason for using a USB extension cable is that the USB-plug design of ITead’s Sonoff Zigbee 3.0 USB Dongle Plus hardware adapter is a little short which makes it harder and sometimes impossible to plug it into some USB ports if the computer enclosure/chassis/casing is to thick around the USB-port as that will physically prevent the USB dongle from actually making a proper connection inside the USB port even if it looks like it is plugged in all the way that is possible.

So it’s really hard for me to tell you guys how I solved it, I restarted everything, then I still had the same problem, so I restarted everything again, and again, a few times more, then when I lunched the VM
I heard the sound of the USB device being disconnected and then it appears in HA.
So it is working now, No idea what solved it. But apparently, I am an IT specialist now. :smiley:

Great! Just make sure Windows doesn’t power down the stick when the VM is not running.

2 Likes

All the ports on my server are 3.0 and 3.1 (all blue), I’m not running any external drives so perhaps that the reason I’ve not seen any issues… (Yet)

FYI, you can “convert” a USB 3.x port to a USB 2.0 for it by using a powered USB 2.0 hub

1 Like

Hi Guys,

I’m very new to this. Moved from ST.

I’m running a VM in VirtualBox, on Debian Linux 11. HA is up and running fine but i can’t get the Sonoff zigbee USB to show up in the USB section of the VM?

Any ideas?

Do i need to find and install Linux drivers first?

Thanks

Depending on the operating system in the VM you may need to install Linux driver inside OS on the VM.

You should not need to install drivers on the OS running the hypervisor with the VM as all that should to is pass through for the USB port.

Why not try HAOS instead first if moving from SmartThings?

https://www.home-assistant.io/installation/

Using the Home Assistant Operating System will make updatin releases much easier and will make it act more like an appliance similkar to a commercial smart home hub.

Hi Hedda,

I managed to get it working. I had to intall the extension pacakge for Virtual Box and follow the insructions from there.

I’m using the PC as a media PC also, so i dont think HA os is an option really.

Thanks for your help.

It is an option for you though - you run your PC as the media server, and also run VirtualBox already. So your could easily run HAOS as your VM guest, directly under your VirtualBox. This is what Hedda meant to convey.

This likely removes overhead to the full Debian, and most likely a lot of time down the road, just to keep your Debian + HA VM everything together.

(And with HAOS as the VM guest, you would not need any extension package.)

1 Like

Exactly, I indeed meant that you should try to run “Home Assistant Operating System” in a VM as guest OS directly under your VirtualBox, there is even a pre-made image for it → https://www.home-assistant.io/installation/linux

Ok guys apologies but I’m lost.

I’m running home os inside virtual box running on ubuntu. (Tried Debian and didn’t like it sorry)

I guess the bit I’m missing is the guest os setup os?

In the future, the method that always works for me is to add the USB stick in virtualbox. Then remove the stick and shut down the virtual machine. While it is off, plug the stick back in. Then start the VM.

Unclear what you mean by "home os ", you saying that running “Home Assistant Operating System”?

Please understand that the correct terminology and exact names of all stuff is very important for clarity.

Example “Home Assistant Operating System” is the “Guest OS” running inside the virtual machine:

  • Physical Computer → Ubuntu Linux → VirtualBox → VM → “Home Assistant Operating System”.
1 Like

Hi Hedda,

Yes that’s correct.

I just wasn’t aware the VM was the ‘guest’ os

I run my HA on a NUC with proxmox, very strange the Dongle is not seen. I did a reflash on a different windows macvhine, and the flashing was success, the dongle exist. But when I insert it in the NUC USB it is not seen, no matter what I do (the USB port works well, if I put a Conbee is immediately seen, I remove the Conbee, put the SOnoff … puff nada, not seen at all)

It’s been a while since I had this issue but it was with the sonoff USB 3.0

I had to “patch” virtual box to work with USB 3.0.

Then create a filter.

VM on Windows 10:
Solved it by deleting the windows sonoff com port driver. After turning it off and on again :smile: virtualbox got the hardware in windows and created a virtualbox usb-device.

THIS. That checkbox did the trick for me. I didn’t even have to switch back to USB2.0
Thank you !

1 Like

Had a similar problem, after migrating from HAOS to a VM using VirtualBox, HA was not listing the USB devices and could not bridge the Sonoff Zigbee 3.0 stick to the VM. It was just a matter of reading the error that was showing on the HA VM, my linux user was not added to the vboxusers, just followed this link and got it working!

sudo usermod -a -G vboxusers $USER

How to add users to vboxusers to enable USB usage