-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: hyperv-iso: Error shutting down VM: PowerShell error: Hyper-V\Stop-VM : Failed to stop. #18
Comments
muthurd
changed the title
Error: ==> hyperv-iso: Provisioning with Powershell... ==> hyperv-iso: Provisioning with powershell script: scripts/install_windows_updates.ps1 ==> hyperv-iso: Disconnecting from vmconnect... ==> hyperv-iso: Error shutting down VM: PowerShell error: Hyper-V\Stop-VM : Failed to stop. ==> hyperv-iso: At C:\Users\Administrator\AppData\Local\Temp\2\ps015687669.ps1:5 char:5 ==> hyperv-iso: + Hyper-V\Stop-VM -VM $vm -Force -Confirm:$false ==> hyperv-iso: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ==> hyperv-iso: + CategoryInfo : NotSpecified: (:) [Stop-VM], VirtualizationException ==> hyperv-iso: + FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.StopVM
Error: hyperv-iso: Error shutting down VM: PowerShell error: Hyper-V\Stop-VM : Failed to stop.
Oct 6, 2018
I get the same error when trying to build a win 2019 std server with gui.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to generate the Hyper-V vhdx file, however getting the below error message, Would you please check and advise.
Environment:- Windows 2016 Datacentre Server, installed with Hyper-V
Packer Version:- tried with 1.3.2-dev, & 1.2.5
ISO: Windows 2012R2
Error: ==> hyperv-iso: Provisioning with Powershell...
==> hyperv-iso: Provisioning with powershell script: scripts/install_windows_updates.ps1
==> hyperv-iso: Disconnecting from vmconnect...
==> hyperv-iso: Error shutting down VM: PowerShell error: Hyper-V\Stop-VM : Failed to stop.
==> hyperv-iso: At C:\Users\Administrator\AppData\Local\Temp\2\ps015687669.ps1:5 char:5
==> hyperv-iso: + Hyper-V\Stop-VM -VM $vm -Force -Confirm:$false
==> hyperv-iso: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> hyperv-iso: + CategoryInfo : NotSpecified: (:) [Stop-VM], VirtualizationException
==> hyperv-iso: + FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.StopVM
The text was updated successfully, but these errors were encountered: