当前位置:网站首页>Unable to change the virtual machine power status and report an error solution

Unable to change the virtual machine power status and report an error solution

2022-06-24 08:59:00 Ly. Leo

1 System environment

System name edition
Main system Ubuntu18.04LTS
virtual machine VMware Workstation 16 Pro16.1.0 build-17198959
Virtual system Windows10 x64

2 Problem description

Virtual system crash , Then force the virtual machine to shut down , Then start the virtual machine again to run the virtual system , First, the loading system is slow , Secondly, an error will be reported when the machine is started :

Unable to change virtual machine power state: Failed to power on '/{ Virtual machine file path }

3 Cause analysis

Even if you shut down all virtual machines , The directory where the virtual system is located will also have a .vmdk.lck file , It contains the locking information of some system virtual hard disks , Because the file exists , When you run the virtual machine again , It will detect that the virtual disk has been locked , So you won't be able to access , It is impossible to change the power state .

4 Solution

Enter your virtual machine file (.vmx file ) In the directory , Right click in the blank , Open in the terminal , Force the virtual machine to stop and start 【 Reference from here

vmrun stop {
     Your virtual machine file name }.vmx
vmrun start {
     Your virtual machine file name }.vmx

If it still doesn't work , You need to restart the main system , The problem may be caused by the sleep of the main system 【 Reference from here 】, Follow the above instructions again .

原网站

版权声明
本文为[Ly. Leo]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240626357043.html