USB 2.0 on VirtualBox ubuntu 8.10

Asked by UbuntuAma

Hello i have just installed Ubuntu 8.10 and install Virtual Box coz i needed to use Windows as well
however after install the VBox i came across USB 2.0 External HDD drive Doesn't work on Virtual Box can somebody help me out m not ubuntu GURU

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu virtualbox-ose Edit question
Assignee:
No assignee Edit question
Solved by:
UbuntuAma
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

I think you need to install the virtualbox-ose-guest-utils

Open a Terminal from the menu Applications → Accessories → Terminal and type:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install virtualbox-ose-guest-utils

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Other References:
https://answers.launchpad.net/ubuntu/+source/virtualbox-ose
https://answers.launchpad.net/ubuntu/+source/virtualbox-ose/+question/19463

Revision history for this message
UbuntuAma (ama-bone) said :
#2

Tried some command u gave me didnt work i went on the links and tried some command given there got this "You do not have the necessary permissions to save the file. Please, check that you typed the location correctly and try again".

Revision history for this message
Andre Mangan (kyphi) said :
#3

As far as I know, VirtualBox OSE does not have USB support.

Your options are:

1. Install VirtualBox from Sun Microsystems which does have USB support. Please keep in mind, that if you do that, you will not get updates for VirtualBox automatically.

2. Forget about USB support in VBox and set up a shared folder that both Ubuntu and your Windows installation on VBox can access. That way you can access USB in Ubuntu, transfer material to be worked on to your shared folder and retrieve it in Windows (in VBox).

If you decide to adopt option 1, you will have to remove VBox-OSE including the hidden folder in your Home directory.

Revision history for this message
UbuntuAma (ama-bone) said :
#4

the Only thing i want to work with is my EXTERNAL HDD here and some other USB devices so im not really sure how to go about the whole thing
any suggestion?

Revision history for this message
UbuntuAma (ama-bone) said :
#5

this is the output now
Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.

Result Code:
NS_ERROR_FAILURE (0x00004005)
Component:
Host
Interface:
IHost {489fb370-c227-4d43-9761-ceb28484fd9f}
Callee:
IMachine {1e509de4-d96c-4f44-8b94-860194f710ac}

Revision history for this message
Bharat B. Sahni (bharatbsahni-msn) said :
#6

type the following command in the terminal;

sudo gedit /etc/init.d/mountdevsubfs.sh

You'll see a block of code that looks 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
Now 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

Ok now logoff, then log back in so the vbox driver see's you are logged in to the vboxusers group.

If the above doesnt work try rebooting, if that doesnt enable usb you can try this:
Grab the vboxusers group id:
grep vbox /etc/group
vboxusers:x:124:ionstorm
Edit the fstab with the group id # in bold:
sudo gedit /etc/fstab
Append this 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
Now lets edit the mountkernfs.sh file with the gid in bold:
sudo gedit /etc/init.d/mountkernfs.sh

Paste the 2 lines below above the line: "# Mount spufs, if Cell Broadband processor is detected"

then restart the system.

restart the vitual machine windowsXp, insert the USB,

Enable the usb by clicking on devices.

The usb is detected.

I got help from the following website;

http://www.ubuntu-unleashed.com/2008/04/howto-install-virtualbox-in-hardy-heron.html

Hope this will help;

Bharat

Revision history for this message
UbuntuAma (ama-bone) said :
#7

After typing the first command u gave me above this is the output
#! /bin/sh
### BEGIN INIT INFO
# Provides: mountdevsubfs
# Required-Start: mountkernfs
# Required-Stop:
# Should-Start: udev
# Default-Start: S
# Default-Stop:
# Short-Description: Mount special file systems under /dev.
# Description: Mount the virtual filesystems the kernel provides
# that ordinarily live under the /dev filesystem.
### END INIT INFO
#
# This script gets called multiple times during boot
#

PATH=/lib/init:/sbin:/bin
TTYGRP=5
TTYMODE=620
[ -f /etc/default/devpts ] && . /etc/default/devpts

TMPFS_SIZE=
[ -f /etc/default/tmpfs ] && . /etc/default/tmpfs

KERNEL="$(uname -s)"

. /lib/lsb/init-functions
. /lib/init/mount-functions.sh

do_start () {
 #
 # Mount a tmpfs on /dev/shm
 #
 SHM_OPT=
 [ "${SHM_SIZE:=$TMPFS_SIZE}" ] && SHM_OPT=",size=$SHM_SIZE"
 domount tmpfs shmfs /dev/shm tmpfs -onosuid,nodev$SHM_OPT

 #
 # Mount /dev/pts. Master ptmx node is already created by udev.
 #
        domount devpts "" /dev/pts devpts -onoexec,nosuid,gid=$TTYGRP,mode=$TTYMODE
}

case "$1" in
  "")
 echo "Warning: mountdevsubfs should be called with the 'start' argument." >&2
 do_start
 ;;
  start)
 do_start
 ;;
  restart|reload|force-reload)
 echo "Error: argument '$1' not supported" >&2
 exit 3
 ;;
  stop)
 # No-op
 ;;
  *)
 echo "Usage: mountdevsubfs [start|stop]" >&2
 exit 3
 ;;
esac

NOW IM NOT SURE WHERE TO GET THE BLOCK OF CODES U WROTE TO ME ABOVE IM REALLY NOT SURE PLEASE ME HELP WILL BE HELPFULL

Revision history for this message
Bharat B. Sahni (bharatbsahni-msn) said :
#8

what was the command you typed

Bharat

Revision history for this message
UbuntuAma (ama-bone) said :
#9

sudo gedit /etc/init.d/mountdevsubfs.sh

Revision history for this message
UbuntuAma (ama-bone) said :
#10

Tried different things didnt work however the last attempt just before 2am in the morning after hours of troubleshooting i did the following

-Install XP or other OS

-In Ubuntu, create a group called "usbfs" and add yourself to it.

-In terminal issue the following command:

sudo gedit /etc/fstab

-In this file paste the following lines, and change the group ID according to the group ID that is shown for the group "usbfs".

# 1001 is the USB group ID
none /proc/bus/usb usbfs devgid=1001,devmode=664 0 0

-Save and close file.

- In Virtualbox, set up the filters for USB devices

-Reboot

When Ubuntu comes up again, you have to unmount the USB devices in Ubuntu before the virtual machine can recognize them, so eject them.

Open Virtualbox, start XP virtual machine, and it should recognize the USB devices.

NOT SURE IF ITS FOR ONCE AND FOR ALL BUT IT WORKS HURRAAAYYY

Revision history for this message
YitzchokL (yitzchok+launchpad) said :
#11

It's not clear - was this solved within OSE? Or was it the PUEL edition? The instructions in the last post don't get me anywhere. I don't see anything about filters for USB devices.
Thanks