在Hyper-V(Hyper-V)中关闭虚拟机时,如果您收到 应用程序在尝试更改状态(The application encountered an error while attempting to change the state )错误时遇到错误,您可以通过以下方法修复它。当一个动作在后台运行时出现,并且您在两者之间单击 “关闭” (Turn Off )按钮。以下是如何绕过此错误并关闭Windows 11/10中的虚拟机。
The application encountered an error while attempting to change the state of ‘[virtual-machine-name]’.
Failed to stop.
‘Virtual-machine-name’ failed to stop: The device is not ready for use. (0x800710DF). (Virtual Machine ID unique-numbers)
如果您单击 关闭 (Close )按钮并尝试再次将其关闭,您将收到相同的错误。那是因为有些服务在后台运行,在这些服务关闭之前,虚拟机是无法关闭的。除了重新启动计算机外,还有两种方法可以解决此问题。一,您可以使用Task Manager关闭Hyper-V 管理(Hyper-V Manager)器。二,您可以从“服务 (Services )”面板停止所有后台服务 。
应用程序在尝试更改状态时遇到错误
要修复应用程序在尝试更改其状态时遇到错误,请按照下列步骤操作:
- 使用任务管理器(Task Manager)结束Hyper-V 管理器任务(Hyper-V Manager)
- 停止所有 Hyper-V 服务
要了解有关这些步骤的更多信息,请继续阅读。
修复 设备未准备好使用 (0x800710DF)虚拟(Virtual)机错误
1]使用任务管理器(Task Manager)结束Hyper-V管理器任务(End Hyper-V Manager)
每当您启动程序时,它都会出现在任务管理器(Task Manager)中。您可以使用此实用程序结束Windows 11/10Hyper-V 管理器(Hyper-V Manager)任务。打开任务管理器(open Task Manager)有多种方式 ,但是你可以按 Win+X 并选择 任务管理器 (Task Manager )选项来快速打开它。之后,找到 Microsoft Management Console 并将其展开以选择 Hyper-V Manager。
接下来,单击 结束任务 (End task )按钮。
现在,您可以像往常一样更改Hyper-V 管理器中的设置。(Hyper-V Manager)
2]停止所有Hyper-V服务
Hyper-V Manager在后台运行了几个服务,每个服务都负责某事或其他事情。因此,如果您停止这些服务,您可以关闭Hyper-V 管理器(Hyper-V Manager)或关闭无响应的虚拟机。为此,请执行以下操作:
- 在任务栏(Taskbar)搜索框中搜索 服务(services),然后单击搜索结果。
- 找出所有与Hyper-V相关的服务。
- 双击它们中的每一个。
- 单击 停止 (Stop )按钮。
- 单击 确定(OK) 按钮。
- 关闭Hyper-V 管理器(Hyper-V Manager)和虚拟机。
为了您的信息,您必须寻找这些服务:
- 高压主机服务
- Hyper-V 数据交换服务
- Hyper-V 访客服务接口
- Hyper-V 来宾关闭服务
- Hyper-V 心跳服务
- Hyper-V 主机计算机服务
- Hyper-V PowerShell 直接服务
- Hyper-V远程桌面虚拟化服务(Remote Desktop Virtualization Service)
- Hyper-V时间同步服务(Time Synchronization Service)
- Hyper-V 虚拟机管理
- Hyper-V 卷影复制请求程序(Shadow Copy Requestor)
为什么我不能关闭 Hyper-V?
由于大量服务和进程一直在后台运行,如果尚未关闭,则无法关闭Hyper-V虚拟机。要关闭Hyper-V虚拟机,您必须使用上述方法关闭所有在后台连续运行的正在运行的服务。
阅读(Read):Hyper-V 虚拟机启动很慢(Hyper-V virtual machine very slow to start)?
如何强制关闭Hyper-V VM ?
如果您无法关闭Hyper-V虚拟机并想要强制关闭它,则必须从“ 服务 (Services )”面板停止所有服务。如果您不想经历那个漫长的过程,您可以打开任务管理器(Task Manager)并结束Hyper-V 管理器(Hyper-V Manager)任务。
如何强制退出虚拟机?
Windows 10/11上退出虚拟机和Hyper-V 管理器(Hyper-V Manager)是一样的。您必须使用任务管理器(Task Manager)强制退出Hyper-V中的虚拟机。但是,如果 由于任何原因无法打开任务管理器,则重新启动计算机是唯一的解决方案。
阅读: (Read: )Hyper-V 中的安全设置显示为灰色。(Security settings are grayed out in Hyper-V.)
The application encountered an error while attempting to change the state
While turning off a virtual machine in Hyper-V, if you are getting The application encountered an error while attempting to change the state error, here is how you can fix it. It appears when an action is running in the background, and you are clicking the Turn Off button in between. Here is how you can bypass this error and shut down a virtual machine in Windows 11/10.
The application encountered an error while attempting to change the state of ‘[virtual-machine-name]’.
Failed to stop.
‘Virtual-machine-name’ failed to stop: The device is not ready for use. (0x800710DF). (Virtual Machine ID unique-numbers)
If you click the Close button and try to shut it down again, you will get the same error. That is because some services are running in the background, and the virtual machine cannot be shut down until those services are closed. Apart from restarting your computer, there are two methods to get rid of this problem. One, you can close the Hyper-V Manager using Task Manager. Two, you can stop all the background services from the Services panel.
The application encountered an error while attempting to change the state of
To fix The application encountered an error while attempting to change the state of, follow these steps:
- End Hyper-V Manager task using Task Manager
- Stop all Hyper-V services
To learn more about these steps, continue reading.
Fix The device is not ready for use (0x800710DF) Virtual machine error
1] End Hyper-V Manager task using Task Manager
Whenever you start a program, it appears in the Task Manager. You can use this utility to end the Hyper-V Manager task in Windows 11/10. There are multiple ways to open Task Manager, but you can press Win+X and select the Task Manager option to open it quickly. After that, find out Microsoft Management Console and expand it to select Hyper-V Manager.
Next, click the End task button.
Now, you can change settings in Hyper-V Manager as usual.
2] Stop all Hyper-V services
Several services run in the background for Hyper-V Manager, and each one of them is responsible for something or other. Therefore, if you stop those services, you can close Hyper-V Manager or shut down the unresponsive virtual machine. For that, do the following:
- Search for services in the Taskbar search box and click on the search result.
- Find out all the Hyper-V related services.
- Double-click on each of them.
- Click the Stop button.
- Click on the OK button.
- Close the Hyper-V Manager and virtual machine.
For your information, you have to look for these services:
- HV Host Service
- Hyper-V Data Exchange Service
- Hyper-V Guest Service Interface
- Hyper-V Guest Shutdown Service
- Hyper-V Heartbeat Service
- Hyper-V Host Computer Service
- Hyper-V PowerShell Direct Service
- Hyper-V Remote Desktop Virtualization Service
- Hyper-V Time Synchronization Service
- Hyper-V Virtual Machine Management
- Hyper-V Volume Shadow Copy Requestor
Why can’t I turn off Hyper-V?
As numerous services and processes run in the background all the time, if those are not closed yet, you cannot turn off a Hyper-V virtual machine. To turn off Hyper-V virtual machine, you have to close all the running services that run continuously in the background using the method mentioned above.
Read: Hyper-V virtual machine very slow to start?
How do I force a Hyper-V VM to shut down?
If you cannot shut down Hyper-V virtual machine and want to force shut down it, you have to stop all the services from the Services panel. If you don’t want to go through that lengthy process, you can open Task Manager and end the Hyper-V Manager task.
How do you force quit a virtual machine?
Quitting a virtual machine and Hyper-V Manager is the same thing on Windows 10/11. You have to use the Task Manager to force quit a virtual machine in Hyper-V. However, if you are unable to open Task Manager due to any reason, restarting your computer is the only solution.
Read: Security settings are grayed out in Hyper-V.