VMware vSphere Client无法连接ESXi虚拟主机解决的方法

时间:2025-03-01 14:09:13


VMware vSphere Client无法连接ESXi虚拟主机解决的方法

 莫名其妙VMware vSphere Client连接不到Esxi 虚拟主机

 解决方法:

 

1,连接显示器到Esxi虚拟机器上,使用账号登陆

2,按照如图所示打开那两个选项即可使用ssh登陆,之后和Linux系统的操作方式一样

 第一步:



第二步:



3 .使用ssh登陆后:

 

cd /sbin       会看到 

 一般情况下重启就可以解决(或图形界面下restart management agent

 restart

 

4.若重启报错且仍然无法连接

watchdog-hostd:PID file /var/run/vmware/ not foundwatchdog-hostd:Unable to terminate watchdog:Can't find process/etc//hostd:kill:48:(84046924)-No such process

 

 
这个报错是由于启动/关闭hostd服务器引起的。说明hostd进程没kill到。(原因运行一下/etc//hostd start or stop就知道)

 
ps | grep hostd 你会看到

123456233  789789789      hostd456123358  789789789      hostd123        789789789      hostd123458985  789789789      hostd



说明有hostd进程,在运行 

 /etc//hostd  stop

 再次查看进程

 

ps | grep hostd 123456233  789789789     hostd456123358  789789789     hostd123        789789789     hostd123458985  789789789     hostd........


如果还存在,说明hostd根本没有kill到,于是手动kill,选择任意一个子进程ID kill就可以
如:

kill -9 123458985


然后再运行

ps | grep hostd 

 

发现已经没有输入,说明hostd已经kill

启动hostd进程即可

/etc//hostd start