Questions tagged [packer-builder]

31 questions
3
votes
1 answer

Using variables as part of other variables values

I am trying to do some kind of parameterizatiim inside one of the pkrvars.hcl files. I would like to have urls pointing to some resource to be using some other variables, like: Lib_url = "https://lib-name-${version}` Where version comes from other…
Andrew
  • 47
  • 8
2
votes
1 answer

Packer builder source_ami_filter for ubuntu 22.04

I'm planning to update from ubuntu 20.04 to 22.04, I had changed the config as below "source_ami_filter": { "filters": { "virtualization-type": "hvm", "name":…
2
votes
1 answer

How do I use one provisioner for multiple Packer builds in an HCL-formatted template?

I'm using Packer to provision a VM for my project's CI pipeline, which is hosted on a supported cloud provider. My provisioning scripts are a little complicated, so I need to iterate on them carefully to get them right. To save money I'm using a…
JesseTG
  • 2,025
  • 1
  • 24
  • 48
1
vote
1 answer

packer provisioning failed with exit code 2300218

I'm using vsphere-clone to create a vm and in provisioning installing one product which takes around 1hr to complete installation. Getting this error in most of the run while executing packer.(sometimes it works also) vsphere-clone: Provisioning…
Sagar Trivedi
  • 47
  • 1
  • 11
1
vote
0 answers

Failure sending request: StatusCode=0 -- Original Error: Code="LinkedAuthorizationFailed"

I'm using Packer with Azure in order to create custom image Linux ubuntu. The source image has been migreted from other subscription (zzzzz-zzzzz-zzzz-832e-zzzzzzzz) Azure which I don't have access ant put in my Gallery in subscription…
naoussa
  • 107
  • 1
  • 8
1
vote
0 answers

creating multiple images in one packer build command

I'm using the command packer build -only=*image1*,*image2* I have few 'build.pkr.hcl' files with the following code: build { source "source.azure-arm.windows" { name = "image1-2016" } source "source.azure-arm.windows" { …
1
vote
0 answers

Packer.io - dial tcp 172.X.X.X:22: connect: no route to host

I'm using vsphere-clone as the builder and ansible-playbook as the provisioner to build my machine. In one of my ansible tasks, I'm rebooting the machine (after installing some packages and changing network interfaces names), but sometimes my VM is…
assli100
  • 555
  • 3
  • 12
1
vote
1 answer

Why packer is returning the error "typing a boot command (code, down) 82, false" while trying to build a centos7 vm for Vsphere?

Does anyone know how could I troubleshoot this booting packer error: Error running boot command: error typing a boot command (code, down) 82, false: ServerFaultCode: Permission to perform this operation was denied. I am trying to build a centos7 vm…
1
vote
1 answer

Packer azure-arm vhd build fails with resource group not found

I have a Problem with Packer and the Azure Stack, I am trying to build an Image in azure stack, but it looks like packer don't try to use my custom-url. { "builders": [{ "type": "azure-arm", "client_id": "client_id", "client_secret":…
0hlov3
  • 11
  • 2
1
vote
0 answers

Issue with running instance from custom image Google Cloud Platform. WinRm timeout

I have an issue with running instance from custom image in Google Cloud Platform with Packer. After half of hour I got an issue WinRM timeout) ==> image-ami-win: Waiting for the instance to become running... image-ami-win: Internal IP:…
0
votes
0 answers

Packer template waiting for ssh

I am trying to create a VM Template using the https://github.com/acavella/packer-Rocky9/blob/main/rocky9.json as a reference. I cloned the repo and made 2 changes. "iso_url":…
Jon
  • 95
  • 1
  • 1
  • 5
0
votes
2 answers

GCP yum artifact registry 403 when imported from packer instance

I am trying to install a package from the yum repository created using the GCP Artifact registry within a packer instance. I am able to install the package if the repository has public access to allUsers however, it fails if the principal is limited…
0
votes
1 answer

Hashicorp Packer hyper-v builder not getting SSH address

Building a Ubuntu 22.04 server image with the Hyper-V builder for Packer. Packer however never seems to find the IP address of the machine. ==> hyperv-iso: Starting HTTP server on port 8882 ==> hyperv-iso: Creating switch 'public' if required... ==>…
user2782999
  • 385
  • 1
  • 7
  • 23
0
votes
0 answers

Routing all traffic from inside a container through corporate proxy

I have a VM that's hosted on one of our company servers, this VM requires our corporate proxy to access the internet and the proxy is configured system-wide. We use this VM to run a job that builds a docker image and pushes it to the cloud. For the…
0
votes
0 answers

winrm not found error for ansible-packer provisioning

I am using gitlab for deployment and Packer for image automation and ansible for configuration management for creating windows image. when I am trying to call ansible provisioner from packer it is throwing below error: Attempting python…
garima
  • 53
  • 1
  • 9
1
2 3