Vmvm centos file sharing directory settings

Source: Internet
Author: User
Source: Install VMware Tools in centos 6, and solve the problem of HGFS in/mnt without sharing files after installation.

 

1. First install VMware Tools

1. Enter Linux as root

2. In the VMware Status Bar of Virtual Machine Software, click the Enable VMware Tools sub menu under the setting menu, at this time in the TAR zxf vmware-linux-tools.tar.gz of Linux

4. Enter the decompressed folder and start installation with./vmware-install.pl

5. Press enter to use the default configuration.

6. Enter the/usr/bin directory and run./vmware-config-tools.pl.


2. Solve the Problem of HGFS in/mnt after installing VMware Tools but not sharing files

Prerequisites: A shared directory is set in the Virtual Machine Software.

In Linux, the/mnt/HGFS folder is displayed, but the shared file is not displayed.

Use the following methods (root permission ):

1.Vmware-hgfsclientCommand to view which shared directories are currently available. Here I only use shared folders


2. UseMount-T vmhgfs. HOST:/shared/mnt/HGFS command to mount the shared folder (Note: Oh with A. Number). In this example,. HOST:/documents is the share name. You only need to replace them

UseVmware-hgfsclientCommand to get the directory,/mnt/HGFS is the mount point


3. You can use the shared folder until now, but you have to mount the folder again each time. Therefore, you must set it to automatically mount the shared folder after random startup.

Edit/etc/fstab and add the following line

. HOST:/shared/mnt/HGFS vmhgfs defaults 0 0 (write as needed)

Related Article

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.