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

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,估计,我没有Test过)
# cd /tmp/vmware-tools-distrib/lib/bin32
# ./vmware-toolbox
选择 第一页的
Time synchrononiztion between the virtual machine and the host operating system.
前面的按钮按下去.
10、Test一下:
# date 09010000
一会,你发现系统时间自动被改回来,就安装成功了.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22253646/viewspace-666975/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22253646/viewspace-666975/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值