我有一台基于Windows Server 2012 R2的Hyper-V主机,具有Windows Server 2012 R2访客虚拟机和基于Debian 7.6的虚拟机。 dynamicRAM正在处理Windows客人罚款。 但是在Linux上,它不是和虚拟机使用交换,而不是从主机获得更多的RAM!
~#free -m total used free shared buffers cached Mem: 490 484 5 0 1 6 -/+ buffers/cache: 476 13 Swap: 1287 106 1181
一段时间之后:
~# free -m total used free shared buffers cached Mem: 490 484 5 0 1 6 -/+ buffers/cache: 476 13 Swap: 1287 110 1177
正如你所看到的,使用的交换从106MB增加到110MB,真正的RAM仍然在490MB。 在Hyper-V设置中,我configuration了以下内容:
RAM on startup: 512MB Minimal RAM: 512MB Maximum RAM: 6000MB
我使用http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/10/21/installing-ubuntu-server-10-10-on-hyper激活了Hyper-V集成工具的内核模块-v.aspx所以下面的内核模块被激活:
hv_vmbus hv_storvsc hv_netvsc
lsmod的输出说hv_blkvsc没有激活,我想这是因为服务器上没有GUI。
据微软称 ,Debian不支持Hyper-Vdynamic内存。