VmwareServer2安装笔记

 

注册vmware帐号

  • 如果你想要安装Vmware Server 1.0,直接下载安装就行了。不过2.0安装的时候需要license,所以需要注册一下,当然都是免费的。
  • 访问 https://www.vmware.com/freedownload/login.php?product=server20 系统会提示你注册,按他的要求注册好,登录进去,你会看到一个下载页面,上面列出了两个licensing,后面用得到。
    * Licensing
# 不好意思我隐掉10位
VMware Server 2 for Windows 	AA00W-xxxxx-V274J-xxxxx
VMware Server 2 for Linux 	A050E-xxxxx-U4Q3P-xxxxx

下载软件包

  • 接下来在同一页面下面的下载列表里找到需要的安装包,我是安装在CentOS5_x64下的,所以选用下面这个
VMware Server 2 for Linux Operating Systems 64-bit version.
Version 2.0.1 | 156745 - 03/31/09	
434 MB RPM image md5sum: 697a792c70d50e98a347c06b323bd20b(¹)
  • 软件包不小,会花一些时间下载。

rpm安装

rpm -ivh VMware-server-2.0.1-156745.x86_64.rpm
# 装好以后提示执行/usr/bin/vmware-config.pl配置

执行/usr/bin/vmware-config.pl进行初始配置

/usr/bin/vmware-config.pl
[root@YCent5[0]~13:16:40]# /usr/bin/vmware-config.pl
Making sure services for VMware Server are stopped.
Stopping VMware autostart virtual machines:
   Virtual machines                                        [FAILED]
Stopping VMware management services:
   VMware Virtual Infrastructure Web Access
   VMware Server Host Agent                                [FAILED]
Stopping VMware services:
   VMware Authentication Daemon                            [  OK  ]
   VM communication interface socket family:               [  OK  ]
   Virtual machine communication interface                 [  OK  ]
   Virtual machine monitor                                 [  OK  ]
   Bridged networking on /dev/vmnet0                       [  OK  ]
   Host network detection                                  [  OK  ]
   DHCP server on /dev/vmnet8                              [  OK  ]
   NAT service on /dev/vmnet8                              [  OK  ]
   Host-only networking on /dev/vmnet8                     [  OK  ]
   Virtual ethernet                                        [  OK  ]
You must read and accept the End User License Agreement to continue.
Press enter to display it.
>> here you will get a quite long license that requires your acception. I omit it.
Do you accept? (yes/no) yes
Thank you.
The bld-2.6.18-8.el5-x86_64smp-RHEL5 - vmmon module loads perfectly into the 
running kernel.
The bld-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 network for vmnet0.
Please specify a name for this network. 
[Bridged] 
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] 
Configuring a NAT network for vmnet8.
Please specify a name for this network. [NAT] 
Do you want this program to probe for an unused private subnet? (yes/no/help) 
[yes] no
What will be the IP address of your host on the private 
network? 192.168.6.1
What will be the netmask of your private network? 255.255.255.0
The following NAT networks have been defined:
. vmnet8 is a NAT network on private subnet 192.168.6.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 virtual machines? 
[yes] no
The bld-2.6.18-8.el5-x86_64smp-RHEL5 - vmnet module loads perfectly into the 
running kernel.
Please specify a port for remote connections to use [902] 
Please specify a port for standard http connections to use [8222] 
Please specify a port for secure http (https) connections to use [8333] 
The current administrative user for VMware Server  is ''.  Would you like to 
specify a different administrator? [no] yes
Please specify the user whom you wish to be the VMware Server administrator
 root
