[问题]Vmware Server安装后无法运行,启动后几秒没了

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
mmsnn
帖子: 22
注册时间: 2007-05-10 12:59

[问题]Vmware Server安装后无法运行,启动后几秒没了

#1

帖子 mmsnn » 2007-05-26 4:59

先是用新立得安装vmware server 1.0.3 ,最后面给我来个什么错误,后来又去下了个tar包,装是装上了,
系统工具也出来了“Vmware Server Console”,但是点击后还没启动就没有了,情况跟下面主题回复中N位朋友的情况一样

viewtopic.php?t=22441&postdays=0&postorder=asc&start=0
yang@:~$ sudo vmware
vmware is installed, but it has not been (correctly) configured
for this system. To (re-)configure it, invoke the following command:
/usr/bin/vmware-config.pl.
请高人指点。
shada
帖子: 397
注册时间: 2006-09-27 11:17
联系:

#2

帖子 shada » 2007-05-26 10:58

命令行已经提示的很清楚了.
你的vmware还没有配置
$/usr/bin/vmware-config.pl
不记得要不要管理员权限了,如果要,前面加su
mmsnn
帖子: 22
注册时间: 2007-05-10 12:59

#3

帖子 mmsnn » 2007-05-26 14:55

shada 写了:命令行已经提示的很清楚了.
你的vmware还没有配置
$/usr/bin/vmware-config.pl
不记得要不要管理员权限了,如果要,前面加su
yang@:~$ sudo /usr/bin/vmware-config.pl
Password:
Making sure services for VMware Server are stopped.

Stopping VMware services:
Virtual machine monitor done

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

/usr/share/applications/vmware-server.desktop: warning: The 'Application' category is not defined by the desktop entry specification. Please use one of "AudioVideo", "Audio", "Video", "Development", "Education", "Game", "Graphics", "Network", "Office", "Settings", "System", "Utility" instead
/usr/share/applications/vmware-console-uri-handler.desktop: warning: The 'Application' category is not defined by the desktop entry specification. Please use one of "AudioVideo", "Audio", "Video", "Development", "Education", "Game", "Graphics", "Network", "Office", "Settings", "System", "Utility" instead
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server 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.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-config3/vmmon-only'
make -C /lib/modules/2.6.20-15-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
CC [M] /tmp/vmware-config3/vmmon-only/linux/driver.o
In file included from /tmp/vmware-config3/vmmon-only/linux/driver.c:80:
/tmp/vmware-config3/vmmon-only/./include/compat_kernel.h:21: 错误: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config3/vmmon-only/./include/compat_kernel.h:21: 错误: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config3/vmmon-only/./include/compat_kernel.h:21: 警告: 在 ‘_syscall1’ 的声明中,类型默认为 ‘int’
make[2]: *** [/tmp/vmware-config3/vmmon-only/linux/driver.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config3/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make: *** [vmmon.ko] 错误 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.html".

Execution aborted.

yang@:~$
情况依旧……
glassprogrammer
帖子: 75
注册时间: 2006-05-13 18:08
联系:

#4

帖子 glassprogrammer » 2007-05-26 21:16

在 vmware-config.sh 时出现错误:
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=$PWD/. 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: 错误: expected declaration specifiers or ‘...’ before ‘compat_exit’
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: 错误: expected declaration specifiers or ‘...’ before ‘exit_code’
/tmp/vmware-config1/vmmon-only/./include/compat_kernel.h:21: 警告: 在 ‘_syscall1’ 的声明中,类型默认为 ‘int’
make[2]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make: *** [vmmon.ko] 错误 2
make: Leaving directory `/tmp/vmware-config1/vmmon-only'
Unable to build the vmmon module.

搜索到 http://blog.csdn.net/xport/archive/2007 ... 73676.aspx

使用上面说的方式, 修改 /usr/lib/vmware/modules/source/vmmon.tar 中 vmmon-only/include/compat_kernel.h 文件, 把
static inline _syscall1(int, compat_exit, int, exit_code);
替换为
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
static inline _syscall1(int, compat_exit, int, exit_code);
#endif
即可, 原因是VMWare与2.6.19之后的内核有不兼容的地方.

另外, 在执行 vmware-config.sh 需要首先安装 xinetd: apt-get install xinetd

vmware 中挂接物理硬盘报告没有足够权限:
编辑 /etc/group 文件, 将其中一行 "disk:x:6:" 改为 "disk:x:6:<当前用户名>"
shell9000
帖子: 118
注册时间: 2007-05-23 20:22

#5

帖子 shell9000 » 2007-05-27 1:31

我已經裝了xinetd, 及用 any-any-upday 安裝好 vmserver ........

也是 不能 powen on , BIOS 也看不到,就自動關了
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#6

帖子 oneleaf » 2007-05-31 13:06

不要编译,直接安装源里面的自带vmware-server的内核模块就好。
回复