Mount USB Devices in Virtualbox with Ubuntu
Posted on October 18, 2010 • 2 minutes • 422 words
Mounting a USB device inside a virtual machine is often a tool that you cannot go without. If you are using Virtualbox in Ubuntu however, you need to take a few extra steps to make it work.
The first thing you need to do is install Virtualbox from Oracle’s website. It is different than Virtualbox OSE which is included in the Ubuntu repositories because the Virtualbox from Oracle includes proprietary software which allows you to mount USB devices inside you VM among other things. If you already have Virtualbox OSE installed from the Ubuntu repositories, uninstall it before installing the .deb file from Oracle’s website.
Note: Any VMs you made with Virtualbox OSE will still work with the standard version of Virtualbox. Uninstall Virtualbox OSE before installing virtualbox from Oracle.
Set up Your Virtual Machine
Install your virtual machine and once the installation is complete install the Virtualbox guest additions into the guest OS from the devices menu.
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.
Along the right hand side there will be a few icons to set up USB filters. These filters are where you can tell Virtualbox what USB devices you want to have available to your guest OS. Plug in your USB device and click on the second icon to view available USB devices that can be mounted into the guest OS.
Select any devices you would like to mount in the guest OS and then close out of the settings window.
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.
Scroll down in the group settings and highlight the vboxusers group and then click properties on the right.
In most cases you probably will only have one user so check the box to include your user in the group; put in your admin password when prompted, and then restart your computer.
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.
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.