在7.04上安装vmware server指南

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
头像
oneleaf
论坛管理员
帖子: 10455
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

在7.04上安装vmware server指南

#1

帖子 oneleaf » 2007-05-26 14:00

来源: http://www.vmware.com/community/message ... eID=589793

Ubuntu provides now also vmware kernel modulus via the apt repository. See the installation procedure below

Originally Posted by marceloshima
VMware Server Howto (Feisty)

If you already have VMware Server installed and want it to use the Feisty modules you can jump to Step 3

Step 1 (Installing the modules from repository)
$ sudo apt-get install vmware-server-kernel-modules

Step 2 (Installing VMware Server)
$ tar -xzf VMware-server-1.0.1-29996.tar.gz
$ cd vmware-server-distrib/
$ ./vmware-install.pl

Step 3 (Make VMware Server Daemon work with Feisty modules)
$ sudo sed -i -e "s/\/sbin\/insmod -s -f \"\/lib\/modules\/\`uname -r\`\/misc\/\$1.o\"/modprobe -s -f \$1/" /etc/init.d/vmware

Step 4 (Make the configure script ignore the configure of a new module)
$ sudo sed -i -e "s/sub configure_module {/sub configure_module {\n return 'yes';/" /usr/bin/vmware-config.pl

Step 5 (Reconfigure)
$ sudo vmware-config.pl

Step 6(Restarting the application)
$ sudo /etc/init.d/vmware restart
头像
oneleaf
论坛管理员
帖子: 10455
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#2

帖子 oneleaf » 2007-05-26 14:02

实际测试 安装 VMware Server 1.0.3 build-44356 在 2.6.20-15-386 上没有问题。
mmsnn
帖子: 22
注册时间: 2007-05-10 12:59

#3

帖子 mmsnn » 2007-05-26 15:07

奇怪了,我按这个步骤去安装也是不行

这是我发的帖,问题是开了 没几秒就被关了
viewtopic.php?p=312201#312201
shell9000
帖子: 118
注册时间: 2007-05-23 20:22

#4

帖子 shell9000 » 2007-05-26 16:02

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.20-15-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.20-15-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PW
D/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
CC [M] /tmp/vmware-config1/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config1/vmmon-only/linux/driver.c:80:
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: error: expected dec laration specifiers or '...' before 'compat_exit'
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: error: expected dec laration specifiers or '...' before 'exit_code'
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: warning: type defau lts 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
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-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.html".

Execution aborted.

root@shell-desktop:/media/sda3/vmware-server-distrib#
shell9000
帖子: 118
注册时间: 2007-05-23 20:22

#5

帖子 shell9000 » 2007-05-27 11:50

我也是 开了 没几秒就被关了
头像
oneleaf
论坛管理员
帖子: 10455
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#6

帖子 oneleaf » 2007-05-27 23:14

安装 vmware-server-kernel-modules 这个以后,就没有提示需要编译内核驱动了。
回复