The author wants to use my All-in-one machine on virtual XP to make up for my Ubuntu print driver deficiency. USB port printer in the virtual machine does not respond, do not worry, we have to the system to make a simple setting, the purpose is to let Virutalbox have the right to use our USB device directly.
1. Add User group Usbfs
sudo groupadd usbfs
2. View the GID for the USBFS user group
Cat/etc/group | grep USBFS
USBFS:X:1002:
3. Add current user to Usbfs group sudo gedit/etc/group
Change the usbfs:x:1002: fix to
usbfs:x:1002:{your username, note do not include quotes}
Of course, the above steps can be completely graphical interface operation, position is:system–> System Management –> user and group operation.
4. To reset the permissions for the USB device edit/etc/fstab file, add the following two lines, note that your GID may not be 1002
sudo gedit/etc/fstab
At the end add
# 1002 is the USB group IDI
None/proc/bus/usb Usbfs devgid=1002,devmode=664 0 0
5. After restarting, you should be able to use the USB device on the client computer.
How to use:
Insert a USB device, such as U disk, right click on the virtual machine in the right leg of the USB icon, select the identified U disk, you can use the normal.
6. Virtual machine WinXP and host Ubuntu data sharing, the simplest way is to set the data space, because the author in the use of data space encountered some strange problems, so this part of the next discussion alone.