Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. https://blog.csdn.net/qq_20480611/article/details/50073647
Because of the need to learn work, often in the virtual machine and the Windows host transfer some files, if the command or the use of FTP server will be a bit of trouble, and inconvenient, it is their own use, no need so toss, and now we use the virtual machine is basically built under the VMware, So we can share folders and the Clipboard between the host and the virtual machine with VMware's own enhancements, here's how:
1. Open the virtual machine (the CentOS I use here) to install the VMware Enhancement tool
On the VMware menu bar, click Virtual Machines, install VMware Tools
2. Installing VMware Tools under CentOS
After the first step, the VMware Virtual CD-ROM will pop up under CentOS, with the following command:
cp/mnt/cdrom/vmwaretools*.tar.gz/tmp/#注意这里的 * Indicates the version number with only one compressed package in the directory
cd/tmp# switch to/tmp directory
Tar zxvf vmwaretools*.tar.gz# Unpacking Package
CD vmware-tools-distrib# into the package just unpacked
./vmware-install.pl# Executing the Setup program
There will be many choices, all by default (enter key)
3. Setting up Shared Folders
After the second step is completed, we will find one more folder/mnt/hgfs/
Next we want to select the shared folder:
Click Shared Folders, options, settings, virtual machines
Click Add Post to configure folder
4. Configure shared clipboard
5. Restart
After the above 4 steps, if the smooth, we only need to restart on it, the following is the experimental results: (after restarting)
Start by creating a new file in the Linux shared directory:
Then we look at the Windows shared folder: