Manually install or upgrade VMware Tools in a Linux virtual machine

Source: Internet
Author: User
Tags virtual environment

For Linux virtual machines, you can use the command-line tools to manually install or upgrade VMware tools.

This time the Linux virtual machine is CentOS6.5


Prerequisite
Turn on the virtual machine.
Confirm that the client operating system is running.
Because the VMware Tools installer is written in Perl, make sure that Perl is installed in the guest operating system.

Purpose of installing VMware Tools

VMware Tools is an enhanced tool that comes with VMware virtual machines, equivalent to the enhancements in VirtualBox (Sun VirtualBox Guest additions), which VMware offers to enhance virtual graphics and hard disk performance, And a driver that synchronizes the virtual machine with the host clock.
Only VMware Tools is installed in the VMware virtual machine to enable file sharing between the host and virtual machines, while supporting free drag and drop, the mouse can move freely before the virtual machine and host (no more pressing ctrl+alt), and the virtual machine screen can be full screen.

Steps
1. On the host, select virtual machine > Install VMware Tools from the Workstation Pro menu bar.
If you have an earlier version of VMware Tools installed, the menu item is updated with VMware tools.
2. In the virtual machine, log in to the guest operating system as root and open the terminal window.

3. Run the mount command without parameters to determine whether the Linux distribution automatically loads the VMware Tools virtual CD-ROM image.
If a CD-ROM device is mounted, the CD-ROM device and its mount point are listed as follows:
/dev/cdrom on/mnt/cdrom type iso9660 (Ro,nosuid,nodev)

To this step, I encountered a problem, tangled up for a long time:

I was able to mount the CD-ROM with the MOUNT/DEV/SR0/MNT command (that is, to mount the CentOS cdrom in the/MNT directory to access the contents), but I could not see anything in the MNT directory.

What is the reason for this?

The original is because I mounted the/NMT partition has been mounted, so the above situation will occur!!!

Workaround: First umount/mnt uninstall and then mount/dev/sr0/mnt

NOTE: The hint in the red box is normal. No need to resolve.

/dev/sr0 write-protected, mount in read-only mode.
The Mount command mounts a device as read-write by default, and the disc is read-only, so when you mount the disc this block device, you will be prompted to switch from read to write to mount the disc read-only. If you do not want to see this prompt, add a parameter after the Mount command, specifying that the device be mounted read-only.

The next steps:

4. Go to working directory, e.g./tmp/

5. Unzip the installation program.

Tar zxpf/mnt/cdrom/vmwaretools-x.x.x-yyyy.tar.gz
The x.x.x value is the product version number, and YYYY is the build number of the product version.
If you attempt to install a tar installation to overwrite the RPM installation or vice versa, Setup will detect the previous installation and must convert the Setup database format before proceeding.

6, will find the directory under a folder Vmware-tools-distrib, there is a vmware-install.pl file

7, use./vmware-install.pl to Execute file

