Virtualization2.0 简明教程

VMware Workstation Player

在本章中,我们将了解如何安装 VMware Workstation Player 及其用法。

In this chapter, we will understand how to install the VMware Workstation Player and its usages.

Installing VMware Workstation Player

VMware Workstation Player 是一个“托管虚拟机管理程序”,因此在继续安装之前,必须先安装操作系统。

VMware workstation player is a “hosted hypervisor”, so you have to have a pre-installed OS before continuing to install it.

VMware Workstation Player 是免费版本,可供非商业、个人和家庭使用。他们还鼓励学生和非营利组织受益于此服务。要下载 VMware Workstation Player,可以单击以下链接 https://www.vmware.com/products/player/playerpro-evaluation.html 。要安装 VMware Workstation Player,请按照以下步骤操作。

VMware workstation player is free version and available for non-commercial, personal and home use. They also encourage students and non-profit organizations to benefit from this offering. To download the VMware workstation player, you can click on the following link https://www.vmware.com/products/player/playerpro-evaluation.html. To install the VMware workstation player, follow the steps given below.

Step 1 − 单击“立即下载”,如下面截图所示。

Step 1 − Click on “Download Now” as shown in the screenshot below.

download

Step 2 − 将看到已下载一个文件 → 双击该文件。

Step 2 − You will see that a file has been downloaded → double click on it.

double click

Step 3 − 将弹出一个表,初始化 VMware 安装 → 单击“下一步”。

Step 3 − A Table will pop-up initializing the installation of VMware → Click “Next”.

vmware

Step 4 − 选中方框“我接受许可协议中的条款”→ 单击“下一步”。

Step 4 − Check the box “I accept the terms in the license agreement” → Click on “Next”.

agreement

Step 5 − 再次单击“下一步”按钮。

Step 5 − Once again, click on the “Next” button.

next button

Step 6 −保留默认值并单击“下一步”。

Step 6 − Leave the default values and click on “Next”.

default

Step 7 − 再次单击“下一步”。

Step 7 − Once again, click on “Next”.

next

Step 8 − 单击“安装”。

Step 8 − Click on “Install”.

click install

Step 9 − 将在桌面上创建一个图标。单击该图标,将弹出一个表格,其中有两种可能性:如果要将其用作非商业版本,只需输入电子邮件地址即可。如果要将其用作商业版本,请选中第二个选项并输入序列密钥。

Step 9 − An icon will be created on the desktop. Click on it and a table will pop–up, where you have two possibilities: If you want to use it as a non-commercial version, just enter your email address. If you want to use it as a commercial version, check the second option and enter your serial key.

desktop icon

Creating a VM with VMware Workstation

要创建虚拟机,我们必须按照以下步骤操作。

To create a virtual machine, we have to follow the steps given below.

Step 1 − 单击“播放器”→ 文件 → 新建虚拟机。

Step 1 − Click on “Player” → File → New Virtual Machine.

player

Step 1 − 会弹出一个表格,要求查找“引导磁盘”、“引导映像”或以后安装操作系统。

Step 2 − A table will pop-up requesting you to find a “Boot disk”, “Boot Image” or to install OS at a later stage.

我们选择第二个选项并单击“浏览”。然后我们单击要安装的 ISO 镜像。完成所有这些之后,单击“下一步”。

We will choose the second option and click on “Browse”. Then we have to click on the ISO image, which we want to install. Once all this is done, click on “Next”.

browse

Step 3 − 由于我要安装 Windows Server 2012,它会弹出要求输入序列号的表格 → 如果你想激活 Windows 的非商业版本,直接单击“下一步”。

Step 3 − As I am installing windows server 2012, it will pop-up a table requesting to enter the serial key → click directly on “Next”, if you want to activate the noncommercial version for Windows.

serial key

Step 4 − 完成上述步骤后,将会打开一个对话框。单击“是”。

Step 4 − After the above step is complete, a dialogue box opens. Click “Yes”.

dialogue box

Step 5 − 单击“下一步”。

Step 5 − Click “Next”.

wizard

Step 6 − 在“最大磁盘大小”框中,输入虚拟硬盘的值,在本例中为 60GB。然后单击“下一步”。

Step 6 − In the “Maximum size disk” box, enter the value of your virtual Hard disk, which in our case is 60GB. Then click on “Next”.

maximum size disk

Step 7 − 单击“完成”。

Step 7 − Click on “Finish”.

click on finish

Setting up Networking with VMware Workstation

要在 VMware Workstation 中设置虚拟机的网络模式,我们必须单击“编辑虚拟机设置”。

To set up the networking modes of a virtual machine in a VMware Workstation, we have to click on the “Edit virtual machine settings”.

edit

将打开一张表格,其中列出了网络设置,在该表格的左侧面板中,单击“网络适配器”。

A table will be opened with the settings of networking and on the left hand side panel of this table click on “Network Adaptor”.

network adaptor

在此表格的左侧,你可以看到以下屏幕截图中所示的网络模式。

On the left of this table, you can see the networking modes as shown in the following screnshots.

modes

如果要限制虚拟机的带宽使用情况,请单击“高级”并设置传入和传出带宽。

If we want to limit the bandwidth usage of a virtual machine, click on “Advance” and set the incoming and outgoing bandwidths.

advance

Allocating Processors & Memory to a VM using VMware Workstation

要在 VMware Workstation 中分配内存给虚拟机,我们必须单击“编辑虚拟机设置”。将打开一张表格,我们必须单击“内存”。

To allocate memory to a virtual machine in a VMware Workstation, we have to click on “Edit virtual machine settings”. A table will be opened and we will have to click on “Memory”.

在左侧面板中,我们必须手动输入内存量或通过像以下屏幕截图中所示的那样上下移动箭头来输入。

On the left hand side panel, we have to enter the amount of memory manually or by moving the arrow up and down as shown in the following screenshot.

memory

如果你单击“处理器”,在左侧面板,我们必须输入 vCPU 数量,如下面的屏幕截图所示。

If you click on “Processors”. On the left hand side panel, we have to enter the amount of vCPU as shown in the screenshot below.

processors

Note − 如果你设置的 vCPU 比主机支持的多,它将无法开启 VM。

Note − If you put more vCPU-s than what the host supports, it will fail to power on the VM.

vcpu

Duplicating a VM Using VMware Workstation

要创建 VM 机器副本,我们必须使用 VMware Workstation 商业版。

To create duplicates of VM machines, we have to use the VMware Workstation Commercial Version.

让我们按照以下步骤看看如何在实际操作中进行。

Let us see how to do it in practice by following the steps given below.

Step 1 − 打开 VMware 管理控制台并右键单击要复制的 VM。单击“管理”。

Step 1 − Open the VMware managing console and right click on a VM that you want to duplicate. Click on “Manage”.

click manage

Step 2 − 单击“克隆……”,然后将打开一个向导。

Step 2 − Click on “Clone…” and a wizard will be open.

clone

Step 3 − 单击“下一步”。

Step 3 − Click on “Next”.

clone virtual

Step 4 −点击“创建完整克隆”并点击“下一步”。

Step 4 − Click on “Create a Full Clone” and “Next”.

full clone

Step 5 −为要创建的克隆起个名字,然后点击“完成”。

Step 5 − Put a name for the clone that will be created and “Finish”.

put name

以下屏幕截图介绍了克隆流程。

The following screenshots describe the process of cloning.

cloning

克隆流程完成后,将打开以下窗口。

Once the cloning process is complete, the following window will open.

cloning complete