Posey's Tips & Tricks

How SP1 for Windows Server 2008 R2 Will Affect Hyper-V

Service Pack 1 (SP1) for Windows Server 2008 R2 was released late last month, and here are some steps to take for those planning to run Microsoft’s Hyper-V virtualization with the new update.

By far the biggest new feature in SP1 for virtualization administrators is the addition of dynamic memory support. Essentially, organizations using Hyper-V will be able to overcommit memory via this dynamic memory capability in a similar manner to what can be done already through VMware solutions. Dynamic memory should allow organizations to increase their virtual machine density without having to purchase additional physical memory for their virtualization hosts.

Although it may be tempting to apply the new service pack right away, it is critically important that you prepare your virtual machines before applying the service pack. Before I tell you how to prepare your virtual machines, I need to warn you that the process can result in a significant amount of down time. It also means giving up any virtual machine snapshots that you may have saved. I will discuss these issues more in a moment.

With that said, the first thing that you must do before you can apply the service pack is to completely shut down every virtual machine that is running on the server. You won't be able to place the virtual machine into a saved state because Windows Server 2008 R2 SP1 uses a different internal mechanism for placing virtual machines into a saved state. This means that if you were to place a virtual machine into a saved state and then apply the service pack, Hyper-V will not recognize the saved state after the upgrade.

Merge Your Snapshots
The next thing that you will have to do is to merge all of your snapshots. When you create a snapshot in Hyper-V, what really happens behind the scenes is that Hyper-V stops writing data to the corresponding virtual hard drive file and begins writing data to a differencing disk instead. That way, if you need to revert the machine to a previous state you can get rid of the snapshot and go back to using your original virtual hard drive file, which has been untouched since the time that the snapshot was created.

Although I have not seen a direct statement from Microsoft, it seems that snapshots created under Windows Server 2008 R2 are not compatible with SP1. That being the case, you are going to have to get rid of any snapshots that may exist before you apply the service pack. In most cases this will mean merging snapshots.

When you merge a snapshot, Windows takes the differencing disk that is associated with the snapshot and writes the differencing data to the previously untouched virtual hard drive file. This brings the virtual hard drive file up to a current state and eliminates the differencing disk. Depending on how much data has accumulated in the differencing file since the time that the snapshot was created, the merge process can take a very long time to complete.

While I'm sure many will be hesitant to apply the service pack because they like having the safety net that their existing snapshots provide, there is one benefit to merging your snapshots. Because of the way that Hyper-V uses differencing disks, the snapshot thing tends to kill virtual machine performance. However, after you merge the snapshots, you will likely notice a boost in performance, especially if you have multiple snapshots for each virtual machine.

If you don't want to merge your snapshots, then your other option is to delete them. As I said earlier, deleting a snapshot reverts the virtual machine to a previous state.

Apply the Service Pack
Once you have verified that all of the virtual machines are stopped and that all of the snapshots have either been merged or deleted, it is time to apply the service pack.

After the service pack has been applied, you still have a little bit of work to do. SP1 uses different drivers within the integration services than were used in the Windows Server 2008 R2 version of Hyper-V. As such, you will have to reapply the integration services to every virtual machine before your virtual machines will function properly. Most notably, the virtual machines will not be able to connect to the network until the integration services have been updated.

Of course if a virtual machine is running Windows Server 2008 R2, then you can achieve the same end result by applying SP1 to the virtual machine.

Conclusion
SP1 for Windows Server 2008 R2 has been long anticipated because of its memory sharing capabilities. However, organizations wanting to run Hyper-V with the new service pack will have a lot of planning to do before deploying it.

About the Author

Brien Posey is a seven time Microsoft MVP with over two decades of IT experience. As a freelance writer, Posey has written many thousands of articles and written or contributed to several dozen books on a wide variety of IT topics. Prior to going freelance, Posey was a CIO for a national chain of hospitals and healthcare facilities. He has also served as a network administrator for some of the country's largest insurance companies and for the Department of Defense at Fort Knox. When He isn't busy writing, Brien Posey enjoys exotic travel, scuba diving, and racing his Cigarette boat. You can visit his personal Web site at: www.brienposey.com.

comments powered by Disqus

Reader Comments:

Fri, May 11, 2012

Nice Sever Time LMAO !!! It's now a week earlier than it is... Nice.

Fri, May 11, 2012

When installing 2008 R2 SP1 virtual machines to an SP1 host, inserting the integration services setup disk still prompts to upgrade the drivers. Post setup of the integration services and subsequent running of the disk again prompts to upgrade. Checking the driver version of any virtual drivers shows 6.1.7601.17514. This is to confirm that installing an SP1 VM puts the drivers at the same version that the integration services does. I did not see any issues (as stated above) where the machines were isolated until upgraded. This applies to machines manually moved or when using SCVMM. No differences or issues noted.

Mon, Nov 28, 2011 Rajagopal Chennai, India

Before install SP1 Auto start option disabled in VM settings and turned off all VM's in my host and installed SP1. After reboot manuall started all VM's. No issue for this steps.

Thu, Mar 10, 2011

I installed Sp1 to my 2008 R2 VM's first. Then installed it to the host. Rebooted the host and all VM's came back up straight away.

Mon, Mar 7, 2011 Mike Porach Colorado Springs

As stated above, your virtual machines will NOT be isolated from the network if the tools are not updated. I did not update a single one of my virtuals and they all hooked right back up without a hitch. The virtuals consisted of 2008 R2 and Wink3 servers and also one home server instance. I wish Brien would explain where he deducted that conclusion from.

Mon, Mar 7, 2011 James Hevener - vaITpros.com Richmond, Va

If you are using SC VMM - System Center Virtual Machine Manager - you need to wait until the sp comes out for that product before upgrading your hyper-v servers.

Fri, Mar 4, 2011

My virtual machines connected to the network with no issues after applying SP1 to the host. This is without updating the virtual machine to the SP1 version of integration componets. The virtual machines do not benefit from the features/optimizations of SP1 IC's, but they do still work without applying them. You might want to test that out. Microsoft is not going to isolate your virtual machines from the network because you update the host with a SP. If you don't beleive me, call Microsoft directly on this.

Add Your Comment Now:

Your Name:(optional)
Your Email:(optional)
Your Location:(optional)
Comment:
Please type the letters/numbers you see above

Redmond Tech Watch

Sign up for our newsletter.

I agree to this site's Privacy Policy.