Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 2019 provisioning step errors #47

Open
jasonyates-thg opened this issue Sep 11, 2023 · 0 comments
Open

Windows 2019 provisioning step errors #47

jasonyates-thg opened this issue Sep 11, 2023 · 0 comments

Comments

@jasonyates-thg
Copy link

Expected Behaviour

Windows 2019 image builds successfully

Current Behaviour

Build fails after 8 minutes with ansible error

==> qemu: Running local shell script: /tmp/packer-shell2452460422
    qemu:
    qemu: PLAY [all] *********************************************************************
    qemu:
    qemu: TASK [Gathering Facts] *********************************************************
    qemu: Monday 11 September 2023  20:33:21 +0000 (0:00:00.008)       0:00:00.008 ******
    qemu: fatal: [127.0.0.1]: FAILED! => {"msg": "winrm or requests is not installed: No module named 'winrm'"}
    qemu:
    qemu: PLAY RECAP *********************************************************************
    qemu: 127.0.0.1                  : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
    qemu:
    qemu: Monday 11 September 2023  20:33:21 +0000 (0:00:00.025)       0:00:00.033 ******
    qemu: ===============================================================================
    qemu: Gathering Facts --------------------------------------------------------- 0.03s
==> qemu: Provisioning step had errors: Running the cleanup provisioner, if present...
==> qemu: Deleting output directory...
Build 'qemu' errored after 8 minutes 43 seconds: Script exited with non-zero exit status: 2. Allowed exit codes are: [0]```

## Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
<!--- or ideas how to implement the addition or change -->

## Steps to Reproduce (for bugs)
Build Windows 2019

## Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->


## Your Environment
Ubuntu 22.04 bare metal host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant