Permission for using USB devices on VirtualBox virtual machines in Ubuntu

Source: Internet
Author: User
VirtualBox is a virtual machine program. I installed one on Ubuntu6.06 and One Windows XP on it to solve the problem that some domestic software and websites do not fully support the linux system, for example, the ICBC website can only use the IE browser under Windows to log on to the management, and for example, only the QQ Software under Windows can transmit files and voice and video chats. VirtualBox supports connecting USB devices on hosts to virtual machines (guest. However

VirtualBox is a virtual machine program. I installed one on Ubuntu 6.06 and One Windows XP on it to solve the problem that some domestic software and websites do not fully support the linux system, for example, the ICBC website can only use the IE browser under Windows to log on to the management, and for example, only the QQ Software under Windows can transmit files and voice and video chats.

VirtualBox supports connecting USB devices on hosts to virtual machines (guest. However, you must start VirtualBox as the root user. Otherwise, VirtualBox cannot be used due to permission issues. I checked some websites and asked my USB camera to work properly on Windows XP on the Virtual Machine without the root permission. So I posted the detailed method, for your reference. This method is successfully verified in Ubuntu 6.06, VirtualBox 1.3.6, and may not be suitable for other versions of Ubuntu.

The procedure is as follows:

First create a usb fs group:

Sudo groupadd usbfs

Add the current user to this user group:

Sudo adduser $ USER usbfs

Open the/etc/group file

Gedit/etc/group

Search for usbfs and write down the ID. For example, my situation is:

Usbfs: x: 1002: yourname

Above 1002 is the ID.

Open the/etc/fstab file:

Sudo gedit/etc/fstab

Add a line to the end:

None/proc/bus/usb usbfs devgid = 1002, devmode = 664 0 0

Note that in devgid = 1002, change 1002 to the usb fs group ID you just found in the group. Save the file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.