fedora安装VMware全过程

首先是安装必要的软件
[root@netyang ~]# yum -y install gcc gcc-c++ kernel-devel
然后更新kernel
[root@netyang ~]# yum -y update kernel
检查一下
[root@netyang `]# rpm -qa | grep kernel
kernel-2.6.15-1.2054_FC5
kernel-2.6.16-1.2080_FC5
kernel-devel-2.6.16-1.2080_FC5

下载VMware-any-any-update*(99-101)都可以。VMware-workstation-5.5.1-19175.tar.gz
全部放入/tmp中备用
[root@netyang tmp] tar zxvf VMware-workstation-5.5.1-19175.tar.gz
[root@netyang tmp]#cd vmware-distrib
[root@netyang vmware-distrib]# ls
bin doc etc FILES installer lib man vmware-install.pl
[root@netyang vmware-distrib]# ./vmware-install.pl
Creating a new installer database using the tar3 format.

(中间的一段省略.......)

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

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)?

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? [/usr/src/linux/include]

The path "/usr/src/linux/include" is not an existing directory.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

(我想大多数的人都卡在了这一步上来了。哈哈,我也是,被玩了三四天了。其实解决的方法非常简单)

[root@netyang vmware-distrib]#reboot
重启后看启动的选择菜单多出了一项
Fedora Core (2.6.16-1.2080_FC5)
Fedora Core 5 (2.6.15-1.2054_FC5)
选后面是2.6.16j-1.2080_FC5)那一项

[root@netyang ~]#cd /tmp
[root@netyang ~]#tar zxvf vmware-any-any-update101.tar.gz
[root@netyang ~]#cd vmware-any-any-update101

[root@netyang vmware-any-any-update101]# ./runme.pl
Updating /usr/bin/vmware-config.pl ... already patched
Updating /usr/bin/vmware ... No patch needed/available
Updating /usr/bin/vmnet-bridge ... No patch needed/available
Updating /usr/lib/vmware/bin/vmware-vmx ... No patch needed/available
Updating /usr/lib/vmware/bin-debug/vmware-vmx ... No patch needed/available
VMware modules in "/usr/lib/vmware/modules/source" has been updated.

(中间一段省略........)
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)?

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.16-1.2080_FC5/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Building for VMware Workstation 5.5.x.
Using 2.6.x kernel build system.
哈哈,通过完成。其他的都选默认就可以了。

序列号-已验证可用了
DA925-HP80U-Z8HDC-4WXXP
3KW2W-AYR2C-88M6F-4MDQ2

(http://www.fanqiang.com)



1)安装vmware

2)查询内核版本
[root@localhost vmware]# uname -a
2.6.16-1.2111_FC5 i686 i686 i386 GNU/Linux

3)去http://ftp.kddilabs.jp/....pdates/5/i386/ 下载内核开发包 kernel-devel-2.6.16-1.2111_FC5.i686.rpm

4)安装内核开发包
# rpm -ivh kernel-devel-2.6.16-1.2111_FC5.i686.rpm

之后则产生目录 /usr/src/kernels/2.6.16-1.2111_FC5-i686/

5)下载vmware-any-any-update101.tar.gz
解包后运行./runme.pl
(
否则出现下面错误
What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.17-1.2139_FC5-smp-i686/include

The kernel defined by this directory of header files does not have the same address space size as your running kernel
)


然后一路回车或自行配置.......... [OK]


在windows下面安装vmware是个傻瓜动作,但是在linux下安装vmware还是有些小的tricky的。所以才有了这点笔记,免得以后忘了。连装个软件都这么麻烦,可见linux在易用性上的确还有很多路要走。
1、 执行过程中会使用当前内核头文件。而在FC5中默认是没有安装内核文件的。使用uname -r取得内核版本号是2.6.15-1.2054_FC5。然后到网上去下载相应的内核头文件。一般可以到FC5的镜像站点去下载kernel- devel-2.6.15-1.2054_FC5.i686.rpm。
一个比较快的站点是http://mirror.eas.muohio.edu/fedora...os/Fedora/RPMS/
2、解压vmware,进入vmware的源码目录,应该是vmware-distrib。
执行vmware-install.pl。
3、执行过程中遇到需要内核头文件的时候就指定其所在的位置。
4、但是还会遇到地址空间的问题,这是就需要使用补丁了。
下载补丁vmware-any-any-update101,解压进入其目录后,执行runme.pl。
后面应该就可以大功告成了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值