Hyper-V容器VM容量 [英] Hyper-V Container VM capacity

查看:137
本文介绍了Hyper-V容器VM容量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为Hyper-v容器VM分配了多少容量,是否可以修改 ?


也可以通过其他方式管理用于的模板这个VM通常用于容器主机中的配置?

How much capacity is allocated to the Hyper-v container VM and is it possible to modify ?

Also is it possible to othervise manage the template used for this VM for istance configurations that you would normally do in the container host ?

推荐答案

Hi Tage,

Hi Tage,

我注意到你在不同的帖子中提出了几个不同的问题。

I notice you've asked a few different questions in different posts.

如果你描述你想要做什么,我会更有能力帮助你,然后我们可以一起工作找到最佳解决方案。

I will be more able to help you if you describe what you are trying to do, and then we can work together to find the best solution.

例如,您可能会担心Hyper-V容器中VM层的大小。  此VM层只是Windows Server容器和Hyper-V容器之间大小差异的一部分。   Hyper-V容器不与主机共享
内核,因此它们必须在容器中拥有内核的副本。  如果您使用Nanoserver作为容器操作系统,那么就像使用ServerCore作为容器操作系统一样没有那么大的区别。

For example, it sounds like you are concerned about the size of the VM layer in Hyper-V containers.  This VM layer is just one part of the size difference between a Windows Server container and a Hyper-V container.  Hyper-V containers do not share a kernel with the host, so they must have a copy of the kernel in the container.  If you are using Nanoserver as the container OS this will not be as much of a difference as if you are using ServerCore as the container OS.

如果你告诉我你在尝试什么我很乐意帮助您评估您的可能选择。  很高兴为您提供帮助,或者您可以给我发电子邮件:myles [dot] keating [at] microsoft.com

If you tell me what you are trying to do I'm happy to help you assess your possible options.  Happy to help you here, or you can email me: myles [dot] keating [at] microsoft.com

回答你的问题具体问题:

To answer your specific questions:

1。不,您无法修改Hyper-V容器中的VM层,因为这会破坏在主机和容器之间创建安全隔离的目的。  我可以找出这个图层占用多少空间。  我知道它比典型的Hyper-V VM小于

1. No you cannot modify the VM layer in a Hyper-V container as this would defeat the purpose of creating a secure separation between host and container.  I can find out how much space this layer takes.  I do know it's significantly smaller than a typical Hyper-V VM.

2。根据您的目标和当前系统,使用Dockerfiles或Docker Compose为Hyper-V容器创建模板可能最简单。

2. Depending on your goals and current system, it's probably easiest to create templates for Hyper-V containers with Dockerfiles or Docker Compose.


这篇关于Hyper-V容器VM容量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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