How To Share a Folder With the Virtual Machine

There is no service provided by VM that how we can share folder or data with base machine...
But today i got a trick and it is on ubuntu 10.10
trick is here...
1. Make the folder anywhere you want on your PC. I preferred the Desktop.
2. After that you have to go to VirtualBox. Then to Devices menu > Install Guest Additions.(This will automatically mount a disk to your Ubuntu)
3. Then go to your terminal and enter

1
sudo apt-get install dkms


Installing the dkms
Installing the dkms
4. Then you are ready to install Guest Additions. Open the disk on the Desktop and chose the auto-run. (Most of the time authentication dialog boxes will prompt up. So better get use to it). Then your Guest Addons are installed.

Authentication for root
Authentication for root

Installing Guest Additions
Installing Guest Additions
5. Now next is to set up the Shared folder. again go to device menu. Then to Shared Folder. There you can make select the directory of the Folder you want to share. In my case the folder called sr on the desktop.
6. Then go to your terminal.
7. Then enter
1
sudo nautilus
This will open to root version of the File Manager.

Getting the root File Manager
Getting the root File Manager
8. Then go to your File System. There is a folder called Media.
9. Inside that you’ll find your folder with sf_your_folder_name as it’s name.
10. Voila you are done! (If you didn’t do the 6,7,8,9 you won’t be able to get inside the folder because you’ll get a permission error)
Now it is the end...

2 comments:

Any Query, Suggestion Please Comment Here