{"id":19043,"date":"2015-09-30T16:24:10","date_gmt":"2015-09-30T15:24:10","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=19043"},"modified":"2015-09-30T16:29:44","modified_gmt":"2015-09-30T15:29:44","slug":"how-much-memory-does-my-hyper-v-host-require","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=19043","title":{"rendered":"How Much Memory Does My Hyper-V Host Require?"},"content":{"rendered":"<p>If you are trying to figure out how much RAM you have left for virtual machines then this is the post for you.<\/p>\n<p>When Microsoft launched Dynamic Memory with W2008 R2 SP1, we were introduced to the concept of a host reserve (nothing to do with the SCVMM concept); the hypervisor would keep so much memory for the Management OS, and everything else was fair game for the VMs. The host reserve back then was a configurable entry in the registry (MemoryReserve [DWORD] in HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Virtualization). Things changed with WS2012 when we were told that Hyper-V would look after the reserve and we should stay away from it. That means we don\u2019t know how much memory is left for VMs. I could guess it roughly but I had no hard facts.<\/p>\n<p>And then I saw a <a href=\"https:\/\/support2.microsoft.com\/kb\/2962295\" target=\"_blank\">KB article<\/a> from about a month ago that deals with a scenario where it appears that a host has free memory but VMs still cannot start.<\/p>\n<p>There\u2019s two interesting piece of information in that post. The first is how to check how much RAM is actually available for VMs. Do not use Task Manager or other similar metrics. Instead, use PerfMon and check Hyper-V Dynamic Memory Balancer\\Available Memory (instance: System Balancer). This metric shows how much memory is available for starting virtual machines.<\/p>\n<p>The second fact is is the size of the host reserve, which is based on the amount of physical RAM in the host. The following table is an approximation of results of the algorithm:<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/image35.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; margin-right: auto; border: 0px;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/image_thumb33.png\" alt=\"image\" width=\"400\" height=\"414\" border=\"0\" \/><\/a><\/p>\n<p>Microsoft goes on to give an example. You have a host with 16 GB RAM:<\/p>\n<ul>\n<li>The Mangement OS uses 2 GB.<\/li>\n<li>The host reserve is up to 2.5 GB.<\/li>\n<li>That leaves you with 11.5 GB RAM for VMs.<\/li>\n<\/ul>\n<p>So think about it:<\/p>\n<ol>\n<li>You log into the host with 16 GB RAM, and fire up Task Manger.<\/li>\n<li>There you see maybe 13.5 GB RAM free.<\/li>\n<li>You create a VM with 13 GB RAM, but it won\u2019t start because the Management OS uses 2 GB and the host reserve is between 2-2.5 GB, leaving you with 11.5-12GB RAM for VMs.<\/li>\n<\/ol>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:e5dda55e-1714-4ce2-8419-e3851cb5b468\" class=\"wlWriterEditableSmartContent\" style=\"float: none; margin: 0px; display: inline; padding: 0px;\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/Windows+Server+2012+R2\" rel=\"tag\">Windows Server 2012 R2<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Hyper-V\" rel=\"tag\">Hyper-V<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Virtualisation\" rel=\"tag\">Virtualisation<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>If you are trying to figure out how much RAM you have left for virtual machines then this is the post for you. When Microsoft launched Dynamic Memory with W2008 R2 SP1, we were introduced to the concept of a host reserve (nothing to do with the SCVMM concept); the hypervisor would keep so much &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=19043\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How Much Memory Does My Hyper-V Host Require?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":19045,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[181,195,120],"class_list":["post-19043","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hyper-v","tag-hyper-v","tag-virtualisation","tag-windows-server-2012-r2"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/2915859538_dcc362181f_z_d1.jpg","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/19043","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19043"}],"version-history":[{"count":2,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/19043\/revisions"}],"predecessor-version":[{"id":19046,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/19043\/revisions\/19046"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/media\/19045"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}