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

Packer version? #10

Closed
biocyberman opened this issue Jun 9, 2023 · 2 comments
Closed

Packer version? #10

biocyberman opened this issue Jun 9, 2023 · 2 comments

Comments

@biocyberman
Copy link

biocyberman commented Jun 9, 2023

I got the following errors when validating. Are they true errors or wrong packer version?

$ packer -v
1.8.7

$ make validate
cloud-init schema -c http/user-data
Valid cloud-config: http/user-data
source /etc/os-release; packer validate -var host_distro=${ID} -var-file=./vars/focal.pkrvars.hcl ./templates/ubuntu.pkr.hcl
/bin/sh: 1: source: not found
Error: Unsupported argument

  on ./templates/ubuntu.pkr.hcl line 71:
  (source code not available)

An argument named "efi_firmware_code" is not expected here.

Error: Unsupported argument

  on ./templates/ubuntu.pkr.hcl line 72:
  (source code not available)

An argument named "efi_firmware_vars" is not expected here.

Error: Unsupported argument

  on ./templates/ubuntu.pkr.hcl line 73:
  (source code not available)

An argument named "efi_boot" is not expected here.


make: *** [Makefile:35: validate-focal] Error 1
@biocyberman
Copy link
Author

I figured it out. I added this section at the top of the template files and run packer init again. I don't know what's the minimum version of qemu plugin, but 1.0.9 works.

packer {
  required_plugins {
    qemu = {
      version = ">= 1.0.9"
      source  = "github.com/hashicorp/qemu"
    }
  }
}


@shantanoo-desai
Copy link
Owner

@biocyberman Thanks for reporting this. I indeed forgot to mention the qemu plugin in the template. I will patch the template with the most updated version that is 1.0.9

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

2 participants