锁定VMware Workstation虚拟机的系统时间

编辑.vmx文件 在.vmx文件后添加

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

注意:原来的.vmx文件中可能已经包含这6项设置中的一个或多个,如果有将它们改成0,不要添加多个,不然会提示某一项已经定义,不能启动。

这样,VMWare中的Guest系统不会自动同步主机的时间,恢复快照时,时间不会变。

https://www.vmware.com/pdf/vmware_timekeeping.pdf 的第17页可以看到每个选项的详细解释:

tools.syncTime If set to TRUE, the clock syncs periodically. time.synchronize.continue If set to TRUE, the clock syncs after taking a snapshot. time.synchronize.restore If set to TRUE, the clock syncs after reverting to a snapshot. time.synchronize.resume.disk If set to TRUE, the clock syncs after resuming from suspend and after migrating to a new host using the VMware VMotion feature. time.synchronize.shrink If set to TRUE, the clock syncs after defragmenting a virtual disk. time.synchronize.tools.startup If set to TRUE, the clock syncs when the tools daemon starts up, normally while the guest is booting.

posted @ 2011-07-14 09:59  爱上飞飞的面码  阅读(3523)  评论(0编辑  收藏  举报