User Tools

Site Tools


Sidebar

Go Back

Refresh

You are not allowed to add pages

Direct Link

library:misc:holdsystemtime

将VMWare中的虚拟机时间设定在一个固定值


1.关闭虚拟机

2.用记事本打开虚拟机的.vmx文件 在末尾添加添加:

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" 
rtc.startTime = 1325376000

3.启动虚拟机

注意: 1)rtc.startTime = 1325376000 里的1325376000是从1970年1月1日0时0分0秒到系统启动时间间隔的时间,单位是秒
可以到网站http://www.onlineconversion.com/unix_time.htm上换算得到希望虚拟机的启动时间
1325376000 : Sun, 01 Jan 2012 00:00:00 GMT
1577880000 : 2020/1/1 12:0:0

2)如果.vmx文件中本来就含有tools.syncTime = “FALSE” 则不需要配置

library/misc/holdsystemtime.txt · Last modified: 2022/05/02 00:32 (external edit)