Linuxsky
中国青基会
您当前的所在的位置是:主页>自由文档>系统管理> 文章页面

Install VMware-server on openSUSE11.0

去论坛讨论 来源: 作者: 发布时间:2008-11-22
1.Download VMware-server-1.0.6-91891.i386.rpm
2.sudo rpm -ivh VMware-server-1.0.6-91891.i386.rpm
3.sudo /usr/bin/vmware-config.pl
Here 2 problems happen:
***
Your kernel was built with "gcc" version "4.3.1", while you are trying to use
"/usr/bin/gcc" version "4.3". This configuration is not recommended and VMware
Tools may crash if you'll continue. Please try to use exactly same compiler as
one used for building your kernel. Do you want to go with compiler
"/usr/bin/gcc" version "4.3" anyway? [no] yes

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

The directory of kernel headers (version 2.6.25.11-0.1-default) does not match
your running kernel (version 2.6.25.5-1.1-pae). Even if the module were to
compile successfully, it would not load into the running kernel.

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

The solution is to download gcc-4.3.1.tar.gz and install it:
---
gcc-4.3.1...
---
mount the iso for rpm installation.
# sudo mount -o loop /home/qguan/openSUSE-11.0-DVD-i386.iso /mnt/iso/
download gcc-4.3.1.
# tar zxvf gcc-4.3.1.tar.gz
# cd gcc-4.3.1/
# vi README
following the INSTALL...
# cd INSTALL/
# mkdir gccobj
# cd gccobj/
# ../configure
# make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap
# export TCL_LIBRARY=/usr/share/tcl/
# export DEJAGNULIBS=/usr/share/dejagnu/
# make -k check
# make install
----
C header files ...
---
try yum install...
# sudo yum install linux-kernel-headers-`uname -r`
actually, it already in the open suse iso.
# ls /mnt/iso/suse/noarch/|grep linux
# sudo rpm -ivh /mnt/iso/suse/noarch/linux-kernel-headers-2.6.25-8.1.noarch.rpm --force
# find -name "*kernel*"
# rpm -ivh /mnt/iso/suse/i586/kernel-source-2.6.25.5-1.1.i586.rpm
# rpm -ivh /mnt/iso/suse/i586/kernel-default-2.6.25.5-1.1.i586.rpm
------------------

4.after the above steps, do /usr/bin/vmware-config.pl again..
qguan@qguan:~> sudo /usr/bin/vmware-config.pl
root's 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: value "vmware-server.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
/usr/share/applications/vmware-console-uri-handler.desktop: warning: value "vmware-server.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
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/local/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.25.5-1.1-pae/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-config0/vmmon-only'
make -C /lib/modules/2.6.25.5-1.1-pae/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.25.5-1.1-obj/i386/pae'
make -C /usr/src/linux-2.6.25.5-1.1 O=/usr/src/linux-2.6.25.5-1.1-obj/i386/pae/. modules
 CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
 CC [M]  /tmp/vmware-config0/vmmon-only/linux/hostif.o
 CC [M]  /tmp/vmware-config0/vmmon-only/common/cpuid.o
 CC [M]  /tmp/vmware-config0/vmmon-only/common/hash.o
 CC [M]  /tmp/vmware-config0/vmmon-only/common/memtrack.o
 CC [M]  /tmp/vmware-config0/vmmon-only/common/phystrack.o
 CC [M]  /tmp/vmware-config0/vmmon-only/common/task.o
 CC [M]  /tmp/vmware-config0/vmmon-only/common/vmx86.o
/tmp/vmware-config0/vmmon-only/common/vmx86.c: In function ‘Vmx86_GetkHzEstimate’:
/tmp/vmware-config0/vmmon-only/common/vmx86.c:1899: warning: passing argument 4 of ‘Div643264’ from incompatible pointer type
/tmp/vmware-config0/vmmon-only/common/vmx86.c:1908: warning: passing argument 4 of ‘Div643232’ from incompatible pointer type
 CC [M]  /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
 LD [M]  /tmp/vmware-config0/vmmon-only/vmmon.o
 Building modules, stage 2.
 MODPOST 1 modules
WARNING: modpost: module vmmon.ko uses symbol 'init_mm' marked UNUSED
 CC      /tmp/vmware-config0/vmmon-only/vmmon.mod.o
 LD [M]  /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-2.6.25.5-1.1-obj/i386/pae'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config0/vmmon-only'
The module loads perfectly in the running kernel.

Do you want networking for your virtual machines? (yes/no/help) [yes]

Configuring a bridged network for vmnet0.

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

All your ethernet interfaces are already bridged.

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes]
共2页: 上一页 1 [2] 下一页

免费注册 | 网站地图 | RSS订阅 | 友情链接 | 论坛交流 | 用户搏客 | 返回顶端

站内资料部分由本人收集整理,所有文章版权均系原作者和出版者所有,如涉版权问题,恳请来信告知!

本站原创作品除特别声明外皆以创作共用协议发布