Set up virtual machines and host shared files in VMware Player

Source: Internet
Author: User
Tags perl script

set up virtual machines and host shared files in VMware player

Test environment: Virtual machine Software: VMware player 6.0.3 host os:windows7 virtual machine os:centos6.6 (32-bit) This task is done only if you want to install Vmware-tools in the virtual machine operating system. There is a module called Host-guest-file-system in Vmware-tools, which enables file sharing between host Windows and virtual machine Linux through this HGFS. First, install Vmware-tools
First, when the virtual machine is powered on, click "Player", "Manage", "Install VMware Tools", and the virtual machine's CD-ROM will load the ISO files of VMware Tools.
Second step, mount the optical drive in the virtual machine (mount-t iso9660/dev/cdrom/media/cdrom)
Step three, go to mount Point (cd/media/cdrom) and you can see one of the files: vmwaretools-9.6.2-1688356.tar.gz. Copy it to a temporary directory for decompression (Tar-xzf vmwaretools-9.6.2-1688356.tar.gz). After extracting, come out a directory vmware-tools-distrib, enter this directory. See a Perl script file: vmware-install.pl, execute this perl script ($./vmware-install.pl) and go all the way to the successful installation.

Second, set up the shared directory in VMware player

"Player", "management", "Virtual machine settings", "Shared Folders", to the shared folder settings interface. In the upper folder sharing bar, select the Always Enable (E) radio button. In the lower "folders" column, add a folder on Windows (such as D://sharefolder) as "shared folder Sharefolder". You can see the Sharefolder folder in the/mnt/hgfs/directory under the client's Linux system (the path is:/mnt/hgfs/sharefolder).
Finally, use Hgfs to share files between host Windows and virtual machine LinuxOne, the resources of the Windows system are shared to the Linux system. Windows-Linux first copies the files you want to share to a shared folder on Windows. After entering the Linux system, Cd/mnt/hgfs/sharefolder, you can see the shared files on windows in/mnt/hgfs/sharefolder. Second, Linux shares files to Windows. The linux->windows principle is to copy the files that need to be shared to the Windows system into the/mnt/hgfs/sharefolder. You can then see the shared files in Windows.

Set up virtual machines and host shared files in VMware Player

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.