免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1001 | 回复: 0
打印 上一主题 下一主题

VMware 6.0安装ubuntu8.04 server和VMware Tools [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-12 22:44 |只看该作者 |倒序浏览
   今天在VMware Workstation 6.0中安装Ubuntu 8.04 server,安装过程并不难,按照提示做就行了。基于测试的心态安装了提供的所有服务如LAMP、DNS Server等等。安装后在安装过程中新建的普通用户可以登录,root就不可以了(记得密码没有输错啊,郁闷

)。没办法只好进入单用户模式下重新设置root密码才可以管理ubuntu!

以前好像也遇到过,不知是自己弄错了还是ubuntu故意这样弄的,装其他linux(除debain外)系统没遇到这种情况


   
    生成快照之后开始安装vmware tools,安装过程一点都不顺利。
一、执行vmware-install.pl时出现报无法编译C文件的错误,server版本却没有安装gcc,没办法,只好边参考帮助文档边操作了,使用apt-get install gcc成功安装gcc。之后又出现
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]
The path "/usr/src/linux/include" is not an existing directory
这一步是让你指定c头文件所在的位置,在/usr/src下并没有linux头文件:
1、用apt-get install linux-headers-2.6.24-16-server获取对应版本;
2、在/usr/src目录下新建一个linux的软链接,执行ln -s linux-headers-2.6.24-16-server linux,问题就可以解决了。


二、执行vmware-config.pl无法顺利通过配置,出现了如下的报错:
/tmp/vmware-config18/vmmemctl-only/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config18/vmmemctl-only/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config18/vmmemctl-only/os.c:40:
/tmp/vmware-config18/vmmemctl-only/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here
make[2]: *** [/tmp/vmware-config18/vmmemctl-only/os.o] Error 1
make[1]: *** _module_/tmp/vmware-config18/vmmemctl-only Error 2
make: ***
http://vmmemctl.ko
Error 2
make: Leaving directory `/tmp/vmware-config18/vmmemctl-only'
Unable to build the vmmemctl module.

后面还出现了无法build vmhgfs等情况。

解决方法:
1、下载open-vm-tools:
http://jaist.dl.sourceforge.net/sourceforge/open-vm-tools/open-vm-tools-2008.05.02-90473.tar.gz
 ,这个是已经编译的版本,只有编译过的版本才能用于接下来的操作。
2、解压该文件,进入modules/linux目录,将vmxnet重命名为vmxnet-only,其他也改为如对应的xxx-only。分别执行tar -cf xxx.tar xxx-only;
3、将xxx.tar 都复制到 /usr/lib/vmware-tools/modules/source,替换原来的文件。
4、成功编译通过.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/49862/showart_685829.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP