美文网首页
vmware esxi 相关

vmware esxi 相关

作者: waterloopan | 来源:发表于2019-07-11 12:38 被阅读0次

    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.

    相关文章

      网友评论

          本文标题:vmware esxi 相关

          本文链接:https://www.haomeiwen.com/subject/nbbrkctx.html