Rebooting Hyper-V host

Is there a way to reboot a Hyper-V host without shutting down the VMs. My host has 4 WMs and I want to avoid shutting them down every time I do windows updates on the host or other maintenance.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

timb551IT ManagerCommented:

When the host server reboots all the services that control the VMs are also restarted so there would be no way to keep them running.

Its like asking if the VMs can stay running with the host server turned off.

GerhardpetAuthor Commented:
Is there anyway then to run a script that would first automatically shutdown the VMs, then the host and reboot the VMs automatically after the host is back up?
Peter HutchisonSenior Network Systems SpecialistCommented:
You really need to configure Hyper-V as a Cluster then you can migrate VMs between hosts, while they are still running, thus allowing to reboot the affected Hyper-V host. Otherwise, if standalone, you must shutdown the VMs first before rebooting the host server.
SolarWinds® VoIP and Network Quality Manager(VNQM)

WAN and VoIP monitoring tools that can help with troubleshooting via an intuitive web interface. Review quality of service data, including jitter, latency, packet loss, and MOS. Troubleshoot call performance and correlate call issues with WAN performance for Cisco and Avaya calls

timb551IT ManagerCommented:
As far as i am aware when you do a scheduled reboot of the host it will automatically cleanly power down the VMs and then reboot and power them back on.
The best practice is to turn off every VM before any update of the VM-Host. Also is a good practice to update the VMs prior to host-vm. Also is a good practice to check if updating the vm-host w'ont have a negative influence of VMs functioning - updating drivers on host-vm can have a bad behavior of VMs virtual hardware
GerhardpetAuthor Commented:
How and where would I schedule the reboot?
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
You will need to shutdown the VMs, to reboot the host.

This is my Live Migration, is beneficially, as you can move you Live VMs to another host, and then reboot the host, and patch via Windows Updates.
timb551IT ManagerCommented:
You could do 'Save State' which technically means there not turned off (but they are still offline). Other then that, the only way would be to live migrate to another host, patch and move back.
There are two solutions you can implement.  The first and best solution is creating a cluster with SAN storage.  After you setup your cluster, you need to configure each guest with the High Availability role so that when you reboot the Host server, all the high available guests will roll over to the next host.  You will also be able to do a live migrate to the secondary host.

In 2012 it works flawless.  You can pull the power directly out the host and the guests will rollover, however, in 2008 you will lose the guests but have access to the VHD's on the SAN.

The second option, if you don't have a SAN is to use Hyper-V Replication.  All copies of your guests will be replicated to another host within 30 seconds, 5 minutes, or 15 minutes, whichever you choose.  When you want to shut down the Host you can shut down each VM first then start it up on the next Host then take down the host.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.