vmware esxi 相关

Esxi设置从NTP获取时间,并将时间同步到虚拟机,修复虚拟机时间重启后时间不对的问题

首先确保exsi的时间是正确的

  1. 登录web管理界面
    Host->Manage->System->Time & date->Edit Settings


    esxi-ntp.png
  2. 设置

  • 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免密码登录

  1. vi /etc/ssh/keys-root/authorized_keys
    将id_rsa.pub内容复制到上述文件
  2. /etc/init.d/SSH restart
  3. 如果不能登录,请如下操作
  • 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.
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容