1.在vcenter中安装sles虚拟机,VMware tool 会自动安装,但显示为托管状态,有些需求需要将系统自带的vmware tool工具卸载,并安装vcenter中自带的VMware tool工具。
2.查询已安装的VMware Tools
命令: rpm -qa | egrep "open-vm-tools|libvmtools0"
3.卸载上一步查询的包
rpm –e open-vm-tools-desktop-xxx libvmtools0-xxx open-vm-tools-xxx
4.挂载vcenter 中的VMware tool包
5.解压压缩包tar –zxvf VMwareTools-xxx.tar.gz
6.进入解压后的文件夹,cd vmware-tools-distrib
7.执行命令进行安装 ./vmware-install.pl
8.第一项选择yes,其余按默认项进行选择。一路回车安装。
注:What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
当时安装时卡在这一步,输入什么都过不去,后面去查看vmware官网文件,发现是缺包
需要安装 inserv-compat这个包
下载链接:insserv-compat-0.1-4.3.1.noarch.rpm openSUSE 15.3 Download (pkgs.org)
安装此包后,重新安装VMware tool 可成功安装。