ESXi主机上的虚拟机安装VMware Tools

  1. 选择 VMware Tools 镜像文件存储位置
    ESXi主机上的虚拟机安装VMware Tools_第1张图片

  2. 安装 VMware Tools

    登录 VMware vSphere Web Client -> Datacenter -> 所在机器 -> 摘要
    ESXi主机上的虚拟机安装VMware Tools_第2张图片

  3. 挂载
    ESXi主机上的虚拟机安装VMware Tools_第3张图片

  4. 进入 Console

    [root@cdh04 ~]# mount /dev/cdrom /media/
    mount: /dev/sr0 写保护,将以只读方式挂载
    [root@cdh04 ~]# cd /media/
    [root@cdh04 media]# ll
    总用量 67745
    -r-xr-xr-x 1 root root     2011 130 2015 manifest.txt
    -r--r--r-- 1 root root     1850 130 2015 run_upgrader.sh
    -r--r--r-- 1 root root 67897195 130 2015 VMwareTools-9.10.0-2476743.tar.gz
    -r-xr-xr-x 1 root root   699332 130 2015 vmware-tools-upgrader-32
    -r-xr-xr-x 1 root root   769784 130 2015 vmware-tools-upgrader-64
    [root@cdh04 media]# tar zxf VMwareTools-9.10.0-2476743.tar.gz -C /usr/src/
    [root@cdh04 media]# cd /usr/src/vmware-tools-distrib/
    [root@cdh04 vmware-tools-distrib]# ll
    总用量 472
    drwxr-xr-x  2 root root     87 130 2015 bin
    drwxr-xr-x  2 root root     67 130 2015 doc
    drwxr-xr-x  5 root root   4096 130 2015 etc
    -rw-r--r--  1 root root 272678 130 2015 FILES
    -rw-r--r--  1 root root   2538 130 2015 INSTALL
    drwxr-xr-x  2 root root     95 130 2015 installer
    drwxr-xr-x 14 root root    181 130 2015 lib
    drwxr-xr-x  3 root root     21 130 2015 vgauth
    -rwxr-xr-x  1 root root 199096 130 2015 vmware-install.pl
    [root@cdh04 vmware-tools-distrib]# ./vmware-install.pl 
    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    # 输入 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] 
    
    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.10.0 build-2476743 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...
    
    (process:17570): GLib-CRITICAL **: 20:08:33.130: g_file_test: assertion 'filename != NULL' failed
    Making sure services for VMware Tools are stopped.
    
    Stopping vmware-tools (via systemctl):                     [  确定  ]
    
    
    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] 
    
    
    Do you want to enable Guest Authentication (vgauth)? [yes] 
    No X install found.
    
    Creating a new initrd boot image for the kernel.
    Starting vmware-tools (via systemctl):                     [  确定  ]
    The configuration of VMware Tools 9.10.0 build-2476743 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 /media. Ejecting device /dev/sr0 ...
    
    
  5. 安装完成
    ESXi主机上的虚拟机安装VMware Tools_第4张图片

你可能感兴趣的:(Vmware,VMware,EXSI)