Eyeglass - How to install VMware Native tools installation

Eyeglass - How to install VMware Native tools installation Tech Note


Use this guide to remove 3rd party open VMware tools and replace with Native VMware tools for Linux.



Checking open-vm-tools installed package:


Login to eyeglass appliance and use the command zypper to install and remove software:


eyeglass02-sandra:~ # zypper se open-vm*

Loading repository data...

Reading installed packages...


S | Name              | Summary                          | Type

--+-------------------+----------------------------------+--------

i | open-vm-tools     | Open Virtual Machine Tools       | package

 | open-vm-tools-gui | Open Virtual Machine Tools - GUI | package


eyeglass02-sandra:~ # zypper info open-vm-tools

Loading repository data...

Reading installed packages...

Information for package open-vm-tools:

--------------------------------------

Repository: openSUSE_13.1_OSS

Name: open-vm-tools

Version: 9.2.3-3.2.1

Arch: x86_64openSUSE

Vendor:

Installed: Yes

Status: up-to-date

Installed Size: 589.7 KiB

Summary: Open Virtual Machine Tools

Description:

Open Virtual Machine Tools (open-vm-tools) are the open source

implementation of VMware Tools. They are a set of guest operating

system virtualization components that enhance performance and user

experience of virtual machines. As virtualization technology rapidly

becomes mainstream, each virtualization solution provider implements

their own set of tools and utilities to supplement the guest virtual

machine. However, most of the implementations are proprietary and are

tied to a specific virtualization platform.

With the Open Virtual Machine Tools project, we are hoping to solve

this and other related problems. The tools are currently composed of

kernel modules for Linux and user-space programs for all VMware

supported Unix-like guest operating systems. They provide several

useful functions like:

* File transfer between a host and guest

* Improved memory management and network performance under

  virtualization

* General mechanisms and protocols for communication between host and

guests and from guest to guest


eyeglass02-sandra:~ #  zypper info open-vm-tools-gui

Loading repository data...

Reading installed packages...

Information for package open-vm-tools-gui:

------------------------------------------

Repository: openSUSE_13.1_OSS

Name: open-vm-tools-gui

Version: 9.2.3-3.2.1

Arch: x86_64

Vendor: openSUSE

Installed: No

Status: not installed

Installed Size: 377.7 KiB

Summary: Open Virtual Machine Tools - GUI

Description:

GUI Toolbox for Open Virtual Machine Tools

eyeglass02-sandra:~ #



Removing open-vm-tools package:


If you automatically want to remove any packages that become unneeded after removing the specified package, use the --clean-deps option:


zypper remove --clean-deps <package-name>

e.g.


eyeglass02-sandra:~ # zypper remove --clean-deps open-vm-tools

Loading repository data...

Reading installed packages...

Resolving package dependencies...


The following 5 packages are going to be REMOVED:

 libdnet1 libicu51_2 libicu51_2-data libvmtools0 open-vm-tools


5 packages to remove.

After the operation, 26.8 MiB will be freed.

Continue? [y/n/? shows all options] (y): y

(1/5) Removing open-vm-tools-9.2.3-3.2.1 .........................................................................................[done]

Additional rpm output:

redirecting to systemctl stop vmtoolsd.service




(2/5) Removing libvmtools0-9.2.3-3.2.1 ...........................................................................................[done]

(3/5) Removing libdnet1-1.12-19.1.2 ..............................................................................................[done]

(4/5) Removing libicu51_2-51.2-6.1.2 .............................................................................................[done]

(5/5) Removing libicu51_2-data-51.2-6.1.2 ........................................................................................[done]

eyeglass02-sandra:~ #


Verifying on vCenter if the open-vm-tools has been removed, click VM in the virtual machine menu, then on the summary TAB check the VMware tools is running:


vm-tools-zypper-remove-open-vm-tools.PNG


.

Installing VMware Tools from the Command Line with the Tar Installer

1. Click VM in the virtual machine menu, then click Guest > Install/Upgrade VMware Tools and click OK.


2. To create a mount point, run:


mkdir /mnt/cdrom


3. To mount the CDROM, run:

mount /dev/cdrom /mnt/cdrom

cd /tmp

Note: If you have a previous installation, delete the previous vmware-distrib directory before installing. The default location of this directory is  </tmp/vmware-tools-distrib>.


4. Untar the VMware Tools tar file:

tar zxpf /mnt/cdrom/VMwareTools-5.0.0-<xxxx>.tar.gz

Where <xxxx> is the build/revision number of the VMware Workstation release.

Note: If you attempt to install a tar installation over an rpm installation — or the reverse — the installer detects the previous installation and must convert the installer database format before continuing.

e.g.


eyeglass02-sandra:/ # cd /mnt/cdrom/

eyeglass02-sandra:/mnt/cdrom # ls -l

total 61894

-r--r--r-- 1 root root 61978217 Aug 17  2013 VMwareTools-9.4.0-1280544.tar.gz

-r-xr-xr-x 1 root root     1961 Aug 17  2013 manifest.txt

-r--r--r-- 1 root root     1847 Aug 17  2013 run_upgrader.sh

-r-xr-xr-x 1 root root   693484 Aug 17  2013 vmware-tools-upgrader-32

-r-xr-xr-x 1 root root   702400 Aug 17  2013 vmware-tools-upgrader-64

eyeglass02-sandra:/mnt/cdrom #


eyeglass02-sandra:/tmp # tar zxpf /mnt/cdrom/VMwareTools-9.4.0-1280544.tar.gz

eyeglass02-sandra:/tmp # ls -l

total 36

drwxrwxrwt 2 root root 4096 Dec 22 20:52 VMwareDnD

drwx------ 2 root root 4096 Dec 22 21:08 YaST2-07198-U8yhoU

drwx------ 2 root root 4096 Dec 22 21:08 YaST2-07198-p3WD1w

drwxr-xr-x 2 root root 4096 Dec 22 20:52 hsperfdata_root

drwxr-xr-x 2 root root 4096 Dec 22 20:53 jna-root

drwxr-xr-x 3 root root 4096 Dec 23 09:03 passenger.1.0.7000

drwxr-xr-x 2 root root 4096 Nov 27 15:26 tomcat

drwx------ 2 root root 4096 Dec 22 20:52 vmware-root

drwxr-xr-x 7 root root 4096 Aug 17  2013 vmware-tools-distrib

eyeglass02-sandra:/tmp # cd vmware-tools-distrib

eyeglass02-sandra:/tmp/vmware-tools-distrib #


5. Run the VMware Tools tar installer:

cd vmware-tools-distrib

./vmware-install.pl

Respond to the configuration questions on the screen. Press Enter to accept the default value.

e.g.

eyeglass02-sandra:/tmp/vmware-tools-distrib # ./vmware-install.pl

Creating a new VMware Tools installer database using the tar4 format.


Installing VMware Tools.


In which directory do you want to install the binary files?

[/usr/bin]


What is the directory that contains the init directories (rc0.d/ to rc6.d/)?

[/etc/init.d]


What is the directory that contains the init scripts?

[/etc/init.d]


In which directory do you want to install the daemon files?

[/usr/sbin]


In which directory do you want to install the library files?

[/usr/lib/vmware-tools]


The path "/usr/lib/vmware-tools" does not exist currently. This program is

going to create it, including needed parent directories. Is this what you want?

[yes]


In which directory do you want to install the documentation files?

[/usr/share/doc/vmware-tools]


The path "/usr/share/doc/vmware-tools" does not exist currently. This program

is going to create it, including needed parent directories. Is this what you

want? [yes]


The installation of VMware Tools 9.4.0 build-1280544 for Linux completed

successfully. You can decide to remove this software from your system at any

time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".


Before running VMware Tools for the first time, you need to configure it by

invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want

this program to invoke the command for you now? [yes]


Initializing...



Making sure services for VMware Tools are stopped.


Stopping VMware Tools services in the virtual machine:

  Guest operating system daemon:                                      done

  Unmounting HGFS shares:                                             done

  Guest filesystem driver:                                            done



The module vmci has already been installed on this system by another installer

or package and will not be modified by this installer.


The module vsock has already been installed on this system by another installer

or package and will not be modified by this installer.


The module vmxnet3 has already been installed on this system by another

installer or package and will not be modified by this installer.


The module pvscsi has already been installed on this system by another

installer or package and will not be modified by this installer.


The module vmmemctl has already been installed on this system by another

installer or package and will not be modified by this installer.


The VMware Host-Guest Filesystem allows for shared folders between the host OS

and the guest OS in a Fusion or Workstation virtual environment.  Do you wish

to enable this feature? [no]


The vmxnet driver is no longer supported on kernels 3.3 and greater. Please

upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)


The vmblock enables dragging or copying files between host and guest in a

Fusion or Workstation virtual environment.  Do you wish to enable this feature?

[no]


VMware automatic kernel modules enables automatic building and installation of

VMware kernel modules at boot that are not already present. This feature can be


enabled/disabled by re-running vmware-config-tools.pl.


Would you like to enable VMware automatic kernel modules?

[no]


No X install found.


Creating a new initrd boot image for the kernel.


Kernel image:   /boot/vmlinuz-3.11.10-21-default

Initrd image:   /boot/initrd-3.11.10-21-default

KMS drivers:     vmwgfx

Root device:    /dev/sda1 (mounted on / as ext3)

Kernel Modules: thermal_sys thermal processor fan usb-common usbcore ehci-hcd ohci-hcd uhci-hcd xhci-hcd vmxnet3 vmw_pvscsi scsi_dh scsi_dh_alua scsi_dh_hp_sw scsi_dh_rdac scsi_dh_emc drm ttm vmwgfx scsi_transport_spi mptbase mptscsih mptspi usbhid hid-logitech-dj hid-generic hid-holtek-kbd hid-lenovo-tpkbd hid-ortek hid-roccat hid-roccat-common hid-roccat-arvo hid-roccat-isku hid-samsung ehci-pci ohci-pci

Features:       acpi kms plymouth block usb resume.userspace resume.kernel

  Checking acpi hot plug                                              done

Starting VMware Tools services in the virtual machine:

  Switching to guest configuration:                                   done

  Guest operating system daemon:                                      done

The configuration of VMware Tools 9.4.0 build-1280544 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 VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the

command line.


To enable advanced X features (e.g., guest resolution fit, drag and drop, and

file and text copy/paste), you will need to do one (or more) of the following:

1. Manually start /usr/bin/vmware-user

2. Log out and log back into your desktop session; and,

3. Restart your X session.


Enjoy,


--the VMware team


Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/sr0 ...

eyeglass02-sandra:/tmp/vmware-tools-distrib #


6. To end the VMware Tools install, click VM in the virtual machine menu, then click Guest > End VMware Tools Install.


7. To check if the VMware tools has been installed, click VM, then summary Tab:


vm-tools-installation-done.PNG


8. To check the vmware tools installed on the appliance:

/etc/init.d/vmware-tools status

vmware-toolbox-cmd -v


e.g.

eyeglass02-sandra:~ # /etc/init.d/vmware-tools status

vmtoolsd is running

eyeglass02-sandra:~ # vmware-toolbox-cmd -v

9.4.0.25793 (build-1280544)

eyeglass02-sandra:~ #



Comments