RedHat Enterprise Linux Server 5.2安装VMware Server 1.0.7

来源:互联网 发布:win8.1的优化 编辑:程序博客网 时间:2024/05/17 01:47

在RedHat Enterprise Linux Server 5.2上安装VMware Server 1.0.7

 

1、安装前的检查工作

  A.全部GCC包都要安装

  B.libXtst-devel和libXrender-devel,这2个包要安装

  C.xinetd这个包要安装(并且这个服务要设为开机自动运行)

  注:执行yum install 相关rpm包名即可,如果yum无法安装,请参考本博的另一篇yum配置的文章。

2、下载安装包并安装

  下载后执行:rpm -ivh VMware-server-1.0.3-44356.i386.rpm,开始安装

3、配置(仅对重要参数进行说明)

  执行vmware-config.pl开始进行配置,基本上是一路回车,个别重要选项需要注意一下,以下为配置过程中的全部输出,加红色需要重点关注:

Output (make sure you setup
VMWARE as per your requirments, following is just a sample output):

 

Output (make sure you setup VMWARE as per your requirments, following is just a
sample output):

Making sure services for VMware Server are stopped.Stopping VMware services:   Virtual machine monitor                                 [  OK  ]You must read and accept the End User License Agreement to continue.Press enter to display it.............will provide you with a copy of ourdistribution agreement for your signature.   Do you accept? (yes/no)    yes --接受许可的,必须选yesThank you.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] Trying to find a suitable vmmon module for your running kernel.None of the pre-built vmmon modules for VMware Server is suitable for yourrunning kernel.  Do you want this program to try to build the vmmon module foryour 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 runningkernel? [/lib/modules/2.6.18-8.1.6.el5/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.18-8.1.6.el5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modulesmake[1]: Entering directory `/usr/src/kernels/2.6.18-8.1.6.el5-x86_64′  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  CC [M]  /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o  LD [M]  /tmp/vmware-config0/vmmon-only/vmmon.o  Building modules, stage 2.  MODPOST  CC      /tmp/vmware-config0/vmmon-only/vmmon.mod.o  LD [M]  /tmp/vmware-config0/vmmon-only/vmmon.komake[1]: Leaving directory `/usr/src/kernels/2.6.18-8.1.6.el5-x86_64′cp -f vmmon.ko ./../vmmon.omake: 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] --为虚拟机提供网络服务,必选yesConfiguring a bridged network for vmnet0.Your computer has multiple ethernet network interfaces available: eth0, eth1.Which one do you want to bridge to vmnet0? [eth0] eth1 --根据你自身的网络状况选择相应的网卡,我是桥接到公网的网卡上了The following bridged networks have been defined:. vmnet0 is bridged to eth1Do you wish to configure another bridged network? (yes/no) [no] Do you want to be able to use NAT networking in your virtual machines? (yes/no)[yes] yes --我的虚拟机需要使用NAT,所以我选择了yes,你可以根据自身情况决定Do you want to be able to use host-only networking in your virtual machines?[yes]  --我的虚拟机需要使用HOST,所以我选择了yes,你可以根据自身情况决定 Extracting the sources of the vmnet module.Building the vmnet module.Using 2.6.x kernel build system.make: Entering directory `/tmp/vmware-config0/vmnet-only’make -C /lib/modules/2.6.18-8.1.6.el5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modulesmake[1]: Entering directory `/usr/src/kernels/2.6.18-8.1.6.el5-x86_64′  CC [M]  /tmp/vmware-config0/vmnet-only/driver.o  CC [M]  /tmp/vmware-config0/vmnet-only/hub.o  CC [M]  /tmp/vmware-config0/vmnet-only/userif.o  CC [M]  /tmp/vmware-config0/vmnet-only/netif.o  CC [M]  /tmp/vmware-config0/vmnet-only/bridge.o  CC [M]  /tmp/vmware-config0/vmnet-only/procfs.o  CC [M]  /tmp/vmware-config0/vmnet-only/smac_compat.o  SHIPPED /tmp/vmware-config0/vmnet-only/smac_linux.x86_64.o  LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.o  Building modules, stage 2.  MODPOSTWARNING: could not find /tmp/vmware-config0/vmnet-only/.smac_linux.x86_64.o.cmd for /tmp/vmware-config0/vmnet-only/smac_linux.x86_64.o  CC      /tmp/vmware-config0/vmnet-only/vmnet.mod.o  LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.komake[1]: Leaving directory `/usr/src/kernels/2.6.18-8.1.6.el5-x86_64′cp -f vmnet.ko ./../vmnet.omake: Leaving directory `/tmp/vmware-config0/vmnet-only’The module loads perfectly in the running kernel.The default port : 902 is not free. We have selected a suitable alternativeport for VMware Server use. You may override this value now.Remember to use this port when connecting to this server.Please specify a port for remote console connections to use [904]  --注意此处端口,如果不是默认的902,将来在VMware Console中要指定此端口才能访问,形式为IP:此端口WARNING: VMware Server has been configured to run on a port different from thedefault port. Remember to use this port when connecting to this server.Stopping xinetd:                                           [  OK  ]Starting xinetd:                                           [  OK  ]Configuring the VMware VmPerl Scripting API.Building the VMware VmPerl Scripting API.Using compiler “/usr/bin/gcc”. Use environment variable CC to override.Installing the VMware VmPerl Scripting API.The installation of the VMware VmPerl Scripting API succeeded.Generating SSL Server CertificateIn which directory do you want to keep your virtual machine files?[/var/lib/vmware/Virtual Machines] The path “/var/lib/vmware/Virtual Machines” does not exist currently. Thisprogram is going to create it, including needed parent directories. Is thiswhat you want? [yes] Please enter your 20-character serial number.Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel:  98JWN-YKZ6E-29057-4R2VJ --此序列号是1.0.7版本的Starting VMware services:   Virtual machine monitor                                 [  OK  ]   Virtual ethernet                                        [  OK  ]   Bridged networking on /dev/vmnet0                       [  OK  ]The configuration of VMware Server 1.0.3 build-44356 for Linux for this runningkernel completed successfully.
至此,VM SERVER 1.0.7已经安装完毕,可以通过console进行虚拟机的安装
重启vmware服务的命令是:
/etc/init.d/vmware restart