How to use Open VM tools to replace the VMware tools enhancements in VMware workstation/fusion when installing Fedora 23/24 and other Linux systems _vmware

Source: Internet
Author: User
Tags vmware fusion

VMware workstation/fusion are the corresponding desktop virtualization software under 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, virtual machine display resolution adaptive tuning, virtual machine display capability enhancement and 3D acceleration.

But with the development of the Linux kernel and the surrounding environment, VMware is no longer recommending the installation of VMware's official enhancements in Linux virtual machines, instead recommending that users use Open VM tools.

Open VM Tools is VMware's original virtual machine enhancement tool (VMware Tools) most open to the community to continue to develop the formation of the Linux Open source Virtual machine Environment Enhancement Toolkit, not only to support VMware virtualized environment architecture, but also to support Paralle LS Virtualized Environment Architecture (another VMware-like Business Desktop virtualization product) may later support virtualized architectures such as Kvm/xen.

Open VM Tools can be upgraded with the Linux kernel to support the latest version, to solve the problem of the past VMware upgrades too slow, not keep up with the Linux kernel and the surrounding software upgrade rhythm resulting in the disappearance of virtual machine enhancements (sometimes require users to their own VMware Tools source code Patch recompile installation, very cumbersome).

In the case of VMware Fusion in the MacOS environment, after installing Fedora Linux, Fedora has installed the Open VM Tools by default, and can view the following commands:

$ RPM-QA | grep OPEN-VM

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

open-vm-tools-desktop-10.0.5-4.fc24.x86_64
open-vm-tools-10.0.5-4.fc24.x86_64

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

# DNF Install open-vm*

After installing Open VM Tools, virtual machine display enhancement, 3D acceleration, resolution adaptive adjustment, etc. are already available, but the file sharing feature between the virtual machine and host hosts is not turned on by default, even if you configure file sharing and enable on the host. Open VM Tools actually support VMware's own Hgfs file sharing system, but need to manually execute the relevant commands in the virtual machine and do a small amount of configuration. My idea here is to add a shared file Mount command to the boot script/etc/rc.d/rc.local to enable the file share to be automatically available after power-on. Use the following command to edit the self-startup script:

# vi/etc/rc.d/rc.local

Add the following content:

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

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

# chmod A+x/etc/rc.d/rc.local

When you restart the virtual machine system, you will find that the shared folder has been automatically mounted to the/mnt/hgfs directory. Because of the use of an vmware-hgfsclient command provided by Open VM Tools, you can automatically identify the name of the VMware shared folder that you have set up and do not need to specify it yourself in the Mount command (you can, of course, 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 this 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 also use the Mount command to Mount VMware's shared folders, 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.

The above is a way to use Open VM tools instead of the VMware tools enhancements in the VMware workstation/fusion that are introduced to you, in the hope of helping you if You have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

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.