Linux VMware安装失败的处理


你们知道什么是Linux VMware个非常高深的运用技术将由我来非常讲解,Linux VMwareNB在哪呢,下面我来进入Linux VMware的无限领域。
1.启动Rad Hat (图形界面方式登陆),并且以管理员的身份登陆。
2.在Linux VMware虚拟机的菜单中点击:虚拟机->安装Linux VMware 工具->install。
3.Red Hat自动挂载Linux VMware Tools的虚拟光驱,并显示在桌面。
4.进去Linux VMware Tools的虚拟光驱里,把Linux VMwareTools-5.5.1-19175.tar.gz复制到/tmp目录。
5.进去/tmp目录,把Linux VMwareTools-5.5.1-19175.tar.gz解压到当前目录下的一个文件夹中Linux VMwareTools-5文件夹)。
6.同时按住Ctrl+Alt+F1三个键,进入字符界面,并以root身份登陆。
7.输入以下命令:cd /tmp/Linux VMwareTools-5/Linux VMware-tools-distrib进入Linux VMware-tools-distrib目录)。
8.输入:./Linux VMware-install.pl执行Linux VMware-install.pl文件)。
9.然后一路“回车”,就OK。
10. 输入reboot命令(重新启动)。

附:安装失败的处理

1、打开菜单“VM -> Install Linux VMware Tools”,然后有光盘自动弹出,把里面的源代码拷贝出来.我的文件是Linux VMwareTools-6.0.4-93057.tar.gz,我把它拷贝到/opt里.

2 、安装 Linux VMware TOOLScd /opt tar -zxvf Linux VMwareTools-6.0.3-80004.tar.gz cd Linux VMware-tools-distrib/ ./Linux VMware-install.pl再一路安回车,然后在What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]会怎么也找不到C Header

3、下载相应的kernel-devel.rpm包进行安装首先查看内核版本:uname -r一下,我的是2.6.25-14.fc9.i686,所以下载kernel-devel-2.6.25-14.fc9.i686.rpm,然后运行rpm -ivh  kernel-devel-2.6.25-14.fc9.i686.rpm 进行安装. 内核安装完毕后,需要用这个命令确定内核 C header 的安装目录:ls -d /usr/src/kernels/$(uname -r)*/include

安装内核具体步骤如下:

  1. [root@localhost ~]# uname -r  
  2. 2.6.25-14.fc9.i686  
  3. [root@localhost ~]# rpm -q kernel-devel  
  4. package kernel-devel is not installed  
  5. [root@localhost ~]# cd /home  
  6. [root@localhost home]# wget http://www.cnblogs.com/mywebname/admin/ftp:  
  7. //rpmfind.net/linux/fedora/releases/9/Everything/i386/os/Packages/kernel-devel-2.6.25-14.fc9.i686.rpm  
  8. [root@localhost home]# rpm -i kernel-devel-2.6.25-14.fc9.i686.rpm  
  9. [root@localhost home]# rpm -q kernel-devel  
  10. kernel-devel-2.6.25-14.fc9.i686 

注:安装Linux VMware tools 的时候,如果提示没有权限,那么需要用chmod 777 文件名 来添加权限,比如提示Linux VMware-install.pl没有权限,那么用下面的命令:chmod 777 Linux VMware-install.pl

另:内核头文件C header files下载地址:http://rpmfind.net/linux/rpm2html/search.php?query=kernel-devel

4、再重新运行  ./Linux VMware-install.pl ,一路回车下来,会出现In file included from include/linux/string.h:11,   from /tmp/Linux VMware-config3/vmhgfs-only/cpName.h:18, from /tmp/Linux VMware-config3/vmhgfs-only/cpName.c:18:include/linux/types.h:40: 错误:与‘uintptr_t’类型冲突/tmp/Linux VMware-config3/vmhgfs-only/vm_basic_types.h:170: 错误:‘uintptr_t’的上一个声明在此make[2]: *** [/tmp/Linux VMware-config3/vmhgfs-only/cpName.o] 错误 1make[1]: *** [_module_/tmp/Linux VMware-config3/vmhgfs-only] 错误 2make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.i686'make: *** [vmhgfs.ko] 错误 2make: Leaving directory `/tmp/Linux VMware-config3/vmhgfs-only'Unable to build the vmhgfs module.

5、解决的方法是:(有时不需要,看不清就复制到记事本里看)

下载最新的open-vm-tools,现在可以下载到最新版本是open-vm-tools-2008.06.03- 96374.tar.gz (很难找到,给个链接,用迅雷可以下载:http://jaist.dl.sourceforge.net/sourceforge/open-vm-tools/open-vm-tools-2008.06.03-96374.tar.gz).tar xzvf open-vm-tools-2008.06.03-96374.tar.gzcd open-vm-tools-2008.06.03-96374/./configure && make

  1. cd modules/linux/  
  2. for i in *; do mv ${i} ${i}-only; tar -cf ${i}.tar ${i}-only; done  
  3. cd http://www.cnblogs.com/..  
  4. mv -f open-vm-tools-2008.06.03-96374/modules/linux/*.tar Linux VMware-tools-distrib/lib/modules/source/  
  5. cd Linux VMware-tools-distrib/  
  6. sudo ./Linux VMware-install.pl 

一路回车,直到出现屏幕分辨率的选项,选你喜欢的分辨率.搞定。

6、装好后还有一个问题,当你向共享文件夹写文件时总提示没有权限,root用户都提示没有权限.看了一下日志,是selinux在做怪,配置SElinux太麻烦了,不如关了它.vi /etc/sysconfig/selinux找到SElinux=enforcing这一行把它改为SElinux=disabled.重启后一切就ok了.

  1. Linux vmware安装完成最终安装失败,在编译
  2. 轻松掌握Linux VMware上网设置
  3. Linux Samba客户端和服务器端检查是否安装
  4. Linux Hadoop运行应用程序开源实现
  5. Linux Mono项目的Beta3版已经发布学习到更多的RPM在here

相关内容