Permissions for using USB devices in virtualbox in Ubuntu

Source: Internet
Author: User

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 in and manage, 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 and virtualbox 1.3.6, and may not be suitable for other versions of the system.

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.

Start virtualbox
In settings-> USB
Select Enable USB controller
Add the USB device you want to use in the USB device filters list.
(Click the plus icon on the right of the List to select a USB device or use
Vboxmanage list usbhost
Command to list all USB devices, and then fill in the Form to add)

Okay. The settings are complete. Restart Ubuntu and start Windows XP in virtualbox. Now you can use a USB device.

QQ can video chat, but sometimes the image will pause for a while. CPU usage: 100% (one of the dual-core CPUs ).

How to start QQ in virtualbox: Modify the npkcrypt. sys (System File, hidden by default) file name under the QQ installation directory. It is said that there will be installation risks after modification. Please use this method as appropriate.

Reprinted Please note: transferred from the ship's log, this article link address: http://www.cslog.cn/Content/ubuntu_virtualbox_usb_dev/

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.