vm虚拟机启动报The VMware Authorization Service is not running错误

本文介绍了解决VMware虚拟机启动时报TheVMwareAuthorizationServiceisnotrunning错误的方法:只需使用管理员身份运行VM即可。

vm虚拟机启动报The VMware Authorization Service is not running错误。修改方法,使用管理员身份运行VM即可。

[root@Docker-register ~]# systemctl list-units --type=service --state=running UNIT LOAD ACTIVE SUB DESCRIPTION auditd.service loaded active running Security Auditing Service chronyd.service loaded active running NTP client/server couchbase-server.service loaded active running Couchbase Server crond.service loaded active running Command Scheduler dbus.service loaded active running D-Bus System Message Bus docker.service loaded active running Docker Application Container Engine getty@tty1.service loaded active running Getty on tty1 gssproxy.service loaded active running GSSAPI Proxy Daemon irqbalance.service loaded active running irqbalance daemon lvm2-lvmetad.service loaded active running LVM2 metadata daemon metricbeat.service loaded active running Metricbeat is a lightweight shipper for metrics. NetworkManager.service loaded active running Network Manager polkit.service loaded active running Authorization Manager postfix.service loaded active running Postfix Mail Transport Agent rhnsd.service loaded active running LSB: Starts the Spacewalk Daemon rhsmcertd.service loaded active running Enable periodic update of entitlement certificates. rpcbind.service loaded active running RPC bind service rsyslog.service loaded active running System Logging Service sshd.service loaded active running OpenSSH server daemon systemd-journald.service loaded active running Journal Service systemd-logind.service loaded active running Login Service systemd-udevd.service loaded active running udev Kernel Device Manager tuned.service loaded active running Dynamic System Tuning Daemon vgauthd.service loaded active running VGAuth Service for open-vm-tools vmtoolsd.service loaded active running Service for virtual machines hosted on VMware zabbix-agent.service loaded active running Zabbix Agent LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 26 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'.
03-18
当遇到 VMware Authorization Service 未运行的问题时,通常是由于服务未能正确启动或配置错误导致的。以下是一些常见的排查与修复步骤: ### 检查服务状态 首先,需要确认 VMware Authorization Service 是否确实处于停止状态。可以通过以下方式检查: - 打开“服务”管理器(`services.msc`)。 - 查找 `VMware Authorization Service` 并查看其当前状态。 如果服务未运行,尝试手动启动它并观察是否有错误提示。 ### 重新启动服务 如果服务已经停止,可以尝试通过命令行重新启动该服务: ```cmd net start "VMware Authorization Service" ``` 如果服务无法启动,可能会显示错误信息,这有助于进一步诊断问题。 ### 检查日志文件 VMware 的日志文件通常位于安装目录下的 `logs` 文件夹中。查看相关日志可以帮助识别服务未能启动的具体原因。日志中可能包含有关配置错误、依赖项缺失或其他问题的信息。 ### 验证依赖服务 确保所有依赖服务都已正确启动VMware Authorization Service 依赖于其他几个服务,例如 VMware Hostd 和 VMware vSphere Web Client 服务。这些服务的状态也应被检查,并确保它们正在运行。 ### 重新安装 VMware Tools 有时,授权服务的问题可能是由于 VMware Tools 安装不完整或损坏引起的。在这种情况下,卸载并重新安装 VMware Tools 可能会解决问题。可以通过以下步骤进行: 1. 在虚拟机中打开控制面板。 2. 进入“程序和功能”,找到 VMware Tools 并卸载。 3. 重新安装 VMware Tools。 ### 修改注册表项 在某些情况下,可能需要手动修改注册表来修复服务问题。此操作需谨慎执行,因为不当的注册表编辑可能导致系统不稳定。建议在修改之前备份注册表。具体步骤包括: 1. 打开注册表编辑器(`regedit`)。 2. 导航至 `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VMware Authorization Service`。 3. 确保 `ImagePath` 键值指向正确的可执行文件路径,通常是 `C:\Program Files\VMware\VMware Workstation\x64\vmtoolsd.exe`。 ### 使用脚本自动修复 对于频繁出现的问题,可以编写批处理脚本来自动化上述部分步骤。例如,以下是一个简单的批处理脚本示例,用于重启相关服务: ```batch @echo off echo 正在停止 VMware Authorization Service... net stop "VMware Authorization Service" echo 正在启动 VMware Authorization Service... net start "VMware Authorization Service" echo 操作完成。 pause ``` ### 检查网络配置 确保虚拟机的网络配置正确无误。错误的网络设置可能导致授权服务无法正常通信。特别是检查虚拟交换机的配置以及 IP 地址分配是否合理。 ### 更新 VMware 软件 保持 VMware 软件为最新版本是避免此类问题的有效方法之一。定期检查更新并安装最新的补丁和版本升级。 ### 联系技术支持 如果以上方法都无法解决问题,建议联系 VMware 技术支持团队获取更专业的帮助。他们可能能够提供针对特定环境的详细解决方案。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值