[[email protected] mnt]# CD. /.. [[email protected]/]# cd/tmp[[email protected] tmp]# lskeyring-0xytmd keyring-hygjph keyring-UvmLHe vir Tual-carsonzhu. Fbaxxtkeyring-4wjio6 keyring-hzpfne Orbit-carsonzhu virtual-carsonzhu.yld5urkeyring-dtts8c Keyring-nPu72R orbit-gd Mkeyring-frctre KEYRING-P2KGDV Pulse-jj4pstxf4ptgkeyring-ggwneg Keyring-tljlnd pulse-rR5aSeUpvxJC[[email  Protected] tmp]# cd/mnt[[email protected] mnt]# CP vmwaretools-10.0.0-2977863.tar.gz/tmp[[email protected   ] mnt]# cd/tmp[[email protected] tmp]# lskeyring-0xytmd keyring-hzpfne orbit-gdmkeyring-4wjio6 Keyring-nPu72R pulse-jj4pstxf4ptgkeyring-dtts8c KEYRING-P2KGDV pulse-rr5aseupvxjckeyring-frctre Keyring-tLjlND Virtual-carsonzhu. Fbaxxtkeyring-ggwneg Keyring-uvmlhe Virtual-carsonzhu. YLD5URKEYRING-HYGJPH Orbit-carsonzhu vmwaretools-10.0.0-2977863.tar.gz[[email protected] tmp]# tar zxpf Vmwaretools-10.0.0-2977863.tar.gz[[email protected] tmp]# LSKEYRING-0XYTMD keyring-npu72r Pulse-rr5aseupvxjckeyring-4wjio6 KEYRING-P2KGDV Virtual-carsonzhu. fbaxxtkeyring-dtts8c Keyring-tljlnd Virtual-carsonzhu. Yld5urkeyring-frctre keyring-uvmlhe Vmwaretools-10.0.0-2977863.tar.gzkeyring-ggwneg Orbit-carsonzhu vmware-tool S-DISTRIBKEYRING-HYGJPH Orbit-gdmkeyring-hzpfne pulse-jj4pstxf4ptg[[email protected] tmp]# CD Vmware-tools-distrib[[email protected] vmware-tools-distrib]# lsbin doc FILES Installer Vgauth Vmwa RE-INSTALL.REAL.PLCAF etc install Lib vmware-install.pl[[email protected] vmware-tools-distrib]#./vmware-i Nstall.plcreating a new VMware Tools installer database using the TAR4 format. Installing VMware tools.in which directory do I want to install the binary files? [/usr/bin] What's the directory that contains the init directories (rc0.d/to rc6.d/)? [/ETC/RC.D] What's the directory that contains the init scripts? [/ETC/RC.D/INIT.D] In which directory does you wAnt to install the daemon files? [/usr/sbin] In which directory does want to install the library files? [/usr/lib/vmware-tools] The path "/usr/lib/vmware-tools" does not exist currently. This are going to create it, including needed parent directories. What are you want? [Yes] In which directory does want to install the common agent library files? [/usr/lib] In which directory does want to install the common agent transient files? [/var/lib] In which directory does want to install the documentation files? [/usr/share/doc/vmware-tools] The path "yes" is a relative path. Please enter an absolute path. In which directory does want to install the documentation files? [/usr/share/doc/vmware-tools] The path "/usr/share/doc/vmware-tools" does not exist currently. This are going to create it, including needed parent directories. What are you want? [Yes] The installation of VMware Tools 10.0.0 build-2977863 for Linux completed successfully. can decide to remove This software from your system on any time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl". Before running VMware Tools for the first time, your need to configure it by invoking the following command: "/usr/bin/vmwa re-config-tools.pl ". Do you want the "to invoke the" command for? [Yes] Initializing ... Making sure services for VMware Tools is stopped.                                   Stopping Thinprint services in the virtual machine:stopping virtual Printing daemon:   Donestopping VMware Tools Services in the virtual Machine:guest operating system daemon: [Helicopter 畾] VMware User Agent (vmware-user): [Helicopter 畾] unmounting HGFS shares: [  Helicopter 畾] Guest filesystem driver: [Helicopter 畾]found a compatible pre-built module for VMCI. Installing it ...  Found a compatible pre-built module for Vsock. Installing it ... The module Vmxnet3 have already been installed on this system by another installer or package and would not be modified by this installer. The module PVSCSI have already been installed on this system by another installer or package and won't be modified by th is installer. The module Vmmemctl have already been installed on this system by another installer or package and won't be modified by This installer.  The VMware host-guest Filesystem allows for gkfx folders between the Host OS and the Guest os in a Fusion or Workstation  Virtual environment. Does wish to enable this feature? [Yes]  Could not create the '/mnt/hgfs ' directory. Please make sure it was writeable and/or not currently in use. The FileSystem driver (Vmhgfs module) is used only for the shared folder feature. The rest of the software provided by VMware Tools are designed to work independently of this feature. If you wish to has the Shared Folders feature, you can install the driver by running vmware-config-tools.pl again after M aking sure that gcc, binutils, makeand the kerNel sources for your running kernel is installed on your machine. These packages is available on your distribution ' s installation CD. [Press Enter key to continue]  Found a compatible pre-built module for vmxnet. Installing it ...  The vmblock enables dragging or copying files between host and guest in a Fusion or Workstation virtual environment. Does wish to enable this feature? [Yes] VMware automatic kernel modules enables automatic building and installation Ofvmware kernel modules at boot that is not a Lready present. This feature canbe enabled/disabled by re-running vmware-config-tools.pl.would your like to enable VMware automatic kernel Modules? [No] Thinprint provides driver-free printing. Does wish to enable this feature? [Yes] Disabling timer-based audio scheduling in PulseAudio. Does want to enable Guest authentication (Vgauth)? Enabling Vgauth is needed if you want to enable Common Agent (CAF). [Yes] Does the want to enable Common Agent (CAF)? [Yes] Detected X Server version 1.13.0Distribution provided drivers for Xorg X server is used. Skipping x configuration because X drivers is not included. Creating a new INITRD boot image for the kernel. Generating the key and certificate files.   Successfully generated the key and certificate files.                                  Starting Virtual Printing daemon:done Checking ACPI Hot Plug [Helicopter 畾]  Starting VMware Tools Services in the virtual machine:switching to guest configuration: [Helicopter 畾] VM   Communication interface: [Helicopter 畾] VM communication Interface Socket family: [Helicopter 畾] Blocking file system: [Helicopter 畾] Guest operating system daemon: [                                           Helicopter 畾] Vgauthservice: [Helicopter 畾] Common Agent: [Helicopter 畾] The configuration of VMware Tools 10.0.0 build-2977863 for Linux for this running kernel completed SUCcessfully. You must restart your X session before any mouse or graphics changes take effect. You can now run the VMware Tools by invoking '/usr/bin/vmware-toolbox-cmd ' from the Thecommand line. To enable advanced X features (e.g., guest resolution fit, drag and drop, and file and text copy/paste), you'll need to Do one (or more) of the following:1. Manually start/usr/bin/vmware-user2. Log out and log to into your desktop session; and,3. Restart your X session. Enjoy,--the VMware teamfound VMware Tools CDROM mounted at/media/vmware tools. ejecting device/dev/sr0 ... Found VMware Tools CDROM mounted at/mnt. ejecting device/dev/sr0 ...

8, immediately after the input command reboot reboot!

Manually install or upgrade VMware Tools in a Linux virtual machine

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.