Advance

Tutorial Install And Enable USB On VirtualBox

Richard 9 Min Read
Tutorial Install And Enable USB On VirtualBox
1
(1)

VirtualBox is open-source software that acts as a hypervisor and creates a virtual machine where the user can run another operating system. You can install VirtualBox on Windows, Linux, macOS, and OpenSolaris. If your data center relies on VirtualBox and your virtual machines rely on USB, you need to enable USB to be able to use it. Join us with the Tutorial Install And Enable USB On VirtualBox step by step.

How To Install And Enable USB On VirtualBox

You can use VirtualBox to run virtual machines on your physical machine. In this way, you do not have to reinstall your OS that is running on that physical machine. You may notice that USB does not support your virtual machines unless you do not enable USB manually while your data center depends on VirtualBox. In this situation, if you need to backup data to an external drive or transfer data between your VMs that are not on the same subnet, you need to share data via USB.

Recommended Article: Initial server set up on Ubuntu 20.04 LTS

Let’s assume that you have already set up VirtualBox on your Windows or Linux VPS host OS and VirtualBox guest additions on your Windows or Linux guest OS. In this way, you need to setup a VirtualBox extension pack and then setup the VirtualBox USB drive. Stay with us to go through the steps of this guide and access USB on VirtualBox.

Install the VirtualBox Extension Pack

First of all, you need to install the latest version of the Extension Pack. To grab the file for All supported platforms, go to the VirtualBox Downloads page. When the download is finished, follow the below path to complete the process of VirtualBox Extension Pack installation.

1- Open up VirtualBox >> Click File >> Preferences in the Menu.

 

access USB on VirtualBox

 

2- Now, click on the Extension tab and then click the + button.

 

Extension Pack

 

3- Navigate to where you saved the Extension Pack and select the Install button.

 

Install Extension Pack

 

4- In this step, you need to scroll through the Virtualbox License and then click the ”I Agree” button to install it.

 

Install Extension Pack

 

5- Type your Sudo password and allow the installation to complete. To continue, click on Authenticate button.

 

Install the Extension Pack

 

Finally, you can see the VirtualBox Extension pack is installed.

 

Installed Virtualbox Extension Pack

 

How to Enable USB Access to User

In this section, the VirtualBox must have access to the USB subsystem. To do this, you need to add a user to the vboxusers group to allow it to access the USB subsystem. So, open the terminal and run the following command:

sudo usermod -aG vboxusers <USERNAME>

Where USERNAME is the name of the user. Remember to log out and log in back again when the command is run.

To check which groups your user account belongs to, use the command below:

groups yourusername
Recommended Article: How to Configure Ajenti on CentOS 8 [complete]

How to Activate USB Support in VirtualBox

To enable USB support, first, open up VirtualBox, right back on the virtual machine that needs access to a USB device, and click Settings.

 

Activate USB Support in VirtualBox

 

In the VM settings windows, click on USB. There, you must see the available USB devices. To add a new device, click on the + sign.

 

Activate USB Support in VirtualBox

 

When the USB device is added and you start up the VM, it can have access to the data on the USB device. However, anytime you wish, you can enable more USB devices and give access to more than one USB device. To do this,  go back into the Settings window of the VM, click on USB and add the next devices.

That’s that! You will be able to repeat that until the VM has access to all necessary USB devices

Conclusion

In this article, you learned How to Install And Enable USB On VirtualBox. From now on, when you boot up your VM, you can see your USB device. While USB is being used by VirtualBox, your host OS could not see the USB device.

How useful was this post?

Click on a star to rate it!

Average rating 1 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

View More Posts
Richard
Eldernode Writer
We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

Leave a Reply

Your email address will not be published. Required fields are marked *

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day