文档章节

Synchronizing ESXi/ESX time with a Microsoft Domai

张文辉
 张文辉
发布于 2014/12/10 15:09
字数 838
阅读 12
收藏 0

Workaround

If you are using ESXi/ESX 4.1 Update 1 or later, you can use this workaround:

When using Active Directory integration in ESXi/ESX 4.1 and newer, it is important to synchronize time between ESXi/ESX and the directory service to facilitate the Kerberos security protocol.

ESXi/ESX support synchronization of time with an external NTPv3 or NTPv4 server compliant with RFC 5905 and RFC 1305. Microsoft Windows 2003 and newer use the W32Time service to synchronize time for windows clients and facilitate the Kerberos v5 protocol. For more information, see the Microsoft Knowledge Base article 939322 and How the Windows Time Service Works.

By default, an unsynced Windows server chooses a 10-second dispersion and adds to the dispersion on each poll interval that it remains in sync. An ESXi/ESX host, by default, does not accept any NTP reply with a root dispersion greater than 1.5 seconds.

The preceding links were correct as of April 16, 2013. If you find a link is broken, provide feedback and a VMware employee will update the link.

Configure Windows NTP Client

ESXi/ESX requires an accurate time source to synchronize with. To use a Windows 2003 or newer server, it should be configured to get its time from an accurate upstream NTP server. For more information, see the Microsoft Knowledge Base article 816042.

The preceding link was correct as of April 16, 2013. If you find a link is broken, provide feedback and a VMware employee will update the link.

Use the registry editor on the Windows server to make the configuration changes:

Note: This procedure modifies the Windows registry. Before making any registry modifications, ensure that you have a current and valid backup of the registry and the virtual machine. For more information on backing up and restoring the registry, see the Microsoft Knowledge Base article 136393.

  1. Enable NTP mode:


    1. Locate HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

    2. Set the Type value to NTP.

  2. Enable the NTP Client:


    1. Locate HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config

    2. Set the AnnounceFlags value to 5.

  3. Specify the upstream NTP servers to sync from:


    1. Locate HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders

    2. Set the NtpServer value to a list of at least 3 NTP servers.

      Example: You might set the value to:

      1.pool.ntp.org,0x1 2.pool.ntp.org,0x1 3.pool.ntp.org,0x1

      Note: On a Windows 2008 Domain Controller, NtpServer is located inHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters.

  4. Specify a 15-minute update interval:


    1. Locate HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient

    2. Set the SpecialPollInterval value to 900.

  5. Restart the W32time service for the changes to take effect.


Configure ESXi/ESX NTP and Likewise Clients

Configure ESXi/ESX to synchronize time with the Windows server Active Directory Domain Controller:

  1. Connect to the ESXi/ESX host or vCenter Server using the vSphere Client.

  2. Click the ESXi/ESX host in the inventory.

  3. Click the Configuration tab.

  4. Under the Software heading, click Time Configuration.

  5. Click Properties.

  6. Ensure that the NTP Client Enabled option is selected.

  7. Click Options.

  8. Click NTP Settings.

  9. Click Add and specify the fully qualified domain name or IP address of the Windows server Domain Controller(s).

  10. Click OK.

  11. Click OK to save the changes.


Additional configuration must be done from the command line.

  1. Open a console to the ESXi/ESX host. For more information, see Connecting to an ESX host using a SSH client (1019852) or Using Tech Support Mode in ESXi 4.1 and ESXi 5.0 (1017910).

  2. Open the /etc/ntp.conf file in a text editor. For more information, see Editing configuration files in VMware ESXi and ESX (1017022).

  3. Add the tos maxdist command on its own line:

    tos maxdist 30

  4. Save and close the configuration file.

  5. Make the /etc/likewise/lsassd.conf file writable by running the command:

    chmod +w /etc/likewise/lsassd.conf

  6. Open the /etc/likewise/lsassd.conf file in a text editor. For more information, see Editing configuration files in VMware ESXi and ESX (1017022).

  7. Locate the sync-system-time option, uncomment it, and set the value to no:

    sync-system-time = no

  8. Save and close the configuration file.

  9. On ESXi, save the configuration changes to the boot bank so they persist across reboots by running the command:

    /sbin/auto-backup.sh

  10. Restart the ntpd and lsassd services for the configuration changes to take effect by running the commands:

    service lsassd restart
    service ntpd restart


    Note: To restart the ntpd and lsassd services on an ESXi host, run these commands:

    /etc/init.d/lsassd restart
    /etc/init.d/ntpd restart


