vmware esxi 相关
2019-07-11 本文已影响0人
waterloopan
Esxi设置从NTP获取时间,并将时间同步到虚拟机,修复虚拟机时间重启后时间不对的问题
首先确保exsi的时间是正确的
-
登录web管理界面
Host->Manage->System->Time & date->Edit Settings
esxi-ntp.png -
设置
- check 'Use Network Time Protocol(enable NTP client)'
- NTP service startup policy->Start and stop with host
- NTP servers:
ntp1.aliyun.com, ntp2.aliyun.com, ntp3.aliyun.com, ntp4.aliyun.com, ntp5.aliyun.com,ntp6.aliyun.com, ntp7.aliyun.com
esxi-ntp-1.png
设置同步Exsi的时间到guest
右击虚拟机->Edit Setting->VM Options->VMware Tools->勾选Synchronize guest time with host
esxi-ntp-2.png esxi-ntp-3.png
Esxi允许采用rsa免密码登录
- vi /etc/ssh/keys-root/authorized_keys
将id_rsa.pub内容复制到上述文件 - /etc/init.d/SSH restart
- 如果不能登录,请如下操作
- To allow root access, change PermitRootLogin no to PermitRootLogin yes in the /etc/ssh/sshd_config file.
- To disable password login, ensure that the ChallengeResponseAuthentication and PasswordAuthentication are set to no.