Virtual NTP Server? Still Bad Idea?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Jetras
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)

Virtual NTP Server? Still Bad Idea?

Post by Jetras »

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?
fth0
Volunteer
Posts: 5668
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?

Post by fth0 »

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?
Jetras
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?

Post by Jetras »

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.
fth0
Volunteer
Posts: 5668
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?

Post by fth0 »

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.
Jetras
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?

Post by Jetras »

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!
Post Reply