≡菜单

在Linux上安装和配置VMware Server 2的4个简单步骤

如下所示,VMware Server在现有主机操作系统(Linux或Windows)之上运行。这是开始使用VMware的快速方法。参考我们的 VMware简介 本文对虚拟化基础知识有一个高层次的了解。

1.下载VMware Server 2

VMware Server下载页面 。 VMware Server 2是免费的。但是,您应该在VMware网站上注册以获得许可证密钥。

在下载页面上,可以使用以下下载选项。就我而言,我下载了二进制.rpm格式。

  • 适用于Windows操作系统的VMware Server 2– Binary .exe format
  • 适用于Linux操作系统的VMware Server 2– Binary .gz format
  • 适用于Linux操作系统的VMware Server 2– Binary .rpm format

2.安装VMware Server 2

如下所示安装VMware Server 2.0.2 rpm。

# rpm -ivh VMware-server-2.0.2-203138.i386.rpm

Preparing...                ########################################### [100%]
1:VMware-server          ########################################### [100%]

The installation of VMware Server 2.0.2 for Linux completed successfully.
You can decide to remove this software from your system at any time 通过
invoking the following command: "rpm -e VMware-server".

Before running VMware Server for the first time, you need to
configure it for your running kernel 通过 invoking the
following command: "/usr/bin/vmware-config.pl".

Enjoy,

--the VMware team

3.使用vmware-config.pl配置VMware Server 2

执行如下所示的vmware-config.pl。确保输入从vmware网站获得的适当序列号。

接受所有内容的默认值。 vmware-config.pl的部分输出如下所示。

# /usr/bin/vmware-config.pl

Do you accept? (yes/no) yes
Do you want networking for your virtual machines? (yes/no/help) [yes]
Please specify a name for this network. [Bridged]
Your computer has multiple ethernet network interfaces available: eth0, eth1.
Which 上 e do you want to bridge to vmnet0? [eth0]
Do you want to be able to use NAT networking in your virtual machines? (yes/no) [yes]
Please specify a name for this network. [NAT]
Do you want this program to probe for an unused private subnet? (yes/no/help) [yes]
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]
Please specify a name for this network. [HostOnly]
Do you want this program to probe for an unused private subnet? (yes/no/help [yes]
Do you wish to configure another host-only network? (yes/no) [no]
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]
Using root as the VMware Server administrator.
In which directory do you want to keep your virtual machine files? [/var/lib/vmware/Virtual Machines]

Please enter your 20-character serial number.
Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:  AAAAA-BBBBB-CCCCC-DDDDD

Starting VMware services:
Virtual machine monitor                                 [  OK  ]
Virtual machine communication interface                 [  OK  ]
VM communication interface socket family:               [  OK  ]
Virtual ethernet                                        [  OK  ]
Bridged networking 上  /dev/vmnet0                       [  OK  ]
Host-only networking 上  /dev/vmnet1 (background)        [  OK  ]
DHCP server 上  /dev/vmnet1                              [  OK  ]
Host-only networking 上  /dev/vmnet8 (background)        [  OK  ]
DHCP server 上  /dev/vmnet8                              [  OK  ]
NAT service 上  /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.2 build-203138 for Linux for this
running kernel completed successfully.

4.转到VMware Infrastructure Webaccess

作为vmware-config.pl的一部分,它启动所有必需的VMware服务,并添加到启动脚本中。要验证所有VMware脚本是否在启动期间正确启动,请重新引导服务器。

转到http:// _ {host-os-ip}:8333 / ui以访问VMware Infrastructure Web访问控制台。这将提示您输入登录名和密码,如下所示。 LoginName是root。密码是主机操作系统的根密码。

图: VMware Web访问登录

在下一篇文章中,我们’将讨论如何使用基础结构Web访问创建虚拟机。

如果您喜欢这篇文章,您可能还会喜欢..

  1. 50个Linux Sysadmin教程
  2. 50个最常用的Linux命令(包括示例)
  3. 排名前25位的最佳Linux性能监视和调试工具
  4. 妈妈,我找到了! – 15个实用的Linux Find命令示例
  5. Linux 101 Hacks第二版电子书 Linux 101黑客手册

Bash 101 Hacks书 Sed和Awk 101黑客手册 Nagios Core 3书 Vim 101黑客手册

{ 3 评论… 加一 }

  • 乔吉 2010年6月16日,上午7:49

    Ramesh的另一篇很棒的文章。您可以在此服务器正在侦听的端口上进行一些扩展,或者/并且在保留下一篇文章的详细信息之前,只需简要说明一下如何使用vmware创建虚拟机。

  • 预兆 2010年6月17日,上午7:13

    这是一个很好的指南,但是我’很遗憾地报告VMWare Server已达到“End of Availability” per VMWare:

    http://www.vmware.com/support/policies/lifecycle/general/index.html#policy_server

  • 基思·奥斯本 2010年6月19日,上午4:14

    默认情况下,VMWare服务器似乎可以运行它’硬盘空间中的RAM,这会降低性能。阻止它–将以下内容添加到/ etc / vmware / config:

    tmpDirectory =“/tmp/vmware”
    mainMem.useNamedFile =“FALSE”
    sched.mem.pshare.enable =“FALSE”
    MemTrimRate =“0”
    MemAllowAutoScaleDown =“FALSE”

    然后创建/ tmp / vmware并添加一个FSTAB条目,如下所示:

    tmpfs / tmp / vmware tmpfs rw,大小= 5120M 0 0

    这为运行RAM创建了一些tmpfs,实际上是从RAM运行的,这意味着性能上的巨大改进。

发表评论