Page 1 of 2

[Solved] [Ticket #16806] No Bluetooth Adapter found

Posted: 2. Jun 2017, 12:30
by MachoMan
I am using Ubuntu 16.04 on VirtualBox 5.1.10. Bluetooth is working fine on Host Machine(Windows 10 E-64) but on VB Ubuntu it is not working. In Ubuntu System Setting -> Hardware -> Bluetooth, it is not showing any adapter. Please advise how to fix this issue.
bluetooth.png
bluetooth.png (20.24 KiB) Viewed 18944 times
devicemanager.png
devicemanager.png (34.76 KiB) Viewed 18944 times

Re: No Bluetooth Adapter found

Posted: 2. Jun 2017, 12:36
by towo2099
VBox never shows hardware of the host!

Re: No Bluetooth Adapter found

Posted: 2. Jun 2017, 12:45
by MachoMan
After Running below commands, is is showing inactive dead. Please advise

sudo /etc/init.d/bluetooth start
[ ok ] Starting bluetooth (via systemctl): bluetooth.service.

sudo /etc/init.d/bluetooth status
bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)

hciconfig
(Empty)

Re: No Bluetooth Adapter found

Posted: 2. Jun 2017, 12:46
by towo2099
Again, your VM has no bluetooth hardware!

Re: No Bluetooth Adapter found

Posted: 2. Jun 2017, 12:58
by MachoMan
Please advise how to add Bluetooth Hardware to VB.
Bluetooth-hardware.jpg
Bluetooth-hardware.jpg (83.25 KiB) Viewed 18940 times

Re: No Bluetooth Adapter found

Posted: 2. Jun 2017, 13:55
by socratis
@MachoMan
There is no "real" Bluetooth hardware. All Bluetooth adapters are in a sense USB devices, a special class of USB devices that show up as "Bluetooth". So the question now becomes: "How do I capture my USB Bluetooth adapter in the guest?"

Please read the following: USB basics and troubleshooting. Unfortunately your Bluetooth adapter falls under the category "Uncapturable", which means that you have to stop the Bluetooth daemon/service from starting in your Windows, or to stop it temporarily.

Please make sure you read all the posts in the link that I gave you. It's not easy, but I will not be answering questions that are covered there, I hope you understand the reasoning.

Re: No Bluetooth Adapter found

Posted: 2. Jun 2017, 14:26
by MachoMan
I am disabling RealTek Bluetooth 4.0 Adapter from Device Manager and after that RealTek Bluetooth Radio [200] is appearing in Devices -> USB. It is giving below error
Failed to attach the USB device Realtek Bluetooth Radio [0200] to the virtual machine POS Development.

USB device 'Realtek Bluetooth Radio ' with UUID {1ba2f217-c57a-4359-a044-a7e19514ede2} is busy with a previous request. Please try again later.

Result Code: E_INVALIDARG (0x80070057)
Component: HostUSBDeviceWrap
Interface: IHostUSBDevice {c19073dd-cc7b-431b-98b2-951fda8eab89}
Callee: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

--------------------------------------------------------------
VirtualBox:~$ lsusb
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
VirtualBox:~$
VirtualBox:~$
VirtualBox:~$ sudo /etc/init.d/bluetooth status
[sudo] password for minhaj:
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)
VirtualBox:~$
VirtualBox:~$ sudo /etc/init.d/bluetooth start
[ ok ] Starting bluetooth (via systemctl): bluetooth.service.
VirtualBox:~$ sudo /etc/init.d/bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:bluetoothd(8)
VirtualBox:~$

Please advise how to fix it

Re: No Bluetooth Adapter found

Posted: 2. Jun 2017, 14:31
by socratis
I didn't say to disable the device. I said to disable the SERVICE that grabs the device. The software still has a hold on the device, that's why you get:
MachoMan wrote:is busy with a previous request
Check the documents that I sent you again to see why...

Re: No Bluetooth Adapter found

Posted: 2. Jun 2017, 15:19
by MachoMan
After implementing steps advise in document, I still have the same issue. Device is enable from Device Manager Host Machine(Winodws 10 E-64Bit). Bluetooth Servive is disable from Services (Bluetooth Support Service, Bluetooth Handsfree Service). Please advise

Failed to attach the USB device Realtek Bluetooth Radio [0200] to the virtual machine POS Development.

USB device 'Realtek Bluetooth Radio ' with UUID {bc5049c3-b427-48ed-896b-dbbb1693ecdc} is busy with a previous request. Please try again later.

Result Code: E_INVALIDARG (0x80070057)
Component: HostUSBDeviceWrap
Interface: IHostUSBDevice {c19073dd-cc7b-431b-98b2-951fda8eab89}
Callee: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

Re: No Bluetooth Adapter found

Posted: 2. Jun 2017, 15:27
by socratis
Something is still using the device. Maybe you need to stop/disable/kill more services. I don't know which one. Open a Command Prompt and post the output of the command:
  • net start
BTW, when we first met in the Bugtracker and I pointed you to the forums, I asked you to include the ticket number, so when this is resolved, the ticket can be closed. You forgot that part: ticket 16806: No Bluetooth Adapter found.

Re: No Bluetooth Adapter found

