-----
The question is:
How to make you USB devices work inside the emulated OS's?
Step 1
Type on a console:
sudo gedit /etc/init.d/mountdevsubfs.sh
Next you move around to line 45 and remove the #'s from the missing USB support.It should look like this once it's ready:
#
# 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
}
Step 2
Type in console:
sudo gedit /etc/udev/rules.d/40-basic-permissions.rules
Change the lines :
From:
# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
SUBSYSTEM=="usb_device", MODE="0664"
To :
# USB devices (usbfs replacement)
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usbusers", MODE="0664"
SUBSYSTEM=="usb_device", MODE="0664"
Step 3
You need to know which group number is used for "vboxusers"
Here are the steps:
- Click --> System --> Admisnitration --> Users & Groups
- Click on "Unlock"
- Click on "Manage Groups"
- Scroll down until you see the "vboxusers" group and see the respective number.
Type in console:
sudo gedit /etc/fstab
add this line on the bottom of the file:
none /proc/bus/usb usbfs devgid=120,devmode=664 0 0
Change 120 in the above line with the "vboxusers" group number you got on the beginning of this step.
Step 4
Reboot the computer.
Open VirtualBox and click on "Settings".
Click on the "USB" item in the left pane to edit the USB preferences
Click on the "Add device" button to add a filter and select your USB device
Start your VM and Windows should detect your USB devices.
:)
No comments:
Post a Comment