Virtual machine steal BlueTooth from Host(Mac)
2016-04-08 17:28
429 查看
ShareyouamethodtostealMacBuilt-inBTfromhostmachinetovirtualmachine.Incaseyouwilluseitinfuture.
Here'sastep-by-stepprocedure:
OnMacBookhost,deactivateBluetoothonApple>Preferences>Bluetooth
OnMacBookhost,launchTerminalfromApplication>Utilities
WhentryingtouseBluetoothontheguest,theerrormessagesaysitisalreadyinuse.
Likebelow:
OnTerminal,type
andseetheresult:mostarekernelextensions(kext)
TounloadthemandfreetheBluetoothport,onTerminaltypefirst
forsuper-userprivilegesandthemunloadthekernelextensions
Belowaretheresultsfrommyterminal:
Finally,onVirtualBox,selectBluetoothUSBandcheckeverythingrunsfine.
Theremaybeotherkernelextensionstounload.Testandtrytillitworks.
Toloadbackkernelextensions,performthereverseoperationonTerminal,startingbylastone
Here'sastep-by-stepprocedure:
OnMacBookhost,deactivateBluetoothonApple>Preferences>Bluetooth
OnMacBookhost,launchTerminalfromApplication>Utilities
WhentryingtouseBluetoothontheguest,theerrormessagesaysitisalreadyinuse.
Likebelow:
OnTerminal,type
kextstat|grep-ibluetooth
andseetheresult:mostarekernelextensions(kext)
TounloadthemandfreetheBluetoothport,onTerminaltypefirst
sudosu
forsuper-userprivilegesandthemunloadthekernelextensions
kextunload-bcom.apple.iokit.BroadcomBluetoothHostControllerUSBTransport kextunload-bcom.apple.iokit.IOBluetoothHostControllerUSBTransport
Belowaretheresultsfrommyterminal:
Finally,onVirtualBox,selectBluetoothUSBandcheckeverythingrunsfine.
Theremaybeotherkernelextensionstounload.Testandtrytillitworks.
Toloadbackkernelextensions,performthereverseoperationonTerminal,startingbylastone
sudosu
sh-3.2#kextload-bcom.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sh-3.2#kextload-bcom.apple.iokit.IOBluetoothHostControllerUSBTransport
sh-3.2#kextstat|grep-ibluetooth
8020xffffff7f81a2b0000xad0000xad000com.apple.iokit.IOBluetoothFamily(4.3.6f3)<1575431>
22410xffffff7f831880000x210000x21000com.apple.iokit.IOBluetoothHostControllerUSBTransport(4.3.6f3)<8038121175431>
22500xffffff7f831010000x90000x9000com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport(4.3.6f3)<224803812117543>
相关文章推荐
- HDU:1242 Rescue(BFS+优先队列)
- 实际用户和有效用户的
- UIButton的基本用法和事件
- easyui验证
- iOS _监听UITextField输入状态
- 2786: [JSOI]Word Query电子字典
- 1007. Maximum Subsequence Sum
- iOS开发学习之 - 深入学习UIButton(1)
- iOS UI绘制和布局基础解析
- JAVA---Unique Characters
- 模板模式 和 策略模式的区别, builder pattern构造者模式,BeanDefinitionBuilder
- iOS学习笔记10-UIView动画
- UIButton Custom
- 解决requirejs某文件加载超时问题
- iOS中自定义UITableViewCell的用法
- Android开源框架收集-UI效果(一)
- 【转帖】Service Discovery: 6 questions to 4 experts
- UI数据解析(Dom,Sax,Json)
- UIView 与 UIWindow的关系
- leetcode 51. N-Queens