HA wont locate Zigbee USB - Has been add in VM

I’ve had this running before without any issues. i had to delete and reinstall VirtualBox and I now just cannot get the Zigbee USB recognised in HA. Everything else is working exactly as it was prior to the rebuild.

I am running HA supervisor in a VirtualBox
Zigbee2MQTT with Sonoff Zigbee USB linked into the VM
Issue - HA will not locate the USB, even with it in VM passthrough


Log for zigbee2mqtt
Zigbee2MQTT fails to start | Zigbee2MQTT for possible solutions
Zigbee2MQTT:error 2023-11-21 22:24:11: Exiting…
Zigbee2MQTT:error 2023-11-21 22:24:11: Error: Error while opening serialport ‘Error: Error: No such file or directory, cannot open /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_f0dd4bbaf59cec11b021654d73138bba-if00-port0’
at SerialPort. (/app/node_modules/zigbee-herdsman/src/adapter/z-stack/znp/znp.ts:146:28)
at SerialPort._error (/app/node_modules/@serialport/stream/dist/index.js:82:22)
at /app/node_modules/@serialport/stream/dist/index.js:118:18

it does not appear under hardware

I have tried the online solutions I can find such as
With the dongle.
Start the VM and home assistant
Add the dongle to a usb port
In the Virtualbox USB settings, add the dongle.
Remove the dongle from the usb port. Take note of what port
Shut down the VM
Inset the dongle back into the SAME usb port
Start the VM and home assistant.
You should be able to see the dongle in the home assistant hardware list.

with no luck.

Any ideas would be greatly appreciated.
thanks

VirtualBox have issues with USB devices in VMs.
Well, actually many Windows hypervisors have that issue.

Search the forum and you will find a long list of users with that problem and the solution is to use a hypervisor based on another system.
Windows desktop OSes are not the best for hypervisors due to the frequent updates and restarts and the lack of supported guestOS utilities in HA.

use vmware :stuck_out_tongue:

Try the USB 2.0 port.

Just adding a positve comment:
I got my Sonoff zigbee stick running stable in my windows virtalbox :wink:
Very seldom (like after an unplanned restart because of a forced microsoft update …) i have to check an maybe reattach the connection.

or use an usb hub with external power :wink:

Or, use an ethernet Zigbee device like SLZB-06 Zigbee Ethernet PoE LAN USB WiFi Adapter CC2652P | Zigbee2MQTT | Home Assistant | SMLIGHT | SMLIGHT Official Homepage

If I use one one of these, I assume that will require a total rebuild of my zigbee network?

Yep done thay

If you can’t get your current stick working, that is also the case.

Well this is true. Given Ive previously had it working flawlessly Im at a loss.

Everything seems to be working on the VM side, it just getting HA to pick it up. As I said I know it can because it has before. Im.wondering if it has something to do with it already being there, then when I reinstalled the VirtualBox. Somehome HA remembering the old passthrough and wont pickup the new one because its looking for the old one. I have no idea… its just weird it worked.so well the first time but not now. Maybe Ive missed a setting somewhere.on the VM, but i loaded a snapshot where everything was last working

From a quick search … did you install the Virtualbox Extension Pack?

Enabling VBox USB Passthrough to Access Devices (adamtheautomator.com)

Yep that is installed and running?