禁止VMware虚拟机与Host的时间同步

1. 查看虚拟机是否安装了 VMware Tools, 如果有安装,则将 VMware Tools 属性窗口的“选项”-->“其他选项”中“虚拟机与宿主机操作系统时间同步(T)”前面的勾去掉,点击确定。

2. 关闭虚拟机(是关机,而非休眠),关闭 VMware Workstation。

3. 查看宿主机中的服务中是否有名称为 “VMware Tools Service” 的服务,如果有,则禁用该服务。

4. 用记事本打开 .vmx 文件,如“F:/My Virtual Machines/Red Hat Enterprise Linux 4/Red Hat Enterprise Linux 4.vmx”

5. 将如下配置项的值改为 FALSE

  1. tools.syncTime = "FALSE"
  2. time.synchronize.continue = "FALSE"
  3. time.synchronize.restore = "FALSE"
  4. time.synchronize.resume.disk = "FALSE"
  5. time.synchronize.shrink = "FALSE"
  6. time.synchronize.tools.startup = "FALSE"

6. 如果需要设置虚拟机的启动时间,则修改配置项 rtc.startTime 的值,该配置项的值是从 1970 年 1 月 1 日 0 时 0 分 0 秒到当前时间的秒数。

如,将 rtc.startTime 的值设置为 1218182888 后,重新启动虚拟机时,虚拟机的时间将被设置为 2008 年 8 月 8 日 8 时 8 分 8 秒

  1. rtc.startTime = 1218182888

可以通过这个网址将某个时间转换为 UNIX 时间戳:http://www.onlineconversion.com/unix_time.htm

7. 运行 VMware Workstation,启动虚拟机。

附 1:如果是 virtual pc 2007,则用记事本打开 .vmc 文件(virtual pc 2007 的配置文件),将 <host_time_sync> 下 <enabled> 的值改为 false,如:

  1. <integration>
  2. <microsoft>
  3. then add the following codes
  4. <components>
  5. <host_time_sync>
  6. <enabled type="boolean">false</enabled>
  7. </host_time_sync>
  8. </components>
  9. …… ……

