Skip to content
This repository was archived by the owner on May 8, 2023. It is now read-only.

Remoting causes failure to create first time through #12

@adrianhall

Description

@adrianhall

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions