virtual box does not work with USB support

Questions about applications and software
Forum rules
Before you post please read this

virtual box does not work with USB support

Postby hadian on Wed May 02, 2012 6:53 am

i installed Linux Mint Debian Edition and installed Virtual Box on it. the guest OS is a windows type. i noticed that the virtual box in repos of mint does not support USB. the extention pack in Oracle site was fora specific version of virtual bos and was different with ones in repos of mint. SO, i downloaded both virtual box and its extension pack from oracle and installed it on Mint. the problem is that when i click the setting of the guest OS i face the following error:
Code: Select all
Failed to access the USB subsystem.
Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might not be installed on the host computer.
and the details is:
Code: Select all
Result Code:
NS_ERROR_FAILURE (0x00004005)
Component:
Host
Interface:
IHost {dab4a2b8-c735-4f08-94fc-9bec84182e2f}
Callee:
IMachine {5eaa9319-62fc-4b0a-843c-0cb1940f8a91}

but when i open the setting, it shows that the USB support is enabled. when the guest os boots. i can not connect any USB devices (neither flash memory nor printer). it should be noted that all of these devices work well in Mint. Also, i had this guest os on another linux on this pc (centos 6). since the pc and virtual box is the same, i think the problem should be from Mint.
hadian
Level 1
Level 1
 
Posts: 11
Joined: Sat Sep 18, 2010 8:23 am

Linux Mint is funded by ads and donations.
 

Re: virtual box does not work with USB support

Postby dwainehead on Wed May 02, 2012 8:53 am

you need to add yourself to the vbox user group.
LMDE x64 20120409 UP5 AMD FX 4100 x4 3.6gHz Gigabyte GA-970A-UD3 16g Corsair Vengeance PC1600 Hitachi 750gig sata 3 EVGA Geforce 550Ti 1g kernel 3.2.0-3
User avatar
dwainehead
Level 2
Level 2
 
Posts: 56
Joined: Tue Jan 10, 2012 2:03 pm

Re: virtual box does not work with USB support

Postby Monsta on Wed May 02, 2012 9:16 am

dwainehead wrote:you need to add yourself to the vbox user group.

vboxusers, to be precise. :)
Monsta
Level 8
Level 8
 
Posts: 2018
Joined: Fri Aug 19, 2011 3:46 am

Re: virtual box does not work with USB support

Postby hadian on Wed May 02, 2012 9:45 am

the user is already added to the group vboxusers so this is not the reason.
i noticed that in setting of the guest os, when i click to add a filter from device, it hints me that <no devices available>. Is it possible that the usb devices are not detected as usb in Mint?
hadian
Level 1
Level 1
 
Posts: 11
Joined: Sat Sep 18, 2010 8:23 am

Re: virtual box does not work with USB support

Postby ukbrian on Wed May 02, 2012 1:25 pm

Have you added the extension pack in vbox>Preferences ?
Image
User avatar
ukbrian
Level 4
Level 4
 
Posts: 276
Joined: Thu Jul 29, 2010 6:03 am
Location: Cheltenham, UK

Re: virtual box does not work with USB support

Postby DrHu on Wed May 02, 2012 1:58 pm

Adding yourself to vboxuser group and checking the etc/fstab setup for usb devices on the Linux host OS..
http://www.howtogeek.com/howto/31726/mo ... th-ubuntu/
  • You are using the SUN version of virtualbox, inlcudes usb support as default
  • You are a member of vboxusers
  • You have installed virtualbox guest editions
  • You might need to have mounted via /etc/fstab, any usb device you need, so that it will be available for the guest OS under virtualbox..

Ubuntu guides vitrtualbox/usb setups: Mint version numbers match Ubuntu version numbers
https://help.ubuntu.com/community/VirtualBox/USB
User avatar
DrHu
Level 16
Level 16
 
Posts: 6292
Joined: Wed Jun 17, 2009 8:20 pm

Re: virtual box does not work with USB support

Postby hadian on Thu May 03, 2012 3:18 am

