Chinaunix首页 | 论坛 | 博客
  • 博客访问: 309589
  • 博文数量: 60
  • 博客积分: 1451
  • 博客等级: 上尉
  • 技术积分: 710
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-23 23:55
文章分类

全部博文(60)

文章存档

2017年(9)

2014年(1)

2013年(1)

2011年(9)

2010年(35)

2009年(5)

我的朋友

分类: 嵌入式

2010-10-31 11:20:25

问题:
VMware Workstation has measured your CPU speed to be xxx MHz, but Windows reports that it is xxx MHz. This may mean that your computer has a power-saving feature that varies the processor speed. As a result, the clock in your virtual machine may run too fast or too slow.
 
解决方法:
 

Host Power Management Causes Problems with Guest Timekeeping (Windows Hosts)

Details

  • The host is a computer running Windows that has power management features in the hardware that varies the processor's operating speed.
  • When the host processor speed increases, the guest operating system's real-time clock (RTC) runs too fast.

Solution

This problem can occur on some host computers that use Intel SpeedStep, AMD Cool 'n' Quiet, or other similar power-saving technologies that vary the processor speed.
 
Note: This article is designed for hosts running Windows for the listed product versions. For Linux hosts running these product versions, see . Previous product versions do not accept the workaround listed, for these product versions, see .

Workaround

You must specify the correct maximum CPU speed of the physical hardware in the global configuration file (config.ini).
 
Note: Before making any modifications to the config.ini, take a backup your virtual machine.
 
To specify the correct maximum CPU speed:
  1. Find the maximum speed of the host computer's CPU. To do this, open Control Panel > System. Note the speed rating of the processor (CPU) written in the model designation text. This may be higher than the current operating speed of the processor noted here. This value can often also be obtained from the computer's BIOS diagnostic screen when starting the computer.

  2. Find the config.ini file:

    • Windows 2000 or XP - %AllUsersProfile%\Application Data\VMware\\config.ini

    • Windows Vista or Windows 7 - C:\ProgramData\VMware\\config.ini

    Note: This file is normally created when the VMware product is installed. Make sure the "Show hidden files and folders" is enabled under Tools > Folder options > View. However, if the file does not exist, create a new text file in the appropriate location as described above, then add the required lines to form a valid config.ini file. For the specifications of the file, see .
  3. Edit config.ini, and add the following lines. Modify the cpukHz value according to the value of the physical computer's maximum CPU speed from step 1. Also add the second and third lines. This enables a mechanism that keeps the guest's clock accurate even when the time stamp counter (TSC) is slow.

    host.cpukHz = "1700000"
    host.noTSC = "TRUE"
    ptsc.noTSC = "TRUE"

    The example above is for a computer that has a maximum CPU speed of 1700 MHz (or 1.7 GHz). The value entered on this line must be in KHz. To convert the speed from MHz, multiply by 1000. To convert from GHz, multiply by 1 000 000.

  4. Restart the VMware Authorization service for the changes to take effect. Click Start > Control Panel > Administrative Tools > Services. Right-click VMware Authorization Service and click Restart.

  5. In addition, verify that the VMware in the guest operating system are set to enable time synchronization.

    1. Open the VMware Tools toolbox application by double-clicking the VMware icon in the system notification area (tray).

    2. Click Options, select Time synchronization between the virtual machine and the host operating system.

阅读(2237) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~