分享

禁止虚拟机(Windows)与主机时间同步(VM & Virtualbox & Virtual PC)

 dongsibei 2014-05-25

Virtualbox (测试OK):

1. 安装增强功能:

2. 虚拟机系统确保没有开启W32TIME服务, 如有可用命令NET STOP W32TIME关闭

3. 修改虚拟机注册表如下:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VBoxService项下ImagePath值改为system32\VBoxService.exe --disable-timesync

  或者在主机运行: VBoxManage setextradata <vmname> "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" "1"

4. 重启Virtualbox虚拟机

VM(未测试):

参考地址: http://blog.csdn.net/hemingwang0902/article/details/6138852

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

[javascript] view plaincopy
  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"  

7. 重启VM虚拟机


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.    …… ……    

 





    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多