Host: Ubuntu 7.10 64-bit | Guest: WinXP 32-bit | USB Error?

Discussions related to using VirtualBox on Linux hosts.

Host: Ubuntu 7.10 64-bit | Guest: WinXP 32-bit | USB Error?

Postby BassKozz » 18. Feb 2008, 07:17

I keep getting the following error message:
Image
BassKozz
 
Posts: 58
Joined: 4. Dec 2007, 18:30
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: XP & Win7

Postby stefan.becker » 18. Feb 2008, 22:38

Use search Function, discussed 1000 times.
stefan.becker
Volunteer
 
Posts: 7538
Joined: 7. Jun 2007, 21:53

Postby BassKozz » 19. Feb 2008, 03:47

Ok I searched and the most informative post on the subject I could find is this one:
Ubuntu Gutsy - USB not working

But I am still confused... I found 3 solutions, and I can't figure out what is the best solution for fixing the problem:
#1
sensimilla wrote:Ok, think I may have found the answer here:

http://www.virtualbox.org/ticket/747

I'll reproduce it here.

You need to edit an init script:
Code: Select all   Expand viewCollapse view
sudo gedit /etc/init.d/mountdevsubfs.sh

Then look for the following:
Code: Select all   Expand viewCollapse view
    #
    # Magic to make /proc/bus/usb work
    #
    #mkdir -p /dev/bus/usb/.usbfs
    #domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
    #ln -s .usbfs/devices /dev/bus/usb/devices
    #mount --rbind /dev/bus/usb /proc/bus/usb

Remove the #'s from the last four lines so it looks like this :
Code: Select all   Expand viewCollapse view
    #
    # Magic to make /proc/bus/usb work
    #
    mkdir -p /dev/bus/usb/.usbfs
    domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
    ln -s .usbfs/devices /dev/bus/usb/devices
    mount --rbind /dev/bus/usb /proc/bus/usb

Reboot

This seems to have fixed the issue for me.


or
#2
sensimilla wrote:I think you have to follow the procedure described here for 7.04 to change the usb filesystem permissions.

http://virtualbox.org/wiki/USB_on_Ubuntu_7.04

I'll quote it here for convenience

--

Contributed by Ibrahim Ben Faruhn, 2007/06/14

After I had a taken a look into the insides of Ubuntu 7.04, I managed to get VirtualBox's USB-Support working there in such a way that the user only needs to be a member of a group called usbusers. This howto describes how I did it.

Basically, you just have to tell Ubuntu that a group called usbusers should have read and write access to all usb devices.

1. Create a group called usbusers

2. Add yourself to this group

3. Edit the file /etc/udev/rules.d/40-permissions.rules (for this, you must have administrative privileges)

3.1 Search for the following lines
Code: Select all   Expand viewCollapse view
# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device",                    MODE="0664"


3.2 Change them to the following
Code: Select all   Expand viewCollapse view
# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device", GROUP="usbusers", MODE="0664"


4. Restart your PC

5. You should now have write access to all usb devices.

or
#3
52rockwell wrote:This is a really easy fix
http://ubuntuforums.org/showthread.php? ... ualbox+usb
------------------------------------------
Courtesy of STEVE1961 on ubuntuforums.org

or just add this line to /etc/fstab

none /proc/bus/usb usbfs devgid=1002,devmode=664 0 0

the devgid number is the vboxusers group id (check to see if yours is different)

Once you've saved and closed fstab just do a sudo mount -a and you should be good to go.


So of those 3 solutions which one is best for Ubuntu 7.10 64-bit?
Or do I have to do a combination of all 3 to get USB to work?
BassKozz
 
Posts: 58
Joined: 4. Dec 2007, 18:30
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: XP & Win7

Postby stefan.becker » 19. Feb 2008, 20:29

Try 3.
stefan.becker
Volunteer
 
Posts: 7538
Joined: 7. Jun 2007, 21:53

Postby BassKozz » 19. Feb 2008, 21:14

stefan.becker wrote:Try 3.

That did the trick, thanks for clearing that up for me Stefan, and thanks for holding my hand thru this.
I am an Ubuntu Newb (let alone VirtualBox), and I really appreciate the help, THANKS :D
BassKozz
 
Posts: 58
Joined: 4. Dec 2007, 18:30
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: XP & Win7

to check gid

Postby 300zxkyle » 16. Mar 2008, 16:56

to check the gid of the virtualbox group type
Code: Select all   Expand viewCollapse view
id [username]


Solution 3 works like a charm and is the simplest to configure.
300zxkyle
 
Posts: 1
Joined: 16. Mar 2008, 16:46


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: waffle and 6 guests