{"id":3841,"date":"2015-07-20T09:39:59","date_gmt":"2015-07-20T14:39:59","guid":{"rendered":"http:\/\/www.poweradmin.com\/blog\/?p=3841"},"modified":"2015-07-21T08:24:13","modified_gmt":"2015-07-21T13:24:13","slug":"hyper-v-features-introduced-with-windows-server-2012","status":"publish","type":"post","link":"https:\/\/www.poweradmin.com\/blog\/hyper-v-features-introduced-with-windows-server-2012\/","title":{"rendered":"Hyper-V features Introduced in Windows Server 2012"},"content":{"rendered":"<p><span style=\"font-family: verdana,geneva,sans-serif;\"> <a href=\"http:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/windows-server-2012-hyper-v-features.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-thumbnail wp-image-3886 alignleft\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/windows-server-2012-hyper-v-features-150x150.png\" alt=\"Windows Server 2012 Hyper-V Features\" width=\"150\" height=\"150\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/windows-server-2012-hyper-v-features-150x150.png 150w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/windows-server-2012-hyper-v-features.png 185w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\"><\/a>As most of you already know, <a href=\"http:\/\/www.poweradmin.com\/blog\/how-to-deploy-a-new-vm-on-hyper-v\/\">Hyper-V<\/a> is the virtualization product that is shipped with Windows Server Editions. Microsoft has continuously added new features it and has really enhanced its capabilities. With <a href=\"http:\/\/www.poweradmin.com\/blog\/auditing-windows-server-2012\/\">Windows Server 2012 Edition<\/a>, Microsoft introduced multiple features that allows further configuration to your virtualization environment. In this article we will discuss about some of the new features introduced with this server Edition. Hyper-V can now be configured entirely using Powershell, the server now includes a Hyper-V module that contains a lot of new cmdlets. You can easily explore new commands by executing <i>Get-Command \u2013Module Hyper-V <\/i>from Powershell. This article will not explain how to install and configure Hyper-V or how to deploy VMs, please check out <a href=\"http:\/\/www.ittrainingday.com\/2014\/08\/how-to-install-and-configure-hyper-v-on.html\" rel=\"nofollow\" target=\"_blank\">this<img class=\"extlink-icon\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/plugins\/external-links-nofollow-open-in-new-tab-favicon\/images\/extlink.png\"><\/a> article to find out more on that.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Some of the new features introduced with Windows Server 2012 are:<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\"><i>Smart Paging<\/i> \u2013 similar to paging in Windows Server, allows a machine to store some of its needed memory on the local disk. This feature is used when the VM is being restarted, when there is no available physical memory or when no extra memory can be allocated from the rest of the VMs. Let\u2019s say you have a server that doesn\u2019t have sufficient memory to reboot, <i>Smart Paging <\/i>will allocate the needed memory from its local disk drive. Hard drives are slower than physical memory so the restart procedure of a VM will take longer. Once the machine has been fully restarted, the used disk space will be freed.<\/span><\/p>\n<p><a href=\"http:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/resource-metering-cmdlets.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3883\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/resource-metering-cmdlets.png\" alt=\"Resource Metering cmdlets\" width=\"583\" height=\"96\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/resource-metering-cmdlets.png 583w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/resource-metering-cmdlets-300x49.png 300w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\"><\/a><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\"><i>Resource Metering<\/i> \u2013 allows System Administrators to measure the amount of hardware resources consumed by a Virtual Machine. This technology was created to cover scenarios when the servers are hosted in a datacenter that taxes clients based on their consumption. You can configure this feature by using Powershell. You can view available cmdlets for <i>Resource Metering<\/i> by executing <i>Get-Command *metering* -Module Hyper-V <\/i>from Powershell:<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\"><a href=\"http:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/measure-vm-consumed-resources.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3882\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/measure-vm-consumed-resources.png\" alt=\"Measure-VM Consumed Resources\" width=\"694\" height=\"137\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/measure-vm-consumed-resources.png 694w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/measure-vm-consumed-resources-300x59.png 300w\" sizes=\"auto, (max-width: 694px) 100vw, 694px\"><\/a><\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Use these cmdlets to <i>Enable\/Disable\/Reset<\/i> resource metering. Use <i>Measure-VM<\/i> command to check out consumed resources since the resource metering was enabled.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">You can also use the <i>Get-VM<\/i> command then pipe the output and store it in a variable to be able to write the result later.<\/span><\/p>\n<p><a href=\"http:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/get-vm-store-to-write-result-later.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3878\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/get-vm-store-to-write-result-later.png\" alt=\"Get-VM Store to Write Result Later\" width=\"698\" height=\"85\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/get-vm-store-to-write-result-later.png 698w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/get-vm-store-to-write-result-later-300x37.png 300w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\"><\/a><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Such scenario can happen when data is stored on local variables then sent to a center monitoring System for further analysis.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\"><i>Dynamic Memory<\/i> \u2013 deals with dynamic allocation of Hyper-V resources. Although this feature was first introduced with <a href=\"http:\/\/www.poweradmin.com\/blog\/gpmc-and-group-policy-store-in-windows-server-2008\/\">Windows Server 2008<\/a> R2 SP1, in Windows Server 2012 it offers a new configurable parameter, <i>Minimum RAM<\/i> memory. <i>Dynamic Memory<\/i> allows a Hyper-V host to distribute hardware specs between its Virtual Machines. With this technology enabled, a VM will automatically receive memory based on its requirements. For example, a VM will automatically receive extra memory on high loads, but its memory will also decrease when it\u2019s not needed. Such scenario happens when the machine boots up because more memory is needed to power up a server then when is running. <i>Dynamic Memory<\/i> can be configured from the <i>Memory<\/i> section of a virtual machine:<\/span><\/p>\n<p><a href=\"http:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/vm-settings-dynamic-memory.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3885\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/vm-settings-dynamic-memory.png\" alt=\"VM Settings Dynamic Memory\" width=\"729\" height=\"690\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/vm-settings-dynamic-memory.png 729w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/vm-settings-dynamic-memory-300x284.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\"><\/a><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Note that you can configure <i>Dynamic Memory<\/i> only when the VM is stopped. There are several parameters that can be configured from this section. Although these parameters are pretty intuitive I will mention them here:<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">\u2022 <b>Startup RAM:<\/b> the amount of memory that will be allocated to the VM when it\u2019s powered on.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">\u2022 <b>Minimum RAM:<\/b> the minimum amount of memory that will be allocated to a VM when it\u2019s running.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">\u2022 <b>Maximum RAM:<\/b> maximum amount of memory allocated to a VB when it\u2019s running<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">\u2022 <b>Memory buffer:<\/b> specifies the extra amount of memory (in percentage) that can be allocated to a machine in peak loads. If you have a VM with sporadic memory loads, you can configure memory buffer to ensure your machine handles the extra load.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">\u2022<\/span> <b><span style=\"font-family: verdana,geneva,sans-serif;\">Memory Weight<\/span>:<\/b> this parameter offers a way to prioritize the availability of memory for a Virtual Machine. Note that a VM will higher memory weight will have priority in terms of memory allocation than a VM with a lower value.<\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\"><i>NUMA topology \u00ad<\/i>\u2013 <i>Non-Uniform Memory Access<\/i> offers a way to improve system scalability of memory in servers with multiprocessors architecture without affecting the memory bus. With this technology enabled, a VM will know the underlying hardware of the physical hosts thus, memory allocation will be correctly configured. I don\u2019t know much about this technology, but from what I\u2019ve learn so far, NUMA does the following: NUMA divides memory and processors into groups called NUMA nodes. Parts of the memory are connected directly to system processors. A processor will always try to access memory that is part of its NUMA group because it\u2019s accessed much faster. A memory that is part of the same NUMA group as a processor is known as local memory while memory located in another NUMA group is referred to as remote. In Windows Server 2012, a VM can use a maximum of 64 processors and 1 TB of memory. When a VM is started, Hyper-V will try to allocate its resources from a single NUMA group. If the VM\u2019s requirements exceed the NUMA group capabilities, then the VM will receive the rest of its resources from another NUMA group. This memory allocation method in the context of NUMA is known as NUMA spanning. You can <i>enable\/disable<\/i> Hyper-V NUMA spanning from the <i>Settings<\/i> section:<\/span><\/p>\n<p><a href=\"http:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/hyper-v-settings-spanning.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3879\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/hyper-v-settings-spanning.png\" alt=\"Hyper-V Settings Spanning\" width=\"730\" height=\"258\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/hyper-v-settings-spanning.png 730w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/hyper-v-settings-spanning-300x106.png 300w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\"><\/a><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Hyper-V will present a virtual NUMA topology to its VMs. Hyper-V will create this topology based on the underlying physical architecture of the Hyper-V node.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">You can configure <i>NUMA settings<\/i> of a VM from the <i>Processor<\/i> section:<\/span><\/p>\n<p><a href=\"http:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/vm-processor-numa-settings.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3884\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/vm-processor-numa-settings.png\" alt=\"VM Processor - NUMA Settings\" width=\"728\" height=\"688\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/vm-processor-numa-settings.png 728w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/vm-processor-numa-settings-300x284.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\"><\/a><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\"><i>Virtual Fiber Channel \u2013 <\/i>Windows server 2012 offers the possibility of creating virtual fiber channel from a Virtual Machine and then provision storage to it from your SAN from within the server. With this technology you can now take advantage of the already deployed Fiber Channel so your investments are not lost when connecting storage devices to virtual machines. The Virtual <i>Fiber Channel for Hyper-V <\/i>provides VM access to <i>SAN LUNs<\/i> by using a <i>WWN (World Wide Name)<\/i> that will be associated with a particular virtual machine. This new technology offers support for <i>MPIO (Microsoft Multipath I\/O)<\/i>, <i>virtual SANs<\/i> and <i>live migrations<\/i>.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">To <i>add<\/i> a <i>Virtual Fiber Channel<\/i> to a VM, navigate to the <i>Settings<\/i> menu and click on <i>Add Hardware<\/i>, and select the <i>Fiber Channel Adapter<\/i>:<\/span><\/p>\n<p><a href=\"http:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/add-a-virtual-fiber-channel-to-a-vm.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3876\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/add-a-virtual-fiber-channel-to-a-vm.png\" alt=\"Add a Virtual Fiber Channel to a VM\" width=\"732\" height=\"366\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/add-a-virtual-fiber-channel-to-a-vm.png 732w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/add-a-virtual-fiber-channel-to-a-vm-300x150.png 300w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\"><\/a><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Once you\u2019ve add the new virtual hardware, you\u2019ll have to select the <i>Virtual SAN<\/i>. Note that the <i>WWN<\/i> can be manually configured if desired:<\/span><\/p>\n<p><a href=\"http:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/manually-convigure-wwn-virtual-san.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3881\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/manually-convigure-wwn-virtual-san.png\" alt=\"Manually Convigure WWN - Virtual SAN\" width=\"729\" height=\"688\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/manually-convigure-wwn-virtual-san.png 729w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/manually-convigure-wwn-virtual-san-300x283.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\"><\/a><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\"><i>VHDX disks <\/i>\u2013 is a new <i>virtual hard disk (VHD<\/i>) format that can support up to 64 TB of disk space. VHDX was created to replace its predecessor, VHD which supported a maximum of 2 TB in size. With Windows Server 2012 you can convert a VHD to a VHDX and vice versa. The disadvantage of using this new technology is the fact that is supported only by Windows Server 2012 and does not offer backward compatibility with previous Editions. VHDX offers a logging system that verifies VHDX metadata structures updates thus protecting the virtual disk against data corruption when power disruptions occur. It uses 4-KB logical sectors to provide increased performance for applications using this type of sectors.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">System administrators can <i>create<\/i> <i>VHDX<\/i> using the Hyper-V interface or by using Powershell:<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\"><i>New-VHD \u2013Path d:\\NewDisk0.vhdx \u2013BlockSizeBytes 128MB \u2013LogicalSectorSize 4KB \u2013SizeBytes 1TB<\/i><\/span><\/p>\n<p><a href=\"http:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/create-vhdx-with-hyper-v-interface.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3877\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/create-vhdx-with-hyper-v-interface.png\" alt=\"Create VHDX with Hyper-V Interface\" width=\"709\" height=\"535\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/create-vhdx-with-hyper-v-interface.png 709w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/06\/create-vhdx-with-hyper-v-interface-300x226.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\"><\/a><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">I\u2019ve tried to present some of the new Hyper-V features introduced with Windows Server 2012. I\u2019m sure there are more features that I\u2019ve not included here, but these are the ones I\u2019ve studied about so far. Personally I think that the improved Hyper-V version that ships with Server 2012 offers increased capabilities that can make your life as a System Administrator much easier. I hope you\u2019ve enjoyed this article and don\u2019t forget to post any questions you have in our comments section below. Wish you all the best and stay tuned for the following articles.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As most of you already know, Hyper-V is the virtualization product that is shipped with Windows Server Editions. Microsoft has continuously added new features it and has really enhanced its capabilities. With Windows Server 2012 Edition, Microsoft introduced multiple features that allows further configuration to your virtualization environment. In this article we will discuss about [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":3875,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,6,9,8],"tags":[],"class_list":["post-3841","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general-it","category-how-to","category-tech","category-technical","category-windows"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/3841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/comments?post=3841"}],"version-history":[{"count":5,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/3841\/revisions"}],"predecessor-version":[{"id":4027,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/3841\/revisions\/4027"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/media\/3875"}],"wp:attachment":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/media?parent=3841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/categories?post=3841"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/tags?post=3841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}