Virtual Machine shared folder settings

Source: Internet
Author: User
Tags virtualbox shared folder

(Paste the old notes for future reference)

Virtualbox shared folder settings

1. Install the enhancement package (guest additions)
After Ubuntu is installed, run Ubuntu and log on. Select "devices"-> "Install guest additions" from the virtualbox menu )".
You will find an extra disc icon on the Ubuntu Desktop, which is automatically loaded to the folder/Media/cdom0 by default. Go to the command line terminal and enter:
CD/Media/cdom0
Sudo./vboxlinuxadditions. Run
Start to install the toolkit. After the installation is complete, you will be prompted to restart ubuntu.
2. Set Shared Folders
After the restart, click "devices"-> shared folder (shared folders) to add a shared folder. The fixed and temporary options refer to whether the folder is persistent. Share names can be any one you like, such as "shared". Try to use an English name.
3. Mount Shared Folders
Re-enter the virtual Ubuntu and enter the following in the command line terminal:
Sudo mkdir/Media/shared
Sudo Mount-T vboxsf shared/Media/shared
"Shared" is the name of the previously created shared folder. OK. Now Ubuntu and the host can upload files to each other.
If you do not want to manually mount each time, you can add
Shared/media/shared vboxsf rw, gid = 100, uid = 1000, auto 0 0
This enables automatic mounting.
4. Run the following command to uninstall the SDK:
Sudo umount-f/mnt/shared

Note:
The name of the shared folder must not be the same as that of the mount point. For example, the mount point above is/mnt/shared, if the name of the shared folder is also shared, the following error message will appear when mounting (see http://www.virtualbox.org/ticket/2265 ):
/Sbin/mount. vboxsf: mounting failed with the error: Protocol error

For the cause analysis, refer to the Shared Folder on a Linux Guest section of Tips on running Sun Virtualbox.

Vmwarevm sharing

1) install vmware-tools: VM-> install vmware-tools
The folder vmware-tools appears on the Virtual Machine desktop.
2) Go to/media/VMware tools
3) beibeitar.gz to/tmp: cp .tar.gz/tmp
4) decompress: tar-zsvf ..tar.gz
5) cd/tmp/vmware-tools-distrib
/Vmware-install.pl

6) CD/mnt/See That HGFS is a shared file

6). Set the shared folder
Right-click the VM and choose Settings> Options> shared folders> enable --> select the window folder.

Restart, CD/mnt/HGFS, and you will see the shared file in windows.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.