免费注册 查看新帖 |

Chinaunix

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

在ubuntu7.10下安装vmware [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-21 22:50 |只看该作者 |倒序浏览

结论,建议在vmware网站上下载最新版本,或者说不是太旧的版本来安装。
我就是因为给ubuntu划分的空间比较小,最先下载了5.0.0版本(六十几M),安装时出现许多问题,解决这些问题心力交瘁,并且最后没能完全解决。
尔后下载了5.5.9(100M),安装出现一些问题,但相对较少。最终安装成功。
但是仍需要找到一个vmnet.tar包替换安装程序中对应版本。

       
        文件:vmnet.tar
        大小:510KB
        下载:
下载
       
其它的版本6以上没有下载,大小在300M左右。
---安装记录----------------------------------
vmware-5.5.0(VMware-workstation-5.0.0-13124.tar.gz) 68M on ubuntu 7.10
None of the pre-built vmmon modules for VMware Workstation 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] yes
----------------
The path "/usr/src/linux" is an existing directory, but it does not contain at least one of these directories "linux", "asm", "net" as expected.
A:There are two methods - slow but simpler:
cd /usr/src/linux  //install linux-source package
make cloneconfig //oldconfig
make modules_prepare //make
vmware-config.pl
And faster, but more complicated:
open /usr/bin/vmware-config-tools.pl in text editor, and remove code which tests for existence of asm/page.h and these 3 subdirectories, as described in marcinz's posts in URL above. Then run vmware-config-tools.pl. It should then offer /lib/modules/2.6.11-4-20a/build/include as default, and it should nicely work.
----------------
What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]
The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
your running kernel (version 2.6.22-14-generic).  Even if the module were to
compile successfully, it would not load into the running kernel.
A: modify the version.h file in include/linux/ directory:
add this line
#define UTS_RELEASE "2.6.18"
#define UTS_RELEASE "2.6.22-14-generic" //exact version
---------------
  WARNING: Symbol version dump /usr/src/linux-source-2.6.22/Module.symvers
           is missing; modules will have no dependencies and modversions.
A: For what its worth, Module.symvers is created for you when you compile wlan_ng. You just need to copy it to(from?) /lib/modules/xxxxx/build.
------------
CC [M]  /tmp/vmware-config1/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config1/vmmon-only/linux/driver.c:85:
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’
make[2]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2
A:# change dir to the installer directory, and enter /lib/modules/source
tar xvf vmmon.tar
# edit the file vmmon-only/include/compat_kernel.h, add the following preprocessor statements
/*
* compat_exit() provides an access to the exit() function. It must
* be named compat_exit(), as exit() (with different signature) is
* provided by x86-64, arm and other (but not by i386).
*/
#define __NR_compat_exit __NR_exit
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
static inline _syscall1(int, compat_exit, int, exit_code);
#endif
# tar back the file
mv vmmon.tar vmmon.orig.tar
tar cvf vmmon.tar vmmon-only
----------------------
/tmp/vmware-config3/vmnet-only/driver.c: 在函数 ‘VNetProcessOwnsPort’ 中:
/tmp/vmware-config3/vmnet-only/driver.c:1698: 错误: ‘struct files_struct’ 没有名为 ‘max_fds’ 的成员
A:if this is correct rebuilding a kernel for i486 should do the trick.
---------------
make: Leaving directory `/tmp/vmware-config6/vmmon-only'
Unable to make a vmmon module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config6/vmmon.o': -1 Invalid module format
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.
A:???
so run vmware-uninstall.pl  && download 5.5.9 version
==============以下为VM 5.5.9
What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.22-14-generic/build/include]
In file included from /tmp/vmware-config8/vmmon-only/linux/driver.c:80:
/tmp/vmware-config8/vmmon-only/./include/compat_kernel.h:21: 错误: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config8/vmmon-only/./include/compat_kernel.h:21: 错误: expected declaration specifiers or ‘...’ before ‘exit_code’
A.same.
but 如果你不是从头从头运行 vmware-install.pl 而是运行 vmware-config.pl
需要修改的文件在:/usr/lib/vmware/modules/source/vmmon.tar。
=============
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-14-generic'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config12/vmmon-only'
The module loads perfectly in the running kernel.
The following bridged networks have been defined:
. vmnet0 is bridged to eth0
Do you wish to configure another bridged network? (yes/no) [no]
Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes]
Configuring a NAT network for vmnet8.
Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes]
Probing for an unused private subnet (this can take some time)...
The subnet 192.168.56.0/255.255.255.0 appears to be unused.
The following host-only networks have been defined:
. vmnet1 is a host-only network on private subnet 172.16.202.0.
untar the "/usr/lib/vmware/modules/source/vmnet.tar" file in the
"/tmp/vmware-config12" directory.
/tmp/vmware-config12/vmnet-only/userif.c: 在函数 ‘VNetCopyDatagramToUser’ 中:
/tmp/vmware-config12/vmnet-only/userif.c:630: 错误: ‘const struct sk_buff’ 没有名为 ‘h’ 的成员
/tmp/vmware-config12/vmnet-only/userif.c:630: 错误: ‘const struct sk_buff’ 没有名为 ‘nh’ 的成员
/tmp/vmware-config12/vmnet-only/userif.c:636: 错误: ‘const struct sk_buff’ 没有名为 ‘h’ 的成员
A: http://www.hauke-m.de/fileadmin/vmware/vmnet.tar下载到(这个下载地址很难找,很多已失效)
/usr/lib/vmware/modules/source/vmnet.tar。再运行vmware-config.pl
===================
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-config13/vmnet-only'
The module loads perfectly in the running kernel.
Starting VMware services:
   Virtual machine monitor                                             done
   Virtual ethernet                                                    done
   Bridged networking on /dev/vmnet0                                   done
   Host-only networking on /dev/vmnet1 (background)                    done
   Host-only networking on /dev/vmnet8 (background)                    done
   NAT service on /dev/vmnet8                                          done
The configuration of VMware Workstation 5.5.9 build-126128 for Linux for this
running kernel completed successfully.
You can now run VMware Workstation by invoking the following command:
"/usr/bin/vmware".
=====VMware Workstation 5 for Linux serial number=====
DA925-HP80U-Z8HDC-4WXXP
3KW2W-AYR2C-88M6F-4MDQ2
               
               
               

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP