Implement file sharing for virtual machines and real machines

Source: Internet
Author: User

Lab Environment: Real machine is win7, virtual machine is VirtualBox, virtual machine is installed centos6.5

1. Install the enhanced Feature Pack

Login After the Linux system, select "Install Enhancements" in "devices" and a disc icon will appear on your desktop. This disc is automatically loaded into the folder/media/vboxaddition_3.2.10_66523 by default ( this name may vary depending on the version )

Note: If the graphical interface is not installed, install the graphical interface first, otherwise this file will not be visible.

2. Execute the command:

cd/media/vboxaddition_3.2.10_66523

Shvboxaddition_3.2.10_66523-x86.run, version different name is not the same, in short run a file ending with. Run

3. Execute the command:

Ln-s/usr/src/kernels/2.6.18-194.26.1.el5-i686/usr/src/linux

4.set up shared folders on virtual machines

first put The Guest user name is suppressed, the password is set, and a shared folder is created on Windows, such as:E\share. set up on the virtual machine to find this shared folder

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/70/FE/wKioL1XDFnDy1qIBAAEK-TfJoow445.jpg "title=" QQ picture 20150806160059.png "Width=" "height=" 323 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:500PX;HEIGHT:323PX; " alt= "Wkiol1xdfndy1qibaaek-tfjoow445.jpg"/>

5. Mount Shared Folders
At the command line terminal, enter:
#sudo mkdir/mnt/share(this folder can be defined by itself)
#sudo mount-t vboxsf winshare/mnt/share(winshare is the folder you just built, my is share, fortheir own on the line)

can now be accessed, if you do not want to manually mount each time, you can add an itemin/etc/fstab: Share/mnt/share vboxsf rw,gid=100,uid=1000,auto 0 0
This will automatically be mounted.

Un-mount
#sudo umount-f/mnt/shared

Complete.


This article is from the "Tosagta" blog, please be sure to keep this source http://tsoagta.blog.51cto.com/9747076/1682289

Implement file sharing for virtual machines and real machines

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.