LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1147|回复: 5

在2.6.0内核上安装vmware问题解决

[复制链接]
发表于 2004-1-1 15:31:06 | 显示全部楼层 |阅读模式
我使用的是vmwareworkstation最新的测试版6802,我想6030应该也是可以的,有朋友试过请说一下,方法如下:
先安装VMwareWorkstation*.rpm
然后执行:
cd /usr/src/linux-2.6.0
make oldconfig
ln -s asm-i386 include/asm
vi include/asm/module.h
在里面手动加入相应你所使用的CPU类型的#define
比如p4 CPU,加入#define CONFIG_MPENTIUM4
#define CONFIG_M386应该是第台电脑都能用的设置了吧
然后下载一个vmware的补丁vmware-any-any-update46.tar.gz
这个补丁在http://platan.vc.cvut.cz/ftp/pub/vmware/可以下载到,解压后执行./runme.pl来代替vmware-config.pl就行了
 楼主| 发表于 2004-1-3 19:34:21 | 显示全部楼层
看来你们装这个都没遇到问题呀,都没人回贴
我装好以后还有一个问题就是无法关闭vmware service,只能每次复位,估计是rmmod有问题,还好reiserfs比较强健,不怕我复位,我重启前一般先执行三次sync,重启到不动的地方就复位
 楼主| 发表于 2004-1-4 03:51:23 | 显示全部楼层
解决这个问题了,原因是vmware-config.pl的时候设置了文件共享功能,取消了就正常了
另外建议千万不要用这个共享目录功能,不能共享中文目录及文件,还是直接用samba来得好
发表于 2004-1-5 09:36:45 | 显示全部楼层
这是我安装时出现的问题:
[root@localhost linux]# vmware-config.pl
Making sure VMware Workstation's services are stopped.

Stopping VMware services:
   Virtual machine monitor                                                OK

grep: /proc/ksyms: 没有那个文件或目录
grep: /proc/ksyms: 没有那个文件或目录
grep: /proc/ksyms: 没有那个文件或目录
Trying to find a suitable vmmon module for your running kernel.

None of VMware Workstation's pre-built vmmon modules is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]
[root@localhost linux]# vmware-config.pl
Making sure VMware Workstation's services are stopped.

Stopping VMware services:
   Virtual machine monitor                                                OK

grep: /proc/ksyms: 没有那个文件或目录
grep: /proc/ksyms: 没有那个文件或目录
grep: /proc/ksyms: 没有那个文件或目录
Trying to find a suitable vmmon module for your running kernel.

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

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.0-1/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

