We help IT Professionals succeed at work.
Troubleshooting Question

Shutting down VMs before a reboot of a server

Bert2005
Bert2005 asked
on
59 Views
Last Modified: 2020-11-07
On my Hyper-V server, there is Hyper-V manager as you would expect which shows the two VMs. If I need to reboot the server for whatever reason, it is good to not have the VMs running at the time. Do I need to open the VMs and then shut them off from there? Or can I just "Shut Down" the VM from within the manager?

If so, if I use Shut Down it won't work, and it is supposed to happen that way?  So, I end up having to use the Turn Off, which gives me an error message.

Any advice?
Comment
Watch Question

Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
We answered this question recently here

It should initiate a Save state in the Guest VM and data should be saved.

Make sure you have Integration Tools in the Guest VM for this function to be done correctly.

To be honest with you if the data is that important I would recommend shutting down the VMs correctly, rather than just hibernating the host!


What happens to a Hyper-V environment when shutting down or hibernate the Host computer

Author

Commented:
That is my question. How do I shut them down correctly?
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
On my Hyper-V server, there is Hyper-V manager as you would expect which shows the two VMs. If I need to reboot the server for whatever reason, it is good to not have the VMs running at the time. Do I need to open the VMs and then shut them off from there? Or can I just "Shut Down" the VM from within the manager?

It does not really matter its' a personally choice.

If so, if I use Shut Down it won't work, and it is supposed to happen that way?  So, I end up having to use the Turn Off, which gives me an error message.
Any advice?

It should save state, otherwise the VMs will just be ended.


Personally, I like to shut them down first and then power off the host.

But as you will see from that Answer, others have stated if you setup the VMs correctly, they'll shutdown and save state when your shutdown the host.

It's your choice.

Author

Commented:
I would like to shut them down first. But, that doesn't work. I have to turn them off which seems more like a hard shutdown. Thanks for your time.
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
I would like to shut them down first. But, that doesn't work.

what does not work, when you shut them down first ?
Network and Security Engineer
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Shutting down RDS.PNG

This is the error message Andrew.

@Elie Mater (thanks) What do you mean by shutting down from within the OS? You mean using connect, opening the VM and shutting it down from the Start button?
Elie MatarNetwork and Security Engineer
CERTIFIED EXPERT

Commented:
@bert2005 exactly as you're shutting down your personal PC.

so both work properly

Author

Commented:
If I stay on top of updates (I update the VMs, but not so much the Hyper-V), there are rarely any to download and update. But, when I connect to a VM to shut down, it goes through this whole updating process which lasts for about 20 minutes along with the other things it does.

Thanks for your help.
Elie MatarNetwork and Security Engineer
CERTIFIED EXPERT

Commented:
Why don't you schedule your update at a specific time weekly for example?

its better to have update installation scheduled at night so you don't interrupt the service during working hours.

Best Regards,

Author

Commented:
True. Good point.
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
do you have Integration tools installed?

what does see details provide any additional info

If you login to the Guest OS, and issue a shutdown does it shutdown correctly ?

The "Shutdown VM" option, will issue and instruct a shutdown to the Guest OS Integration Tools, but any process can stop a machine shutting down. e.g. Windows Update.

Author

Commented:
I am not sure on the tools. I will have to look. If I log into the VM, it shuts down correctly. I almost need to get a graphics card, as the VM can take up the entire screen, although I don't really like screwing around with a server just to add a video card.
I don't mind the process. It just takes a while to do because of what the VM has to do. Maybe I can do it via iDrac. It's not something I need to do all the time, nor should I.

I still think the VMs would run faster on SSDs. Sorry I just threw that in.
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
Is this a production Hyper-V server ?

Author

Commented:
Where are the Integration Tools?

Author

Commented:
Yes, it is. Very much so.
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
What is the OS ? Modern OS they are incorporated.


What is the error see details ?

Some EE Articles you may want to read about Hyper-V installations

Philip Edler has two very thorough EE articles on all things Hyper-V:

Some Hyper-V Hardware and Software Best Practices
Practical Hyper-V Performance Expectations

and if you look at the first Post, a Previous question He recommends how to setup VMs for shutdown.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Integration tools..PNG just shows Hyper-V will offer those features to the guest, it does not show that the guest has the services installed on the VM.

Author

Commented:
Shutting down RDS.PNG 
Hyper-v Windows Server 2019 Standard
Guests """ 2016
I looked at those, but I skimmed them. Will read verbatim. :-)

Author

Commented:
Can you tell me how to see if they are installed on the VMs. Sorry. Newbie + here.
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
Your guest will have them installed already.

So I would suggest settings your VMs as demonstrated. (in the question linked and answered).

If they do not shutdown then, there is an issue with the Guest OS.
Philip ElderTechnical Architect - HA/Compute/Storage
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
I will score this today. Sorry. Got by me.
 Also, a little different subject, but when ESS is opened, I can click the icon at top left to do ALT + CTRL + Delete. Won't work on RDS. Generally, I have no way of logging into it. Sounds like something one of the experts said. Maybe just something wrong with that VM.