Freely copy files between your VirtualBox host and guests
If you use any type of virtualization software such as VirtualBox, VMware or Hyper-V then you know how often you have to copy files between your host computer and your guest virtual machines. Without this capability you would be doing a lot of emailing files, using online storage or transferring files over the virtual network.
Thankfully, there is an option in VirtualBox that allows you to copy files between your VMs and your host. If you didn’t know, the host is the computer that is running VirtualBox and has the VMs running on it.
To enable the Shared Folders option you will need to open the VM that you wish to enable this on an go to the Devices menu item and choose Shared Folders and then Shared Folder Settings.
Next you will need to specify what folder on the host computer you want to share with the guest computer (VM). You can click on Other from the dropdown menu under Folder Path to browse the host computer for the folder or you can simply type in the path if you know it off hand.
Once you have your folder location chosen you can then decide if you want to have its contents be ready only meaning you will only be able to read the files when accessed from the VM and won’t be able to edit or delete them etc.
The Auto-mount option is used to mount this shared folder as a mapped drive (Windows) or as a mounted drive (Linux) when the VM is booted up. If you want this shared folder to be available each time you start the VM then make sure to check the Make Permanent option to allow that.
After you make all of your configuration choices you should click the OK button and you will be brought back to the Shared Folders section for that VM. It will then show you the share name, share path and access level in the window. You can add more shared folders if you wish and then they will be listed here as well. You can use the folder icon buttons on the right to edit or remove any shared folders that you have configured.
When you go back into the VM and open File Explorer to look at your files you will notice your new shared folder listed as a mapped drive under Network. Now you can work with files from your VM that are actually stored on your host computer.
Another thing you might want to enable while you are here is the Drag and Drop feature that will allow you to drag and drop files from your host computer right into the console window of the VM assuming you are dragging it somewhere that allows files to be copied such as an open File Explorer window.
You can have the Drag and Drop feature go only from host to guest, guest to host or both ways (Bidirectional). This is a very handy feature and might even work better for you than the Shared Folders option if you mostly work with your VMs in the console windows rather than remotely such as using Remote Desktop.