在Azure中重用预安装的软件

时间:2015-07-31 14:35:58

标签: azure cloud virtual-machine

有时安装新软件需要花费很多时间。

我想在VM中安装软件,稍后在新VM中重复使用该软件。有两种方法可以做到这一点。

  1. 按照here
  2. 所述安装后创建图像
  3. 将VHD磁盘与OS和预装软件(例如C :)一起使用?
  4. 在第一种情况下,我只是直接从该映像创建一个新VM,在第二种情况下,我会在创建新VM后附加磁盘。

    哪种方式更可取,最有可能?

1 个答案:

答案 0 :(得分:0)

Let me try to address your two points below.

1) An image is really about creating a sys prepped [1] version from an existing Azure VM ( that presumably has all the software you need installed).

Once you have captured the image, you can then create additional VM(s) based on it.

You can also go Azure Marketplace or VM Depot [2] and choose from a set of pre-built images and easily spin VMs based on it. This is the quickest way to get up and running with a VM.

2)

A disk is created from an image when you provision a VM. By default an OS disk will be created. But if your image includes data disks those will also be added to the VM.

To your point, #2 allows you to attach additional data disks (number of disks you can attach depends on the size of the VM you are creating). Note that you can attach an empty or an existing disk.

[1] https://technet.microsoft.com/library/bb457073.aspx

[2] http://azure.microsoft.com/en-us/marketplace/virtual-machines/