欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

玩欧卡就用莱仕达V10方向盘欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 5328|回复: 4
收起左侧

vmware server安装ubuntu 64位系统提示 VT is not enabled

[复制链接]
知行 发表于 2012-3-29 22:19 | 显示全部楼层 |阅读模式
今天在vmware server里装ubuntu,遇到下面两个问题:
第一个,虚拟化技术没有启用:
This host is VT-capable, but VT is not enabled.
This is usually due to a BIOS/firmware problem.  Please:
(1) Verify the BIOS/firmware settings enable VT mode.
(2) Power-cycle the host, if the BIOS/firmware VT settings were changed at boot.
(3) Power-cycle the host, if you have not done so since installing VMware Workstation.
(4) Update host BIOS/firmware to the latest version.
The virtual machine you are attempting to restore is in 64-bit mode, but your host does not support 64-bit VMs.
Error encountered while trying to restore the state of group monitorLate from file "D:\GPD\GPDVM\Windows XP Professional x64 Edition-Snapshot3.vmsn".
VT,即Virtualization Technology,虚拟化技术,
启动时进入bios设置一下即可,我的是F2键进入bios,configration里面设置inter Virtualization Technology为enable。
第二个问题,CPU Speed 及 时间同步问题:
VMware Server has measured your CPU speed to be 2660 MHz, but Windows reports that it is 2667 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. For a workaround, please refer to the VMware knowledge base article at: http://vmware.com/info?id=97
 楼主| 知行 发表于 2012-3-29 22:29 | 显示全部楼层
网上关于第二个问题的解决方案:
今天没什么事鼓捣了下Vmare,装了个XP和2003,安装时一切正常,在重启后,Vmare提示我无法同步计算机主频。
这个问题很棘手,发生以后会对guestOS上的操作和计算控制产生极大的影响,试想你的键盘重复时间缩短一半甚至跟多会怎样?
小弟认为这个问题 是由于虚拟的硬件问题所造成的。当初网上找了很多资料,什么安装VMware tools什么修改grub,不过都无济于事,为什么呢?因为这是VMware虚拟的硬件出了问题。所以无论怎样修改guestOS上的参数都没有用。我 估计这个问题多会发生在双核cpu的电脑上。由于节能程序对CPU主频控制产生的。


VMware Workstation has measured your CPU speed to be 1032 MHz, but Windows reports that it is 1994 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.

上网找了找解决方法,如下:

由于有些电脑可能会使用省电模式或者超频模式,似的处理器在Vmware下的速度显示出来不同的数据,其解决办法是:
1,先找到你真正的处理器速度,这个大家都会了吧,右键点击“我的电脑”,属性,然后记下这个速度
2,在以下文件位置中,找到config.ini这个文件:
# C:\Documents and Settings\All Users\Application Data\VMware\VMware Workstation\config.ini
# C:\Documents and Settings\All Users\Application Data\VMware\VMware GSX Server\config.ini
# C:\Documents and Settings\All Users\Application Data\VMware\VMware Server\config.ini
# C:\ProgramData\VMware\VMware Workstation or C:\Program Files\VMware\VMware Workstation
(on a Windows Vista host running Workstation 6.0)

注意:如果文件不存在,那么你要建立一个新同名文件,编辑一下

3,编辑config.ini
假设你的电脑处理速度是1700MHZ,那么按照以下方式编辑这个文件:
如:
host.cpukHz = "1700000"
host.noTSC = "TRUE"
ptsc.noTSC = "TRUE"

注意:第一行是最重要的,所以不要编辑错了,第二行的作用是让机器自动纠正时间的,如果虚拟机的时钟因为处理器速度的差异而有所减慢或者变快的话。

4,最后一步,在Vmware的工具属性中,选中让虚拟机与主电脑时间同步的选项。
我按照上述办法在C:\Documents and Settings\All Users\Application Data\VMware\VMware Workstation\下创建config.ini文件,并添加
host.cpukHz = "2000000"
host.noTSC = "TRUE"
ptsc.noTSC = "TRUE"


--------------------------------------------------------------------------------
dell vostro笔记本问题
Workstation 6.0
双核CPU用单核

在*.vmx 文件增加如下两行:
processor0.use = "TRUE"
processor1.use = "FALSE"


--------------------------------------------------------------------------------
虚拟机与主机时间同步方法:
# vmware-toolbox
弹出窗口,Options-> Time synchronization between the virtual machine and the host operating system.

 楼主| 知行 发表于 2012-3-29 23:06 | 显示全部楼层
VMware Tools是VMware虚拟机中自带的一种增强工具,相当于VirtualBox中的增强功能(Sun VirtualBox Guest Additions),是VMware提供的增强虚拟显卡和硬盘性能、以及同步虚拟机与主机时钟的驱动程序。
 楼主| 知行 发表于 2012-3-29 23:06 | 显示全部楼层
解决vmware guest OS 时间过慢的方法:

step1: 安装 vmware tools
step2: 配置guest OS,打开 time synchronization
step3: 如果虚拟的是单cpu guest OS, 把nosmp noapic nolapic 这三个参数加到grub的kernel参数最后, 例子如下
_________________________
title Red Hat Linux (2.4.20-28.9)
root (hd0,0)
kernel /vmlinuz-2.4.20-28.9 ro root=/dev/hda2 clock=pit nosmp noapic nolapic

本帖参考了 VMWare 的VMTN 文档库Doc ID:1420 "Clock in a Linux Guest Runs More Slowly or Quickly Than Real Time"
如果要看详细的问题解释或原版,请访问 http://kb.vmware.com/vmtnkb/sear ... ;sliceId=SAL_Public

另外如果是企业环境,或者你的guest OS可以直接访问internet,除了安装vmware tools并打开time synchronization之外,可以在guest OS 里面启动ntp client服务,和外部internet上的time server 同步,这样guest OS的时间就非常精确了.
 楼主| 知行 发表于 2012-3-30 20:39 | 显示全部楼层
不折腾了,换用Vmware Workstation 8了,没有那么多问题,已经安装了个Ubuntu 11.10,1G内存20G硬盘,安装之后感觉宿主机反应有点慢了,物理内存使用率升高了30%左右

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-4-26 06:25 , Processed in 0.040732 second(s), 7 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表