I need timing to be synced on my virtual network and physical devices that are plugged into it. I need the Virtual Network to control this since my servers are virtual. Is there any virtual NTP Server that is remotely reliable? I haven't been able to find anything that supports this idea and most things I come across say this is a bad idea.
I have devices that request an NTP Server's IP. Is there a known work around or option for this in VirtualBox?
Virtual NTP Server? Still Bad Idea?
-
- Volunteer
- Posts: 5677
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Virtual NTP Server? Still Bad Idea?
I think it's a question of accuracy: If you only need a precision of ~1 second, you can simply run an NTP server on one of your servers. If you need sub-second precision, you'll have to cope with the situation that a VM usually isn't running continuously. Can you describe in more detail what you really need, perhaps with a detailed example?
-
- Posts: 20
- Joined: 14. Sep 2021, 21:06
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows (2012 & 10), Linux (RHEL, Ubuntu, CentOS), FreeBSD (pfSense)
Re: Virtual NTP Server? Still Bad Idea?
I am setting up a proprietary system virtually for the purpose of Training and Tech Support. The system uses CCTV with Archived Video so an offset of +/- 1 second would be fine. All the VMs and Devices need an IP of an NTP Server to sync. I was hoping to find a virtual image of a NTP that I could emulate at the normal IP for the purpose of training. I don't want to deviate too far from the existing system to be able to provide the most realistic "Lab" as possible.
Sounds like I could run the NTP on a VM Box and just put the NTP VM at that IP location. Would this work best on a Linux Box or a Windows Box? Any suggested software that works across a Virtual Network? I already have the VLANs setup.
Sounds like I could run the NTP on a VM Box and just put the NTP VM at that IP location. Would this work best on a Linux Box or a Windows Box? Any suggested software that works across a Virtual Network? I already have the VLANs setup.
-
- Volunteer
- Posts: 5677
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Virtual NTP Server? Still Bad Idea?
AFAIK, each Windows OS (including Windows 10) has an NTP server built-in (Windows Time service tools and settings), and each Linux OS has at least an ntp package to install an NTP server. It is a relatively small service, and a separate PC or VM for NTP alone would be overkill IMHO, so just run it on any member of your virtual network that you like.
-
- Posts: 20
- Joined: 14. Sep 2021, 21:06
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows (2012 & 10), Linux (RHEL, Ubuntu, CentOS), FreeBSD (pfSense)
Re: Virtual NTP Server? Still Bad Idea?
I got it to work on a CentOS VM and used Chrony. Everything works great now as far as the timing.
Shoot for the Moon, even if you miss you still made it among the stars!