成功在ubuntu8.04上安装vmplayer2.03(详细步骤)

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
头像
ichaochao
帖子: 260
注册时间: 2008-03-17 21:37
来自: 深圳

成功在ubuntu8.04上安装vmplayer2.03(详细步骤)

#1

帖子 ichaochao » 2008-05-17 1:22

1、到vmware官网下载VMware-player-2.0.3-80004.i386.tar.gz
2、

代码: 全选

1. tar -xzvf VMware-player-2.0.3-80004.i386.tar.gz
2. cd vmware-player-distrib/
3. sudo ./vmware-install.pl
3、一切都按“Enter"键进行默认安装后,如果完全成功那么恭喜你!如果出现类似下面的错误请继续第4步。

代码: 全选

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

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmmon-only'
make -C /lib/modules/2.6.24-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
CC [M] /tmp/vmware-config1/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config1/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config1/vmmon-only/common/comport.o
CC [M] /tmp/vmware-config1/vmmon-only/common/cpuid.o
In file included from include/asm/bitops.h:2,
from /tmp/vmware-config1/vmmon-only/./include/vcpuset.h:74,
from /tmp/vmware-config1/vmmon-only/./include/modulecall.h:23,
from /tmp/vmware-config1/vmmon-only/common/vmx86.h:18,
from /tmp/vmware-config1/vmmon-only/common/hostif.h:18,
from /tmp/vmware-config1/vmmon-only/common/cpuid.c:14:
include/asm/bitops_32.h:9:2: error: #error only can be included directly
make[2]: *** [/tmp/vmware-config1/vmmon-only/common/cpuid.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/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.
4、删掉 /tmp/vmware-config0 如果你安装多次会出现 vmware-config0、vmware-config1、vmware-config2。。。建议全部删掉。
5、

代码: 全选

    *  cd lib/modules/source/
    * tar xvf vmmon.tar
    * sudo gedit ./vmmon-only/include/vcpuset.h
    * 更改第74行 (#include "asm/bitops.h" -> #include "linux/bitops.h")后保存
    * mv vmmon.tar vmmon-BACKUP.tar
    * tar cf vmmon.tar vmmon-only
6、执行2.3重新安装

代码: 全选

sudo ./vmware-install.pl
7、同样按“ENTER“键到出现如下信息

代码: 全选

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

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmmon-only'
make -C /lib/modules/2.6.24-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
时,赶紧按“Ctrl+Z",然后执行

代码: 全选

sudo gedit  /tmp/vmware-config0/vmmon-only/include/vcpuset.h
修改第74行:

代码: 全选

#include "asm/bitops.h" -> #include "linux/bitops.h"
再按

代码: 全选

fg
8、这样也就可以成功安装了,至少我就是在进行如上的操作后成功的!
参考http://czarism.com/easy-peasy-vmwareplayer-vmplayer-ubuntu-hardy-804#comment-6579
爱生活,ichaochao......
回复