附 2:对 .vmx 文件中修改的几个配置项的说明(参考于 http://www.vmware.com/files/pdf/Timekeeping-In-VirtualMachines.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.

以下内容参考于 http://www.vmware.com/files/pdf/Timekeeping-In-VirtualMachines.pdf 第 8 页
     You can also force the CMOS TOD clock to start at a specified time whenever the virtual machine is powered on, independent of the real time. To do this, set the configuration file option rtc.startTime. The value you specify is in seconds since Jan 1, 1970 00:00 UTC, but it is converted to the local time zone of the host operating system before setting the CMOS TOD clock (under the assumption that the guest operating system requires the CMOS TOD clock to read in local time). If your guest operating system is running the CMOS TOD clock in UTC or some other time zone, you should correct for this when setting rtc.startTime.

禁止VMware虚拟机与Host的时间同步的更多相关文章

  1. VMware 虚拟机安装 Mac OS X Mountain Lion 苹果系统

    国内私募机构九鼎控股打造APP,来就送 20元现金领取地址:http://jdb.jiudingcapital.com/phone.html内部邀请码:C8E245J (不写邀请码,没有现金送)国内私 ...

  2. [转帖]如何禁止VirtualBox虚拟机和物理机之间的时间同步

    如何禁止VirtualBox虚拟机和物理机之间的时间同步 乐者为王 2014-11-02 706 阅读   http://ju.outofmemory.cn/entry/97301 验证了下 修改注册 ...

  3. 外网访问VMware虚拟机

      目的: 主机上安装了VMware,VMware上安装了Linux虚拟机(我安装的是Centos7).我想让虚拟机向外提供Web服务.本文记录如何让我的主机和外网用户可以访问VM虚拟机上的Web. ...

  4. 外网如何访问vmware虚拟机的web服务(转载)

    目的: 主机上安装了VMware,VMware上安装了Linux虚拟机(我安装的是Centos7).我想让虚拟机向外提供Web服务.本文记录如何让我的主机和外网用户可以访问VM虚拟机上的Web. 网络 ...

  5. Vmware虚拟机Devstack安装openstack(All in one)

    Vmware虚拟机Devstack安装openstack(All in one) 博客园第一篇博客,先练习一下. 官方文档 环境 Vmware虚拟机 OS : Ubuntu 14.04 Nat网络,D ...

  6. 提升VMware虚拟机性能招数

    在VMware虚拟机(VMware Workstation或VMware Server)中我们可以同时运行多个Guest OS,当同时在同一Host OS中运行多台虚拟机时势必会严重影响到Host O ...

  7. VMware虚拟机无法识别U盘解决方案

    1. 本机情况: Win7操作系统,VMware虚拟机,虚拟机版本:VMware 7.1,安装Ubuntu10.10,现要求在主机上插入U盘,在虚拟机中显示.   2. 遇到问题: U盘只在Win7主 ...

  8. VMWare虚拟机网络的三种工作模式

    VMWare提供了三种工作模式: 1.bridged(桥接模式) 在这种模式下,VMWare虚拟出来的操作系统就像是局域网中的一台独立的主机,它可以访问网内任何一台机器.在桥接模式下,需要手工为虚拟系 ...

  9. vmware虚拟机下ubuntu 13.04使用zeranoe脚本交叉编译ffmpeg

    2013-07-01今天是建党节,习总书记指出,党的建设要以“照镜子.正衣冠.洗洗澡.治治病”为总要求.希望我们的党越来越纯洁,为人民谋福利.言归正传,每次项目中需要编译相应的ffmpeg,都很费时费 ...

随机推荐

  1. 扩展jquery的选择器

    I’m sure you all know that it’s possible to create plugins and extend various aspects of the jQuery ...

  2. SQL Server中Rowcount与@@Rowcount的用法

    rowcount的用法: rowcount的作用就是用来限定后面的sql在返回指定的行数之后便停止处理,比如下面的示例, set rowcount 10select * from 表A 这样的查询只会 ...

  3. jquery ajax 前前后后,所有的函数并查询链接

    jQuery Ajax 操作函数 jQuery 库拥有完整的 Ajax 兼容套件.其中的函数和方法允许我们在不刷新浏览器的情况下从服务器加载数据. 函数 描述 jQuery.ajax() 执行异步 H ...

  4. bash coding to changeNames

    ____通配符和正则表达式 此处的定义只针对linux 中的shell语言,对其它语言不适用 _正则表达式用来在文件中匹配符合条件的字符串,正则是包含匹配.grep.awk.sed等命令可以支持正则表 ...

  5. PHP CLI模式开发

    PHP CLI模式开发不需要任何一种Web服务器(包括Apache或MS IIS等),这样,CLI可以运行在各种场合.有两种方法可以运行PHP CLI脚本. 第一种方法是使用 # php /path/ ...

  6. Chrome浏览器官方下载地址

    Chrome浏览器离线安装包官方下载地址,和在线安装一样能自动更新. 正式版 http://www.google.com/chrome/eula.html?hl=zh-CN&standalon ...

  7. 尽快写完Math!

    (1)Arranging Coins 解题思路一:这个想法是关于二次方程,得到算术和的公式是sum =(x + 1)* x / 2 所以对于这个问题,如果我们知道和,那么我们可以知道x =(-1 + ...

  8. C#网络编程二:Socket编程

    一:什么是SOCKET socket的英文原义是"孔"或"插座".作为进程通信机制,取后一种意思.通常也称作"套接字",用于描述IP地址和端 ...

  9. 史航416第九次作业&总结

    一.知识点总结: 1.二维数组定义的形式:类型名 数组名[行长度] [列长度] 例如:int a[3][2]:定义一个二维数组a,3行2列,6个元素: 2.二维数组引用的形式:类型名 数组名[行下标] ...

  10. error-2015-9-9

    类型的建键部分无效,该键的所有部分均不可为null 映射从第行开始的片段时有问题 表的键具有潜在运行时冲突 列映射到概念端的属性 但是它们未形成entitySet的键属性 报错: 未能加载文件或程序集 ...