Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Virtualization
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Virtualization
For questions on VMWare, VirtualBox, Xen, QEMU and other virtualization software.

 
Thread Tools Display Modes
Old June 14th, 2008   #1
docplastic
5 Cups of Ubuntu
 
Join Date: Aug 2006
Location: Europe
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
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 07:20 AM..
docplastic is offline   Reply With Quote
Old June 19th, 2008   #2
spanella47
Just Give Me the Beans!
 
Join Date: Nov 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
spanella47 is offline   Reply With Quote
Old June 20th, 2008   #3
docplastic
5 Cups of Ubuntu
 
Join Date: Aug 2006
Location: Europe
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
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 19th, 2008 at 09:33 PM..
docplastic is offline   Reply With Quote
Old August 26th, 2008   #4
randykelli
First Cup of Ubuntu
 
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
randykelli is offline   Reply With Quote
Old September 22nd, 2008   #5
trestamanos
5 Cups of Ubuntu
 
trestamanos's Avatar
 
Join Date: Sep 2008
Location: Florida
Beans: 27
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
trestamanos is offline   Reply With Quote
Old September 22nd, 2008   #6
howefield
Chocolate Ubuntu Mocha Blend
 
howefield's Avatar
 
Join Date: Oct 2006
Location: UK
Beans: 1,880
Ubuntu 9.10 Karmic Koala
Send a message via ICQ to howefield Send a message via AIM to howefield Send a message via MSN to howefield Send a message via Yahoo to howefield Send a message via Skype™ to howefield
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.
howefield is offline   Reply With Quote
Old September 23rd, 2008   #7
docplastic
5 Cups of Ubuntu
 
Join Date: Aug 2006
Location: Europe
My beans are hidden!
Ubuntu 9.04 Jaunty Jackalope
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 05:22 AM..
docplastic is offline   Reply With Quote
Old October 4th, 2008   #8
lian1238
Ubuntu Extra Shot
 
lian1238's Avatar
 
Join Date: Aug 2007
Location: Bangkok, TH
Beans: 386
Send a message via MSN to lian1238 Send a message via Yahoo to lian1238 Send a message via Skype™ to lian1238
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!!
lian1238 is offline   Reply With Quote
Old October 4th, 2008   #9
ace214
Gee! These Aren't Roasted!
 
ace214's Avatar
 
Join Date: Jul 2007
Location: USA
Beans: 179
Ubuntu 9.10 Karmic Koala
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.
ace214 is offline   Reply With Quote
Old October 5th, 2008   #10
lian1238
Ubuntu Extra Shot
 
lian1238's Avatar
 
Join Date: Aug 2007
Location: Bangkok, TH
Beans: 386
Send a message via MSN to lian1238 Send a message via Yahoo to lian1238 Send a message via Skype™ to lian1238
Re: HowTo: Install Virtualbox 1.6.x with USB support in Ubuntu 8.04 (Hardy)

Quote:
Originally Posted by ace214 View 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.
Mine's 46 and it works.
lian1238 is offline   Reply With Quote

Bookmarks

Tags
ubuntu 8.04, virtualbox, virtualbox usb

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:54 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry