Bluetooth adapter not found on Home Assistant

leviackerman91

New Member
May 17, 2024
21
0
1
Hi! I'm having some issues with Bluetooth on Home Assistant VM.

The bluetooth is provided by a Mediatek 7922 Wifi card. When i shutdown the VM and start it again, in Home Assistant i get this message Setup failed, will try again: Bluetooth adapter None with address 78:93:C3:08:43:63 not found

If i restart Proxmox, everything works fine
 
Hi!

What is the output of lsusb on boot and after rebooting the VM? Is the bluetooth adapter passedthrough as a USB device? What is logged in the dmesg when the VM is rebooted?
 
How is the Bluetooth adapter passed through then? Are there any syslog entries?
 
How is the Bluetooth adapter passed through then? Are there any syslog entries?

to be honest i don't know, i just found out that rebooting the whole node make it works in home assistant, while rebooting the single VM doesn't.

i found this after rebooting the node

Code:
Apr 08 21:50:34 promox1 kernel: Bluetooth: Core ver 2.22
Apr 08 21:50:34 promox1 kernel: NET: Registered PF_BLUETOOTH protocol family
Apr 08 21:50:34 promox1 kernel: Bluetooth: HCI device and connection manager initialized
Apr 08 21:50:34 promox1 kernel: Bluetooth: HCI socket layer initialized
Apr 08 21:50:34 promox1 kernel: Bluetooth: L2CAP socket layer initialized
Apr 08 21:50:34 promox1 kernel: Bluetooth: SCO socket layer initialized

and this is the log after rebooting Home Assistant VM

Code:
Apr 08 21:55:06 promox1 qmeventd[6728]: Finished cleanup for 101
Apr 08 21:55:06 promox1 qmeventd[6728]: Restarting VM 101
Apr 08 21:55:06 promox1 pvedaemon[1113]: <root@pam> end task UPID:promox1:000019A9:00006F0D:67F57F10:qmreboot:101:root@pam: OK
Apr 08 21:55:06 promox1 qm[6728]: <root@pam> starting task UPID:promox1:00001A4C:000072F1:67F57F1A:qmstart:101:root@pam:
Apr 08 21:55:06 promox1 qm[6732]: start VM 101: UPID:promox1:00001A4C:000072F1:67F57F1A:qmstart:101:root@pam:
Apr 08 21:55:06 promox1 systemd[1]: Started 101.scope.
Apr 08 21:55:06 promox1 kernel: tap101i0: entered promiscuous mode
Apr 08 21:55:06 promox1 kernel: vmbr0: port 3(tap101i0) entered blocking state
Apr 08 21:55:06 promox1 kernel: vmbr0: port 3(tap101i0) entered disabled state
Apr 08 21:55:06 promox1 kernel: tap101i0: entered allmulticast mode
Apr 08 21:55:06 promox1 kernel: vmbr0: port 3(tap101i0) entered blocking state
Apr 08 21:55:06 promox1 kernel: vmbr0: port 3(tap101i0) entered forwarding state
Apr 08 21:55:06 promox1 qm[6732]: VM 101 started with PID 6745.
 
Last edited:
I read in this thread, that WiFi is provided over the PCIe bus and Bluetooth over the USB controller

this is the output for lspci
Code:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
03:00.0 Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
04:00.0 Non-Volatile memory controller: MAXIO Technology (Hangzhou) Ltd. NVMe SSD Controller MAP1202 (rev 01)
05:00.0 Non-Volatile memory controller: Shenzhen Longsys Electronics Co., Ltd. Lexar NM610 PRO NVME SSD (DRAM-less) (rev 01)
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo (rev c1)
06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
06:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
06:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
06:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller

lsusb returs nothing

is this right?
 
any idea guys? This is driving me crazy. I have to manually reboot the node everyday because after the backup (snapshot mode) the Home Assistant VM can't bind the bluetooth (the one from the wifi and a usb dongle). I've tried several things with the help of chatgpt, like blacklisting the bluetooth, use a script to bind before the vm starts, but nothing seems to work