Search This Blog

Showing posts with label virtual box. Show all posts
Showing posts with label virtual box. Show all posts

04 February, 2018

Oracle Virtual Machine Creating Shared Folder and its Permission in Ubuntu guest

Explaining the Steps for sharing a folder on Oracle VM with Windows Host and Ubuntu Guest

VirtualBox’s Shared Folders feature works with both Windows and Linux guest operating systems.
Steps to follow to do this is as follows



1) Install VirtualBox’s Guest Additions in the guest virtual machine.
After the guest os(Ubuntu) is booted,
click the “Devices” menu and choose the
“Insert Guest Additions CD image” option.
This inserts a virtual CD that you can use within the guest operating system to install the Guest Additions.

2) we need to reboot the VM Guest

3) Creating a shared folder
from the menu

Devices -> Shared Folder -> Shared Folder Settings

Select a folder to be shared between Windows and Ubuntu
Reboot the VM

4) Now we should be able to see the shared folder in /media/sf_*****

5) Setting Permission

 But now when you click using browser or change directory you will see permission issue. For this we need to run the below command in terminal

sudo adduser <your_user_name> vboxsf

or

sudo adduser `whoami` vboxsf

Logout the current user and login again or reboot the Ubuntu guest, After logging in you will be to access the shared folder from the Ubuntu

16 August, 2016

virtual machine shared folder permission


When using Ubuntu on Virtual Box, you can share a folder between Windows Hosta and Ubunut Guest, after doing the sharing, you need to set the permission so that it can be accessed using the normal user login



You need to type the followinf command to add the permission for the normal user to access it

sudo usermod -aG vboxsf <youruser_name>

or

sudo usermod -aG vboxsf `whoami`


tmux enabling mouse interaction

Add the below line to the ~/.tmux.conf setw -g mouse on save the file and exit from the tmux shell, you should be able to use your mouse to ...