Hey guys,
I'm a newbie to virtual machining, but I'm using the crazeflie for my research. I searched the forum for a topic similar to my question, but I could not find a thread with this problem. I'm running the latest edition of Oracle VM VirtualBox (4.3.16) with Bitcraze VM 0.5. The host OS is Windows 8.1.
I read that to properly set up an xbox controller I would need to create a filter in the virtual machine and install the driver xboxdrv.
I connected the xbox controller and I see that it was recognized by VirtualBox (Devices -> USB Devices -> Microsoft Corporation Controller [0114] exists). I went to Machine -> Settings -> USB and I created a USB filter for the controller. Next, I attempted to attach the controller to the virtual machine, but I received the following error:
"Failed to attach the USB device ©Microsoft Corporation Controller [0114] to the virtual machine Bitcraze VM 0.5.
USB device '©Microsoft Corporation Controller' with UUID {41a5a999-6e4b-4260-b527-0ee29c4d81b0} is busy with a previous request. Please try again later.
Result Code: E_INVALIDARG (0x80070057)
Component: HostUSBDevice
Interface: IHostUSBDevice {173b4b44-d268-4334-a00d-b6521c9a740a}
Callee: IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}"
To my (newbie) knowledge, this would indicate that the controller is currently connected to the host machine, DESPITE the fact that I created a filter to bypass that connection. I'm not sure what to do; my experience with Linux is non-existent (shame, I know). Any help would be greatly appreciated.
Thank you,
Joga
Issues w/ xbox controller, USB filter not working?
-
- Beginner
- Posts: 1
- Joined: Tue Sep 30, 2014 2:05 am
Re: Issues w/ xbox controller, USB filter not working?
In case anyone else is having issues on OSX Yosemite getting a wired xbox360 controller to work in the BitCraze VM via virtual box, the following worked for me:
Use the 0.15 beta 3 version of 360Controller (dmg)
https://github.com/360Controller/360Controller/releases
This will add an xbox 360 controller pane to your System Preferences. In there, you'll want to make sure your controller is working and detected by OSX. The next step is to go to the "Advanced" tab within the Xbox 360 Controller configuration panel, and uncheck the "Enable Driver" checkbox. (this tells OSX to not be actively using the device, and now the BitCraze VM can use the hardware)
Power down your VM if its still on, then for VirtualBox, install the VirtualBox Extension Pack to get USB 2.0 devices supported. In VirtualBox, go to Settings -> Ports -> USB and enable USB 2.0, and setup a filter for your Xbox 360 controller by clicking the green USB + icon.
Worked for me.
Use the 0.15 beta 3 version of 360Controller (dmg)
https://github.com/360Controller/360Controller/releases
This will add an xbox 360 controller pane to your System Preferences. In there, you'll want to make sure your controller is working and detected by OSX. The next step is to go to the "Advanced" tab within the Xbox 360 Controller configuration panel, and uncheck the "Enable Driver" checkbox. (this tells OSX to not be actively using the device, and now the BitCraze VM can use the hardware)
Power down your VM if its still on, then for VirtualBox, install the VirtualBox Extension Pack to get USB 2.0 devices supported. In VirtualBox, go to Settings -> Ports -> USB and enable USB 2.0, and setup a filter for your Xbox 360 controller by clicking the green USB + icon.
Worked for me.
Re: Issues w/ xbox controller, USB filter not working?
I have been having the same problem and have tried most of the suggestions that I've found on the virtualbox forums. Seem to have found a workaround, so thought I would share. My host machine is Windows 7 and I am running VirtualBox 5.0.10.
So, I have added the same USB filter "Microsoft Corporation Controller [0114]". I have also moved this filter to the top of the list, though I have no reason to believe this is making a difference. This setup does not seem to work as it should so, with the VM running, I also add a new filter with all empty strings (by default it is called "New Filter 1"). This should match with the next device plugged in. Lo and behold, when unplugging my xbox360 controller and then plugging it back in it VirtualBox is able to grab it.
Once the VM has the controller, I then go back into the usb settings and delete the "New Filter 1". If I don't do this, I have found that the next time the VM is booted my mouse pointer is messed up. The mouse pointer icon is stuck in one place but the pointer does actually seem to be moving invisibly (can tell from icons highlighting as the pointer goes over them).
So, I have added the same USB filter "Microsoft Corporation Controller [0114]". I have also moved this filter to the top of the list, though I have no reason to believe this is making a difference. This setup does not seem to work as it should so, with the VM running, I also add a new filter with all empty strings (by default it is called "New Filter 1"). This should match with the next device plugged in. Lo and behold, when unplugging my xbox360 controller and then plugging it back in it VirtualBox is able to grab it.
Once the VM has the controller, I then go back into the usb settings and delete the "New Filter 1". If I don't do this, I have found that the next time the VM is booted my mouse pointer is messed up. The mouse pointer icon is stuck in one place but the pointer does actually seem to be moving invisibly (can tell from icons highlighting as the pointer goes over them).
Re: Issues w/ xbox controller, USB filter not working?
Thanks for posting a workaround! I have had a hard time to reproduce these kind of bug so I could not help much.