现在的位置: 首页 > 综合 > 正文

Linux平台下部署Vmware Server(二)

2012年06月05日 综合 ⁄ 共 5599字 ⁄ 字号 暂无评论

开始为Linux 服务器安装Vmware Server

安装程序会提问一些问题,并同时给出缺省的答案。

1. 切换到超级用户权限

$ su -
Password:
[root@localhost root]# cd vmware-server-distrib

2. 开始安装

#./vmware-install.pl

3. 选择二进制文件安装路径

# Creating a new installer database using the tar3 format.
Installing the content of the package.
In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d to rc6.d)?
[/etc/rc.d] #选择初始化目录安装路径
What is the directory that contains the init scripts?
[/etc/rc.d/init.d] #选择初始化脚本文件安装路径
In which directory do you want to install the daemon files?
[/usr/sbin]
In which directory do you want to install the library files?
[/usr/lib/vmware]

4. 选择相关文件安装路径

#The path “/usr/lib/vmware” does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]
In which directory do you want to install the manual files?
[/usr/share/man] #选择操作手册页面文件安装路径
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware] #选择文档文件安装路径

5. 安装结束

#The path “/usr/share/doc/vmware” does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want?
[yes]
The main install is now complete and you should see something similar to what follows:
The installation of VMware Server for Linux competed successfully.
You can decide to remove this software from your system at any time by invoking thefollowing command: “/usr/bin/vmware-uninstall.pl”. #安装结束

6. 启动vmware 配置

# Before running VMware Server for the first time, you need to configure it by
invoking the following command: “/usr/bin/vmware-config.pl”. Do you want this
program to invoke the command for you now? [yes]
此时系统会自动关闭现有的Vmware服务守护进程,如图 8 。

图8 系统会自动关闭现有的Vmware服务守护进程

7. 选择图标文件安装路径

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]

8. 阅读接受终端用户许可协议

Do you accept? (yes/no) yes #接受许可协议

9. 安装相关模块

Trying to find a suitable vmmon module for your running kernel.
The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
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] #安装虚拟网络模块

10. 配置网络

Do you want networking for your virtual machines? (yes/no/help) [yes] yes
 选择网络接口名称

Your computer has multiple Ethernet network interfaces available: eth0, eth1.
Which one do you want to bridge to vmnet0? [eth0]
 配置vmnet0
The following bridged networks have been defined:
. vmnet0 is bridged to eth0
Do you wish to configure another bridged network? (yes/no) [no]
 配置vmnet8
Configuring a NAT network for vmnet8.
Do you want this program to probe for an unused private subnet? (yes/no/help) [yes]
 探测DHCP 子网,自动探测,随机选择
Probing for an unused private subnet (this can take some time)...
The subnet 172.16.127.0/255.255.255.0 appears to be unused.
The following NAT networks have been defined:
. vmnet8 is a NAT network on private subnet 172.16.127.0.
Do you wish to configure another NAT network? (yes/no) [no]
 配置host-only 网络环境
Do you want to be able to use host-only networking in your virtual machines?
[yes]
Configuring a host-only network for vmnet1.
Do you want this program to probe for an unused private subnet? (yes/no/help) [yes]
Probing for an unused private subnet (this can take some time)...
The subnet 172.16.183.0/255.255.255.0 appears to be unused.
The following host-only networks have been defined:
. vmnet1 is a host-only network on private subnet 172.16.183.0.
Do you wish to configure another host-only network? (yes/no) [no]

11. 安装内核模块

Trying to find a suitable vmnet module for your running kernel.
The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
The module loads perfectly in the running kernel.

12. 选择远程服务端口

Please specify a port for remote console connections to use. [902]

13. 建立perl脚本文件

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.

14. 生成SSL证书文件

Generating SSL Server Certificate
In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]

15. 输入注册时获得的20位产品序列号如图9. 。

图9 输入注册时获得的20位产品序列号

16.如果配置过程和序列号正确,系统会完成配置并且启动Vmware服务器。如图10 。

图10 Vmware Server配置成功界面

17. 系统会自动在系统工具菜单建立一个:“Vmware Service Console”服务控制台的子选项。如图 11 。

图11 系统工具中的Vmware Service Console
三、安装 VMware Server Management Interface on Linux
安装好此软件包后,可以通过浏覽器(以加密SSL方式)控制机器(可以进行重启,关机等操作,默认使用8333端口)。安装程序会提问一些问题,并同时给出缺省的答案。

1. 切换到超级用户权限

$ su -
Password:
[root@localhost root]# cd vmware-server-distrib

2. 开始安装

#wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.2-39867.tar.gz
#tar VMware-mui-1.0.2-39867.tar.gz ;cd /tmp/vmware-mui-distrib
#./vmware-install.pl

3. 阅读接受终端用户许可协议

Do you accept? (yes/no) yes #接受许可协议

4. 选择二进制文件安装路径

# In which directory do you want to install the binary files?
[/usr/bin]
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d] #选择初始化目录安装路径
What is the directory that contains the init scripts?
[/etc/rc.d/init.d] #选择初始化脚本文件安装路径
In which directory do you want to install the VMware Management Interface files?
[/usr/lib/vmware-mui]
The path “/usr/lib/vmware-mui” does not exist currently. This program is going tocreate it, including needed parentdirectories. Is this what you want? [yes]
In which directory would you like to install the documentation files?
[/usr/lib/vmware-mui/doc] #选择文档文件安装路径
The path “/usr/lib/vmware-mui/doc” does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want? [yes]

5.设置vmware-config-mui.pl配置文件

Before running VMware Management Interface for the first time, you need to
configure it by invoking the following command:
“/usr/bin/vmware-config-mui.pl”. Do you want this program to invoke the command
for you now? [yes]

6. 设置最大闲置时间单位分种

Set the number of minutes before an http session times out. (This is the length
of time before someone connecting to VMware Management Interface will be logged
out) [60]

7.安装成功

给我留言

留言无头像?