Link to home
Start Free TrialLog in
Avatar of Gerhardpet
GerhardpetFlag for Canada

asked on

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.
Avatar of timb551
timb551
Flag of United Kingdom of Great Britain and Northern Ireland image

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
Avatar of Gerhardpet

ASKER

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?
Avatar of Peter Hutchison
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.
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
How and where would I schedule the reboot?
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.
Avatar of albatros99
albatros99

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.
ASKER CERTIFIED SOLUTION
Avatar of Coolie Sheppard
Coolie Sheppard
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial