[Fix] “Operation Inconsistent with Current State” VMware Error
Have you ever got the “Operation inconsistent with current state” VMware error when you resume a suspended virtual machine on VMware Workstation, Fusion, or Player? What causes it and how to solve it? This article will answer these questions for you.
By Crystal / Updated on December 2, 2022
Share this:
Table of Contents
- Case: The “Operation inconsistent with current state” VMware error
- Solution to the “Operation inconsistent with current state” VMware error
- Backup important file on Workstation VM to avoid accidental loss
- Summary
Case: The “Operation inconsistent with current state” VMware error
Yesterday, I pressed the Suspend button of my VMware, which runs on Windows. This morning, when I press the Run button, I get the error message “Operation inconsistent with current state” mentioned in the header. My VMware version is Workstation 15 Pro 15.5.2 build 15785246. Between Suspend and Run, the PC has been rebooted. I am using Windows 10 Pro 10.0.18362 Build 18362. I am running Ubuntu inside the VMware.
I would like to hear your opinion as to what I should do?
— Question from stackoverflow.com
VMware Workstation is a popular type-2 hypervisor designed for end users and small businesses or organizations. It is a fairly straightforward and simple-to-use application that helps you to deploy many operating systems workloads and applications on a single server.
Many users create virtual machines (VMs) on VMware Workstation as lab environments to test software, updates, or even virus. And that makes for frequent crashes or errors. The “Operation inconsistent with current state” VMware error is one of them.

Have you also got the error? It occurs not only on VMware Workstation, but also on VMware Fusion or Player. So, what causes it and how to solve it? This article will provide the solution for you.
Solution to the “Operation inconsistent with current state” VMware error
The VMware “Operation inconsistent with current state” error often occurs when you start a suspended virtual machine on VMware Workstation, Fusion, or Player. In your current session, the virtual machine is suspended or closed, however, it remains in an open state in the VM services. This issue may be caused by improperly or forcibly shutting down the virtual machine. And therefore, resulting in the inconsistency.
The solution to the VMware Workstation “Operation inconsistent with current state” error is actually very simple. You only need to shut down the virtual machine and the VMware hypervisor properly, and then start the hypervisor and virtual machine as administrator.

Backup important file on Workstation VM to avoid accidental loss
You may get many unexpected errors while using virtual machines. If a virtual machine is not working properly, you may lose your important data on that VM. To prevent this issue from happening, it is necessary to back up the important data on these VMs.
By installing a backup agent on the guest operating system (OS) of the workstation virtual machine, you can backup it as it is a physical machine. Which means you can exclude insignificant applications and data from backups to reduce the size, and perform granular recovery when you only need some specific files urgently.
Furthermore, in this way you can also migrate all data on one virtual or physical machine to another, for example, convert VMware to Hyper-V or vice versa.
To backup VMware Workstation VMs more efficiently, here I will introduce you a professional backup software, AOMEI Centralized Backupper which can back up all windows systems.
Here is a 30-day free trial for you:
Secure Download
To properly using AOMEI Centralized Backupper to back up virtual or physical machines of multiple endpoints, you need follow these steps:
Attach an IP (better static) to the virtual machine you want to back up.
1. Launch AOMEI Centralized Backupper, and install ACB Agent remotely or manually on virtual or physical machines by clicking Computers > Install Client Program.

For the computers with client programs installed manually, you still need to Request Control over them for the further operation.
2. Click Computers > Uncontrolled Computers to find the correct IP of virtual or physical machines, then click Request Control on the upper bar. A prompt window will show on their interface, once all permission received you can start to back up them whenever you like.

3. Click Tasks on the upper bar, click New Task and select System Backup to create a new backup task. Follow the 2 steps in the prompt window.

4. Click Add Computers to find the correct IP of the virtual or physical machines you want to backup, you can select multiple of them. click OK.

5. Select a location as the destination path. you can click Add Storage in the prompt window to add a Share or NAS Device as a storage end.

Besides, click Settings you can set Encryption, Compression level, Splitting, Intelligent Sector, and VSS in the prompt window.

6. Click Schedule, you can manage the time and frequency to automatically back up virtual or physical machines.