Posted: 2. Jun 2017, 15:34
by MachoMan

Code: Select all

sudo net start
Invalid command: net start
Usage:
net rpc             Run functions using RPC transport
net rap             Run functions using RAP transport
net ads             Run functions using ADS transport
net file            Functions on remote opened files
net share           Functions on shares
net session         Manage sessions
net server          List servers in workgroup
net domain          List domains/workgroups on network
net printq          Modify printer queue
net user            Manage users
net group           Manage groups
net groupmap        Manage group mappings
net sam             Functions on the SAM database
net validate        Validate username and password
net groupmember     Modify group memberships
net admin           Execute remote command on a remote OS/2 server
net service         List/modify running services
net password        Change user password on target server
net changetrustpw   Change the trust password
net changesecretpw  Change the secret password
net setauthuser     Set the winbind auth user
net getauthuser     Get the winbind auth user settings
net time            Show/set time
net lookup          Look up host names/IP addresses
net g_lock          Manipulate the global lock table
net join            Join a domain/AD
net dom             Join/unjoin (remote) machines to/from a domain/AD
net cache           Operate on the cache tdb file
net getlocalsid     Get the SID for the local domain
net setlocalsid     Set the SID for the local domain
net setdomainsid    Set domain SID on member servers
net getdomainsid    Get domain SID on member servers
net maxrid          Display the maximum RID currently used
net idmap           IDmap functions
net status          Display server status
net usershare       Manage user-modifiable shares
net usersidlist     Display list of all users with SID
net conf            Manage Samba registry based configuration
net registry        Manage the Samba registry
net eventlog        Process Win32 *.evt eventlog files
net printing        Process tdb printer files
net serverid        Manage the serverid tdb
net notify          notifyd client code
net help            Print usage information

Re: No Bluetooth Adapter found Ticket #16806

Posted: 2. Jun 2017, 15:59
by MachoMan
Bluetooth is working fine now... Thanks for your support & time.

Code: Select all

 sudo /etc/init.d/bluetooth status
[sudo] password for minhaj: 
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2017-06-02 17:53:37 GST; 14s ago
     Docs: man:bluetoothd(8)
 Main PID: 2543 (bluetoothd)
   Status: "Running"
    Tasks: 1
   Memory: 1.4M
      CPU: 11ms
   CGroup: /system.slice/bluetooth.service
           └─2543 /usr/lib/bluetooth/bluetoothd

Jun 02 17:53:37 minhaj-VirtualBox bluetoothd[2543]: Not enough free handles t...
Jun 02 17:53:37 minhaj-VirtualBox bluetoothd[2543]: Not enough free handles t...
Jun 02 17:53:37 minhaj-VirtualBox bluetoothd[2543]: Current Time Service coul...
Jun 02 17:53:37 minhaj-VirtualBox bluetoothd[2543]: gatt-time-server: Input/o...
Jun 02 17:53:37 minhaj-VirtualBox bluetoothd[2543]: Not enough free handles t...
Jun 02 17:53:37 minhaj-VirtualBox bluetoothd[2543]: Not enough free handles t...
Jun 02 17:53:37 minhaj-VirtualBox bluetoothd[2543]: Sap driver initialization...
Jun 02 17:53:37 minhaj-VirtualBox bluetoothd[2543]: sap-server: Operation not...
Jun 02 17:53:37 minhaj-VirtualBox bluetoothd[2543]: Endpoint registered: send...
Jun 02 17:53:37 minhaj-VirtualBox bluetoothd[2543]: Endpoint registered: send...
Hint: Some lines were ellipsized, use -l to show in full.

Re: No Bluetooth Adapter found Ticket #16806

Posted: 2. Jun 2017, 16:00
by Perryg
Probably will have better success if they enable EHCI or even better xHCI instead of the single OHCI for the guest and then the OP just needs to treat this as a USB issue. And since this is really an issue with Windows host and USB I believe this topic really belongs in Windows hosts until such time as it is determined to be a Linux guest issue..

Re: No Bluetooth Adapter found Ticket #16806

Posted: 2. Jun 2017, 16:46
by socratis
Thank you for adding the ticket in the thread title, very smart idea, I'll "adopt" if from now on!!!

And this is all working now, great! Could you let us know which service was the responsible one? People searching in the future might get helped by that...

I'll mark the thread as [Solved] then, and as per Perryg's correct suggestion, I'll move it to "Windows hosts" from "Linux guests", as the "problem" was with the host actually.

Re: [Solved] [Ticket #16806] No Bluetooth Adapter found

Posted: 2. Jun 2017, 19:55
by MachoMan
After performing below steps, I got solved on my VM Ubuntu 16.04
1) Disable Bluetooth Adapter from Device Manager in Host Machine.
2) Disable all Services in Host Machine that are using Bluetooth. (TaskManager -> Services -> Press B to find Bluetooth Services & Stop)
2) Start VB Ubuntu
3) Enable Bluetooth Adapter from Device Manager in Host Machine.
4) In VB, goto Device -> USB -> Select Bluetooth Radio
5) Open Terminal to check bluetooth status: sudo /etc/init.d/bluetooth status

If you get Status as Active: active (running), then you have configured Bluetooth correctly.