seems are some issues with the script:
ps015687669.ps1

check the error something strange on line 5


alvaro

On Sat, Oct 6, 2018 at 9:58 AM Muthu R D <[email protected]> wrote:

> 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
>
> JSON: attached
>
>
>
> 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
>
>
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/4f7b4247-7297-42da-9906-cf2b5c011129%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/4f7b4247-7297-42da-9906-cf2b5c011129%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Alvaro

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAHqq0ewus0S-aQsxOqY4oaTYdHyNQzB0A-xjK4qiKhbeKs44cw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to