在 Linux 上安装和配置 VMware Server 2 的 4 个简单步骤
【摘要】 VMware Server 在现有主机操作系统(Linux 或 Windows)之上运行,如下所示。这是开始使用 VMware 的快速方法。
VMware Server 在现有主机操作系统(Linux 或 Windows)之上运行,如下所示。这是开始使用 VMware 的快速方法。
1.下载VMware服务器2
转到VMware 服务器下载页面。VMware Server 2 是免费的。但是,您应该在 VMware 网站上注册以获取许可证密钥。
在下载页面上,可以使用以下下载选项。就我而言,我下载了二进制 .rpm 格式。
- 适用于 Windows 操作系统的 VMware Server 2 – 二进制 .exe 格式
- 适用于 Linux 操作系统的 VMware Server 2 – 二进制 .gz 格式
- 适用于 Linux 操作系统的 VMware Server 2 – 二进制 .rpm 格式
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 by
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 by 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 one 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 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 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 脚本是否在启动期间正确启动,请重新启动服务器。
转至 https://{host-os-ip}:8333/ui 以访问 VMware Infrastructure Web 访问控制台。这将提示输入登录名和密码,如下所示。登录名是根。密码是主机操作系统根密码。
图: VMware Web 访问登录
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)