Results 1 to 7 of 7

Thread: Virtual Box USB PROBLEM

  1. #1
    Join Date
    Feb 2007
    Location
    Portugal
    Beans
    216
    Distro
    Ubuntu 14.04 Trusty Tahr

    Virtual Box USB PROBLEM

    Hi there,i have a usb problem in my virtual box.. i managed to correct ir by typing:

    # VBOX=$(grep vboxusers /etc/group | sed 's/vboxusers:\(.*\):.*/\1/')
    # sudo mount -t usbfs -o devgid=$VBOX,devmode=664,nodev,noexec,nosuid none /proc/bus/usb

    my problem is, everytime i star VB i have to do this comands on the console, how can i make this comands run automatically everytime my ubuntu starts??
    cheers

  2. #2
    Join Date
    Feb 2007
    Location
    Cameron Park CA USA
    Beans
    4,434
    Distro
    Ubuntu Development Release

    Re: Virtual Box USB PROBLEM

    I don't know much about VBox but in VMware Server you have to do two things in Gutsy 7.10:

    Uncomment lines 42-45 lines starting with #mkdir -p /dev/bus/usb/.usbfs

    Code:
    gksudo gedit /etc/init.d/mountdevsubfs.sh
    
        	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
    Than if necessary, add this line to your fstab file in /etc:

    Code:
    usbfs /proc/bus/usb usbfs auto 0 0
    That should do it for USB drives, scanners, printers, etc.

    Let us know how you do.
    Regards, frank, at http://yantrayoga.typepad.com/noname/
    Homebuilt Lian-Li PC-Q30X Intel i5-4670K 4.0GHz, SSDs, 16G RAM | Dell laptop E1505n, netbook 10n
    Oracle VBox w/ WinXP Pro running Xara Designer, PaintShopPro, and InDesign CS.

  3. #3
    Join Date
    Feb 2007
    Location
    Portugal
    Beans
    216
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Virtual Box USB PROBLEM

    Quote Originally Posted by fjgaude View Post
    I don't know much about VBox but in VMware Server you have to do two things in Gutsy 7.10:

    Uncomment lines 42-45 lines starting with #mkdir -p /dev/bus/usb/.usbfs

    Code:
    gksudo gedit /etc/init.d/mountdevsubfs.sh
    
        	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
    Than if necessary, add this line to your fstab file in /etc:

    Code:
    usbfs /proc/bus/usb usbfs auto 0 0
    That should do it for USB drives, scanners, printers, etc.

    Let us know how you do.

    well did that and it didnt work...the codes i put in the beginning work for sure, it just that i dont know how to make it start everytime my computer starts.do you?

  4. #4
    Join Date
    Feb 2007
    Location
    Cameron Park CA USA
    Beans
    4,434
    Distro
    Ubuntu Development Release

    Re: Virtual Box USB PROBLEM

    I'm far from any expert but I'd put your two commands in a script and then give it a name. Then add that file to the init.d.

    Someone here has got to know how to do this.

    OTOH, gosh, there are lots of folks using USB devices in VBox that has not had to do what you are doing.

    You did reboot after you did what I suggested?
    Regards, frank, at http://yantrayoga.typepad.com/noname/
    Homebuilt Lian-Li PC-Q30X Intel i5-4670K 4.0GHz, SSDs, 16G RAM | Dell laptop E1505n, netbook 10n
    Oracle VBox w/ WinXP Pro running Xara Designer, PaintShopPro, and InDesign CS.

  5. #5
    Join Date
    Feb 2007
    Location
    Portugal
    Beans
    216
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Virtual Box USB PROBLEM

    sorry dude, i forgot to reboot. it actually works, and i didnt need to edit the fstab.. thanks

  6. #6
    Join Date
    Feb 2007
    Location
    Portugal
    Beans
    216
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Virtual Box USB PROBLEM

    by the way i tried vmware workstation, and virtual box is much more faster then vmware. if u havent tried give it a try

  7. #7
    Join Date
    Feb 2007
    Location
    Cameron Park CA USA
    Beans
    4,434
    Distro
    Ubuntu Development Release

    Re: Virtual Box USB PROBLEM

    Okay, wonderful... the fstab addition has been needed by some when using USB flash drives. It seems to be some kind of race issue with the scipts that makeup the startup of Ubuntu. It's an overkill but needed for these kinds of flash drives.

    Thanks for hanging in there and achieving success... so sweet.
    Regards, frank, at http://yantrayoga.typepad.com/noname/
    Homebuilt Lian-Li PC-Q30X Intel i5-4670K 4.0GHz, SSDs, 16G RAM | Dell laptop E1505n, netbook 10n
    Oracle VBox w/ WinXP Pro running Xara Designer, PaintShopPro, and InDesign CS.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •