Dopo l'aggiornamento a Windows 10 che eseguono poi:Vagrant Errore su Windows 10 con Hyper-V
$ vagrant up
Otteniamo il seguente messaggio di errore
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
Con Vagrant 1.7.4.
Qualche idea?
Windows 10 ha alcuni problemi con Hyper-V. Puoi creare una nuova VM da Hyper-V Manager e provare ad avviarla? –
Ho appena avuto lo stesso errore. La cosa strana è che non l'ho fatto in origine. Non ho installato nessun aggiornamento per vagrant, hyper-v, Windows, WMF/PowerShell, ecc. Non ho nemmeno riavviato dall'ultima volta che ho usato con successo vagrant; Stavo persino usando lo stesso prompt dei comandi. Così strano. – briantist