7. Click Scheme, the oldest backup will be automatically deleted once a new one is created, which is space saving.

8. Then click Start Backup, you can choose Only create this task, or Create and execute the tasks.

Once created, tasks will show on Tasks page separately. You can Edit Backup or Restore by clicking Advanced on the upper right of the task.
Summary
Have you ever got the “Operation inconsistent with current state” VMware error when you resume a suspended virtual machine on VMware Workstation, Fusion, or Player? This issue happens may because the improper way you shut down the virtual machine or the hypervisor. You can try restart the hypervisor as administrator to solve it.
Virtual machines are error-prone. To protect the important data in them, you may need to backup them regularly. In this regard, AOMEI Centralized Backupper is an effective and flexible backup software for granular recovery.
Crystal is an editor from AOMEI Technology. She mainly writes articles about virtual machine. She is a positive young lady likes to share articles with peolpe. Off work she loves travelling and cooking which is wonderful for life.
Related Articles
(Full Guide) Free Virtual Machine Backup for VMware & Hyper-V
Virtual machine backup is a big concept that includes different backup options in different hypervisors which may confuse you. In this article, I will help you pick the right VMware or Hyper-V VM backup solution, and offers a step-by-step guide to backup virtual machine.
How to Convert or Move VMware Workstation VM to ESXi | 3 Ways
If you want to upgrade your environment from VMware Workstation to ESXi, you may also need to move Workstation VM to ESXi server. In this article, I will introduce you 3 methods.
The Selected Virtual Disk Is Incompatible with This Workstation
When using VMware Workstation to install macOS guest operating system on a Windows host machine, you may encounter the error “the selected virtual disk is incompatible with this Workstation”. How to fix it? This article covers 2 solutions to it.
How to Install ESXi 7.0 on VMware Workstation
Many users ask that if it is feasible to install VMware ESXi on desktop PC. Deploying a ESXi 7.0 in PC is affordable than using the dedicated product. Here offers the step-by-step post to install ESXi 7.0 om Workstation.
Free Get AOMEI Cyber Backup Now – Simple & Powerful
133M+ worldwide users 14 years data security experience
- Protect VMware, Hyper-V, Windows PCs & Servers and MSSQL Servers.
- Save backups to local path, network drive / NAS drive.
- Fast and granular recovery to minimize downtime.
Download Freeware
Windows 11/10/8.1/8/7

© 2009-2024 AOMEI. All rights reserved.
VmWare ESXi. Не запускается VM. Attempted operation cannot be performed in the current state.

Иногда не получается запустить виртуальную машину, при попытке запуска появляется ошибка «Failed. The attempted operation cannot be performed in the current state».
В интернете есть статьи и обсуждения этой проблемы, в которых предлагают просто перезапустить гипервизор. Скорее всего это решит проблему, но это не применимо если на хосте есть виртуалки которые нельзя выключать.
В таком случае есть еще один способ:
Нужно просто сделать Unregister этой виртуальной машине, а потом вновь зарегистрировать ее на хосте.
Unregister:
Правой кнопкой кликаем по ВМ, в меню выбираем Unregister.
Register:
Жмем «Create/Register VM»
Выбираем «Register an existing Virtual Machine», жмем Next
Жмем «Select one or more virtual machines, a datastore or a directory»
В появившемся окне открываем папку с вашей VM(обычно совпадает с названием VM в инвентори), и выбираем VMX файл.
После этого виртуалка должна вновь появиться в инвентори хоста. Теперь можно ее запускать, ошибок быть не должно.
VMWare ESXi: Перезапуск зависшей виртуальной машины

09.10.2019

itpro

VMware