i know it is funny but the problem solved with doing nothing. today i turned on the PC and it mentioned problem does not exist!!!!!! note that i check the problem several times yesterday.even i retsrt the pc and shut it down and restarted but ......
the only problem is that every time i restart or shutdown the computer, i should run the command "sudo /etc/init.d/vboxdrv setup". it should be done automatically during the start up but it doesn't. any comment?
hadian
Level 1
Level 1
 
Posts: 11
Joined: Sat Sep 18, 2010 8:23 am

Re: virtual box does not work with USB support

Postby Monsta on Thu May 03, 2012 3:35 am

hadian wrote:the only problem is that every time i restart or shutdown the computer, i should run the command "sudo /etc/init.d/vboxdrv setup". it should be done automatically during the start up but it doesn't.

Hmm, my LMDE doesn't have this file, there's only /etc/init.d/virtualbox startup script (I can post its contents here if needed). And vboxdrv is the module's name (you can see it in dmesg output, for example).
Monsta
Level 8
Level 8
 
Posts: 2018
Joined: Fri Aug 19, 2011 3:46 am

Re: virtual box does not work with USB support

Postby hadian on Thu May 03, 2012 7:58 am

i have virtualbox in /etc/init.d too. but virtualbox send the message that run that command as root and tries to register the virtualbox in dkms and ... i think this should be done the first time virtualbox is installed but it needs after every start up. do you use oracle virtual box or the ones in mint repo?
hadian
Level 1
Level 1
 
Posts: 11
Joined: Sat Sep 18, 2010 8:23 am

Re: virtual box does not work with USB support

Postby Monsta on Thu May 03, 2012 9:20 am

I'm using version 4.1.8-dfsg from the Latest repo (as of Update Pack 4).
As for dkms, maybe reinstalling (with --force if needed) virtualbox-dkms will help?
Monsta
Level 8
Level 8
 
Posts: 2018
Joined: Fri Aug 19, 2011 3:46 am

Re: virtual box does not work with USB support

Postby risketo on Sat May 05, 2012 8:36 pm

I have vbox 4.1.14 and the same problem with the usb and i solved doing this.

First make a copy of this file: cp -a /etc/init.d/mountdevsubfs.sh /home/user
then open de file
sudo gedit /etc/init.d/mountdevsubfs.sh

and add the following lines at the end:

# Virtualbox - for use the USB
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


and save

Now you have to create two new files

sudo gedit /etc/udev/rules.d/40-permissions.rules


and add the following lines:

LABEL="usb_serial_start"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", \
,GROUP="vboxusers", MODE="0660", GROUP="dialout"
LABEL="usb_serial_end"

save and quit

the other file...

sudo gedit /etc/udev/rules.d/40-basic-permissions.rules


and add the following lines:

# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"
SUBSYSTEM=="usb_device", MODE="0666"

save and quit

reboot your system

hope this work to you, it helped to me
sorry for my english
risketo
Level 1
Level 1
 
Posts: 4
Joined: Sat Mar 24, 2012 1:39 pm

Re: virtual box does not work with USB support

Postby hadian on Sun May 06, 2012 1:46 am

i removed oracle virtualbox and installed virtualbox in the repo. then applied extension pack by oracle. though it is recommended to use the extension pack with the same version of virtualbox and the virtualbox in the repo is not the same version of present oracle extension pack, but it works fine on my pc.
hadian
Level 1
Level 1
 
Posts: 11
Joined: Sat Sep 18, 2010 8:23 am

partly Solution: virtual box does not work with USB support

Postby E.R.D.E on Wed May 09, 2012 2:42 pm

USB Devices are here and can be added in virtualbox configuration when startet with root uid:
sudo virtualbox.
But if I start it as normal user no USB devices are shown to be added.
I added the user to the vboxsuers in the /etc/goup - no effect.
I changed mod to 777 for /dev/bus/usb - no effect.
I have NO /proc/bus/usb there is no usb in /proc/bus. --> is that a problem??

BUT after I changed mod to 777 for /dev/vboxusb:
sudo chmod 777 /dev/vboxusb -R

if finally worked!

EDIT: well it can be configured now - but it cant be used - the usb device is grey in the menu. -Any suggestions how to handel all this?
E.R.D.E
Level 1
Level 1
 
Posts: 2
Joined: Sat May 05, 2012 6:49 am

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 2 guests