How to create a shared folder in VirtualBox

Sharing folders among VirtualBox hosts and attendees isn’t almost as hard as you assume, and the results of the job can make your digital equipment much much more versatile. Jack Wallen reveals you how.

Impression: Oracle

VirtualBox is a fantastic resource for building, jogging, and taking care of digital equipment. It’s totally free, it is flexible, and it can be potent. If you use this instrument in your information middle, you could obtain the need to have to build a shared folder between a host and a guest. In fact, this is a strong way to share a folder with various company or use it as a way to develop the available storage for your virtual devices.

No subject how you use these shared folders, you have to know how to develop them initial. Permit me display you how to do so in VirtualBox 6.1.

SEE: Kubernetes: A cheat sheet (no cost PDF) (TechRepublic)

What you may have to have

To make this do the job, you can expect to need a working occasion of VirtualBox 6.1 and a guest VM presently established. I will be demonstrating with a Fedora guest and a Pop!_OS host, but the system should be the same, no make any difference which mixture you use. You will also need to make certain you’ve now mounted the Guest Additions for the guest VM. To do that, comply with these ways:

  1. Boot the visitor digital device.
  2. Log in to the guest and simply click Gadgets | Insert Visitor Additions CD Impression.
  3. When prompted, click Operate.
  4. Form your person password and click Authenticate.
  5. Permit the set up to finish.
  6. When prompted, hit the Enter essential on your keyboard.
  7. Reboot the visitor, so the modifications will just take effect.

How to outline the shared folder in the visitor

Prior to we do anything at all with the visitor, we want to possibly select a folder on the host or develop one particular. Let us build a folder in /property/Person/ named SHARED (Exactly where Consumer is the identical consumer who runs VirtualBox). Open a terminal window and problem the command:

mkdir ~/SHARED

With this folder designed (or picked), go again to your VM and pick Configurations. From the Options window, choose Shared Folders. In the resulting popup (Figure A), click on the Folder Path fall-down and pick out Other.

Determine A


Generating your shared folder in VirtualBox 6.1.

This will open your host’s file supervisor. Navigate to the freshly-developed (or selected) folder and pick out it. Up coming, form a title for the new share and simply click the verify box for Vehicle-mount. Click Okay to save the alterations and Ok to dismiss the Options window.

Generate the mount place with the command:

mkdir ~/share

You can title the mount point whatever you like. In my situation, I named it pop_share (because it truly is remaining shared with Pop!_OS). Mount the share with the command:

sudo mount -t vboxsf SHARE ~/share

Again, alter the names SHARE and share to regardless of what you have named individuals folders.

You can now open your file manager to see that the contents of the SHARE folder on the host now clearly show up on the share mount position on the guest. 

How to make this long lasting

Sadly, clicking Make Everlasting in the VirtualBox settings for the share isn’t going to truly perform. To make this share permanent, you have to insert an entry to the fstab file. Open up that file on the guest with:

sudo nano /and so on/fstab

At the base of that file, add the adhering to line:

SHARED  /property/User/share  vboxsf  uid=1000,gid=1000  

Make guaranteed the improve out SHARED for the identify of the shared folder on the host, Person with your username on the visitor, and share with the mount point on the visitor.

Preserve and near the file. Now, when you reboot the visitor, the share will be quickly mounted.

And that is all there is to producing a shared folder concerning a VirtualBox host and visitor. This would enable make your knowledge centre virtual equipment much more versatile and usable.

Also see

Fibo Quantum