комментариев 11
Иногда сталкиваюсь с тем, что определенная виртуальная машина на хосте VMWare ESXi зависает и ее нельзя никаким средствами выключить или перезагрузить из веб-интерфейса клиента vSphere. Перезагружать целиком ESXi сервер из-за одной виртуальной машины – не совсем целесообразно (особенно, если у вас всего один ESXi хост, или оставшиеся сервера в DRS кластере не потянут дополнительной нагрузки в виде виртуальных машин с перезагружаемого сервера). Рассмотрим основные способы принудительной остановки зависшей виртуальной машины в VMWare ESXi.
Если процесс виртуальной машины на сервере ESXi завис, она перестает реагировать на команды Reset / Power Off, и на любое действие выдает одну из ошибок:
-
The attempted operation cannot be performed in the current state ;
В таких случаях вы можете вручную остановить процесс виртуальной машины на хосте ESXi из командной строки ESXi Shell или PowerCLI.
Сначала определите на каком ESXi хосте запушена зависшая виртуальная машина. Для этого в интерфейсе vSphere Client найдите ВМ. Имя хоста, на котором она запущена, указано на вкладке Summary в секции Related Object -> Host.

Щёлкните по имени хоста ESXi. Вам нужно разрешить доступ к нему по протоколу SSH. Перейдите в Configure -> Services -> SSH -> Start.

Теперь вы можете подключиться к этому ESXi хосту через SSH с помощью клиента putty.
Выведем список ВМ, запушенных на хосте ESXi:
esxcli vm process list

Скопируйте идентификатор нужной виртуальной машины (World ID).
Чтобы завершить процесс зависшей виртуальной машинына хосте ESXi используется следующая команда:
esxcli vm process kill —type=[soft,hard,force] —world-id=WorldNumber
Как вы видите, есть три типа завершения процесса ВМ:
- Soft – самый безопасный способ завершить VMX процесс (похож на kill -SIGTERM);
- Hard – немедленное завершение процесса ВМ (kill -9);
- Force – самый жесткий режим завершения процесса, должен использоваться в последнюю очередь, если ничего другое не помогает.
Убедитесь, что для ВМ нет активных заданий по созданию снапшотов, бэкапов, и подобных операций, а у ВМ нет статуса Virtual Machine disks consolidation is needed. Иначе вы можете сломать свою ВМ и ее придется восставливать из бэкапа.
Попробуем мягко остановить ВМ с указанным ID:
esxcli vm process kill —type=soft -w=25089429

ВМ должна выключиться.
Вы можете остановить зависшую виртуальную машину с помощью PowerCLI (это удобно, т.к. при подключении к vCenter вам не нужно искать хост, на котором запушена ВМ и включать SSH доступ). Проверим, что ВМ запушена:
get-vm “web2″ | select name,PowerStates

Принудительно остановите процесс ВМ командой:
stop-vm -kill «web2» -confirm:$false

Также вы можете остановить зависшую виртуальную машину с помощью утилиты ESXTOP.
В SSH сесиии введите команду esxtop, затем нажмите “c” для отображения ресурсов CPU и shift + V, чтобы отображать только процессы вириальных машин

Затем нажмите “f” (выбрать отображаемы поля), “c” (отобразить поле LWID- Leader World Id) и нажмите Enter.

В столбце Name найдите виртуальную машину, которую нужно остановить, и определите номер ее LWID по соответствующему столбцу.
Затем осталось нажать кнопку «k» (kill) и набрать LWID идентфикатор той виртуальной машины, которую нужно принудительно выключить.
Последний способ жёсткого выключения виртуальной машины – воспользоваться утилитой kill. Такой способ позволит остановить не только ВМ, но и все дочерние процессы.
Получим ID родительского процесса ВМ:
kill -9 24288474

После такого “hard reset”, установленная ОС запустится в режиме восстановления. В случае гостевой Windows, скрин будет выглядеть так.

Предыдущая статья Следующая статья
VMware error «Unable to change power state of virtual machine UPS: Operation inconsistent with current state» [closed]
Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 12 months ago .
Yesterday, I pressed the Suspend button of my VMware, which runs on Windows. This morning, when I press the Run button, I get the error message mentioned in the header. My VMware version is Workstation 15 Pro 15.5.2 build 15785246 . Between Suspend and Run, the PC has been rebooted. I am using Windows 10 Pro 10.0.18362 Build 18362 . I am running Ubuntu inside the VMware. I searched the internet, found a post from 2017 that proposed that I run this command:
sudo /usr/bin/vmware-modconfig --console --install-all
Since I am completely new to the subject, and I was only able to find one post about it, I would like to hear your opinion as to what I should do?