Unable to use bluetooth in Windows 7 guest

Discussions related to using VirtualBox on Mac OS X hosts.
elmo83
Posts: 1
Joined: 25. Oct 2014, 20:27

Re: Unable to use bluetooth in Windows 7 guest

Post by elmo83 »

Maybe this script will help anyone with this same problem. It seems to work for me on Mavericks, hosting a Vbox Windows7 machine. Start a new file in apple script and save as an application.

--Bluetooth for VirtualBox
--delay 5

set question to display dialog "Manage Bluetooth for ... " buttons {"VirtualBox", "Cancel", "Mac OS"} default button "Cancel" cancel button "Cancel" with icon caution with title "Bluetooth" giving up after 30

set answer to button returned of question

if answer is equal to "VirtualBox" then
-- delay 30
try
do shell script "launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist"
delay 5
end try
try
do shell script "sudo kextunload -b com.apple.iokit.IOBluetoothFamily" password "secretols" with administrator privileges
delay 5
end try
try
do shell script "sudo kextunload -b com.apple.iokit.IOBluetoothHostControllerUSBTransport" password "secretols" with administrator privileges
delay 5
end try
try
do shell script "sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" password "secretols" with administrator privileges
delay 5
end try
try
do shell script "sudo kextunload -b com.apple.driver.IOBluetoothHIDDriver" password "secretols" with administrator privileges
delay 5
end try
try
do shell script "sudo kextunload -b com.apple.iokit.IOBluetoothSerialManager" password "secretols" with administrator privileges
delay 5
end try
else if answer is equal to "Mac OS" then
-- delay 30

try
do shell script "sudo kextload -b com.apple.iokit.IOBluetoothFamily" password "secretols" with administrator privileges
delay 5
end try
try
do shell script "sudo kextload -b com.apple.iokit.IOBluetoothHostControllerUSBTransport" password "secretols" with administrator privileges
delay 5
end try
try
do shell script "sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" password "secretols" with administrator privileges
delay 5
end try
try
do shell script "sudo kextload -b com.apple.driver.IOBluetoothHIDDriver" password "secretols" with administrator privileges
delay 5
end try
try
do shell script "sudo kextload -b com.apple.iokit.IOBluetoothSerialManager" password "secretols" with administrator privileges
delay 5
end try
end if
tiger007
Posts: 4
Joined: 4. Apr 2015, 15:45

Re: Unable to use bluetooth in Windows 7 guest

Post by tiger007 »

It works also on yosemite very well thanks a lot.
Galeocerdo
Posts: 5
Joined: 7. Jan 2016, 20:20

Re: Unable to use bluetooth in Windows 7 guest

Post by Galeocerdo »

I just tried and immediately it reboots my mac and returns an error while rebooting.. Any suggestions?
Post Reply