This repository was archived by the owner on May 8, 2023. It is now read-only.
forked from microsoft/packer-hyperv
-
Notifications
You must be signed in to change notification settings - Fork 6
Remoting causes failure to create first time through #12
Copy link
Copy link
Open
Description
The first time that packer build is run, you get errors and an incomplete build:
←[1;32m==> hyperv-iso: Configuring ip address...←[0m
←[1;32m==> hyperv-iso: ip address is 169.254.227.167←[0m
←[1;32m==> hyperv-iso: hostname is←[0m
←[1;32m==> hyperv-iso: Adding '169.254.227.167' to TrustedHosts (requires elevated mode)←[0m
←[1;31m==> hyperv-iso: Error StepRemoteSession: PowerShell error: The input object cannot be bound to any parameters for
the command either because the command does not take pipeline input or the input and its properties do not match any of
the parameters that take pipeline input.←[0m
←[1;32m==> hyperv-iso: Removing '169.254.227.167' from TrustedHosts←[0m
←[1;32m==> hyperv-iso: Stopping virtual machine...←[0m
←[1;32m==> hyperv-iso: Unmounting floppy drive...←[0m
←[1;32m==> hyperv-iso: Unmounting dvd drive...←[0m
←[1;32m==> hyperv-iso: Unregistering and deleting virtual machine...←[0m
←[1;32m==> hyperv-iso: Deleting output directory...←[0m
←[1;32m==> hyperv-iso: Deleting temporary directory...←[0m
←[1;31mBuild 'hyperv-iso' errored: Error StepRemoteSession: PowerShell error: The input object cannot be bound to any pa
rameters for the command either because the command does not take pipeline input or the input and its properties do not
match any of the parameters that take pipeline input.←[0m
==> Some builds didn't complete successfully and had errors:
--> hyperv-iso: Error StepRemoteSession: PowerShell error: The input object cannot be bound to any parameters for the co
mmand either because the command does not take pipeline input or the input and its properties do not match any of the pa
rameters that take pipeline input.
==> Builds finished but no artifacts were created.
The second time through, the VM is exported successfully. (I'm guessing this is because the WinRM service is not running the first time and has to be manually started).
Metadata
Metadata
Assignees
Labels
No labels