hashicorp / packer-plugin-proxmox

Packer plugin for Proxmox Builder
https://www.packer.io/docs/builders/proxmox
Mozilla Public License 2.0
150 stars 68 forks source link

Proxmox Builder errors when TFA activated for user: "Missing TFA code" #5

Open ghost opened 3 years ago

ghost commented 3 years ago

This issue was originally opened by @rsik as hashicorp/packer#10923. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


Overview of the Issue

proxmox: output will be in this color.

Build 'proxmox' errored after 185 milliseconds 776 microseconds: Missing TFA code

==> Wait completed after 186 milliseconds 121 microseconds

==> Some builds didn't complete successfully and had errors:
--> proxmox: Missing TFA code

==> Builds finished but no artifacts were created.

Cannot authenticate with builder with username/password + TOTP/MFA. As seen above, it catches the correct error but I do not seem to see any mention in the docs: https://www.packer.io/docs/builders/proxmox/iso

I am curious if this is supported, but not documented? If it is supported, what is the KV required?

Reproduction Steps

  1. Make sure TOTP is activated for user in Proxmox
  2. Pass username/password in packer vars
  3. Receive error in overview

Packer version

❯ packer --version
1.7.2
karliemeads commented 3 years ago

@rsik This is not supported.