If the ntpd and lsassd services do not restart, consider restarting the management agents first. For more information about restarting the management agents, see Restarting the Management agents on an ESX or ESXi Server (1003490).

Once the configuration changes are complete, ensure that the time is synchronized between the ESXi/ESX host and the Windows server. For more information, see Troubleshooting NTP on ESX and ESXi (1005092).

本文转载自:http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_...

共有 人打赏支持
张文辉
粉丝 2
博文 19
码字总数 4141
作品 0
广州
系统管理员
VMware vSphere 和 VMware vCenter Server 是什么关系?

VMware vSphere 是VMware 的一个虚拟化产品。它包括vCenter,ESX Server,ESXi Server等等。举个列子 如果你需要组建一套VMware 虚拟化平台,你有3台服务器,2台用于业务,1台用于管理,那么...

Rainy0426
05/25
0
0
虚拟机环境下安装ESX不能安装虚拟系统解决方案

在虚拟机环境(ESX、workstation等)下安装ESX或workstation等虚拟机,在虚拟机上再安装操作系统,会提示“虚拟系统不能启动,直到你配置了外部虚拟机(vmware esx in a virtual machine req...

Mr韦淋
2014/06/08
0
0
VMware vSphere 4.1学习总结

完成了为期一周的学习,准备VCP考试先。 除去学习意义不谈,现实意义我觉得有如下几点: 1、ESXi是主攻方向了,ESX不会再被使用,且ESXi 也提供免费版本 2、VC很重要,插件系统很好,这个思路...

晨曦之光
2012/03/09
0
0
独门绝技解决 ESXI6.0 时间(时区)显示不一致

近日由于设置ESXI计划任务,无意间发现了esxi服务器客服端时间和系统显示时间不一致的情况,导致了(我为了一致,通过SSH用命令修改了ESXI系统时间)虚拟机时间也不一致,最终导致虚拟服务器...

jwenshan
06/29
0
0
VMwareESX/ESXi 精简置备(thin)与厚置备(thick)虚拟机磁盘之间转换

VMwareESX/ESXi 精简置备(thin)与厚置备(thick)虚拟机磁盘之间转换[Yerik原创] VMwareESX/ESXi 虚拟机磁盘thin与thick之间转换 注意:转换前请先关闭虚拟机!!! 一. Thin to Thick转换 Thin t...

枫影Xda
2013/06/17
0
0

没有更多内容

加载失败,请刷新页面

加载更多

设计模式之 明确责任 观察者模式 状态模式 责任链模式

观察者模式是任务分发的一种模式。 如果认为我们设计的系统的各个模块(或子系统)的最终目的是完成共同任务,那么这个任务如何分配到多个模块的就是我们遇到的第一个问题。简单设计场合我们...

backbye
12分钟前
2
0
14-利用思维导图梳理JavaSE-大汇总

14-利用思维导图梳理JavaSE-Java基础知识大汇总 主要内容 1.对象入门 2.一切都是对象 3.程序流程控制 4.初始化和消除 5.权限访问控制 6.复用类 7.多态 8.接口与抽象类 9.内部类 10.容器 11.异...

飞鱼说编程
47分钟前
5
0
利用Lombok编写优雅的spring依赖注入代码,去掉繁人的@Autowired

大家平时使用spring依赖注入,都是怎么写的? @Servicepublic class OrderService { @Autowired private UserService userService;} 是不是很熟悉的感觉?但是呢 如果你用...

HeyS1
54分钟前
23
0
IBATIS 写BLOB字段遇到的问题

1、 首先遇到的配置问题,通过设置typeHandler 来支持写入。接下来由此引出了事务的问题。 <typeHandler jdbcType="BLOB" javaType="[B" callback="org.springframework.orm.ibatis.support....

echo-neo
今天
1
0
37. Sudoku Solver

Description tags: backtrack,hash table difficulty: hard Write a program to solve a Sudoku puzzle by filling the empty cells.A sudoku solution must satisfy all of the following......

52iSilence7
今天
1
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部