Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: HowTo: Install Virtualbox 1.6.x with USB support in Ubuntu 8.04 (Hardy)

  1. #1
    Join Date
    Aug 2006
    Location
    Europe
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    HowTo: Install Virtualbox (2.x, 1.6.x) with USB support in Ubuntu 8.04 (Hardy)

    # This post describes the procedure to install VirtualBox 2.1 in Ubuntu 8.10 (Intrepid) with USB support.

    # Browse to http://www.virtualbox.org/wiki/Linux_Downloads and check if there is a package for your Ubuntu version and CPU architecture.

    # Open a terminal (press simultaneously the ALT and F2 keys and enter: gnome-terminal)

    • sudo aptitude -R install build-essential dkms # Install virtualbox kernel rebuilding utilities




    • sudo gdebi virtualbox-xxxx.deb # Install it


    • grep vboxusers /etc/group || sudo groupadd vboxusers # if needed add the "vboxusers" group


    • sudo usermod -aG vboxusers $USER # In order to use VirtualBox an user must be added to the "vboxusers" group. You may add other (space separated) users after $USER


    # To add USB support, you need to execute the following code:
    • echo "none /proc/bus/usb usbfs devgid="$(sed '/plugdev/!d;s/plugdev:x:\(.*\):.*/\1/' /etc/group)",devmode=664 0 0" | sudo tee -a /etc/fstab


    # Rebuild the virtualbox kernel modules
    • sudo /etc/init.d/vboxdrv setup


    # Let the system update all the changes. Please note that "sudo mount -a" will not be enough.
    • Logout and Login again


    # If you still have trouble, post here the results of the following command:
    • id $USER ; grep usbfs /etc/fstab ; grep plugdev /etc/group ; grep "domount\(.*\)usbfs" /etc/init.d/mountdevsubfs.sh
    Last edited by docplastic; January 20th, 2009 at 12:20 PM.

  2. #2
    Join Date
    Dec 2005
    Beans
    51

    Re: HowTo: Install Virtualbox 1.6.x with USB support in Ubuntu 8.04 (Hardy)

    the command you gave didnt work becuase it popped out the wrong devgid... replaced with the vboxusers # on my system

    btw, for newbies, its easier to use System -> Administration -> Users and Groups to manipulate groups to make sure your adding things correctly

    also not necessary to logout/login, just run this in your terminal or Alt+F2:
    Code:
    sudo mount -a

  3. #3
    Join Date
    Aug 2006
    Location
    Europe
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HowTo: Install Virtualbox 1.6.x with USB support in Ubuntu 8.04 (Hardy)

    Quote Originally Posted by spanella47 View Post
    also not necessary to logout/login, just run this in your terminal or Alt+F2: sudo mount -a
    You are partially right, mount takes care of the fstab part.

    But it does not help with the users/groups part.

    So, for now, logout and login seems to be the best procedure.

    J.
    Last edited by docplastic; November 20th, 2008 at 02:33 AM.

  4. #4
    Join Date
    Jul 2008
    Beans
    9

    Re: HowTo: Install Virtualbox 1.6.x with USB support in Ubuntu 8.04 (Hardy)

    Doc hit this one out of the park! I had the problem and it fixed it. Thanks soooo much, Doc.

    -Randy

  5. #5
    Join Date
    Sep 2008
    Location
    Florida
    Beans
    27
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HowTo: Install Virtualbox 1.6.x with USB support in Ubuntu 8.04 (Hardy)

    I just finished installing Version 2.0.2 and I got Windows running jsut fine.

    does this thread support 2.0.2?
    I tried that command and Windows on Vbox still doesnt recognize the USB

  6. #6
    Join Date
    Oct 2006
    Beans
    58,285

    Re: HowTo: Install Virtualbox 1.6.x with USB support in Ubuntu 8.04 (Hardy)

    Try this..


    In terminal type
    Code:
    sudo gedit /etc/init.d/mountdevsubfs.sh
    Uncomment the last 4 lines above to look like this:
    #
    # 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

    In terminal type
    Code:
    sudo gedit /etc/fstab
    and append the following to the fstab then save/exit:

    ## usbfs is the USB group in fstab file:
    none /proc/bus/usb usbfs devgid=124,devmode=664 0 0

    Might need a reboot.

  7. #7
    Join Date
    Aug 2006
    Location
    Europe
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HowTo: Install Virtualbox 1.6.x with USB support in Ubuntu 8.04 (Hardy)

    To trestamanos:
    Yes. It is also valid for version 2.0x.

    To howefield and others:
    I prefer to keep things simple.

    In the VirtualBox own way, one should edit mountdevsubfs.sh and /etc/fstab.
    But it seems that just adding the usbfs entry with devgid=plugdev, is simpler and does the job pretty well.

    Also note that it is risky to assume that plugdev's devgid will always be 124.
    Last edited by docplastic; September 23rd, 2008 at 10:22 AM.

  8. #8
    Join Date
    Jun 2007
    Beans
    346

    Re: HowTo: Install Virtualbox 1.6.x with USB support in Ubuntu 8.04 (Hardy)

    guys if you cant usb install guest aditions vis the menu of vbox an you shoul get some sound an graphics aswell

  9. #9
    Join Date
    Aug 2007
    Location
    Bangkok, TH
    Beans
    410

    Thanks for this HowTo.

    Although I'm using Gutsy and installed with the deb from their website and I didn't have USB support. Now I do! Thanks! I can't see the medal icon under docplastic's post. How come?
    Anyway, thanks again! I'm the happiest man alive!!

  10. #10
    Join Date
    Jul 2007
    Location
    USA
    Beans
    194
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: HowTo: Install Virtualbox 1.6.x with USB support in Ubuntu 8.04 (Hardy)

    Thanks for the post.

    For the record, I had to go into fstab and change the gid from 46 which the command seemed to do automatically to 124.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •