Mounting a USB device inside a virtual machine is often a tool thatyou cannot go without. If you are using Virtualbox in Ubuntu however,you need to take a few extra steps to make it work.

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

Install Virtualbox

The first thing you need to do is install Virtualbox from Oracle’swebsite. It is different than Virtualbox OSE which is included in theUbuntu repositories because the Virtualbox from Oracle includesproprietary software which allows you to mount USB devices inside you VM among other things. If you already have Virtualbox OSE installed fromthe Ubuntu repositories, uninstall it before installing the .deb filefrom Oracle’s website.

Note: Any VMs you made with Virtualbox OSE will still work withthe standard version of Virtualbox. Uninstall Virtualbox OSE beforeinstalling virtualbox from Oracle.

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

Set up Your Virtual Machine

Install your virtual machine and once the installation is completeinstall the Virtualbox guest additions into the guest OS from thedevices menu.

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

Turn the virtual machine off and go to the settings for the VM. Click on USB on the left and check the top two boxes in the window shown.

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

Along the right hand side there will be a few icons to set up USBfilters. These filters are where you can tell Virtualbox what USBdevices you want to have available to your guest OS. Plug in your USBdevice and click on the second icon to view available USB devices thatcan be mounted into the guest OS.

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

Select any devices you would like to mount in the guest OS and then close out of the settings window.

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

Set Up Your User Account

The next thing you need to do is add your user to the vboxusers group on your system. Navigate to the System -> Administration -> Users and Groups option and click on manage groups on the left side.

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

Scroll down in the group settings and highlight the vboxusers group and then click properties on the right.

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

In most cases you probably will only have one user so check the boxto include your user in the group; put in your admin password whenprompted, and then restart your computer.

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

Mount Your USB Device

Once your computer restarts, log in and start your virtual machine.In the devices menu of the VM, select the USB device you want to mount.

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

Your device should show up automatically in the VM and you can use it the same way you would be able to on the host operating system.

Mount USB Devices in Virtualbox with Ubuntu-LMLPHP

虽然是ubuntu,但是fedora 也应该可以的.

12-28 03:31