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

Discussions related to using VirtualBox on Linux hosts.
Post Reply
BassKozz
Posts: 58
Joined: 4. Dec 2007, 18:30
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: XP & Win7

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

Post by BassKozz »

I keep getting the following error message:
Image
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Use search Function, discussed 1000 times.
BassKozz
Posts: 58
Joined: 4. Dec 2007, 18:30
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: XP & Win7

Post by BassKozz »

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

sudo gedit /etc/init.d/mountdevsubfs.sh
Then look for the following:

Code: Select all

    #
    # 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

    #
    # 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

# USB devices (usbfs replacement)
SUBSYSTEM=="usb_device",                    MODE="0664"
3.2 Change them to the following

Code: Select all

# 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?
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Post by stefan.becker »

Try 3.
BassKozz
Posts: 58
Joined: 4. Dec 2007, 18:30
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: XP & Win7

Post by BassKozz »

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
300zxkyle
Posts: 1
Joined: 16. Mar 2008, 16:46

to check gid

Post by 300zxkyle »

to check the gid of the virtualbox group type

Code: Select all

id [username]
Solution 3 works like a charm and is the simplest to configure.
Post Reply