Hyper-V: Error: The System cannot find the file specified: Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
 
(2 dazwischenliegende Versionen des gleichen Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 
== Error ==
 
== Error ==
 
'''The error code was '0x2' ('The System cannot find the file specified')'''<br>
 
'''The error code was '0x2' ('The System cannot find the file specified')'''<br>
'''The specified network resource or device is no longer available (0x80070037)'''
+
'''The specified network resource or device is no longer available (0x80070037)''' <br>
 
'''Cluster resource 'Virtual Machine Configuration <VMName>' of type 'Virtual Machine Configuration' in clustered role '<VMName>' failed. The error code was '0xd' ('The data is invalid.').'''
 
'''Cluster resource 'Virtual Machine Configuration <VMName>' of type 'Virtual Machine Configuration' in clustered role '<VMName>' failed. The error code was '0xd' ('The data is invalid.').'''
  
Zeile 11: Zeile 11:
  
 
== Solution ==
 
== Solution ==
*Remove all the VM-files in the directory "Planned Virtual Machines" ("C:\ProgramData\Microsoft\Windows\Hyper-V\Planned Virtual Machines\")
+
*Remove all the VM-files on the destination node in the directory "Planned Virtual Machines" ("C:\ProgramData\Microsoft\Windows\Hyper-V\Planned Virtual Machines\")
<source lang="powershell">Stop-Service vmms; Remove-Item -Path "C:\ProgramData\Microsoft\Windows\Hyper-V\Planned Virtual Machines\*" -Recurse </source>
+
<source lang="powershell">Stop-Service vmms; Remove-Item -Path "C:\ProgramData\Microsoft\Windows\Hyper-V\Planned Virtual Machines\*" -Recurse;Start-Service vmms </source>
  
  

Aktuelle Version vom 8. Oktober 2019, 08:21 Uhr

Error

The error code was '0x2' ('The System cannot find the file specified')
The specified network resource or device is no longer available (0x80070037)
Cluster resource 'Virtual Machine Configuration <VMName>' of type 'Virtual Machine Configuration' in clustered role '<VMName>' failed. The error code was '0xd' ('The data is invalid.').


Cause

There are corrupt VM-files in directory "C:\ProgramData\Microsoft\Windows\Hyper-V\Planned Virtual Machines\"


Solution

  • Remove all the VM-files on the destination node in the directory "Planned Virtual Machines" ("C:\ProgramData\Microsoft\Windows\Hyper-V\Planned Virtual Machines\")
Stop-Service vmms; Remove-Item -Path "C:\ProgramData\Microsoft\Windows\Hyper-V\Planned Virtual Machines\*" -Recurse;Start-Service vmms