+ -
当前位置:首页 → 问答吧 → vmware中ubuntu遇到vmtools安装问题

vmware中ubuntu遇到vmtools安装问题

时间:2009-03-29

来源:互联网

我在vmware中安装了ubuntu,然后在命令行安装vmware-tools。运行vmware-install.pl,一路回车,挺顺利的。
到了vmware-config-tools.pl这一步,卡在指定c header files location这里。

What is the location of the directory of C header files that match your running kernel?
缺省目录给的是[/usr/src/linux/include]

我看了下系统里面/usr/src下面有两个
/linux-2.6.27-7和/linux-2.6.27-7-generic,都指定了试试,结果失败。

在网上查了一圈,回头再安装
sudo apt-get install build-essential
sudo apt-get install linux-headers-2.6.27-7-generic, 这个2.6.27-7-generic是用uname -a 看到的。

继续config,还是卡在那里,把目录指到/usr/src/linux-headers-2.6.27-7-generic/include,提示:

The directory of kernel headers (version @@VMWARE@@ UTS_RElEASE) does not match
your running kernel (version 2.6.27-7-generic). Even if the module were to compie successfully,
it would not load into the running kernel.

指到/usr/src/linux-headers-2.6.27-7/include也不行。
搞不定了,请高手指点一二。

作者: koala0808   发布时间: 2009-03-29

sudo apt-get install build-essential                             这是安装编译环境等
sudo apt-get install linux-headers*******                   这是安装内核头文件,你选的版本不对
最后安装VMtools

作者: 相思爱文   发布时间: 2009-03-31

用不带generic的试试。
我用的不是ubuntu,不十分清楚

作者: 相思爱文   发布时间: 2009-03-31

最近安装ubuntu也遇到同样问题,后来人可以参考参考。可能是虚拟机的版本太低,ubuntu的版本与之不匹配。找一个更高版本的虚拟机linux.iso 将原来的旧版本的linux.iso 覆盖,或者将其指定到虚拟机的CD-ROM中重新加载。之后再按原来步骤逐步安装即可。

作者: youth13   发布时间: 2011-09-06