1.修改ESXi的时间配置,在虚拟主机上点击”configuration“—”time configuration “--”properties“,配置NTP服务器”start and stop with host“并且启动服务,好了,状态变成了running,ESXi的时间终于和北京时间一致了
2.修改vcenter的时间,vcenter是运行在suse linux上的东西,所有东西都是命令行.
2.1 进入https://10.1.1.83:5480 的time里配置ntp,修改时间,失败,在命令行里一敲date,出来的是utc时间
2.2 使用cat /ect/sysconfig/clock 改时区,完败,还是utc时间
2.3 使用官方文档
在命令行输入以下命令,以配置并启动 NTP 客户端。
yast2 ntp-client add server=your_chosen_time_server yast2 ntp-client enable
输入以下命令以请求立即与时间服务器同步。
sntp -P no -r your_chosen_time_server
失败,不成功
2.4 使用命令行 yast2 ntp-client 进入蓝屏界面,配置ntp服务器,sync 同步,完败
2.5 使用yast 进入蓝屏界面,修改system—date and time,取消hardware clock set to utc,时区设置为北京,然后sntp -P no -r your_chosen_time_server
敲命令sync