HowToProgram

VirtualBox – Share folder from host

When we work with virtual machines created by virtualization software like VirtualBox, VMWare Workstation,.. we often need a shared folder between host machine and guest machine in order to share software, documents… In this article, I’d like to share  how to share files and folders (directories) between host and guest I have done on my PCs. The host is Window 8, the guest is Ubuntu 14.0.4 and virtualization software is VirtualBox.

The main steps includes:

1. Install VirtualBox Guest Additions

one way is:

sudo apt-get install virtualbox-guest-additions-iso

2. Create a shared folder on host machine

3. Create mount folder on guest machine

mkdir ~/shared

4. Execute command (to bind those folders)

sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) share ~/share