Auto connect USB devices to guest

Discussions related to using VirtualBox on Linux hosts.

Auto connect USB devices to guest

Postby pask876 » 17. Apr 2008, 19:56

Hello to all!
I'm a very happy user of VirtualBox 1.5.6 on Ubuntu7.10. I use WindowsXP as guest. I'd like to auto-connect USB devices to the windows guest as soon as they are physically connected to the Ubuntu host. Is there a way for having this to work?

Thanks a lot.

P-
pask876
 
Posts: 4
Joined: 17. Apr 2008, 19:50

Postby Perseus » 17. Apr 2008, 20:11

Install the guest additions from within the running WinXP box.
Was easy here and works like charm.

HTH Frank
Perseus
 
Posts: 11
Joined: 8. Apr 2008, 14:06

I wanted to mean..

Postby pask876 » 17. Apr 2008, 23:00

Ok, It's right.
When I connect a usb device to my linux host, say a USB pen drive, then I have to explicitly select that device clicking the USB connector icon on
the VirtualBox GUI: then I see it in the windows guest. I'd like to tell VIrtualBox to immediately give access to that device to the guest windows host and see the content of the usb pen drive, without having to first select it by the interface. How to do that? Is it possible?

thanks,
P-



Perseus wrote:Install the guest additions from within the running WinXP box.
Was easy here and works like charm.

HTH Frank
pask876
 
Posts: 4
Joined: 17. Apr 2008, 19:50

Postby Sasquatch » 17. Apr 2008, 23:12

I always have it working with the following:
- Set the 'any' filter in the Guest settings, meaning you add an empty filter.
- Make sure USB is enabled and everything else you need for it
- Let the VM have focus, then plug in the USB device.
It should now get auto-mounted in the VM. At least, this is on my setup, it might be different on yours.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Postby pask876 » 20. Apr 2008, 20:03

What do you mean when you say "Make sure USB is enabled and everything else you need for it?".

What did you modify in Ubuntu 7.10 to have USB working in guest machines?

Thanks a lot.

P-
pask876
 
Posts: 4
Joined: 17. Apr 2008, 19:50

Postby Sasquatch » 20. Apr 2008, 22:22

If you can mount an USB device manually, then you have everything set up for auto mounting. The only difference is that you have to give focus to the VM before pluggin in the device. I'm not in my Linux system atm, so I can't be certain for a few things. I do know is that you also need to have a usbfs group, be a member of that group and put an entry in fstab that states the mount to that group. You have to search in this forum for the entry, I've listed here somewhere.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 9 guests