VMWare - 多个 VM 与一个特定 VM(非 ESX)的同步时间 [英] VMWare - Sync time of many VMs with one specific VM (not ESX)

查看:25
本文介绍了VMWare - 多个 VM 与一个特定 VM(非 ESX)的同步时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试解决一个问题,但对虚拟机配置的控制有限.我会尽量具体.请注意,我对 VM 和许多与系统相关的主题不是很了解,所以如果我似乎在胡说八道,请原谅我.无论如何,我认为问题本身应该很清楚.

我有以下设置:

运行 Jenkins 主站的虚拟机、运行数据库的虚拟机、运行 Jenkins 从站的虚拟机以及许多其他已在其上运行测试的虚拟机.但是,我无法控制每个 VM 在哪个 ESX 下,而且 ESX 所有者总是自动或手动转移.我使用 Windows,但我可能会在不久的将来添加 Linux Slaves 和 Mac 测试环境.

请再次注意,我无法控制管理操作和设置,但我可以要求完成这些操作.但我想在进入我和 IT 之间的官僚乒乓之前形成一个解决方案.

问题:

VM 之间的时间不同步.它使阅读日志变得混乱,并可能产生其他问题.由于我无法控制迁移等,因此 VM 并非都在同一个 ESX 下.老实说,我不确定这是否是确切原因,但我认为这会导致时间同步关闭.

解决方案?

不是每个 VM 都同步到它的 ESX,或者任何控制它们的时间设置的东西,是否可以将它们与特定的 VM 同步?在这种情况下,我希望它们都与 Jenkins 主虚拟机同步.这样做,如果有时间问题,我只需要看看Jenkins master(除非与ma​​ster同步有问题)

啊,我知道有一个设置(在注册表中,或者通过命令行?)允许设置时间服务器,但我想知道是否有更正式的方法通过 VCenter 在一组 VM 上执行此操作,而不是在每个 VM 上手动执行.我什至不确定它是否会与 VMWare 的时间同步发生冲突.

解决方案

我不确定这个问题是否在这里过时,但这是我的两分钱:禁用 VMware 时间同步并依赖 NTP在客人身上.

VMWare 知识库中有一篇文章这里 完全涵盖了这一点.>

原因:可能是由于某种原因,ESX 集群中的一个节点没有正确配置(时区错误或根本没有启用时间同步).当您的虚拟机迁移到那里时,VMware 时间同步会相应地调整您的客人的时间,设置错误的主机日期和时间.

请您的 VM 提供商编辑 vmx 文件以禁用 VMware 时间同步是恕我直言最好的方法,因为您将不再受到虚拟化平台的干扰,并且您将完全控制您的来宾操作系统时间同步策略(例如使用相同的固定 NTP 服务器).

I have a problem I am trying to deal with, while having limited control over VMs configuration. I'll try to be as specific as possible. Please note I am not very knowledgeable about VMs and a lot of system-related subjects, so forgive me if it seems like I talk nonsense. I Think the problem itself should be clear regardless of that being the case.

I have the following setup:

A VM running Jenkins master, VM running database, VMs running Jenkins slaves, and many other VMs that have tests run on them. However, I have no control over which ESX each VM is under, and the ESX owners always shift, either automatically or manually. I use Windows, but I will probably add Linux Slaves and Mac tested environments in the near future.

Note that, again, I don't have control over administrative actions and settings, but I can request them to be done. But I want to form a solution before entering that bureaucratic ping pong between me and IT.

The problem:

The time is not synced between the VMs. It makes reading logs confusing, and might create other issues. Since I do not have a control over migrations and the like, the VMs are not all under the same ESX. To be honest, I am not sure if that is the exact cause, but I think this causes the time sync to be off.

The Solution?

Rather than each VM synced to its ESX, or whatever controls their time setting, is it possible to sync them with a specific VM? In this case, I want them all to sync with the Jenkins master VM. Doing so, if there are time issues, I would only have to look at the Jenkins master (unless the sync with the master is the problem)

Edit: Ah I am aware there's a setting (either in registry, or maybe via commandline?) that allows setting a time server, but I was wondering if there's a more official way to do it via VCenter on a group of VMs, rather than do it manually on each VM. I am not even sure if it will conflict with VMWare's time sync.

解决方案

I'm unsure if this question is OT here, but here are my two cents: disable VMware time synchronization and rely on NTP on the guests.

There's an article in VMWare knowledge base here that covers exactly this.

Reason: it may be that for whatever reason one of the nodes in your ESX cluster is not properly configured (either the time zone is wrong or there is no timesync enabled at all). When your VMs are migrated there, VMware time sync will adjust the time of your guests accordingly, setting the wrong date and time of the host.

Asking your VM provider to edit the vmx files to disable VMware time sync is IMHO the best way, because you will not get interference from the virtualization platform anymore and you will be in full control about your guest OS time sync policies (e.g. using the same fixed NTP server).

这篇关于VMWare - 多个 VM 与一个特定 VM(非 ESX)的同步时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