报错现象
上传open-vm-tools包
sftp> cd /tmp sftp> lcd C:\temp sftp> putopen-vm-tools-12.1.5-3.oe2203sp3.x86_64.rpm Uploadingopen-vm-tools-12.1.5-3.oe2203sp3.x86_64.rpm to /tmp/open-vm-tools-12.1.5-3.oe2203sp3.x86_64.rpm 100% 784KB 784KB/s00:00:00 C:\temp\open-vm-tools-12.1.5-3.oe2203sp3.x86_64.rpm:802941 bytes transferred in 0 seconds (784 KB/s) sftp>
使用rpm安装
[root@localhost yum.repos.d]# cd /tmp [root@localhost tmp]# ll total 788K -rw-r--r--. 1 root root 785K Mar 20 08:31open-vm-tools-12.1.5-3.oe2203sp3.x86_64.rpm drwx------. 3 root root 60 Mar 21 15:56systemd-private-5c66864e179e457ca052b5895f56499e-chronyd.service-ToK1Cx drwx------. 3 root root 60 Mar 21 15:56systemd-private-5c66864e179e457ca052b5895f56499e-systemd-logind.service-hHEoU8 [root@localhost tmp]# rpm -ivhopen-vm-tools-12.1.5-3.oe2203sp3.x86_64.rpm warning:open-vm-tools-12.1.5-3.oe2203sp3.x86_64.rpm: Header V4 RSA/SHA256 Signature,key ID fb37bc6f: NOKEY error: Failed dependencies: fuse3 is needed by open-vm-tools-12.1.5-3.oe2203sp3.x86_64 libfuse3.so.3()(64bit) is needed byopen-vm-tools-12.1.5-3.oe2203sp3.x86_64 libfuse3.so.3(FUSE_3.0)(64bit) is needed byopen-vm-tools-12.1.5-3.oe2203sp3.x86_64 libfuse3.so.3(FUSE_3.1)(64bit) is needed byopen-vm-tools-12.1.5-3.oe2203sp3.x86_64 libmspack.so.0()(64bit) is needed byopen-vm-tools-12.1.5-3.oe2203sp3.x86_64 libxmlsec1.so.1()(64bit) is needed byopen-vm-tools-12.1.5-3.oe2203sp3.x86_64 xmlsec1-openssl is needed by open-vm-tools-12.1.5-3.oe2203sp3.x86_64
缺少依赖包,挂载iso镜像并配置yum源 [root@localhost tmp]# yum localinstallopen-vm-tools-12.1.5-3.oe2203sp3.x86_64.rpm Last metadata expiration check: 0:01:24 agoon Thu 21 Mar 2024 04:01:49 PM CST. Dependencies resolved. ======================================================================================================================= Package Architecture Version Repository Size ======================================================================================================================= Installing: open-vm-tools x86_64 12.1.5-3.oe2203sp3 @commandline 784 k Installing dependencies: fuse3 x86_64 3.10.5-3.oe2203 mnt 116 k libmspack x86_64 0.8-0.1.1.oe2203 mnt 61 k xmlsec1 x86_64 1.2.31-2.oe2203 mnt 368 k Installing weak dependencies: fuse3-help x86_64 3.10.5-3.oe2203 mnt 14 k Transaction Summary ======================================================================================================================= Install 5 Packages Total size: 1.3 M Installed size: 5.0 M Is this ok [y/N]: y Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing :xmlsec1-1.2.31-2.oe2203.x86_64 1/5 Running scriptlet: xmlsec1-1.2.31-2.oe2203.x86_64 1/5 Installing :libmspack-0.8-0.1.1.oe2203.x86_64 2/5 Installing :fuse3-help-3.10.5-3.oe2203.x86_64 3/5 Installing :fuse3-3.10.5-3.oe2203.x86_64 4/5 Running scriptlet: fuse3-3.10.5-3.oe2203.x86_64 4/5 Installing :open-vm-tools-12.1.5-3.oe2203sp3.x86_64 5/5 Running scriptlet: open-vm-tools-12.1.5-3.oe2203sp3.x86_64 5/5 Created symlink/etc/systemd/system/multi-user.target.wants/vmtoolsd.service →/usr/lib/systemd/system/vmtoolsd.service. Created symlink/etc/systemd/system/vmtoolsd.service.requires/vgauthd.service →/usr/lib/systemd/system/vgauthd.service. Verifying :fuse3-3.10.5-3.oe2203.x86_64 1/5 Verifying :fuse3-help-3.10.5-3.oe2203.x86_64 2/5 Verifying :libmspack-0.8-0.1.1.oe2203.x86_64 3/5 Verifying :xmlsec1-1.2.31-2.oe2203.x86_64 4/5 Verifying :open-vm-tools-12.1.5-3.oe2203sp3.x86_64 5/5 Installed: fuse3-3.10.5-3.oe2203.x86_64 fuse3-help-3.10.5-3.oe2203.x86_64 libmspack-0.8-0.1.1.oe2203.x86_64 open-vm-tools-12.1.5-3.oe2203sp3.x86_64 xmlsec1-1.2.31-2.oe2203.x86_64 Complete!
软件包安装完毕后需要启动vmtoolsd.service、vgauthd.service服务
[root@localhost tmp]# [root@localhost tmp]# [root@localhost tmp]# systemctl statusvmtoolsd.service ○ vmtoolsd.service - Service for virtualmachines hosted on VMware Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled;vendor preset: enabled) Active: inactive (dead) [root@localhost tmp]# systemctl startvmtoolsd.service [root@localhost tmp]# systemctl statusvmtoolsd.service ● vmtoolsd.service - Service for virtualmachines hosted on VMware Loaded: loaded (/usr/lib/systemd/system/vmtoolsd.service; enabled;vendor preset: enabled) Active: active (running) since Thu 2024-03-21 16:04:00 CST; 3s ago Main PID: 7422 (vmtoolsd) Tasks: 4 (limit: 98714) Memory: 1.6M CGroup: /system.slice/vmtoolsd.service └─7422 /usr/bin/vmtoolsd Mar 21 16:04:00 localhost.localdomainsystemd[1]: Started Service for virtual machines hosted on VMware. [root@localhost tmp]# systemctl statusvgauthd.service ● vgauthd.service - VGAuth Service foropen-vm-tools Loaded: loaded (/usr/lib/systemd/system/vgauthd.service; enabled; vendorpreset: disabled) Active: active (running) since Thu 2024-03-21 16:04:00 CST; 19s ago Main PID: 7421 (VGAuthService) Tasks: 1 (limit: 98714) Memory: 1.3M CGroup: /system.slice/vgauthd.service └─7421 /usr/bin/VGAuthService -s Mar 21 16:04:00 localhost.localdomainsystemd[1]: Started VGAuth Service for open-vm-tools. Mar 21 16:04:00 localhost.localdomainVGAuthService[7421]: Pref_Init: Using '/etc/vmware-tools/vgauth.conf' asprefere> Mar 21 16:04:00 localhost.localdomainVGAuthService[7421]: Core dump limit set to -1 [root@localhost tmp]#
至此,我们的open-vm-tools就安装好了
|