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.
LVL 1
GerhardpetAsked:
Who is Participating?
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.

timb551Commented:
Hi

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.

cheers
0
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?
0
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.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

timb551Commented:
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.
0
matrix8086Commented:
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
0
GerhardpetAuthor Commented:
How and where would I schedule the reboot?
0
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.
0
timb551Commented:
0
albatros99Commented:
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.
0
cshepfamCommented:
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.
0

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
Hyper-V

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.