Skip to content

Windows over WinSSH with ansible provisioner  #172

@magustin-telus

Description

@magustin-telus

Overview of the Issue

sysprep commands from documentation to enable SSH not working.

Reproduction Steps

followed the documentation from https://developer.hashicorp.com/packer/plugins/builders/googlecompute#windows-over-winssh-ansible-provisioner

using GCP windows image windows-server-2019-dc-v20230510

Plugin and Packer version

packer version 1.9.1

Simplified Packer Buildfile

buildfile is the same as the documentation

2023/06/16 19:43:45 GCEMetadataScripts: sysprep-specialize-script-cmd: The user or group account specified cannot be found.
2023/06/16 19:43:45 GCEMetadataScripts: sysprep-specialize-script-cmd: The user was successfully created but could not be added
2023/06/16 19:43:45 GCEMetadataScripts: sysprep-specialize-script-cmd: to the USERS local group.

2023/06/16 19:47:45 GCEMetadataScripts: sysprep-specialize-script-cmd: New-NetFirewallRule : Cannot create a file when that file already exists.
2023/06/16 19:47:45 GCEMetadataScripts: sysprep-specialize-script-cmd: At line:1 char:1
2023/06/16 19:47:45 GCEMetadataScripts: sysprep-specialize-script-cmd: + New-NetFirewallRule -Name 'OpenSSH-Server-In-TCP' -DisplayName 'OpenS ...
2023/06/16 19:47:45 GCEMetadataScripts: sysprep-specialize-script-cmd: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023/06/16 19:47:45 GCEMetadataScripts: sysprep-specialize-script-cmd:     + CategoryInfo          : ResourceExists: (MSFT_NetFirewallRule:root/st
2023/06/16 19:47:45 GCEMetadataScripts: sysprep-specialize-script-cmd:    andardcimv2/MSFT_NetFirewallRule) [New-NetFirewallRule], CimException
2023/06/16 19:47:45 GCEMetadataScripts: sysprep-specialize-script-cmd:     + FullyQualifiedErrorId : Windows System Error 183,New-NetFirewallRule

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions