Ask question

Ask Questions and Get Answers from Our Community

Answer

Answer Questions and Become an Expert on Your Topic

Contact Staff

Our Experts are Ready to Answer your Questions

root

Well-Known Member
Joined
Dec 31, 2012
Messages
1,153
Reaction score
71
Points
48

Installing VMware Tools in a Linux virtual machine


Hướng dẫn cài đặt VMware Tools trên máy ảo Linux.
- Tham khảo các bài lab kháchttp://svuit.vn/threads/lab-2-1-su-dung-may-ao-tren-esxi-cai-dat-vmware-vcenter-5-5-1272/
  1. [Lab 2.1] Sử dụng máy ảo trên ESXi cài đặt VMware vCenter 5.5
  2. [Lab 2.2] Cài đặt VMware vCenter 5.5 trên Windows server 2008
  3. [Lab 2.3] Cài đặt VMware vCenter 5.5 trên Windows Server 2012
- Danh sách tổng hợp các bài lý thuyết và Lab triển khai hệ thống ảo hóa Vmware Vsphere.
- Các bạn Download vmware Tools tại trang chủ vmware nhé:
Code:
https://my.vmware.com/web/vmware/details?downloadGroup=ESXI55U2&productId=353&rPId=7390
- Cho file .ISO cài đặt Vmware vào cdrom của vSphere. Tạo thư mục /mmt/cdrom để mount file .ISO vào

Code:
[root@svuit ~]# [COLOR=#ff0000]mkdir -vp /mmt/cdrom[/COLOR]

mkdir: created directory ‘/mmt’
mkdir: created directory ‘/mmt/cdrom’

- Mount file .ISO cài đặt từ cdrom vào thư mục /mmt/cdrom

Code:
[root@svuit ~]# [COLOR=#ff0000]mount /dev/cdrom /mmt/cdrom/[/COLOR]

mount: /dev/sr0 is write-protected, mounting read-only
- Thư mục chứa source cài đặt vmware tools
Code:
[root@svuit ~]# [COLOR=#ff0000]ll /mmt/cdrom/[/COLOR]

total 62915
-r-xr-xr-x. 1 root root     1970 Aug 23  2014 manifest.txt
-r-xr-xr-x. 1 root root     1850 Aug 23  2014 run_upgrader.sh
-r--r--r--. 1 root root 63024310 Aug 23  2014 VMwareTools-9.4.10-2068191.tar.gz
-r-xr-xr-x. 1 root root   693484 Aug 23  2014 vmware-tools-upgrader-32
-r-xr-xr-x. 1 root root   702400 Aug 23  2014 vmware-tools-upgrader-64

- copy file cài đặt vmware tools ra Desktop và tiến hành giải nén
Code:
[root@svuit ~]# cp /mmt/cdrom/VMwareTools-9.4.10-2068191.tar.gz ./
[root@svuit ~]# tar -xzvf VMwareTools-9.4.10-2068191.tar.gz
- cài đặt vmware tools
Code:
[root@svuit ~]# cd vmware-tools-distrib/
[root@svuit vmware-tools-distrib]# ./vmware-install.pl

bash: ./vmware-install.pl: /usr/bin/perl: bad interpreter: No such file or directory
- Nếu gặp lỗi trên thì các bạn phải cài đặt các gói Perl
Code:
[root@svuit ~]# yum -y install perl
- Cuối cùng tiến hành cài đặt Vmware tools
Code:
[root@svuit vmware-tools-distrib]#[COLOR=#ff0000] ./vmware-install.pl

[/COLOR]
open-vm-tools are available from the OS vendor and VMware recommends using
open-vm-tools. See http://kb.vmware.com/kb/2073803 for more information.
Do you still want to proceed with this legacy installer? [no] yes

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/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/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] 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] yes

The installation of VMware Tools 9.4.10 build-2068191 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] yes

Initializing...

Making sure services for VMware Tools are stopped.


Stopping vmware-tools (via systemctl):                     [  OK  ]



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? [yes] yes




Before you can compile modules, you need to have the following installed...


make
gcc
kernel headers of the running kernel




Searching for GCC...
The path "" is not valid path to the gcc binary.
Would you like to change it? [yes] yes


What is the location of the gcc program on your machine?


The path "" is not valid path to the gcc binary.
Would you like to change it? [yes] yes


The path "" is not valid path to the gcc binary.
Would you like to change it? [yes] no


Searching for a valid kernel header path...
The path "" is not a valid path to the 3.10.0-123.el7.x86_64 kernel headers.
Would you like to change it? [yes] no




WARNING: This program cannot compile any modules for the following reason(s)...


- This program could not find a valid path to the gcc binary.  Please ensure
that the gcc binary is installed on this sytem.


- This program could not find a valid path to the kernel headers of the running
kernel.  Please ensure that the header files for the running kernel are
installed on this sytem.


[ Press Enter key to continue ]




The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.


If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]


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?
[yes]


NOTICE:  It appears your system does not have the required fuse packages
installed.  The VMware blocking filesystem requires the fuse packages and its
libraries to function properly.  Please install the fuse or fuse-utils package
using your systems package management utility and re-run this script in order
to enable the VMware blocking filesystem.


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] yes


No X install found.


Creating a new initrd boot image for the kernel.
Starting vmware-tools (via systemctl):
                                                           [  OK  ]
[COLOR=#ff0000]The configuration of VMware Tools 9.4.10 build-2068191 for Linux for this
running kernel completed successfully.[/COLOR]


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
 
Last edited:
Top