1. 本机关闭蓝牙

  2. apt-get install bluetooth

  3. service bluetooth restart

  4. service bluetooth status

    bluetooth.service - Bluetooth service
         Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor pre>
         Active: active (running) since Wed 2020-01-01 06:22:50 EST; 3min 10s ago
           Docs: man:bluetoothd(8)
       Main PID: 595 (bluetoothd)
         Status: "Running"
          Tasks: 1 (limit: 4615)
         Memory: 4.0M
         CGroup: /system.slice/bluetooth.service
                 └─595 /usr/lib/bluetooth/bluetoothd
    
    
  5. systemctl enable /lib/systemd/system/bluetooth.service

  6. systemctl start bluetooth.service

  7. 验证蓝牙设备

    • hcitool dev
    • 如果虚拟机获取不到蓝牙
    • 则在Device Manager中把蓝牙先禁用再启用
    • 然后选择你要连接到的虚拟机
    • 连接后可以等俩分钟再验证
  8. 测试LE Scan(可选)

    • hcitool lescan