Windows Server

Hyper-V host maintenance mode tips and tricks

One of virtualization's best features is that it can easily perform host maintenance. Learn how Hyper-V works and when to use it.

Many Hyper-V and vSphere terms are similar and easy to figure out regardless of your background (mine is primarily in VMware products). One such concept is host maintenance mode, which requires System Center Virtual Machine Manager (SCVMM) to be in place because it is not supported on standalone hosts using Hyper-V Manager. The basic premise of Hyper-V maintenance mode is to remove all running (and powered off) virtual machines from the host. Hyper-V host maintenance mode is excluded from new PRO ratings that will aid in future placement or other migration options.

Selecting a host to put in maintenance mode is quite easy via a right-click on the host in question. Figure A shows the quick menu that appears. Figure A

Click the image to enlarge.
The option to do a live migration is much more attractive for any virtual machines running on the host. Once the migrations are launched to the host, the tasks are underway and can be viewed in the jobs window within the SCVMM console. The host going into maintenance mode is shown in Figure B. Figure B

Click the image to enlarge.

Entering maintenance mode is painless, and from there, you can do work on the source host. In the example above, a failover cluster leveraging Clustered Shared Volumes (CSV) allows the virtual machines to reside on a shared storage resource yet have a local path. The CSV path is c:\ClusterStorage\Volume1 by default.

For me, the clear use case for Hyper-V host maintenance mode is Windows Updates. Though you can use the Hyper-V "only" operating system (which is, in my opinion, just a further stripped down core installation that permits the Hyper-V role), I think we are better off with a full installation of Windows. This is specifically for troubleshooting reasons. In both cases, the Hyper-V server will need Windows Updates applied.

Have you used Hyper-V host maintenance mode? If so, why do you use it? Share your comments in the discussion.

About

Rick Vanover is a software strategy specialist for Veeam Software, based in Columbus, Ohio. Rick has years of IT experience and focuses on virtualization, Windows-based server administration, and system hardware.

3 comments
DavidKnox
DavidKnox

Hello Has anybody in the community experienced an issue when a Hyper V host (2K8R2 core) is in MM but randomly accepts live VM's? We have experienced this over the past few weeks.

birumut
birumut

Great!!! thanks for sharing this information to us! sesli chat sesli sohbet

mzinsmei
mzinsmei

We've used the maintenance mode for our patching process (When the host requires a reboot), as well as when the host needs hardware maintenance (memory upgrade/replacement). Simply shutting down or rebooting the server will normally trigger a migration, but maintenance mode gives you a little more control over where the VMs migrate to.

Editor's Picks