因工作关系,好久没有玩过VMware Linux了,今天闲着无聊,又重操作旧业,装了一次系统,没什么多的感受,只是觉得版本更高了,好多新的功能都未曾接触过,看来自己是落后了,博客注册了很久了,也没有发过什么,借此写写自己体会填充一下,呵呵! 确认是在本地登录,用SSH安装过程会提示非本地登录,操作中断.
先进行以下安装,否则安装过程会出错: What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]The directory of kernel headers (version 2.6.18-8.el5xen) does not match.
网上找了许多相关内容,还有人说需要安装的rpm包是kernel-devel,经过测试,安装kernel-devel-2.6.18-8.el5.i686.rpm包后依然无法自动找到the directory of C header files,如果手动改目录为:/usr/src/kernels/2.6.18-8.e15-i686/include,会出现错误: The directory of kernel headers (version 2.6.18-8.el5) does not match your running kernel (version 2.6.18-8.el5xen). Even if the module were tocompile successfully, it would not load into the running kernel.
解决方法: [root@localhost ~]# uname -r // 查看内核版本号 version 2.6.18-8.el5xen //我所装linux 内核版本 我是用CD镜像装的系统,在第一张盘下找到kernel-xen-devel-2.6.18-8.el5.i686.rpm包进行安装 [root@localhost ~]# rpm -ivh kernel-xen-devel-2.6.18-8.el5.i686.rpm
安装Vmwar Tools 选择VM-->install VMware Tools [root@localhost ~]# mkdir /mnt/cdrom [root@localhost ~]#mount /dev/cdrom /mnt/cdrom/ [root@localhost ~]# cd /mnt/cdrom/ [root@localhost cdrom]# ls 后有 VMwareTools-6.5.0-118166.i386.rpm VMwareTools-6.5.0-118166.tar.gz
在这选第二种安装 [root@localhost cdrom]# cp VMwareTools-6.5.0-118166.tar.gz /tmp //拷贝到/tmp下 [root@localhost cdrom]# cd /tmp/ [root@localhost tmp]# tar zxvf VMwareTools-6.5.0-118166.tar.gz //解包文件 [root@localhost tmp]# cd vmware-tools-distrib/ [root@localhost vmware-tools-distrib]# ./vmware-install.pl //安装开始
一路回车,OK! 进入/etc/X11/,查看xorg.conf也自动配置好了. Reboot OK!
拥有帝国一切,皆有可能。欢迎访问phome.net |