How to use Open VM tools instead of VMware Tools enhancements when installing Fedora 23/24 and other Linux systems in VMware workstation/fusion

Source: Internet
Author: User
Tags vmware fusion

VMware Workstation/fusion is the desktop virtualization software for Windows/linux and MacOS, respectively. In the past, after installing an operating system virtual machine in VMware, it was necessary to install the VMware Tools Enhancement tool in the virtual machine to enable file sharing between host and virtual machines, adaptive adjustment of virtual machine display resolution, enhanced virtual machine display capability, and 3D acceleration. However, with the development of Linux kernel and its surrounding environment, VMware is no longer recommended to install the official VMware Enhancements in Linux virtual machines, and it is recommended that users use Open VM tools instead. Open VM Tools is VMware's legacy virtual machine enhancement tool (VMware Tools) Most open source after the community continues to develop a well-formed Linux open-source Virtual machine Environment Enhancement toolkit that not only supports the VMware virtualized environment architecture, but also supports Paralle The LS virtualized environment architecture (similar to VMware's another commercial desktop virtualization product) may later support virtualization architectures such as Kvm/xen. Open VM Tools can be updated with the Linux kernel to support the latest version, completely resolve the past VMware upgrade is too slow to keep up with the Linux kernel and the surrounding software upgrade rhythm caused the virtual machine enhancement effect disappears (sometimes requires the user to the VMware Tools source code Patch recompile installation, very cumbersome).

In the case of VMware Fusion in MacOS, for example, after installing Fedora Linux, Fedora has installed Open VM Tools by default and can be viewed with the following commands:

grep OPEN-VM

If Open VM Tools is installed, the following information is returned:

open-vm-tools-desktop-10.0. 5-4. Fc24.x86_64open-vm-tools-10.0. 5-4. fc24.x86_64

If you find that Open VM Tools is not installed on your system, you can install it with the following command:

Install open-vm*

After you have installed Open VM Tools, the display enhancements for virtual machines, 3D acceleration, resolution adaptation, and so on are all available, but the file sharing feature between the virtual machine and the host is not turned on by default, even if you configure the file sharing feature and enable it on the host. In fact, Open VM Tools supports VMware's own Hgfs file sharing system, but requires manual execution of the relevant commands in the virtual machine and minimal configuration. My idea here is to add a shared file Mount command to the boot-up script/etc/rc.d/rc.local, which enables file sharing to be automatically available after boot. Edit the self-launch script using the following command:

VI /etc/rc.d/rc.local

Add the following content:

#!/bin/Bashvmhgfs-fuse-o allow_other. host:/$ (vmware-hgfsclient)/mnt/hgfs

Then make sure that/etc/rc.d/rc.local has executable permissions:

chmod a+x/etc/rc.d/rc.local

After restarting the virtual machine system, you will see that the shared folder is automatically mounted to the/mnt/hgfs directory. Because of the use of an vmware-hgfsclient command provided by Open VM Tools, it is possible to automatically identify the name of the VMware shared folder that you set up, without having to specify it yourself in the Mount command (and, of course, you can specify it yourself in the command). After the mount is successful, we use the Mount command to view all currently mounted file systems and related directories:

Mount

You will find a line in the feedback result:

Vmhgfs-fuse On/mnt/hgfs type fuse.vmhgfs-fuse (rw,nosuid,nodev,relatime,user_id=0, group_id=0, Allow_other)

This means that we can actually mount VMware's shared folder with the Mount command, except that the name of the shared file system is specified as Fuse.vmhgfs-fuse, which is not directly mentioned in the Open VM Tools documentation.

How to use Open VM tools instead of VMware Tools enhancements when installing Fedora 23/24 and other Linux systems in VMware workstation/fusion

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.