Java自学者论坛

 找回密码
 立即注册

手机号码,快捷登录

恭喜Java自学者论坛(https://www.javazxz.com)已经为数万Java学习者服务超过8年了!积累会员资料超过10000G+
成为本站VIP会员,下载本站10000G+会员资源,会员资料板块,购买链接:点击进入购买VIP会员

JAVA高级面试进阶训练营视频教程

Java架构师系统进阶VIP课程

分布式高可用全栈开发微服务教程Go语言视频零基础入门到精通Java架构师3期(课件+源码)
Java开发全终端实战租房项目视频教程SpringBoot2.X入门到高级使用教程大数据培训第六期全套视频教程深度学习(CNN RNN GAN)算法原理Java亿级流量电商系统视频教程
互联网架构师视频教程年薪50万Spark2.0从入门到精通年薪50万!人工智能学习路线教程年薪50万大数据入门到精通学习路线年薪50万机器学习入门到精通教程
仿小米商城类app和小程序视频教程深度学习数据分析基础到实战最新黑马javaEE2.1就业课程从 0到JVM实战高手教程MySQL入门到精通教程
查看: 444|回复: 0

解决Linux安装 VMware tools 工具的方法

[复制链接]
  • TA的每日心情
    奋斗
    2024-11-24 15:47
  • 签到天数: 804 天

    [LV.10]以坛为家III

    2053

    主题

    2111

    帖子

    72万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    726782
    发表于 2021-4-27 13:12:35 | 显示全部楼层 |阅读模式

    一:启动linux服务器,并用远程登录工具访问linux服务器

    1:启动系统

    image

    2:用服务器控制台   :查看点ip地址

    image

    3:用客户端 连接服务器

    image

     

    二:挂起 vm虚拟机的 tools 安装光盘

     

    image

    image

    三:开始进行tools工具的安装步骤

    1:挂载 光盘

    image

      1 [root@oracleServerFrist ~]# cd /mnt/cdrom
      2 -bash: cd: /mnt/cdrom: No such file or directory
      3 [root@oracleServerFrist ~]# mkdir /mnt/cdrom
      4 [root@oracleServerFrist ~]# mount /dev/cdrom /mnt/cdrom
      5 mount: block device /dev/cdrom is write-protected, mounting read-only
      6 [root@oracleServerFrist ~]#
      7 

     

     

    2:进入光盘,并把安装包拷贝出来放到 /home/temp 目录下 

    1:进入光盘

    image

      1 [root@oracleServerFrist ~]# cd /mnt/cdrom
      2 [root@oracleServerFrist cdrom]# pwd
      3 /mnt/cdrom
      4 [root@oracleServerFrist cdrom]# ls
      5 manifest.txt     VMwareTools-10.1.6-5214329.tar.gz  vmware-tools-upgrader-64
      6 run_upgrader.sh  vmware-tools-upgrader-32
      7 [root@oracleServerFrist cdrom]# 

    2: 进行安装包的拷贝

    image

      1 [root@oracleServerFrist home]# cd /home/
      2 [root@oracleServerFrist home]# ls
      3 oracle
      4 [root@oracleServerFrist home]# pwd
      5 /home
      6 [root@oracleServerFrist home]# mkdir /home/temp
      7 [root@oracleServerFrist home]# ls
      8 oracle  temp
      9 [root@oracleServerFrist home]# cd temp
     10 [root@oracleServerFrist temp]# ls
     11 [root@oracleServerFrist temp]# cp /mnt/cdrom/VMwareTools-10.1.6-5214329.tar.gz  /home/temp/
     12 [root@oracleServerFrist temp]# ls
     13 VMwareTools-10.1.6-5214329.tar.gz
     14 [root@oracleServerFrist temp]# 

     

    3:解压安装包,并进行安装

    1:进行压缩包解压

    image

      1 [root@localhost cdrom]# cd /tmp/
      2 [root@localhost tmp]# tar zxvf VMwareTools-6.5.0-118166.tar.gz  //解压文件

    2:进行安装文件的启动

      1 [root@oracleServerFrist temp]# ls
      2 VMwareTools-10.1.6-5214329.tar.gz  vmware-tools-distrib
      3 [root@oracleServerFrist temp]# cd vmware-tools-distrib/
      4 [root@oracleServerFrist vmware-tools-distrib]# ls
      5 bin  caf  doc  etc  FILES  INSTALL  installer  lib  vgauth  vmware-install.pl
      6 [root@oracleServerFrist vmware-tools-distrib]# ./vmware-install.pl 

    image

    3:以下是安装执行过程。基本是一路回车键按到北

      1 [root@oracleServerFrist vmware-tools-distrib]# ./vmware-install.pl 
      2 A previous installation of VMware Tools has been detected.
      3 
      4 The previous installation was made by the tar installer (version 4).
      5 
      6 Keeping the tar4 installer database format.
      7 
      8 You have a version of VMware Tools installed.  Continuing this install will
      9 first uninstall the currently installed version.  Do you wish to continue?
     10 (yes/no) [yes]
     11 
     12 Uninstalling the tar installation of VMware Tools.
     13 
     14 Stopping services for VMware Tools
     15 
     16 Skipping VMware Tools services shutdown on the host:[  OK  ]
     17 
     18 
     19 The removal of VMware Tools 10.1.6 build-5214329 for Linux completed
     20 successfully.
     21 
     22 Installing VMware Tools.
     23 
     24 In which directory do you want to install the binary files?
     25 [/usr/bin]
     26 
     27 What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
     28 [/etc/rc.d]
     29 
     30 What is the directory that contains the init scripts?
     31 [/etc/rc.d/init.d]
     32 
     33 In which directory do you want to install the daemon files?
     34 [/usr/sbin]
     35 
     36 In which directory do you want to install the library files?
     37 [/usr/lib/vmware-tools]
     38 
     39 The path "/usr/lib/vmware-tools" does not exist currently. This program is
     40 going to create it, including needed parent directories. Is this what you want?
     41 [yes]
     42 
     43 
     44 In which directory do you want to install the common agent library files?
     45 [/usr/lib]
     46 In which directory do you want to install the common agent transient files?
     47 [/var/lib]
     48 
     49 In which directory do you want to install the documentation files?
     50 [/usr/share/doc/vmware-tools]
     51 
     52 The path "/usr/share/doc/vmware-tools" does not exist currently. This program
     53 is going to create it, including needed parent directories. Is this what you
     54 want? [yes]
     55 
     56 The installation of VMware Tools 10.1.6 build-5214329 for Linux completed
     57 successfully. You can decide to remove this software from your system at any
     58 time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".
     59 
     60 Before running VMware Tools for the first time, you need to configure it by
     61 invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
     62 this program to invoke the command for you now? [yes]
     63 
     64 Initializing...
     65 
     66 
     67 Making sure services for VMware Tools are stopped.
     68 
     69 Stopping Thinprint services in the virtual machine:
     70    Stopping Virtual Printing daemon: done
     71 Stopping VMware Tools services in the virtual machine:
     72    Guest operating system daemon:[  OK  ]
     73    VGAuthService:[  OK  ]
     74    VMware User Agent (vmware-user):[  OK  ]
     75    Blocking file system:[  OK  ]
     76    Unmounting HGFS shares:[  OK  ]
     77    Guest filesystem driver:[  OK  ]
     78    Guest memory manager:[  OK  ]
     79    VM communication interface socket family:[  OK  ]
     80    VM communication interface:[  OK  ]
     81    File system sync driver:[  OK  ]
     82 
     83 
     84 The VMware FileSystem Sync Driver (vmsync) allows external third-party backup
     85 software that is integrated with vSphere to create backups of the virtual
     86 machine. Do you wish to enable this feature? [yes]
     87 
     88 Found a compatible pre-built module for vmsync.  Installing it...
     89 
     90 
     91 Found a compatible pre-built module for vmci.  Installing it...
     92 
     93 
     94 Found a compatible pre-built module for vsock.  Installing it...
     95 
     96 
     97 Found a compatible pre-built module for vmxnet3.  Installing it...
     98 
     99 
    100 Found a compatible pre-built module for pvscsi.  Installing it...
    101 
    102 
    103 Found a compatible pre-built module for vmmemctl.  Installing it...
    104 
    105 
    106 The VMware Host-Guest Filesystem allows for shared folders between the host OS
    107 and the guest OS in a Fusion or Workstation virtual environment.  Do you wish
    108 to enable this feature? [yes]
    109 
    110 Found a compatible pre-built module for vmhgfs.  Installing it...
    111 
    112 
    113 Found a compatible pre-built module for vmxnet.  Installing it...
    114 
    115 
    116 The vmblock enables dragging or copying files between host and guest in a
    117 Fusion or Workstation virtual environment.  Do you wish to enable this feature?
    118 [yes]
    119 
    120 Found a compatible pre-built module for vmblock.  Installing it...
    121 
    122 
    123 VMware automatic kernel modules enables automatic building and installation of
    124 VMware kernel modules at boot that are not already present. This feature can
    125 be enabled/disabled by re-running vmware-config-tools.pl.
    126 
    127 Would you like to enable VMware automatic kernel modules?
    128 [yes]
    129 
    130 Thinprint provides driver-free printing. Do you wish to enable this feature?
    131 [yes]
    132 
    133 Do you want to enable Guest Authentication (vgauth)? Enabling vgauth is needed
    134 if you want to enable Common Agent (caf). [yes]
    135 
    136 
    137 
    138 Detected X version 7.1
    139 
    140 
    141 
    142 Do you want to change the starting screen display size? (yes/no) [no] yes
    143 
    144 
    145 Unable to detect guest resolution.
    146 
    147 
    148 Please choose one of the following display sizes that X will start with:
    149 
    150 [1]< 640x480
    151 [2]  800x600
    152 [3]  1024x768
    153 [4]  1280x800
    154 Please enter a number between 1 and 4:
    155 
    156 [1] 3
    157 
    158 
    159 X is running fine with the new config file.
    160 
    161 Creating a new initrd boot image for the kernel.
    162 
    163 NOTE: both /etc/vmware-tools/GuestProxyData/server/key.pem and
    164       /etc/vmware-tools/GuestProxyData/server/cert.pem already exist.
    165       They are not generated again. To regenerate them by force,
    166       use the "vmware-guestproxycerttool -g -f" command.
    167 
    168    Starting Virtual Printing daemon: done
    169    Checking acpi hot plug[  OK  ]
    170 Starting VMware Tools services in the virtual machine:
    171    Switching to guest configuration:[  OK  ]
    172    VMware Automatic Kmods:[  OK  ]
    173    Paravirtual SCSI module:[  OK  ]
    174    Guest memory manager:[  OK  ]
    175    VM communication interface:[  OK  ]
    176    VM communication interface socket family:[  OK  ]
    177    Guest filesystem driver:[  OK  ]
    178    Mounting HGFS shares:[FAILED]
    179    Blocking file system:[  OK  ]
    180    VMware User Agent:[  OK  ]
    181    File system sync driver:[  OK  ]
    182    Guest operating system daemon:[  OK  ]
    183    VGAuthService:[  OK  ]
    184 The configuration of VMware Tools 10.1.6 build-5214329 for Linux for this
    185 running kernel completed successfully.
    186 
    187 You must restart your X session before any mouse or graphics changes take
    188 effect.
    189 
    190 You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
    191 command line.
    192 
    193 To enable advanced X features (e.g., guest resolution fit, drag and drop, and
    194 file and text copy/paste), you will need to do one (or more) of the following:
    195 1. Manually start /usr/bin/vmware-user
    196 2. Log out and log back into your desktop session
    197 3. Restart your X session.
    198 
    199 Enjoy,
    200 
    201 --the VMware team
    202 
    203 Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
    204 /dev/scd0 ...
    205 Found VMware Tools CDROM mounted at /mnt/cdrom. Ejecting device /dev/cdrom ...
    206 [root@oracleServerFrist vmware-tools-distrib]# 

    执行完毕后 系统会自动重启的。

    image

    哎...今天够累的,签到来了1...
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|手机版|小黑屋|Java自学者论坛 ( 声明:本站文章及资料整理自互联网,用于Java自学者交流学习使用,对资料版权不负任何法律责任,若有侵权请及时联系客服屏蔽删除 )

    GMT+8, 2025-2-4 15:55 , Processed in 0.056792 second(s), 27 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表