如何使用较小的硬盘创建VM? [英] How do I create a VM with a smaller hard drive?

查看:104
本文介绍了如何使用较小的硬盘创建VM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一堆虚拟机,每个虚拟机的大小都是B2,这很适合我。我不需要大量的计算或内存,但我确实需要它们各自拥有自己的IP地址。我也不需要它们,所以我的大部分成本实际上是
来自存储而不是计算。

I have created a bunch of VMs each of which is of size B2s, which suits me fine. I don't need a huge amount of compute or memory, but I do need them to each have their own IP address. I don't need them on all the time either, so most of my cost actually comes from the storage rather than the compute.

它们基于Windows 10客户端映像,这给了我一个127 GiB的磁盘大小,这比我需要的多。所以我最终为很多我没有使用的存储付费。 

They are based on Windows 10 Client image, which gives me a disk size of 127 GiB, which is way more than I need. So I end up paying for a lot of storage I'm not using. 

如何创建磁盘尺寸较小的Windows 10客户端虚拟机?

How can I create Windows 10 Client VMs with a smaller disk size?

我如何减少已有VM的磁盘大小?

And how can I reduce the disk size of the VMs I already have?

谢谢。

推荐答案

您好,

请按照
blog
用于减小磁盘大小,如果您有任何疑问,请告诉我。

Please follow this blog for reducing the disk size and let me know if you have any questions.

此博客执行以下步骤。


  1. 选择最佳磁盘大小
  2. 缩小VM中的分区大小
  3. 将托管磁盘导出为VHD
  4. 缩小导出的VHD
  5. 从VHD创建新的托管磁盘
  6. 从n创建一个新VM ew托管磁盘

我同意它有更多步骤来缩小磁盘大小,你需要管理你创建的VHD的更新。

I agree that it has more steps to shrink the disk size and you need to manage the updates to the VHD you create.

Windows Server 2016或2019附带小磁盘选项(30 GB)。如果我们使用它,那么Microsoft将维护对操作系统映像的更新。如果您对Windows服务器映像没问题,我会重新启动您使用此选项。

Windows server 2016 or 2019 comes with small disk options(30 GB). If we use that, Then the updates to the OS image will be maintained by Microsoft. If you are fine with windows server image, I recommenced you to go with this option.

我们可以使用此命令列出Microsoft发布的可用映像SKU。

We can use this command to list the available image SKU published by Microsoft.

Get-AzureRMVMImageSku -PublisherName MicrosoftWindowsServer -Offer WindowsServer -Location <location>


这篇关于如何使用较小的硬盘创建VM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