VMware Workstatio: linux virtual machine and local machine share file setup steps

For Linux virtual machines, you can manually install VMware Tools from the command line. For higher distributions of Linux, use the integrated open-vm-tools version.

prerequisites

For more information on OS compatibility with open-vm-tools, see the VMware Compatibility Guide at https://www.vmware.com/resources/compatibility/search.php .

  • Power on the virtual machine.

  • Verify that the guest operating system is running.

  • Because the VMware Tools installer is written in Perl, verify that Perl is installed in the guest operating system.

Process

  1. On the host, select Virtual Machine > Install VMware Tools from the Workstation Pro menu bar .

    If an earlier version of VMware Tools is installed, the menu item is Update VMware Tools .

  2. In the virtual machine, open a terminal window.
  3. Run the mount command without arguments to determine whether your Linux distribution automatically mounts the VMware Tools virtual CD-ROM image.

    If the CD-ROM device is mounted, the CD-ROM device and its mount point will be listed with output similar to the following:

    /dev/cdrom on /mnt/cdrom type iso9660 (ro,nosuid,nodev)
  4. If the VMware Tools virtual CD-ROM image is not mounted, mount the CD-ROM drive.
    1. Create the mount point directory if it does not already exist.
      mkdir /mnt/cdrom

      Some Linux distributions use different mount point names. For example, the mount point on some distributions is /media/VMware Tools instead of /mnt/cdrom . Please modify the command to reflect the conventions used by your distribution.

    2. Mount the CD-ROM drive.
      mount /dev/cdrom /mnt/cdrom

      Some Linux distributions use different device names, or organize the /dev directory differently. If the CD-ROM drive is not /dev/cdrom or the CD-ROM mount point is not /mnt/cdrom , you must modify the command to reflect the convention used by your distribution.

  5. Change to a working directory, eg /tmp .

    cd /tmp

  6. (Optional) Before installing VMware Tools, delete the previous vmware-tools-distrib directory.

    The location of this directory depends on where the previous installation was stored. Typically, this directory is located at /tmp/vmware-tools-distrib .

  7. List the contents of the mount point directory and note the filename of the VMware Tools tar installer.
    ls mount-point
  8. Unzip the installer.
    tar zxpf / mnt / cdrom / VMwareTools- xxx - yyyy .tar.gz

    The xxx value is the product version number and yyyy is the build number of the product version.

  9. If needed, unmount the CD-ROM image.
    umount /dev/cdrom

    If your Linux distribution automatically mounts the CD-ROM, you do not need to unmount the image.

  10. Run the installer and configure VMware Tools as root.
    cd vmware-tools-distrib
    sudo ./vmware-install.pl

    Typically, the vmware-config-tools.pl configuration file will be executed after the installer file finishes running . If you attempt to install a tar installation overwriting an RPM installation or vice versa, the installer will detect the previous installation and must convert the installer database format before proceeding.

  11. Then edit the virtual machine settings-options-shared files-always enable, and add the local shared folder, start the virtual machine, and see if there are any local shared files in the /mnt/hgfs folder

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324651443&siteId=291194637