virtual box does not work with USB support

Archived topics about LMDE 1 and LMDE 2
Locked
hadian

virtual box does not work with USB support

Post by hadian »

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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
dwainehead

Re: virtual box does not work with USB support

Post by dwainehead »

you need to add yourself to the vbox user group.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: virtual box does not work with USB support

Post by Monsta »

dwainehead wrote:you need to add yourself to the vbox user group.
vboxusers, to be precise. :)
hadian

Re: virtual box does not work with USB support

Post by hadian »

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?
ukbrian

Re: virtual box does not work with USB support

Post by ukbrian »

Have you added the extension pack in vbox>Preferences ?
Image
DrHu

Re: virtual box does not work with USB support

Post by DrHu »

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
hadian

Re: virtual box does not work with USB support

Post by hadian »

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?
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: virtual box does not work with USB support

Post by Monsta »

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).
hadian

Re: virtual box does not work with USB support

Post by hadian »

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?
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: virtual box does not work with USB support

Post by Monsta »

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?
risketo

Re: virtual box does not work with USB support

Post by risketo »

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
hadian

Re: virtual box does not work with USB support

Post by hadian »

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.
E.R.D.E

partly Solution: virtual box does not work with USB support

Post by E.R.D.E »

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?
Locked

Return to “LMDE Archive”