So, I got the hardware Bluetooth controller working again. Very weird issue with the Asus TUF Gaming X570 Plus Wifi. It required powering off, unplugging the PSU, waiting a while, plugging the PSU back on, holding the power button, which reset the CMOS. At which point I restored the previous BIOS settings from my USB stick. And voilà, Bluetooth controller is showing again in Device Manager.
And the controller still works in my VM if I start it from the GUI. But it does not show anything about Bluetooth in the USB controller screen.
Despite the absence of this Bluetooth setting, it shows up just fine in my HAOS VM, as long as I start it from the GUI. If I start it from the VMWare autostart service, it doesn't get attached to the VM.
I monitored the Device Manager while the service was starting. I saw the Bluetooth category completely disappear, then reappear, then disappear agian, and on and on. It seems like the VM is trying to attach to use the controller, but failing, and it is releasing it back to the Windows host. And then the VM gets it back, and keeps trying again, and it gets released, and so on. That is my theory, anyway.
I know I can use the startup folder to start the VM from the GUI instead of the service, and the Bluetooth will then just work. I don't like that option, because Windows has a tendency to run updates that will sometimes prevent the desktop from coming up without user input. My HAOS VM runs a lot of automation in my home, and I don't want it to go down because of an update, especially if I am away, as I use HAOS remotely for monitoring. So, the Windows service is the way to go for me, as it runs before the desktop. I have also configured all my other daemons as Windows services, even those that didn't support it, using NSSM.
Maybe I need to switch OS and run all this on Linux instead of Windows, but it will be a lot more work to reconfigure everything. And I have a nearly full 5x4TB (20TB) NTFS stripe that will need to be backed up and restored onto a ZFS stripe instead. My NAS has enough space, and the network is 10 Gbps, but it is still a PITA. I would much rather solve this Bluetooth problem and not have to go through all that trouble.