Using root as the VMware Server administrator.
In 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. This 
program is going to create it, including needed parent directories. Is this 
what you want? [yes] 
Please enter your 20-character serial number.
Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:  A050E-xxxxx-U4Q3P-xxxxx
Creating a new VMware VIX API installer database using the tar4 format.
Installing VMware VIX API.
In which directory do you want to install the VMware VIX API binary files? 
[/usr/bin] 
In which directory do you want to install the VMware VIX API library files? 
[/usr/lib/vmware-vix/lib] 
The path "/usr/lib/vmware-vix/lib" 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 VMware VIX API document pages? 
[/usr/share/doc/vmware-vix] 
The path "/usr/share/doc/vmware-vix" does not exist currently. This program is 
going to create it, including needed parent directories. Is this what you want?
[yes] 
The installation of VMware VIX API 1.6.2 build-156745 for Linux completed 
successfully. You can decide to remove this software from your system at any 
time by invoking the following command: "/usr/bin/vmware-uninstall-vix.pl".
Enjoy,
--the VMware team
Starting VMware services:
   Virtual machine monitor                                 [  OK  ]
   Virtual machine communication interface                 [  OK  ]
   VM communication interface socket family:               [  OK  ]
   Virtual ethernet                                        [  OK  ]
   Bridged networking on /dev/vmnet0                       [  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 management services:
   VMware Server Host Agent (background)                   [  OK  ]
   VMware Virtual Infrastructure Web Access
Starting VMware autostart virtual machines:
   Virtual machines                                        [  OK  ]
The configuration of VMware Server 2.0.1 build-156745 for Linux for this 
running kernel completed successfully.

管理Vmware Server

  • 创建新的虚拟机
  • 编辑当前的虚拟机

一个很不爽的事情

  • 为了装64位的虚拟机,专门找了一台64位的主机,结果主机上成功安装上了CentOS5.3_x86_64,然后装了相应版本的Vmware Server,不过当我试图尝试安装一台同样64位的虚拟机时,安装界面报错(虚拟机中),“Your CPU does not support long mode. Use a 32bit distribution”,这个结果让我非常不爽。上网查了一下,说是修改BIOS里的Inter Virtualization Technology设置为ENABLE就可以了。如果没有这种VT选项,可能芯片就不支持VT,那就够呛了。http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1901 这个地方可以看到比较详细的介绍,特别对于intel的芯片,直接访问http://compare.intel.com/PCC/intro.aspx查看是否支持也可以。我的CPU经过达人RX检查,说是不支持VT,我也就死心了。

一次冒险的操作

  • 这里给大家讲一个我自己的错误故事,我曾经希望在我的Server上装VMware Server做vm服务器,同时还想尝试一下OpenVZ,这是另一种虚拟方式,不是单单软件实现的,和Xen类似,都要安装专用的Linux内核来工作。于是我安装好了OpenVZ内核,重启grub选用Openvz的启动,结果启动时发现一篇红色的Fail,这些fail来自VMware自动启动。显然,一个明显的冲突信号给了我。我重新进入原有的CentOS内核,VMware启动还是失败,不过这次没有那么多的错误了,错误提示我执行/usr/bin/vmware-config.pl进行配置,我执行的时候发现下面这个提示
Thank you.
The bld-2.6.18-8.el5-x86_64smp-RHEL5 - vmmon module loads perfectly into the running kernel.
The bld-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.
This program previously created the file /dev/vmnet0, and was about to remove it.  Somebody else apparently did it already.
This program previously created the file /dev/vmnet8, and was about to remove it.  Somebody else apparently did it already.
You have already setup networking.
Would you like to skip networking setup and keep your old settings as they are?
(yes/no) [yes]
  • 不用说,肯定是OpenVZ干的好事。还好修复过程比较顺利,一路回车过去就好了。看来还是想当然了,以为两种层面上的实现不会有冲突,结果冲突得厉害。顺便说一下最终的解决方案,其实很傻,就是用vm,然后在一台虚拟机上再装ovz内核做虚拟化。
  • 结合前面一个问题的讨论,我就不得不面临一种妥协,要么放弃64位的OpenVZ Server计划,因为我不能弄出来一个这样的虚拟机,要么完全改变目前架构,真机上用OpenVZ,里面再跑VMware。最终因为网络分配的关系(这个不是技术问题,是实际情况问题),我采用了简单的前者。
分享至
一键收藏,随时查看,分享好友!
0人
了这篇文章
类别: linux┆阅读( 0)┆评论( 0) ┆ 返回博主首页┆ 返回博客首页
上一篇 定制属于我的OpenVZ操作系统光碟 下一篇 在CentOS 4.4上安装配置OpenVZ

你可能感兴趣的:(vmware,职场,openvz,休闲)