Azure虚拟机教程

So in this article, we’ll learn the following things:

因此,在本文中,我们将学习以下内容:

  • What is a Virtual Machine?

    什么是虚拟机?
  • Why we use Virtual Machines?

    为什么我们使用虚拟机?
  • How to create a Virtual Machine?

    如何创建虚拟机?
  • How to use a Virtual Machine in your Computer System?

    如何在计算机系统中使用虚拟机?
先决条件: (Prerequisites:)

So let’s start with the first question.

因此,让我们从第一个问题开始。

什么是虚拟机? (What is a Virtual Machine?)

In simple words, If we use a Computer machine over the internet which has its own infrastructure i.e. RAM, ROM, CPU, OS and it acts pretty much like your real computer environment where you can install and run your Softwares. All you need is an internet connection to use that machine. We can increase and decrease the size of the disk, RAM, the capacity of CPU according to our needs.

简而言之,如果我们在互联网上使用具有其自身基础结构(即RAM,ROM,CPU,OS)的计算机机器,则其行为非常类似于您可以安装和运行软件的真实计算机环境。 您只需要连接互联网即可使用该机器。 我们可以根据需要增加和减少磁盘大小,RAM,CPU容量。

At a time we can run multiple virtual machines in a single computer.

一次我们可以在一台计算机上运行多个虚拟机。

为什么我们使用虚拟机? (Why We Use Virtual Machines?)

To answer this question let’s assume a scenario:

为了回答这个问题,我们假设一个场景:

Ram is a freelancer and develops Computer Games. So once a client wants a game to be developed which should run on All of the operating Systems (i.e. Windows, macOS, Ubuntu).

Ram是一位自由职业者,并开发计算机游戏。 因此,一旦客户希望开发一款可以在所有操作系统(即Windows,macOS,Ubuntu)上运行的游戏。

On the other hand, Ram has only one PC which runs on macOS. So he needs Windows and Ubuntu to run and test his game.

另一方面,Ram只有一台可在macOS上运行的PC。 因此,他需要Windows和Ubuntu来运行和测试他的游戏。

Now here, Virtual Machines come as an option. So Ram can deploy two Virtual Machines for each of the Operating System and test his game. When the game is tested and the client is happy with it, Ram can delete both of the virtual machines.

现在,可以选择虚拟机。 因此Ram可以为每个操作系统部署两个虚拟机并测试他的游戏。 当游戏经过测试并且客户端满意时,Ram可以删除两个虚拟机。

So this was an example in terms of operating systems.

因此,这是一个有关操作系统的示例。

Let’s take another scenario:

让我们来看另一种情况:

In this case, the Client wants a high-end Game which requires a lot of computing power to be developed and Ram doesn’t have a computer with that much capacity So Ram has two options, first, he can purchase a new PC or upgrade his PC which can be end-up with high cost. The second option is creating a virtual machine with that much computing power.

在这种情况下,客户需要开发需要大量计算能力的高端游戏,而Ram没有配备如此大容量的计算机,因此Ram有两种选择,第一,他可以购买新PC或升级他的PC可能最终成本很高。 第二种选择是创建具有那么多计算能力的虚拟机。

So in the second example, The cost will be too lower than building a new PC. He can increase or decrease the computing power or memory any time he wants, at a lower cost than getting a new One.

因此,在第二个示例中,成本将比构建新PC低得多。 他可以随时增加或减少计算能力或内存,而所需的成本却比购买新的计算机低。

So now you understand what is Virtual Machine, let’s see how to create one using Microsoft Azure.

现在,您了解什么是虚拟机,让我们看看如何使用Microsoft Azure创建虚拟机。

如何在Azure中创建虚拟机? (How to Create a Virtual Machine in Azure?)

To create a virtual machine go to Azure Portal.

若要创建虚拟机,请转到Azure门户。

It will look something like this:

它看起来像这样:

Azure Virtual Machine Tutorial 1

So you can just click on Create a Resource button that will be on the front page or click on the menu button and select Create a Resource button from there as shown in the picture below:

因此,您只需单击首页上的“ 创建资源”按钮,或单击菜单按钮,然后从此处选择“ 创建资源”按钮 ,如下图所示:

Azure Virtual Machine Tutorial 2

After clicking on this button you’ll be redirected to the resources page from where you can either search a resource by its name or scroll down the menu to find out.

单击此按钮后,您将被重定向到资源页面,您可以在其中按名称搜索资源或向下滚动菜单进行查找。

Azure Virtual Machine Tutorial 3

In our case, we want to create a virtual machine So we can search for Windows or Ubuntu but we here we can also see Both of these are available in the popular section also.  So we can choose it from here too. So I am going to select the Windows Server 2016 Data Center to create a Windows Virtual Machine.

在我们的例子中,我们想创建一个虚拟机,因此我们可以搜索Windows或Ubuntu,但是在这里我们也

  • 1
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值