vmware vSphereClient为虚机安装vmtools
- 一、vmtools 介绍
- 二、为Linux虚机安装vmtools
- 三、为Windows虚机安装vmtools
一、vmtools 介绍
官方介绍:https://techdocs.broadcom.com/cn/zh-cn/vmware-cis/vsphere/vsphere/8-0/vsphere-single-host-management-vmware-host-client-8-0/virtual-machine-management-with-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/managing-a-guest-operating-system-in-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/introduction-to-vmware-tools-vSphereSingleHostManagementVMwareHostClient.html
VMware Tools 中包含一系列服务和模块,可在 VMware 产品中实现多种功能,从而使用户能够更好地管理客户机操作系统,以及与客户机操作系统进行无缝交互。
VMware Tools 具备以下功能:
- 将消息从主机操作系统传递到客户机操作系统。
- 自定义作为 vCenter Server 及其他 VMware 产品的一部分的客户机操作系统。
- 运行有助于实现客户机操作系统自动化运行的脚本。当虚拟机的电源状况更改时,脚本将运行。
- 使客户机操作系统的时间与主机操作系统时间同步
VMware Tools 生命周期管理为 VMware Tools 的安装和升级提供了一种简单而可扩展的方式。它包含多项功能增强和与驱动程序相关的增强,并支持新的客户机操作系统。
二、为Linux虚机安装vmtools
安装vmtools必须是开启状态,linux和windows都一样。
大多数Linux系统在安装过程中会检测系统是否是虚拟化平台,如果是虚拟化平台,会自动安装开源的open-vm-tools。
例如,在安装centos7.9时,就会自动安装open-vm-tools。
[root@localhost ~]# cat /etc/system-release
CentOS Linux release7.9.2009(Core)[root@localhost ~]# rpm -qa|grep open-vm-toolsopen-vm-tools-11.0.5-3.el7.x86_64但是Rocky Linux虚拟机采用精简安装模式,系统没有自动安装open-vm-tools,如下:
这时可以选择安装开源版本的vmtools或者vmware自带的。
1) 安装open-vm-tools
安装open-vm-tools很简单,一条命令就可以实现,但是需要重启生效。
dnf -y install open-vm-tools查看版本
rpm -qa|grep open-vm-toolsopen-vm-tools-13.0.0-1.el9_7.1.x86_64三、为Windows虚机安装vmtools
给windows虚机安装vmtools,就不像Linux那样可以直接下载开源版本了,而是直接安装自带的vmtools,在vmtools中自带了VMXNET的驱动,如果使用VMXNET的网络设备器,没有安装vmtools就无法使用。
进入虚机,点击安装光盘:
弹出安装程序,点击下一步直到完成即可。
重启虚机生效:
查看vmtools安装状态: