Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to expose a GPS device to a VM running on virtualbox? I hae found there are Android apps that can expose a GPS signal via Bluetooth to the computer, I was wondering if for a computer that has a working GPS signal incoming, can expose it to a vitualbox VM, as one would do for CPUs, GPUs, disks, USB devices and other devices. Any ideas?

EDIT: my best option on the hardware side right now is to plug my Android phone via USB to my Linux laptop, where the VM is running. Another option is Bluetooth, but seems more complicated.

share|improve this question
    
You will probably need to specify how exactly the GPS signal is coming to the computer, because it's a huge difference if it's USB, serial port, bluetooth or something else. –  Stefan Seidel Feb 12 '13 at 22:32
add comment

3 Answers

Spent too much of my time getting USB to work in virtualbox. It, in my opinion is inherently broken. You will get it to work once, but then it stops. I know this GPS dongle auto detects nicely in almost all OS's http://www.amazon.co.uk/GLOBALSAT-ND-100-Receiver-NetBook-Notebook/dp/B00286KXGU/ref=pd_sxp_f_pt

Experiment with other USB devices in virtualbox first - remember to create a filter for the device in the USB settings menu of virtualbox. If you find it works even after reboots etc then purchase the dongle above and then direct it's USB connection directly to the VM.

Occasionally, USB works fine all the time in Virtualbox - but when it stops ....

share|improve this answer
add comment

Your GPS device is most likely to be connecting to you PC via the Bluetooth Serial Port Profile. This creates a COM port on the host which you should be able to use to communicate with the GPS.

If this is true, it should be pretty trivial to expose the COM port to the virtual machine. VirtualBox has that functionality built in.

share|improve this answer
add comment

You can really only do this if the device can be accessed via Serial or USB.

Bluetooth used to be a common connection type for external GPS devices (before all smartphones got them built in!). In reality what happens is the the Bluetooth drivers expose a virtual USB interface. I'm fairly sure, given that VirtualBox USB support is somewhat sketchy, this wouldn't work. In any case, though smartphones had reasonable support for such things, PC's are rather more complex and you'd be unlikely to get it working. However, if your need is great, it might be worth investing some time and effort.

Get the GPS working with the host OS first and see if a virtual USB port is exposed. If it is, try to pass this port through to the VirtualBox guest OS.

share|improve this answer
    
I've never heard of Bluetooth creating a virtual USB. Its more likely they're using the Bluetooth Serial Port Profile. –  heavyd Jan 25 '13 at 14:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.