为什么我的vmware shared folders不能用?

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
ltt110
帖子: 6
注册时间: 2007-12-01 22:12

为什么我的vmware shared folders不能用?

#1

帖子 ltt110 » 2007-12-02 17:06

我在winxp下装了vmware+ubuntu,
在ubuntu下装了vmw tools,存在/mnt/hgfs目录。


然后我在vmw的setting下设置shared folders,
但设置后 在ubuntu的/mnt/hgfs找不到任何文件
为什么?

想来几天也没想明白
头像
laxdf
帖子: 40
注册时间: 2007-12-02 12:42

#2

帖子 laxdf » 2007-12-02 17:57

我的也不行啊

Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config0/vmhgfs-only/vmhgfs.mod.o
LD [M] /tmp/vmware-config0/vmhgfs-only/vmhgfs.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
cp -f vmhgfs.ko ./../vmhgfs.o
make: Leaving directory `/tmp/vmware-config0/vmhgfs-only'
Unable to make a vmhgfs module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config0/vmhgfs.o': -1 File exists
There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel. You may want to
rebuild a kernel based on that directory, or specify another directory.

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.
scorpio038
帖子: 6
注册时间: 2007-12-01 15:48

#3

帖子 scorpio038 » 2007-12-03 11:22

论坛上有这个问题的补丁,但是打了之后共享能用,但是上不了网~~
ltt110
帖子: 6
注册时间: 2007-12-01 22:12

#4

帖子 ltt110 » 2007-12-04 11:20

解决了
viewtopic.php?t=70418

安装这个就行了。

谢谢scorpio038
scorpio038
帖子: 6
注册时间: 2007-12-01 15:48

#5

帖子 scorpio038 » 2007-12-04 16:26

上网问题能解决吗?
waasinn
帖子: 2
注册时间: 2008-01-02 15:40

#6

帖子 waasinn » 2008-01-02 16:31

to ltt110
你发的那个链接是解决鼠标滚动的问题吧
vmhgfs模块安装还是不没安上,shared folder功能还是不能用啊

to scorpio038
你是不是有什么别的方法,请发给我一下
http://communities.vmware.com/thread/107691
这边是有人通过修改头文件内容 解决shared folder问题
但可能是我的vmware版本跟他的不一样,没法解决。
waasinn
帖子: 2
注册时间: 2008-01-02 15:40

#7

帖子 waasinn » 2008-01-08 9:36

关于vmware shared folders feather的问题,参考下面链接
http://communities.vmware.com/thread/107691
http://communities.vmware.com/message/7 ... 1C93D0AD78

Workstation 6.0.1 build 55017 + ubuntu 7.10 RC1 也碰到这样的问题
不过可以通过更改vmware源码,来使配置过程中的编译通过.
1) Navigated to the extracted archive vmware-tools-distrib/lib/modules/source/vmhgfs.tar, extracted the file vmhgfs-only/compat_slab.h out of the tar, deleted the file from the tar, edited the extracted file and put it back to the tar.
The VMWare tools vmhgfs-only/compat_slab.h has a bug that prevents the hgfs kernel module from compiling:
/*
* Destructor is gone since 2.6.23-pre1.
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)

Should be:
/*
* Destructor is gone since 2.6.23-pre1.
*/
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)
This prevents the driver from finishing compiling and then installing under ubuntu 7.10

原来vmware6.0.0的版本提供的vmware tools跟vmware6.0.1的不一样.
使用vmware 6.01之后 ,按上面说明补一个 = 号, 这样就可以顺利通过编译, /mnt/hgfs 下面就可以看到你共享的文件夹了
回复