Sau khi nâng cấp lên Windows 10 sau đó chạy:Vagrant Lỗi trên Windows 10 với Hyper-V
$ vagrant up
Chúng tôi nhận được thông báo lỗi sau
An error occurred while executing a PowerShell script. This error
is shown below. Please read the error message and see if this is
a configuration error with your system. If it is not, then please
report a bug.
Script: get_vm_status.ps1
Error:
C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.4\plugins\providers\hyperv\scripts\get_vm_status.ps1 : Unable to
find type [Microsoft.HyperV.PowerShell.VirtualizationOperationFailedException].
At line:1 char:1
+ &('C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.7.4\plugins\prov ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Hyper...FailedException:TypeName) [get_vm_status.ps1], Ru
ntimeException
+ FullyQualifiedErrorId : TypeNotFound,get_vm_status.ps1
Với Vagrant 1.7.4.
Bất kỳ ý tưởng nào?
Windows 10 đang gặp sự cố với Hyper-V. Bạn có thể tạo một VM mới từ Hyper-V Manager và cố gắng khởi động nó không? –
Tôi vừa gặp lỗi tương tự. Điều kỳ lạ là, tôi đã không ban đầu. Tôi đã không cài đặt bất kỳ bản cập nhật cho vagrant, hyper-v, Windows, WMF/PowerShell, vv Tôi thậm chí không khởi động lại kể từ lần cuối cùng tôi đã sử dụng thành công lang thang; Tôi thậm chí còn sử dụng cùng một dấu nhắc lệnh. Thật ki cục. – briantist