Configure Time Synchronization Between Guest and Host Operating Systems

Configure Time Synchronization Between Guest and Host Operating Systems

When you turn on periodic time synchronization, VMware Tools sets the time of the guest operating system to be the same as the time of the host.

After time synchronization occurs, VMware Tools checks once every minute to determine whether the clocks on the guest and host operating systems still match. If not, the clock on the guest operating system is synchronized to match the clock on the host.

If the clock on the guest operating system falls behind the clock on the host, VMware Tools moves the clock on the guest forward to match the clock on the host. If the clock on the guest operating system is ahead of that on the host, VMware Tools causes the clock on the guest to run more slowly until the clocks are synchronized.

Native time synchronization software, such as Network Time Protocol (NTP) for Linux and the Mac OS X, or Microsoft Windows Time Service (Win32Time) for Windows, is typically more accurate than VMware Tools periodic time synchronization and is therefore preferred. Use only one form of periodic time synchronization in your guests. If you are using native time synchronization software, turn off VMware Tools periodic time synchronization.

Regardless of whether you turn on VMware Tools periodic time synchronization, time synchronization occurs after certain operations:

When the VMware Tools daemon is started (such as during a reboot or power on operation)

When resuming a virtual machine from a suspend operation

After reverting to a snapshot

After shrinking a disk

When the operating system starts or reboots, and when you first turn on periodic time synchronization, synchronization can be either forward or backward in time. For other events, synchronization is forward in time.

To disable time synchronization completely, you must edit the configuration file (.vmx file) of the virtual machine and set several synchronization properties to FALSE.

Disable other periodic time synchronization mechanisms. For example, some guests might have NTP or Win32Time clock synchronization turned on by default.

If you plan to script the commands used in this procedure and need to know what the exit codes are, seeExit Codes.

Note

Mac OS X guests use NTP and do not become out of sync with the host. For Mac OS X guests, there is no need to turn on VMware Tools time synchronization.

1

Open a command prompt or terminal in the guest operating system.

2

Change to the VMware Tools installation directory.

Operating System

Default Path

Windows

C:\Program Files\VMware\VMware Tools

Linux and Solaris

/usr/sbin

FreeBSD

/usr/local/sbin

3

Enter the command to determine whether time synchronization is enabled.

utility-name timesync status

Forutility-name use the guest-specific program name.

Operating System

Program Name

Windows

VMwareToolboxCmd.exe

Linux, Solaris, and FreeBSD

vmware-toolbox-cmd

4

Enter the command to enable or disable periodic time synchronization.

utility-name timesync subcommand

Forsubcommand, use enable ordisable.

After you complete this procedure, the VMware Tools service enables or disables periodic time synchronization, as you specified. Disabling periodic time synchronization does not disable all VMware Tools time synchronization.

If you need to keep a fictitious time in a virtual machine, so that the clock in the guest operating system is never synchronized with that on the host, disable time synchronization completely.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值