Link to home
Start Free TrialLog in
Avatar of Srinivasa Rao Tumula
Srinivasa Rao TumulaFlag for India

asked on

Hyper-V is not shutting down and showing message as Stopping-Critical

Hi,
I have Windows 2012 R2 standard Server with 2 Hyper-V Virtual machines running. OS installed in the gust machines are windows 2008 R2 standard. when I ever I try to restart any of these VMs I am having the problem at shutdown. The shutdown of VMs never happing and the status in Hyper-v manager shows as Stopping-Critical in service.

I googled for this error but could not find proper solution.
Avatar of Srinivasa Rao Tumula
Srinivasa Rao Tumula
Flag of India image

ASKER

Hi,
This solution worked for me

https://www.experts-exchange.com/questions/28647555/Can't-get-Hyper-V-Windows-2012-STD-VM-out-of-STOPPING-CRITICAL-State.html

Thanks to David Johnson.

I have only one issue that is the restart VM is taking more time (around 10 mints).
Hi,
Now I have strange situation. even though NO network card is installed in VM still I am having the same problem "stooping-critical". will some one please help me to resolve this issue.

Regards
Srinivas.T
Avatar of Lionel MM
Have you check if you have enough disk space allocated to the VM's C- Drive (OS drive) and how about Host RAM do you have enough RAM to allocate to the VMs?
the VMs will stop working if:

 You are out of space on the drive where the guest VMs are hosted.
I would checked that.
Also make sure there are not running on snapshots as this may be causing issue with disk space.
Hi,
Thanks for the response

My server C drive have 223 GB free space and my VM are located in D drive which 3.6 TB in size and 1.7 TB free space is still available in the D drive. The server have 128GB RAM and 53 GB is the current usage of RAM.
I would run a chkdsk on the physical disc as well from inside the virtual machines...
See also for event logs for disc....
Also see the Resource Monitor (from task manager) and inspect the network traffic and especially the throughput on the vhd(x).
Hi,
we purchased this server from DELL recently. Any how I try run the chkdsk on the physical disc but it is asking me to restart the server to complete the process. I can not run the chkdsk on of the VM because it is already in the state of stopping critical and the only way I can start the VM again if I restart the Physical server. if I try to shutdown the other VMs to run the chkdsk they will also go to the same state.
Hi,
can you please help how to check the throughput on the vhd(x).
OK you have enough disk space on the Host but what about on the problem VM does it have enough disk space. And what about RAM usage/availability -- is thee enough RAM to allocate to the VMs. You can run chkdsk with no option first to see if it finds any issues; like chkdsk c:
So I interpret now, that they shut down for several hours now?

Do you see something if you double click the machines in VM Manager? Do they show "Shutdown..." or something.

Do they have NICs again?
What is running on the vhd, to get an imagination what may break to turn them off.
Also without NICs, some services may need a long time to shut down.
Even some programs may react strange, if they don't have internet access.
I remember I guess Exchange 2007, where updates took hours without an internet connection while is takes 5 min with connection.

You can try to copy the vhd(x)s. It may work or may not work.
You need some luck and the help of volume shadow copy, it may work. Just try it. Possible several times.

If you have a copy, you can attach the vhd on the host and can run chkdsk.
Also check at this pint the free space on the vhd as lionelmm said.
If there are no errors, the virtual disc it fine so far and the problem is somewhere else.

Give the machines some time to shut down now, but if it takes more than a day, I do not have so much hope.

If the vhd copy works and the volume is fine, you even may try create a new virtual machine and attach this vhd to the new machine to see if it starts. If it works, you may just skip he old VM completely. (Note, you should not run two VMs with the same disc due to supplicate names).

If the disc are fine, you should anyway test the physical disc as far as you can. Sure you have to wait until the drive is free, but earlier or later you will. If the physical disc is damaged, you will run into the same issues. What you can test right now is the throughput onto the disk.
Just copy a larger file from  another physical drive to your harddrive and see the data transfer.

You can also download some disc speed test programs
http://crystalmark.info/software/CrystalDiskMark/index-e.html

Even interesting, in Task Manager / Resource Manager you can see the actual throughput from your virtual machines to the physical disc. This is to get an imagination, if there is something going on or the machines are frozen.

On 2012 HyperV not that you should have static vhdx discs for OS drives rather than vhd or dynamic disc. I had some issues with dynamic vhds on HyperV 2012.
Oh, before you try to shutdown the other machine, you may try to logon and to see free disc space as lionelmm stated as well as you should inspect the event log.
Hi,
One setting change allowed me to shutdown the VMs with out issue.

Before applying the settings I have updated the LAN card drivers to the latest available drivers. But still this does not help me much.

The only setting change that worked for me is
In virtual switch configuration I have unchecked the bellow check box for the NIC cards I assigned for the VMs

The  option I unchecked is "Allow management operating system to share this network adapter"

I have 4 NICs cards so I can spare 2 or 3 NICs for VMs. But what will happen if we have only one NIC card?
You can still share 1 NIC card although it is not recommended.
ASKER CERTIFIED SOLUTION
Avatar of Bembi
Bembi
Flag of Germany 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
Thanks for Solution