VMware Server 1.0.6虚拟机Centos OS5.2系统时间同步的解决办法

merryboy 2008-09-14 12:18:51
依据以下步骤来:
1、Install packages to build the kernel modules
# yum install gcc kernel-devel
2、Check the running kernel matches the kernel headers
# uname -r # running kernel
# rpm -q kernel-devel # installed kernel headers
3、If the two versions do not match, run
# yum -y upgrade kernel kernel-devel
# reboot
4、Find out where the kernel headers are (you may need this later)
# ls -d /usr/src/kernels/$(uname -r)*/include

5、From VMware Workstation: go to VM> Install VMware Tools
From the VM: mount the virtual cd drive
# cd /media/VMware Tools
6、Extract VMware Tools to /tmp/
# cp VMwareTools-1.0.6-91891.tar.gz /tmp
# cd /tmp
# tar -zxvf VMwareTools-1.0.6-91891.tar.gz
# cd /tmp/vmware-tools-distrib
# ./vmware-install.pl
7、When asked Do you want to run vmware-config-tools.pl?, answer "Yes".
8、edit /etc/X11/xorg.conf
added:

Section "Monitor"
Identifier "vmware"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "vmmouse"
Option "Protocol" "Auto"
Option "Device" "/dev/input/mouse0"
EndSection

and change the "ServerLayout"
added:
InputDevice "Mouse0" "CorePointer"

9、use vmware toolbox
# cd /tmp/vmware-tools-distrib/lib/bin32
# ./vmware-toolbox
choose
Time synchrononiztion between the virtual machine and the host operating system.

中文翻译:
1、升级并安装gcc和 kernel-devel(要保证操作系统能访问互联网)
# yum install gcc kernel-devel
2、检查内核是否一致,这里肯定不一致
# uname -r
# rpm -q kernel-devel
3、下载新的内核,并安装
# yum -y upgrade kernel kernel-devel
# reboot
4、验证是否安装好了新内核
# ls -d /usr/src/kernels/$(uname -r)*/include
应该出现类似2.6.18-92.1.10.e15内核的信息
5、在CentOS重新启动后,把虚拟机安装虚拟工具进行安装,go to VM> Install VMware Tools
# cd /media/VMware Tools
6、安装虚拟工具
# cp VMwareTools-1.0.6-91891.tar.gz /tmp
# cd /tmp
# tar -zxvf VMwareTools-1.0.6-91891.tar.gz
# cd /tmp/vmware-tools-distrib
# ./vmware-install.pl
7、一切按回车进行安装,选择分辨率时可以是3(推荐),也可以是2
8、修改/etc/X11/xorg.conf文件
# cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak
# gedit /etc/X11/xorg.conf
新添加以下内容:
Section "Monitor"
Identifier "vmware"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "vmmouse"
Option "Protocol" "Auto"
Option "Device" "/dev/input/mouse0"
EndSection

然后找到 含有"ServerLayout" 的section在Section跟EndSection之间加上以下一行:
InputDevice "Mouse0" "CorePointer"
最后重新启动操作系统
9、使用虚拟工具(我的CPU是Intel 32位的P4 2.8GHz的处理器,所以选择bin32,如果你的CPU是AMD 64/Intel 64位的处理器,估计要选择bin64文件夹下的vmware-toolbox,估计,我没有测试过)
# cd /tmp/vmware-tools-distrib/lib/bin32
# ./vmware-toolbox
选择 第一页的
Time synchrononiztion between the virtual machine and the host operating system.
前面的按钮按下去.
10、测试一下:
# date 09010000
一会,你发现系统时间自动被改回来,就安装成功了.

这个文档对于安装CentOS 5.2 + Oracle 10g Rac 有帮助.

来源于网络,回归于网络。
我的邮箱:happy.every.day@126.com QQ:48399956
快乐!
2008年9月13日
...全文
644 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

3,491

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 高级技术相关讨论专区
社区管理员
  • 高级技术社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