VMWare如何防止虚拟机更新其日期和时间 [英] VMWare how to prevent a virtual machine from updating its date and time

查看:882
本文介绍了VMWare如何防止虚拟机更新其日期和时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道虚拟机(VMWare)如何更新其日期和时间以及如何禁用它;因为我注意到即使我重新启动虚拟机将其暂停/关闭一年,它也会有正确的时间和日期。

I want to know how virtual machines (VMWare) updates their date and time and how to disable this; because i noticed that even if i suspend/shutdown a virtual machine for a year when i'll turn it on again, it will have the right time and date.

对于物理机,我知道主板上固定的中央单元内有一点电池,可以在关闭计算机电源并断开电源时保持日期。但是虚拟机如何保持时间呢?以及如何禁止呢?

For physical machines i know there is a little battery inside the Central Unit fixed on the Motherboard that helps to keep date when the computer is turned off and disconnected from powersupply. But what about virtual machines how do they keep their time ? and how can I forbid that ?

推荐答案

您还需要告诉虚拟机禁用时钟同步。 Brian Keller撰写了有关如何使用Microsoft Virtual PC进行此操作的博客文章。但是,我需要在VMWare Fusion上弄清楚。幸运的是,以下来自VMWare的PDF可以帮助我( http://www.vmware.com/pdf/ vmware_timekeeping.pdf )。该文档阅读起来有些痛苦,但是基本上您需要做的就是在TextEdit中打开.vmx文件并添加以下条目:

You also need to tell the virtual machine to disable clock synchronization. Brian Keller has a blog post on how to do this with Microsoft Virtual PC. However, I needed to figure it out on VMWare Fusion. Luckily the following PDF from VMWare came to my rescue (http://www.vmware.com/pdf/vmware_timekeeping.pdf). The document is a little painful to read through, but basically all you need to do is open up the .vmx file in TextEdit and add the following entries:

tools.syncTime = "FALSE"
time.synchronize.continue = FALSE
time.synchronize.restore = FALSE
time.synchronize.resume.disk = FALSE
time.synchronize.shrink = FALSE
time.synchronize.tools.startup = FALSE

其中两个导致我遇到问题,第一个tool.syncTime已经设置为false(可能是因为我转换的Virtual PC映像已经禁用了时间同步)。接下来是 time.synchronize.tools.startup = FALSE。这使VMWare工具无法在操作系统启动时设置来宾操作系统时间,而我在网上看到的所有其他有关处理此问题的帖子都没有找到它。

Two of these caused me problems, first tool.syncTime was already set to false (likely because the Virtual PC image I converted already had time sync disabled). Next was "time.synchronize.tools.startup = FALSE". This stops the VMWare tools from setting the guest OS time on OS startup and was missing from all the other posts I saw online about dealing with this issue.

这篇关于VMWare如何防止虚拟机更新其日期和时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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