安装vmware server的过程十分简单,并提供rpm和tar.gz两种安装包.到VMware官网上下载安装包,注册免费Licensing。虽然VMWareServer 2.x仍提供Free License,但需要序号才能完成安装,在下载页面点选取得License的连结,会寄出一封电子邮件通知,并且在下载页面显示一组Windows版序号及一组Linux版序号。
https://www.vmware.com/
VMware Server 2 forLinux AAM0N-FF00U-U9HC2-42194
VMware Server 2 forWindows A2084-F6J0Y-VAJF0-40NV4
License Information
COMPONENT |
License Keys |
VMware Server for Windows |
A0N6J-FPLDH-VF5G0-42K0H |
VMware Server for Linux |
A2J61-FMLF2-U8H9Q-4AP1J |
安装环境如下:
[root@xml-ora1 ~]# cat /etc/redhat-release
Red Hat Enterprise LinuxServer release 5.5 (Tikanga)
[root@xml-ora1 ~]# uname -a
Linux xml-ora1 2.6.18-194.el5#1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
检查安装包:
[oracle@xml-ora1 software]$ rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' gcc gcc-c++ kernel kernel-develkernel-headers libXtst-devel libXrender-devel xinetd
gcc-4.1.2-48.el5 (x86_64)
gcc-c++-4.1.2-48.el5 (x86_64)
kernel-2.6.18-194.el5 (x86_64)
package kernel-devel is notinstalled
kernel-headers-2.6.18-194.el5 (x86_64)
package libXtst-devel is notinstalled
package libXrender-devel isnot installed
package xinetd is notinstalled
[root@xml-ora1 software]# rpm -ivhkernel-devel-2.6.18-194.el5.x86_64.rpm
warning:kernel-devel-2.6.18-194.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID37017186
Preparing... ########################################### [100%]
1:kernel-devel ########################################### [100%]
[root@xml-ora1 software]# rpm -ivhlibXtst-devel-1.0.1-3.1.*
warning:libXtst-devel-1.0.1-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID37017186
Preparing... ########################################### [100%]
1:libXtst-devel ###########################################[ 50%]
2:libXtst-devel ########################################### [100%]
[root@xml-ora1 software]# rpm -ivhlibXrender-devel-0.9.1-3.1.*
warning:libXrender-devel-0.9.1-3.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID37017186
Preparing... ########################################### [100%]
1:libXrender-devel ########################################### [ 50%]
2:libXrender-devel ########################################### [100%]
[root@xml-ora1 software]# rpm -ivhxinetd-2.3.14-10.el5.x86_64.rpm
warning:xinetd-2.3.14-10.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID37017186
Preparing... ########################################### [100%]
1:xinetd ###########################################[100%]
[root@xml-ora1 software]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' gcc gcc-c++ kernel kernel-develkernel-headers libXtst-devel libXrender-devel xinetd
gcc-4.1.2-48.el5 (x86_64)
gcc-c++-4.1.2-48.el5 (x86_64)
kernel-2.6.18-194.el5 (x86_64)
kernel-devel-2.6.18-194.el5 (x86_64)
kernel-headers-2.6.18-194.el5 (x86_64)
libXtst-devel-1.0.1-3.1 (x86_64)
libXtst-devel-1.0.1-3.1 (i386)
libXrender-devel-0.9.1-3.1 (x86_64)
libXrender-devel-0.9.1-3.1 (i386)
xinetd-2.3.14-10.el5 (x86_64)
拷贝VMware-server-.i386.rpm到主机上,执行rpm安装
[root@xml-ora1 software]# rpm -ivhVMware-server-2.0.2-203138.x86_64.rpm
Preparing... ########################################### [100%]
1:VMware-server ########################################### [100%]
The installation of VMwareServer 2.0.2 for Linux completed successfully.
You can decide to remove thissoftware from your system at any time by
invoking the followingcommand: "rpm -e VMware-server".
Before running VMware Serverfor the first time, you need to
configure it for your runningkernel by invoking the
following command:"/usr/bin/vmware-config.pl".
Enjoy,
--the VMware team
解压缩, 完成后产生vmware-server-distrib文件夹
[root@xml-ora1 software]# tar -zxvf VMware-server-2.0.2-203138.x86_64.tar.gz
进入解压目录,运行vmware-install.pl
[root@xml-ora1software]# cdvmware-server-distrib
[root@xml-ora1software]#./vmware-install.pl
[root@xml-ora1 ~]# /usr/bin/vmware-config.pl
Making sure services forVMware Server are stopped.
Stopping VMware autostartvirtual machines:
Virtual machines[FAILED]
Stopping VMware managementservices:
VMware Virtual Infrastructure Web Access
VMware Server Host Agent[FAILED]
Stopping VMware services:
VMware Authentication Daemon[ OK ]
Virtual machine monitor[ OK ]
阅读许可协议
You must read and accept theEnd User License Agreement to continue.
Press enter to display it.
…….
Do you accept? (yes/no) yes
Thank you.
Thebld-2.6.18-8.el5-x86_64smp-RHEL5 - vmmon module loads perfectly into the
running kernel.
Thebld-2.6.18-8.el5-x86_64smp-RHEL5 - vmci module loads perfectly into the
running kernel.
The bld-2.6.18-8.el5-x86_64smp-RHEL5- vsock module loads perfectly into the
running kernel.
是否需要配置网络,使用缺省值,默认回车即可
Do you want networking for your virtual machines? (yes/no/help)[yes]
配置三种连接的网络连接名称,默认即可
Configuring a bridged networkfor vmnet0.
Please specify a name for thisnetwork. [Bridged]
Your computer has multipleethernet network interfaces available: eth0, eth1, usb0. Which one do you wantto bridge to vmnet0? [eth0]
The following bridged networkshave been defined:
. vmnet0 is bridged to eth0
Do you wish to configure another bridged network? (yes/no) [no]
Do you want to be able to use NAT networking in your virtualmachines? (yes/no)[yes]
Configuring a NAT network forvmnet8.
Please specify a name for this network. [NAT]
Do you want this program to probe for an unused private subnet?(yes/no/help) [yes]
Probing for an unused privatesubnet (this can take some time)...
The subnet 172.16.202.0/255.255.255.0appears to be unused.
The following NAT networkshave been defined:
. vmnet8 is a NAT network onprivate subnet 172.16.202.0.
Do you wish to configure another NAT network? (yes/no) [no]
Do you want to be able to use host-only networking in your virtualmachines? [yes]
Configuring a host-onlynetwork for vmnet1.
Please specify a name for this network. [HostOnly]
Do you want this program to probe for an unused private subnet?(yes/no/help) [yes]
Probing for an unused privatesubnet (this can take some time)...
The subnet 192.168.193.0/255.255.255.0appears to be unused.
The following host-onlynetworks have been defined:
. vmnet1 is a host-onlynetwork on private subnet 192.168.193.0.
Do you wish to configure another host-only network? (yes/no) [no]
Thebld-2.6.18-8.el5-x86_64smp-RHEL5 - vmnet module loads perfectly into the runningkernel.
指定远程连接端口
Please specify a port for remote connections to use [902]
指定web访问界面使用的http端口,安装完成后,你可以通过 http://www.xxx.com:8222 来访问 VMware Server的Web管理界面,需要在防火墙内打开此端口的TCP协议
Please specify a port forstandard http connections to use [8222]
Please specify a port forsecure http (https) connections to use [8333]
登录管理VMware-server的管理员帐号指定系统里已经有的帐号,no表示用root帐号
The current administrativeuser for VMware Server is ''. Would you like to specify a differentadministrator? [no] yes
Please specify the user whomyou wish to be the VMware Server administrator
root
Using root as the VMwareServer administrator.
指定虚拟机存放的目录
In which directory do you wantto keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] /u01/app/vmware
输入在 VMware 注册的时候会在激活邮件中获取到序列号。
Please enter your 20-characterserial number.
Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: A2J61-FMLF2-U8H9Q-4AP1J
Creating a new VMware VIX APIinstaller database using the tar4 format.
选择 VMware VIX APIbinary files 的安装位置,特在你的虚拟机比较多情况下,需要自己写脚本进行管理的情况下,可以在脚本中通过调用VMware VIX API,完成虚拟机的启动、关闭、备份等日常工作,详细参考VMware VIX API ,一路默认即可。
Installing VMware VIX API.
In which directory do you wantto install the VMware VIX API binary files?
[/usr/bin]
选择 VMware VIX APIlibrary files 的安装位置
In which directory do you wantto install the VMware VIX API library files?
[/usr/lib/vmware-vix/lib]
是否自动创建 VMware VIXAPI library files 的安装目录
The path"/usr/lib/vmware-vix/lib" does not exist currently. This program is goingto create it, including needed parent directories. Is this what you want?
[yes]
指定VMware VIX API 的文档的安装位置
In which directory do you wantto install the VMware VIX API document pages?
[/usr/share/doc/vmware-vix]
是否自动创建 VMware VIXAPI 文档的安装目录
The path "/usr/share/doc/vmware-vix"does not exist currently. This program is going to create it, including neededparent directories. Is this what you want?
[yes]
VMwareVIX API安装完成,通过 /usr/bin/vmware-uninstall-vix.pl 进行卸载,你可以先使用 /usr/bin/vmware-uninstall-vix.pl 卸载 VIX API,然后使用rpm卸载VMware Server
The installation of VMware VIXAPI 1.6.2 build-203138 for Linux completed successfully. You can decide toremove this software from your system at any time by invoking the followingcommand: "/usr/bin/vmware-uninstall-vix.pl".
Enjoy,
--the VMware team
Starting VMware services:
Virtual machine monitor[ OK ]
Virtual machine communicationinterface[ OK ]
VM communication interface socketfamily:[ OK ]
Virtual ethernet[ OK ]
Bridged networking on /dev/vmnet0[ OK ]
Host-only networking on /dev/vmnet1(background)[ OK ]
DHCP server on /dev/vmnet1[ OK ]
Host-only networking on /dev/vmnet8(background)[ OK ]
DHCP server on /dev/vmnet8[ OK ]
NAT service on /dev/vmnet8[ OK ]
VMware Server Authentication Daemon(background)[ OK ]
Shared Memory Available[ OK ]
Starting VMware managementservices:
VMware Server Host Agent (background)[ OK ]
VMware Virtual Infrastructure Web Access
Starting VMware autostartvirtual machines:
Virtual machines[ OK ]
The configuration of VMware Server 2.0.2build-203138 for Linux for this running kernel completed successfully.
启动、停止vmware服务
[root@xml-ora1~]#service vmware start
[root@xml-ora1~]#service vmware stop
Web-access的访问URL:
https://ip:8333/ui/
这里推荐使用https,VMware认为http也能够访问,但是笔者就没有成功过。
在使用Firefox访问的时候,需注意到关于证书的问题,点击”Oryo can add exception”,获取证书,打开链接后,看到web访问的登录页面:
VMwareVIX API安装完成,/usr/bin/vmware-uninstall-vix.pl进行卸载,你可以先使用 /usr/bin/vmware-uninstall-vix.pl 卸载 VIX API,然后使用rpm卸载VMware Server
rpm包卸载:
[root@xml-ora1~]#/usr/bin/vmware-uninstall-vix.pl
[root@xml-ora1~]#rpm -e VMware-server*