zoukankan      html  css  js  c++  java
  • ESXi 6.7 安装VMware-Tools

     

    首先选中我们的虚拟机,选择操作->客户机操作系统->安装vmware tools

    之后ssh进入我们的虚拟机

    创建一个挂载点,其实就是创建一个目录

    mkdir /cdrom

    之后挂载vmware tools的光盘到这个目录

    sudo mount /dev/cdrom /cdrom/

    这个时候会报一个提示只读的一句话,不用管它,把里面的文件复制出来

    mkdir vmware-tools && cp -Rf /cdrom/* vmware-tools

    复制完成之后进入里面解压里面那个压缩包

    tar -zxvf VMwareTools-10.2.1-8267844.tar.gz

    之后执行安装脚本

    ./vmware-tools-distrib/vmware-install.pl

    一路回车即可。。。。

    安装过程差不多就是下面这个样子

    1.  
      [root@bboysoul-centos vmware-tools]# ./vmware-tools-distrib/vmware-install.pl
    2.  
      open-vm-tools packages are available from the OS vendor and VMware recommends
    3.  
      using open-vm-tools packages. See http://kb.vmware.com/kb/2073803 for more
    4.  
      information.
    5.  
      Do you still want to proceed with this installation? [no] y
    6.  
       
    7.  
      INPUT: [y]
    8.  
       
    9.  
      Creating a new VMware Tools installer database using the tar4 format.
    10.  
       
    11.  
      Installing VMware Tools.
    12.  
       
    13.  
      In which directory do you want to install the binary files?
    14.  
      [/usr/bin]
    15.  
       
    16.  
      INPUT: [/usr/bin] default
    17.  
       
    18.  
      What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
    19.  
      [/etc/rc.d]
    20.  
       
    21.  
      INPUT: [/etc/rc.d] default
    22.  
       
    23.  
      What is the directory that contains the init scripts?
    24.  
      [/etc/rc.d/init.d]
    25.  
       
    26.  
      INPUT: [/etc/rc.d/init.d] default
    27.  
       
    28.  
      In which directory do you want to install the daemon files?
    29.  
      [/usr/sbin]
    30.  
       
    31.  
      INPUT: [/usr/sbin] default
    32.  
       
    33.  
      In which directory do you want to install the library files?
    34.  
      [/usr/lib/vmware-tools]
    35.  
       
    36.  
      INPUT: [/usr/lib/vmware-tools] default
    37.  
       
    38.  
      The path "/usr/lib/vmware-tools" does not exist currently. This program is
    39.  
      going to create it, including needed parent directories. Is this what you want?
    40.  
      [yes]
    41.  
       
    42.  
      INPUT: [yes] default
    43.  
       
    44.  
      In which directory do you want to install the common agent library files?
    45.  
      [/usr/lib]
    46.  
       
    47.  
      INPUT: [/usr/lib] default
    48.  
       
    49.  
      In which directory do you want to install the common agent transient files?
    50.  
      [/var/lib]
    51.  
       
    52.  
      INPUT: [/var/lib] default
    53.  
       
    54.  
      In which directory do you want to install the documentation files?
    55.  
      [/usr/share/doc/vmware-tools]
    56.  
       
    57.  
      INPUT: [/usr/share/doc/vmware-tools] default
    58.  
       
    59.  
      The path "/usr/share/doc/vmware-tools" does not exist currently. This program
    60.  
      is going to create it, including needed parent directories. Is this what you
    61.  
      want? [yes]
    62.  
       
    63.  
      INPUT: [yes] default
    64.  
       
    65.  
      The installation of VMware Tools 10.2.1 build-8267844 for Linux completed
    66.  
      successfully. You can decide to remove this software from your system at any
    67.  
      time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
    68.  
       
    69.  
      Before running VMware Tools for the first time, you need to configure it by
    70.  
      invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
    71.  
      this program to invoke the command for you now? [yes]
    72.  
       
    73.  
      INPUT: [yes] default
    74.  
       
    75.  
      Initializing...
    76.  
       
    77.  
       
    78.  
      Making sure services for VMware Tools are stopped.
    79.  
       
    80.  
      Stopping vmware-tools (via systemctl): [ OK ]
    81.  
       
    82.  
       
    83.  
      The module vmci has already been installed on this system by another installer
    84.  
      or package and will not be modified by this installer.
    85.  
       
    86.  
      The module vsock has already been installed on this system by another installer
    87.  
      or package and will not be modified by this installer.
    88.  
       
    89.  
      The module vmxnet3 has already been installed on this system by another
    90.  
      installer or package and will not be modified by this installer.
    91.  
       
    92.  
      The module pvscsi has already been installed on this system by another
    93.  
      installer or package and will not be modified by this installer.
    94.  
       
    95.  
      The module vmmemctl has already been installed on this system by another
    96.  
      installer or package and will not be modified by this installer.
    97.  
       
    98.  
      The VMware Host-Guest Filesystem allows for shared folders between the host OS
    99.  
      and the guest OS in a Fusion or Workstation virtual environment. Do you wish
    100.  
      to enable this feature? [no]
    101.  
       
    102.  
      INPUT: [no] default
    103.  
       
    104.  
      The vmxnet driver is no longer supported on kernels 3.3 and greater. Please
    105.  
      upgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)
    106.  
       
    107.  
      The vmblock enables dragging or copying files between host and guest in a
    108.  
      Fusion or Workstation virtual environment. Do you wish to enable this feature?
    109.  
      [no]
    110.  
       
    111.  
      INPUT: [no] default
    112.  
       
    113.  
      VMware automatic kernel modules enables automatic building and installation of
    114.  
      VMware kernel modules at boot that are not already present. This feature can
    115.  
      be enabled/disabled by re-running vmware-config-tools.pl.
    116.  
       
    117.  
      Would you like to enable VMware automatic kernel modules?
    118.  
      [yes]
    119.  
       
    120.  
      INPUT: [yes] default
    121.  
       
    122.  
      Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed
    123.  
      if you want to enable Common Agent (caf). [yes]
    124.  
       
    125.  
      INPUT: [yes] default
    126.  
       
    127.  
      Do you want to enable Common Agent (caf)? [no]
    128.  
       
    129.  
      INPUT: [no] default
    130.  
       
    131.  
      No X install found.
    132.  
       
    133.  
      Creating a new initrd boot image for the kernel.
    134.  
      Generating the key and certificate files.
    135.  
      Successfully generated the key and certificate files.
    136.  
      manageSELinux install: The 'semanage' utility was not found.
    137.  
      There was an error configuring the SELinux security context for VMware Tools.
    138.  
      Please make certain that SELinux is configured correctly.
    139.  
       
    140.  
      The configuration of VMware Tools 10.2.1 build-8267844 for Linux for this
    141.  
      running kernel completed successfully.
    142.  
       
    143.  
      You must restart your X session before any mouse or graphics changes take
    144.  
      effect.
    145.  
       
    146.  
      To enable advanced X features (e.g., guest resolution fit, drag and drop, and
    147.  
      file and text copy/paste), you will need to do one (or more) of the following:
    148.  
      1. Manually start /usr/bin/vmware-user
    149.  
      2. Log out and log back into your desktop session
    150.  
      3. Restart your X session.
    151.  
       
    152.  
      Enjoy,
    153.  
       
    154.  
      --the VMware team
    155.  
       
    156.  
      Found VMware Tools CDROM mounted at /cdrom. Ejecting device /dev/sr0 ...
    157.  
       

    最后还自动把自己的cdrom卸载了,有点厉害

  • 相关阅读:
    JavaScript 闭包
    JavaScript Ajax
    JQuery简介
    NYOJ--491--dfs(打表水过)--幸运三角形
    素数环:NYOJ--488--dfs||hdu-1016-Prime Ring Problem
    NYOJ--353--bfs+优先队列--3D dungeon
    NYOJ--325--深度优先搜索--zb的生日
    NYOJ--202--红黑树
    第一个Android程序
    Vmware虚拟机安装win7系统教程
  • 原文地址:https://www.cnblogs.com/walkersss/p/12458131.html
Copyright © 2011-2022 走看看