In this post I am going to show how to access windows shared directory from Ubuntu 16.04.3 LTS virtual machine.
First create a directory on the host. For example I am creating one directory called on my E drive [ My host is Windows 7 ] .
Now open VirtualBox go to settings of your Ubuntu guest, under shared section add your directory that was created with full permission. Once this is completed login to Ubuntu virtual machine and type the below:
sudo usermod -aG vboxsf $(whoami)
Executed on my machine as like below:
sloba@sloba-VirtualBox:~$ sudo usermod -aG vboxsf $(whoami) [sudo] password for sloba: sloba@sloba-VirtualBox:~$ reboot
After that reboot your Ubuntu machine you can access the shared drive as shown below.
sloba@sloba-VirtualBox:~$ ls Desktop Downloads Music Pictures Templates Documents examples.desktop oraInventory Public Videos sloba@sloba-VirtualBox:~$ cd /media/ sloba@sloba-VirtualBox:/media$ ls -lrt total 12 drwxrwx--- 1 root vboxsf 0 Jan 22 21:12 sf_vmshare sloba@sloba-VirtualBox:/media$ cd sf_vmshare/ sloba@sloba-VirtualBox:/media/sf_vmshare$
Thank you for reading my blog , please feel free to leave me some feedback or to suggest any future topics.