设为首页 收藏本站
查看: 1127|回复: 0

[经验分享] 在XP下为Vmware运行的Ubuntu server10.10安装vmware tools时,遇到的一些问题

[复制链接]

尚未签到

发表于 2016-1-6 12:34:38 | 显示全部楼层 |阅读模式
打开光盘目录,解压tools的压缩包文件
进入目录运行命令
sudo ./vmware-install.pl
一路回车
出现的问题一
The path "/usr/src/linux/include" is not an existing directory.
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

指定到特定的目录
/usr/src/linux-headers-2.6.35-28-generic-pae/include

出现问题二

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.35-28-generic-pae).  Even if the module were
to compile successfully, it would not load into the running kernel.


解决
在目录
/usr/src/linux-headers-2.6.35-28-generic-pae/include/linux
下面有一个version.h 的文件,打开内容是

#define LINUX_VERSION_CODE 132643
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

将下面的文字加到此文件的第一行
#define UTS_RELEASE "2.6.35-28-generic-pae"

其中"2.6.35-28-generic-pae"这个是通过命令 uname -r 查到的
这个文件修改完成之后,出现了新的错误提示
出现问题三
The path "/usr/src/linux-headers-2.6.35-28-generic-pae/include" is a kernel
header file directory, but it does not contain the file "linux/autoconf.h" as
expected.  This can happen if the kernel has never been built, or if you have
invoked the "make mrproper" command in your kernel directory.  In any case, you
may want to rebuild your kernel.

解决:
把文件夹/usr/src/linux-headers-2.6.35-28-generic-pae/include/generated下的autoconf.h
文件复制到/usr/src/linux-headers-2.6.35-28-generic-pae/include/linux这个目录下面

在继续运行出现的新的错误
一路回车,错误循环出现
问题四
If you would like the host to guest drag and drop and file copy/paste features, you can install the driver by running vmware-config-tools.pl again after making sure that gcc, binutils, make and the kernel sources for your running kernel  are installed on your machine. These packages are available on your  distribution's installation CD.


其实当运行到下面的时候选择no就可以顺利通过了

None of the pre-built vmci modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmci module for
your system (you need to have a C compiler installed on your system)? [yes] n
这里选择n就可以了
它跳过了
Detected X.org version 7.8.0.
No drivers for X.org version: 7.8.0.
Skipping X configuration because X drivers are not included.
这个东西的配置,但是其他的都配置好了
终于出现了,拭目以待的这个玩意
The configuration of VMware Tools 7.8.5 build-156735 for Linux for this running
kernel completed successfully.
You must restart your X session before any mouse or graphics changes take
effect.
You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.
To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.
If the virtual printer feature is enabled, you will need to restart the CUPS
service to make use of this feature.
Enjoy,
--the VMware team

虽然还是有一点瑕疵,但是最终还是解决的这个问题
后来听说vMware7 解决了这个问题,不过这个过程也算是增长了不少知识
http://blog.csdn.net/yzhuqing/article/details/5962312
引用

Ubuntu 10.10 在安装的时候目前会碰到几个问题:
Console代码
What is the location of the directory of C header files that match your running  
kernel? [/usr/src/linux/include] <直接按 Enter>  
The path "/usr/src/linux/include"  is not an existing directory.  
由于 Kernel 版本是 APT 抓下來的最新版,所以会需要输入 “/usr/src/linux-headers-2.6.35-22-generic/include “
要注意的是,VMWare Tools 安装时会询问目前系统使用的 Kernel header,所以如果 /usr/src 下有多个 Kernel header 目录,最好先执行 “uname -r“ 指令,确认应该使用那个本版。另外可以不直接使用 “/usr/src/linux-headers-2.6.35-22-generic/include” ,先 “sudo ln -s /usr/src/linux /usr/src/linux-headers-2.6.35-22-generic/include”
Console代码
What is the location of the directory of C header files that match your running  
kernel? [/usr/src/linux/include] /usr/src/linux-headers-2.6 . 35 - 22 -generic/include  
按回车以后,还是报错说,指定的Kernel headers喝当前系统使用的版本不匹配。

Console代码
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match  
your running kernel (version 2.6 . 35 - 22 -generic). Even if the module were to  
compile successfully, it would not load into the running kernel.   
但事实并不是不匹配,而是 Kernel 中有一个变量 UTS_RELEASE 的不存在了。以前这个定义放在 /usr/src/linux-headers-2.6.35-22-generic/include/linux/version.h ,而现在已经移到了/usr/src/linux-headers-2.6.35-22-generic/include/linux /utsrelease.h。所以简单的方法,我们只需要在version.h中添加 #define UTS_RELEASE "2.6.35-22-generic" (具体值使用 “uname -r“ 查看)

接下来继续,又会有新的错误提示!! -_-|| 找不到 autoconf.h 原因是因为 autoconf.h 不再VMware tools 安装程序预设的寻址目录中。

Console代码
The path  "/usr/src/linux-headers-2.6.35-22-generic/include"  is a kernel header  
file directory, but it does not contain the file "linux/autoconf.h"  as  
expected. This can happen if the kernel has never been built, or if you have  
invoked the "make mrproper"  command in your kernel directory. In any case, you  
may want to rebuild your kernel.   
可以简单的把它链接过来:

cd /usr/src/linux-headers-2.6.35-22-generic/include/linux
sudo ln -s ../generated/autoconf.h ./  

然后应该能顺利完成安装了。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-160963-1-1.html 上篇帖子: VMWare下的Ubuntu7.10安装试用手记 下篇帖子: ubuntu 下 使用vmware 虚拟xp 声卡没声音 解决
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

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