{"id":4284,"date":"2013-12-22T13:37:45","date_gmt":"2013-12-22T21:37:45","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=4284"},"modified":"2013-12-22T14:55:35","modified_gmt":"2013-12-22T22:55:35","slug":"how-to-update-integration-services-in-windows-server-2012-r2","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/how-to-update-integration-services-in-windows-server-2012-r2\/","title":{"rendered":"How to Update Integration Services and Use Guest Services in Windows Server 2012 R2"},"content":{"rendered":"<p>Microsoft has made several enhancements to Hyper-V in Windows Serer 2012 and then again in Windows Server 2012 R2. Unlike previous versions, Integration Services are now installed by default in Windows Server 2012 and later.<\/p>\n<p>In Hyper-V, you can double-click a virtual image to open what is called a Virtual Machine Connection (VMC). When you open a VMC window, you cannot copy a file to or from your host computer to a virtual machine unless you are running Windows Server 2012 R2. In previous versions of Hyper-V, a Hyper-V administrator may have needed to shut down a virtual machine to copy files to it. In Window Server 2012 R2, Microsoft added a Hyper-V Integration Service called Guest Service which allows the Hyper-V administrator to copy files to a running virtual machine without using a network connection. Microsoft also added a Windows PowerShell cmdlet called <strong>Copy-VMFile<\/strong> for this new feature.<\/p>\n<p><span style=\"color: #000000;\"><strong>Guest Services<\/strong><\/span><\/p>\n<p>When you update the Integration Services on a virtual machine, it adds the Guest Services to the list of integration services that were previously available. Guest Services copy files across the Hyper-V Virtual Machine Bus (VMBus), rather than using virtual network switch connections and shared folders to transfer files into each Virtual Machine. Guest Services are extremely useful in isolated environments, such as development and training. They are also useful for servers in the DMZ (Web, FTP servers, etc.). As a Microsoft Certified Trainer (MCT), I often need my students to copy files between their host and the guest Virtual Machine. In an isolated training environment, I had to go through a lot of hoops to give my students such an ability. With Guest Services this is no longer an issue.<\/p>\n<p>After you have installed Guest Services, you can use Copy-VMFile PowerShell cmdlet to copy files between a host and the Virtual Machines. You cannot, however, copy and paste files like you do in a Remote Desktop Connection session.<\/p>\n<p><span style=\"color: #000000;\"><strong>Enhanced Session Mode<\/strong><\/span><\/p>\n<p>The enhanced session mode in Windows Server 2012 R2 allows Virtual Machine Connection in Hyper-V to redirect local resources in a Virtual Machine Connection session. In previous versions of Hyper-V, Virtual Machine Connection allowed redirection of only the virtual machine screen, keyboard, and mouse with limited copy functionality. As a workaround, administrators had to initiate a remote desktop connection session. Now any of the following local resources can be redirected when using Virtual Machine Connection.<\/p>\n<ul>\n<li>Display configuration<\/li>\n<li>Audio<\/li>\n<li>Printers<\/li>\n<li>Clipboard<\/li>\n<li>Smart cards<\/li>\n<li>Drives<\/li>\n<li>USB devices<\/li>\n<li>Supported Plug and Play devices<\/li>\n<\/ul>\n<p><strong>NOTE<\/strong>: Currently only Windows Server 2012 R2 and Windows 8.1 guest operating systems support the enhanced session mode connections.<\/p>\n<p><span style=\"color: #000000;\"><strong>Updating Integration Services<\/strong><\/span><\/p>\n<p>If you imported a virtual machine that was created in Windows Server 2008 into Windows Server 2012 or Windows Server 2012 R2, you will notice a message in Hyper-V console on the Summary tab indicating that the integration services require an update, as shown below.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/IntegSrvcsUpdReq.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4285\" alt=\"IntegSrvcsUpdReq\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/IntegSrvcsUpdReq.png\" width=\"190\" height=\"79\" \/><\/a><\/p>\n<p>Here&#8217;s the procedure for updating the Integration Services in Windows Server 2012 R2.<\/p>\n<ol>\n<li>Double-click the virtual machine in the Hyper-V console to open the Virtual Machine Console window. You must be in this console, not connected to the virtual machine using Remote Desktop Connection or any other method.<\/li>\n<li>On the Action menu click Install Integration Services Setup Disk. This will attach an ISO image called\u00a0vmguest.iso to the DVD drive so you can install the software.\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade01.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4286\" alt=\"Hyper-V_IS_Upgrade01\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade01.png\" width=\"299\" height=\"248\" \/><\/a><\/li>\n<li>Logon to the virtual machine that requires the Integration Services update. You may use either the Virtual Machine Connection or a Remote Desktop Connection for this step.<\/li>\n<li>Open File Explorer (formerly called Windows Explorer).<\/li>\n<li>Notice the DVD Drive has loaded the Integration Services Setup disk.\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade02.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4287\" alt=\"Hyper-V_IS_Upgrade02\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade02-300x117.png\" width=\"300\" height=\"117\" \/><\/a><\/li>\n<li>Right-click the DVD drive and select Install Hyper-V Integration Services.\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade03.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4288\" alt=\"Hyper-V_IS_Upgrade03\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade03-300x198.png\" width=\"300\" height=\"198\" \/><\/a><\/li>\n<li>Click OK to upgrade the previous version of Integration Services.\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade04.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4289\" alt=\"Hyper-V_IS_Upgrade04\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade04-300x89.png\" width=\"300\" height=\"89\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade04-300x89.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade04.png 491w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>Click Yes to restart the server.\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade05.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4290\" alt=\"Hyper-V_IS_Upgrade05\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade05-300x96.png\" width=\"300\" height=\"96\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade05-300x96.png 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade05.png 490w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/li>\n<li>In the Hyper-V console, right-click the virtual machine that required the update and select Settings. Notice there is a new option in the Integration Services section called Guest services. Select the Guest services box and click OK.\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade06.png\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-4291\" alt=\"Hyper-V_IS_Upgrade06\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2013\/12\/Hyper-V_IS_Upgrade06-300x205.png\" width=\"300\" height=\"205\" \/><\/a><\/li>\n<li>Now you should be able to copy files back and forth between a VMC and other computers on your local network.<\/li>\n<\/ol>\n<p><span style=\"color: #000000;\"><strong>WARNING!<\/strong> <\/span><em>The Integration Services are configured individually for each virtual machine. Therefore, once you have updated the Integration Services, you need to enable the Guest Services for each virtual machine manually. Unless you use PowerShell to enable the feature on multiple virtual machines.<\/em><\/p>\n<p><span style=\"color: #000000;\"><strong>PowerShell Cmdlets for Managing Guest Services<\/strong><\/span><\/p>\n<p>Here are some PowerShell cmdlets that you can use to manage Guest Services in Windows Server 2012 R2 Hyper-V.<\/p>\n<p>To enable Guest Services on a Virtual Machine.<\/p>\n<p style=\"padding-left: 30px;\"><strong>Get-VM \u2013Name VM_NAME | Enable-VMIntegrationService -Name &#8220;Guest Service Interface&#8221;<\/strong><\/p>\n<p>To verify Guest Services are running on a Virtual Machine.<\/p>\n<p style=\"padding-left: 30px;\"><strong>Get-Service -ComputerName <em>VM_NAME<\/em> \u2013DisplayName \u201cHyper-V Guest Service Interface\u201d<\/strong><\/p>\n<p>To enable Guest Services on all the Virtual Machines on a host use this command.<\/p>\n<p style=\"padding-left: 30px;\"><strong>Get-VM | Enable-VMIntegrationService -Name &#8220;Guest Service Interface&#8221;<\/strong><\/p>\n<p>To verify that the Guest Services are enabled on all the Virtual Machines, use this command.<\/p>\n<p style=\"padding-left: 30px;\"><strong>Get-VM | Get-VMIntegrationService<\/strong><\/p>\n<p>To disable Guest Services in each Virtual Machine.<\/p>\n<p style=\"padding-left: 30px;\"><strong>Get-VM | Disable-VMIntegrationService -Name &#8220;Guest Service Interface&#8221;<\/strong><\/p>\n<p>To copy file from a host to all the Virtual Machines use the <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/dn464282.aspx\">Copy-VMFile<\/a> cmdlet. The following example copies the file \u201ctest.txt\u201d from the host operating system into the guest operating system of the virtual machine \u201cTest VM\u201d. It will create the directory \u201cC:\\Temp\u201d inside the guest operating system if it doesn&#8217;t exist already.<\/p>\n<p style=\"padding-left: 30px;\"><strong>Copy-VMFile &#8220;Test VM&#8221; -SourcePath \u201cD:\\Test.txt\u201d -DestinationPath &#8220;C:\\Temp\\Test.txt&#8221; -CreateFullPath -FileSource Host<\/strong><\/p>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a92013 Zubair Alexander. All rights reserved.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft has made several enhancements to Hyper-V in Windows Serer 2012 and then again in Windows Server 2012 R2. Unlike previous versions, Integration Services are now installed by default in Windows Server 2012 and later. In Hyper-V, you can double-click a virtual image to open what is called a Virtual Machine Connection (VMC). When you [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[43,11,46,65],"tags":[],"class_list":["post-4284","post","type-post","status-publish","format-standard","hentry","category-articles","category-tips-tricks","category-virtualization","category-windows-2012"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/4284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=4284"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/4284\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=4284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=4284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=4284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}