织梦CMS - 轻松建站从此开始!

罗索

当前位置: 主页>杂项技术>PC常识>

VMware下Ubuntu不能和Windows共享文件夹

jackyhwei 发布于 2010-05-19 12:24 点击:次 
今天遇到个很搞笑的事情。 以前就折腾过Vmware下Ubuntu和Windows的share folder问题,遇到过很多问题,后来也多数解决或规避了。
TAG:

VMware下Ubuntu不能和Windows共享文件夹

今天遇到个很搞笑的事情。
以前就折腾过Vmware下Ubuntu和Windows的share folder问题,遇到过很多问题,后来也多数解决或规避了。
但是现在发生个好笑的事情,我昨天安装vmware tools的时候,没有太认真看记录,以为所有模块都顺利安装通过了呢。
结果是回来查看log,发现如下内容:
----------------------------------------

Trying to find a suitable vmhgfs module for your running kernel.

None of the pre-built vmhgfs modules for VMware Tools is suitable for your
running kernel. Do you want this program to try to build the vmhgfs module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmhgfs module.

Building the vmhgfs module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmhgfs-only'
make -C /lib/modules/2.6.27-7-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-7-generic'
CC [M] /tmp/vmware-config1/vmhgfs-only/backdoor.o
CC [M] /tmp/vmware-config1/vmhgfs-only/backdoorGcc32.o
CC [M] /tmp/vmware-config1/vmhgfs-only/bdhandler.o
/tmp/vmware-config1/vmhgfs-only/bdhandler.c:15:27: error: asm/semaphore.h: No such file or directory
make[2]: *** [/tmp/vmware-config1/vmhgfs-only/bdhandler.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmhgfs-only'
Unable to build the vmhgfs module.

The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, 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.
[ Press Enter key to continue ]
----------------------------------------

就是说,用于文件共享的hgfs模块根本就没安装成功,搞得我折腾了一段时间,始终没搞懂,为何还不能共享文件。
汗啊。。。

好了,知道原因,就可以慢慢去解决了。

最后弄了半天,发现其他很多模块,除了vmxnet模块之外,都是失败了,
而且还提示,如果想要使用vmxnet,需要重启系统后,输入对应的一些命令,好像就是删除原先的模块,载入新的模块的。
所以,导致了我目前的Ubuntu又不能上网了。
现在索性用VMware的快照,恢复到开始正常的状态,至少能上网,
然后去apt-get,安装足够多的,需要的资源,包括 kernel的src,因此刚才发现Ubuntu里面的src只有common部分,
而其他一些linux本身自带的一些类似于semaphore.h之类头文件,都没有,所以,还是先保证网络能用,下载必要的软件和源码后,
再去折腾vmware tools吧。

之后,如果编译过程中再出现问题,那么再具体解决,应该就没啥问题了。

(serial_story)
本站文章除注明转载外,均为本站原创或编译欢迎任何形式的转载,但请务必注明出处,尊重他人劳动,同学习共成长。转载请注明:文章转载自:罗索实验室 [http://www.rosoo.net/a/201005/9439.html]
本文出处:百度博客 作者:serial_story
顶一下
(2)
40%
踩一下
(3)
60%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片
栏目列表
将本文分享到微信
织梦二维码生成器
推荐内容