Don't know what could be happening here. Packer clearly knows it is doing a 
hyper-v, but the error is clearing coming from a VMWare powershell module. 
What gives?

==> hyperv-iso: Creating temporary directory...
==> hyperv-iso: Downloading or copying ISO
    hyperv-iso: Downloading or copying: https:
//cvxartifactorypro.azure.chevron.com/artifactory/iso/en_windows_server_2012_r2_with_update_x64_dvd_6052708.iso
==> hyperv-iso: Starting HTTP server on port 8277
==> hyperv-iso: Creating switch 'LAN' if required...
==> hyperv-iso:     switch 'LAN' already exists. Will not delete on cleanup
...
==> hyperv-iso: Creating virtual machine...
==> hyperv-iso: Error creating virtual machine: PowerShell error: New-VM : 
A parameter cannot be found that matches parameter name 'Path'.
==> hyperv-iso: At C:\Users\wism\AppData\Local\Temp\ps631471300.ps1:5 char:
22
==> hyperv-iso: + New-VM -Name $vmName -Path $path -MemoryStartupBytes 
$memoryStartupBy ...
==> hyperv-iso: +                      ~~~~~
==> hyperv-iso:     + CategoryInfo          : InvalidArgument: (:) [New-VM], 
ParameterBindingException
==> hyperv-iso:     + FullyQualifiedErrorId : NamedParameterNotFound,VMware.
VimAutomation.ViCore.Cmdlets.Commands.NewVM
==> hyperv-iso: Unregistering and deleting virtual machine...
==> hyperv-iso: Error deleting virtual machine: PowerShell error: Get-VM : 8
/3/2017 3:51:58 PM  Get-VM          You are not currently connected to any 
servers. Please connect first using a Connect cmdlet.
==> hyperv-iso: At C:\Users\wism\AppData\Local\Temp\ps231655763.ps1:4 char:7
==> hyperv-iso: + $vm = Get-VM -Name $vmName
==> hyperv-iso: +       ~~~~~~~~~~~~~~~~~~~~
==> hyperv-iso:     + CategoryInfo          : ResourceUnavailable: (:) [Get-
VM], ViServerConnectionException
==> hyperv-iso:     + FullyQualifiedErrorId : 
Core_BaseCmdlet_NotConnectedError,VMware.VimAutomation.ViCore.Cmdlets.
Commands.GetVM
==> hyperv-iso:
==> hyperv-iso: Unable to find type [Microsoft.HyperV.PowerShell.VMState].
==> hyperv-iso: At C:\Users\wism\AppData\Local\Temp\ps231655763.ps1:5 char:
20
==> hyperv-iso: + if (($vm.State -ne [Microsoft.HyperV.PowerShell.VMState]::
Off) -and ( ...
==> hyperv-iso: +                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> hyperv-iso:     + CategoryInfo          : InvalidOperation: (Microsoft.
HyperV.PowerShell.VMState:TypeName) [], RuntimeException
==> hyperv-iso:     + FullyQualifiedErrorId : TypeNotFound
==> hyperv-iso:
==> hyperv-iso: Remove-VM : A parameter cannot be found that matches 
parameter name 'Name'.
==> hyperv-iso: At C:\Users\wism\AppData\Local\Temp\ps231655763.ps1:9 char:
11
==> hyperv-iso: + Remove-VM -Name $vmName -Force -Confirm:$false
==> hyperv-iso: +           ~~~~~
==> hyperv-iso:     + CategoryInfo          : InvalidArgument: (:) [Remove-
VM], ParameterBindingException
==> hyperv-iso:     + FullyQualifiedErrorId : NamedParameterNotFound,VMware.
VimAutomation.ViCore.Cmdlets.Commands.RemoveVM
==> hyperv-iso: Deleting output directory...
==> hyperv-iso: Deleting temporary directory...
Build 'hyperv-iso' errored: Error creating virtual machine: PowerShell error
: New-VM : A parameter cannot be found that matches parameter name 'Path'.
At C:\Users\wism\AppData\Local\Temp\ps631471300.ps1:5 char:22
+ New-VM -Name $vmName -Path $path -MemoryStartupBytes $memoryStartupBy ...
+                      ~~~~~
    + CategoryInfo          : InvalidArgument: (:) [New-VM], 
ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,VMware.VimAutomation.
ViCore.Cmdlets.Commands.NewVM


==> Some builds didn't complete successfully and had errors:
--> hyperv-iso: Error creating virtual machine: PowerShell error: New-VM : 
A parameter cannot be found that matches parameter name 'Path'.
At C:\Users\wism\AppData\Local\Temp\ps631471300.ps1:5 char:22
+ New-VM -Name $vmName -Path $path -MemoryStartupBytes $memoryStartupBy ...
+                      ~~~~~
    + CategoryInfo          : InvalidArgument: (:) [New-VM], 
ParameterBindingException
    + FullyQualifiedErrorId : 
NamedParameterNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM


==> Builds finished but no artifacts were created.






-- 
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/7c2a8704-49fd-4214-8236-9adca57605c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to