By this time, if you were following our previous posts, you should know how to install, configure and use VirtualBox on Windows and Linux systems (Ubuntu). This brief tutorial shows students and new users how to mount or insert an external USB flash/thumb drive into a VirtualBox guest machine running Windows or Ubuntu Linux VMs. It will allow you to access physical USB content from the guest’s machine. You won’t be able to access external USB devices from your VirtualBox guest machines without first installing its guest additions tool. We’ve also discussed how to install that after installing the host software. To get started with using external USB devices from VirtualBox guest machines, follow the steps below:
Install VirtualBox Guest Additions on the VM
When you create or install a new guest machine, your first task should be to install its guest addition tool in the VM. The tool contains a suite of utilities that enhance the virtual machine’s operating systems and improves the management of the machine… Without the tool installed, the guest machine will not perform as expected. To install the guest tools on Ubuntu / Windows guest machines, read the post below: Note: Windows VMs need only mount the guest addition tool CD and install the executable. No need to install additional software or packages How to install VirtualBox guest additions
Grant Ubuntu User Account Rights to Mount
Now that you’ve installed the VirtualBox guest addition tool on the VM, open the command terminal on the Ubuntu guest machine. This only works on Ubuntu, and run the commands below: You should see the output below: Or run the commands below if the above failed. sudo usermod -aG vboxsf $USER After that, shut down the guest’s machine.
Mount External USB Drives
Now that you’ve installed the VirtualBox guest addition tool and have added your user account to the VirtualBox service group, follow the steps below to mount your external flash/thumb drives. Shut down the guest machine, then insert the external USB into the host machine. From the guest machine panel, select Settings or click Machine –> Settings Then go to USB on the left navigation panel. There, USB 2.0 (ECCI) Controller should automatically be selected. Most USB 3.0 devices are backward compatible with 2.0. If your device is USB 3.0, then select that. If not, 2.0 should be perfect! You will find the add USB button to the right. Click the second button below. to add an attached USB stick. Pick the device from the list. (generally called Generic Mass Storage) Select it to mount. Once the device, is mounted, turn on the guest machine and log on. You should then see the USB device mounted and shown on your desktop. Your device should show up automatically in the guest VM and you can use it the same way you would be able to on the host operating system. Access the device and the content it contains. That’s all Congratulations! you have learned how to install VirtualBox guest addition tools and mounted an external USB thumb drive to the guest machine. You may also like the post below: