安裝Oracle VM VirtualBox Extension Pack,須要把linux用戶加入linux
命令:sudo usermod -aG vboxusers <username> ubuntu
重啓系統或者註銷用戶生效bash
資料來源: http://askubuntu.com/questions/25596/how-to-set-up-usb-for-virtualboxui
-----------------------------------------分割線,下面是老資料-------------------------spa
sudo adduser 你的linux用戶名 vboxuserscode
而後從新啓動get
資料來源:it
http://stackoverflow.com/questions/20021300/usb-devices-are-not-recognized-in-virtualbox-linux-hostio
Ok, that's my solution, simplified and improved with the help of vorburger and boechat.require
Execute sudo adduser YOURUSERNAME vboxusers
, log out and log in again.
Close virtualbox
Execute in bash: sudo adduser YOURUSERNAME vboxusers
Log out and log in again
Attach to your PC the USB devices you want to be automatically mounted in the VM (virtual machine).
Open Virtualbox
Select your VM and go to "Machine" -> "Settings" -> "USB".
Check "Enable USB Controller"; click on the icon with the USB plug and the plus, and click on the devices you want to be automatically mounted in the VM. Click "Ok".
Click on "Start" toolbar button, and ensure your USB devices are recognized and mounted by the VM. Remember that you have to unmount them in the host OS too if you have to disconnect them after you exit the VM.
Note that Extensions Pack and Guest Additions are not strictly required, but with Extension Pack you can use USB 2.0. You have also to enable it under USB settings. Without it all your USB devices are controlled as USB 1.0, so they will work at lower speed.