{"id":10201,"date":"2009-12-10T21:54:57","date_gmt":"2009-12-10T21:54:57","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=10201"},"modified":"2009-12-10T21:54:57","modified_gmt":"2009-12-10T21:54:57","slug":"how-does-vmm-place-virtual-machines","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=10201","title":{"rendered":"How Does VMM Place Virtual Machines?"},"content":{"rendered":"<p>How does Virtual Machine Manager know where to locate a virtual machine when it needs to migrate or you go to create one?&#160; <\/p>\n<p>If you don\u2019t have VMM to manage your Hyper-V hosts then it becomes either 100% manual (when you manually migrate or create a VM) or 100% automated when there is a failover.&#160; There is no in-system intelligence involved.<\/p>\n<p>VMM does it very differently using Intelligent Placement.&#160; The basic premise is that VMM is monitoring key resources on the Hyper-V hosts that it manages.&#160; Using an algorithm that is either default or customised by you it will take those resources and know where to place a VM in one of a number of scenarios:<\/p>\n<ul>\n<li>(Automated Placement) When a VM is created in the self-service console it is automatically place on a host by VMM based on the host ratings.<\/li>\n<li>(Manual Placement) When you create a VM in the admin console it will recommend a host for you to choose.&#160; <\/li>\n<li>(Automated Placement) When there is a host failure VMM will use Intelligent Placement to move the VM to the highest rated host.<\/li>\n<li>(Manual Placement) When OpsMgr and PRO tips initiate an alert, VMM will use Intelligent Placement to relocate VM\u2019s to the host with the most available resources, i.e. the highest rated host.<\/li>\n<li>(Automated Placement) When you drag and drop a VM to a host group the VM will be automatically placed on a host in that group based on host ratings.<\/li>\n<\/ul>\n<p>You can alter how the Intelligent Placement algorithm works on your VMM server.&#160; There are two basic models:<\/p>\n<ol>\n<li>Resource Maximisation: This is the model you take when you want VMM to make the very most out of each and every host.&#160; VMM will try to place as many VM\u2019s on a single host as is reasonable.<\/li>\n<li>Load Balancing: The goal here is to get the very best performance from your VM\u2019s that you can.&#160; VMM will locate VM\u2019s in an effort to balance the resource utilisation across all hosts.<\/li>\n<\/ol>\n<p>There are 4 basic resource types that will be utilised in the algorithm.&#160; There is a slider to allow you to prioritise these resources when they are evaluated:<\/p>\n<ol>\n<li>CPU<\/li>\n<li>Memory (RAM)<\/li>\n<li>Disk I\/O capacity<\/li>\n<li>Network capacity<\/li>\n<\/ol>\n<p>To be honest I think most people will choose a load balancing model and will prioritise CPU.&#160; Disk I\/O and network capacity probably come next depending on where your bottlenecks are.&#160; Those few going with the maximisation model will probably prioritise memory because it then likely becomes the bottleneck resource.<\/p>\n<p>How do these host ratings get calculated?&#160; VMM measures the resources of the host around every 10 minutes.&#160; There are circumstances that change the available resources of a host and thus the rating of the host.&#160; These are:<\/p>\n<ul>\n<li>New Virtual Machine<\/li>\n<li>Deploy Virtual Machine<\/li>\n<li>Store Virtual Machine<\/li>\n<li>Migrate Virtual Machine<\/li>\n<li>Delete Virtual Machine<\/li>\n<li>Virtual Machine Turned On<\/li>\n<li>Virtual Machine Turned Off, Stopped, Paused, Saved State<\/li>\n<\/ul>\n<p>The host is rated only when a VM is to be placed.&#160; The gathered information is used to compare the host against the resources required by the new\/moved virtual machine.&#160; A rating is generated, anywhere from 0 stars to 5 stars in half star increments.&#160; The host ratings do not involve comparing and contrasting hosts.&#160; They simply show how suitable each host will be based on empirical data and an estimation of what resources that VM will require in the future.&#160; In automated scenarios the host with the highest rating will be chosen.&#160; In manual scenarios it\u2019s up to the administrator to agree with or reject the recommendation.<\/p>\n<p>A number of circumstances can cause a host\u2019s rating to be zero stars, i.e. VMM believes the placement to be unsuitable:<\/p>\n<ul>\n<li>There is not enough RAM available for the VM you want to place on a host.<\/li>\n<li>There is not enough available storage for a VM, e.g. a Windows Server 2008 Hyper-V cluster does not have an available LUN for the VM.<\/li>\n<li>The virtual network the VM is configured to use is not available on the host.<\/li>\n<li>Some advanced VM configuration is not supported by the host, e.g. advanced networking or high availability.&#160; You can still force a placement in this scenario by changing that setting when promoted by the wizard.<\/li>\n<\/ul>\n<p>Intelligent placement is an estimation based on empirical data combined with the tuning of the algorithm.&#160; It\u2019s up to you to tune that algorithm to suit the VM\u2019s, hosts and business requirements for your organisation.&#160; VMM will then do it\u2019s best by making recommendations to you when you move\/create a VM or when an automated action must be performed by VMM.<\/p>\n<div style=\"padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:1dd3b79e-4956-42b2-87b4-fb21d489834f\" class=\"wlWriterEditableSmartContent\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/VMM\" rel=\"tag\">VMM<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Hyper-V\" rel=\"tag\">Hyper-V<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>How does Virtual Machine Manager know where to locate a virtual machine when it needs to migrate or you go to create one?&#160; If you don\u2019t have VMM to manage your Hyper-V hosts then it becomes either 100% manual (when you manually migrate or create a VM) or 100% automated when there is a failover.&#160; &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=10201\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How Does VMM Place Virtual Machines?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"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,196],"class_list":["post-10201","post","type-post","status-publish","format-standard","hentry","category-hyper-v","tag-hyper-v","tag-vmm"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/10201","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=10201"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/10201\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}