Keeping Hyper-V VM integration services up-to-date

If you’ve enabled the Hyper-V role on a Windows 2012 server and if you host Windows 2008 R2 virtual machines, you should read the following articles about:

You may wonder why it may be a good idea of enabling VM integration services and keeping it up-to-date.
Well, there’s at least an excellent reason if you plan to use the new Replica feature of Hyper-V on windows server 2012:
VM integration services and replica

On a fresh installation of a virtual machines running Windows 2008 R2, I get the following:
VMintegration before

The full ‘StatusDescription’ states that:

{OK, The protocol version of the component installed in the virtual machine does not
match the version expected by the hosting system}

# Load the ISO containing the latest VMintegration package                        
Get-VMDVDdrive -VMName HCN |             
 Set-VMDvdDrive -Path C:\Windows\system32\vmguest.iso                        
                        
# Check that the ISO file has been attached                        
Get-VMDvdDrive -VMName HCN                        
                        
@"
 Now, inside the VM, you need to runn setup.exe located on the DVD drive

 & reboot the VM at the end            
"@            
                        
# Unload the ISO file from the DVD drive                        
Get-VM -Name HCN | Get-VMDvdDrive |             
 Set-VMDvdDrive -Path $null

You can see the result
VMintegration afterward

Of course, you can try to automate it, even if I don’t recommend it as it depends on:

    • the network configuration between the host and the VM
    • the firewall configuration of the VM
    • whether both the host and VM are members of the same domain

You can still have a look to the following links for this purpose:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s