Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a setup of 8 VMWare VMs running across 4 EXSi hosts(IBM Blade Server). For some reasons I cannot connect these VMs or the EXSi hosts to the Internet or any other network. Now I want to synchronize the time on all these VMs. If I set the time on an EXSi host it affects only the VMs running on it. All these VMs(except the virtual center) are running on Ubuntu 12.10 64 bit. The virtual center is running on Suse Linux. Please let me know if you need any other information.

share|improve this question
add comment

3 Answers

Set up an NTP server on your internal network and sync everything to it. If you don't care whether the time is actually accurate and just want to have everything synced to the same time then that will do it.

share|improve this answer
1  
You could also run a GPS on the internal NTP server to get accurate time. –  Michael Hampton May 30 '13 at 6:13
    
@Reality Extractor, so in this case(one machine rule the time of all machines), when I want to change the time of the network, all I need to do is to change(e.g., using ntpdate) the time on the particular ruling machine, isn't it ? –  John Wang 15 hours ago
    
Also, is it possible to setup a HA NTP service by multiple NTP server in the closed network, so one server can fail over to another ? –  John Wang 28 mins ago
add comment

If you configure the VMware tools inside of each of the guest virtual machines, you have an option to synchronize time with the ESXi host. That is the way to accomplish this without using NTP.

share|improve this answer
    
But how do I synchronize VMs spread across multiple EXSi hosts? –  user169253 May 30 '13 at 3:01
1  
@Jay Have the ESXi hosts get their time from internal time source? –  Vick Vega May 30 '13 at 4:04
add comment

So given that:

  1. Your VMs cannot connect to any network
  2. Your VMs can be synchronized to EXSi host time
  3. Your EXSi hosts can connect to internet

You just should use ntp client on your EXSi hosts so that they are perfectly synced with each other.

share|improve this answer
    
And if you really cannot connect your EXSi hosts to any network, even with each other, what means do you have to exchange info between EXSi hosts? –  Andrey Regentov May 30 '13 at 6:12
    
The EXSi hosts are connected to each other(172 series). The VMs are also connected to each other(192 series). But the EXSi and VMs cannot be connected to Internet. –  user169253 May 30 '13 at 6:20
1  
You can't install an NTP server on ESXi, it only runs the NTP client. –  Reality Extractor May 30 '13 at 8:10
    
So you should have means to connect your EXSi hosts to an NTP server. Either by setting up NTP server in 192 subnet or by connecting your subnet to internet. –  Andrey Regentov Jun 3 '13 at 9:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.