make: Entering directory `/tmp/vmware-config3/vmmon-only'
make[1]: Entering directory `/tmp/vmware-config3/vmmon-only'
make[2]: Entering directory `/tmp/vmware-config3/vmmon-only/driver-2.6.0-1'
make[2]: Leaving directory `/tmp/vmware-config3/vmmon-only/driver-2.6.0-1'
make[2]: Entering directory `/tmp/vmware-config3/vmmon-only/driver-2.6.0-1'
In file included from /lib/modules/2.6.0-1/build/include/asm/processor.h:20,
                 from /lib/modules/2.6.0-1/build/include/asm/thread_info.h:13,
                 from /lib/modules/2.6.0-1/build/include/linux/thread_info.h:21,
                 from /lib/modules/2.6.0-1/build/include/linux/spinlock.h:12,
                 from /lib/modules/2.6.0-1/build/include/linux/capability.h:45,
                 from /lib/modules/2.6.0-1/build/include/linux/sched.h:7,
                 from /lib/modules/2.6.0-1/build/include/linux/module.h:10,
                 from ../linux/driver.c:16:
/lib/modules/2.6.0-1/build/include/asm/system.h: In function `__set_64bit_var':
/lib/modules/2.6.0-1/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.6.0-1/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
../linux/driver.c:25:27: linux/wrapper.h: 没有那个文件或目录
../linux/driver.c: In function `init_module':
../linux/driver.c:246: error: structure has no member named `prev'
../linux/driver.c:247: error: structure has no member named `next'
../include/vm_asm.h: In function `Div643264':
../include/vm_asm.h:1095: warning: use of memory input without lvalue in asm operand 4 is deprecated
make[2]: *** [driver.o] 错误 1
make[2]: Leaving directory `/tmp/vmware-config3/vmmon-only/driver-2.6.0-1'
make[1]: *** [driver] 错误 2
make[1]: Leaving directory `/tmp/vmware-config3/vmmon-only'
make: *** [auto-build] 错误 2
make: Leaving directory `/tmp/vmware-config3/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.
发表于 2004-1-5 09:47:59 | 显示全部楼层
打了vmware的补丁没有?
最初由 Richard 发表
这是我安装时出现的问题:
[root@localhost linux]# vmware-config.pl
Making sure VMware Workstation's services are stopped.

Stopping VMware services:
   Virtual machine monitor                                                OK

grep: /proc/ksyms: 没有那个文件或目录
grep: /proc/ksyms: 没有那个文件或目录
grep: /proc/ksyms: 没有那个文件或目录
Trying to find a suitable vmmon module for your running kernel.

None of VMware Workstation's pre-built vmmon modules is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]
[root@localhost linux]# vmware-config.pl
Making sure VMware Workstation's services are stopped.

Stopping VMware services:
   Virtual machine monitor                                                OK

grep: /proc/ksyms: 没有那个文件或目录
grep: /proc/ksyms: 没有那个文件或目录
grep: /proc/ksyms: 没有那个文件或目录
Trying to find a suitable vmmon module for your running kernel.

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

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.0-1/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

make: Entering directory `/tmp/vmware-config3/vmmon-only'
make[1]: Entering directory `/tmp/vmware-config3/vmmon-only'
make[2]: Entering directory `/tmp/vmware-config3/vmmon-only/driver-2.6.0-1'
make[2]: Leaving directory `/tmp/vmware-config3/vmmon-only/driver-2.6.0-1'
make[2]: Entering directory `/tmp/vmware-config3/vmmon-only/driver-2.6.0-1'
In file included from /lib/modules/2.6.0-1/build/include/asm/processor.h:20,
                 from /lib/modules/2.6.0-1/build/include/asm/thread_info.h:13,
                 from /lib/modules/2.6.0-1/build/include/linux/thread_info.h:21,
                 from /lib/modules/2.6.0-1/build/include/linux/spinlock.h:12,
                 from /lib/modules/2.6.0-1/build/include/linux/capability.h:45,
                 from /lib/modules/2.6.0-1/build/include/linux/sched.h:7,
                 from /lib/modules/2.6.0-1/build/include/linux/module.h:10,
                 from ../linux/driver.c:16:
/lib/modules/2.6.0-1/build/include/asm/system.h: In function `__set_64bit_var':
/lib/modules/2.6.0-1/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.6.0-1/build/include/asm/system.h:193: warning: dereferencing type-punned pointer will break strict-aliasing rules
../linux/driver.c:25:27: linux/wrapper.h: 没有那个文件或目录
../linux/driver.c: In function `init_module':
../linux/driver.c:246: error: structure has no member named `prev'
../linux/driver.c:247: error: structure has no member named `next'
../include/vm_asm.h: In function `Div643264':
../include/vm_asm.h:1095: warning: use of memory input without lvalue in asm operand 4 is deprecated
make[2]: *** [driver.o] 错误 1
make[2]: Leaving directory `/tmp/vmware-config3/vmmon-only/driver-2.6.0-1'
make[1]: *** [driver] 错误 2
make[1]: Leaving directory `/tmp/vmware-config3/vmmon-only'
make: *** [auto-build] 错误 2
make: Leaving directory `/tmp/vmware-config3/vmmon-only'
Unable to build the vmmon module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.
发表于 2004-1-5 10:08:10 | 显示全部楼层
谢谢,现在已打补丁,问题解决了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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