Questions tagged [packer]

Packer is a tool which automates building and provisioning of VM and Docker images.

Packer automates the creation and provisioning of images for many desktop and cloud-based virtualization environments. It also includes integrations with post-processors such as Vagrant.

73 questions
1
vote
3 answers

Can't connect to Windows EC2 instance built by Packer via SSM Agent

I'm using Packer to set up a Windows VM on the free tier of AWS EC2. The image is properly set up and I'm able to launch it, but I can't connect to it with SSM. Here's my Packer template: { "variables": { "aws_access_key": null, …
0
votes
1 answer

How to update existing manage packer image in Azure?

I have created a ubuntu image by following code { "builders": [{ "type": "azure-arm", "subscription_id": "XXXXXX",XXXXXXXX "client_id": "XXXXXXX", "client_secret": "06XXXXXXX", "tenant_id": "41X",XXXXXX …
sanjayparmar
  • 633
  • 8
  • 19
0
votes
1 answer

packer unable to parse json due to invalid character

I want to use packer to build an ami. The AMI was initially built by an aws_instance resource in terraform. It contains the following user_data winrm quickconfig -q winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}' winrm set…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
0
votes
1 answer

xenserver-iso: Error downloading: open : no such file or directory

I'm trying to build a "vdi_vhd" image using packer on xenserver,but i have got the below error, could you please anyone help me on this,Thanks in advance. [root@localhost bin]# packer build /usr/local/test-scripts/main.json xenserver-iso output…
0
votes
1 answer

cannot connect to ec2 instance created by packer image

I have written packer script to create image in aws. After executing the packer script it is running a ec2 instance which is using pem file created by packer. But how can I know which pem file packer is created?
0
votes
1 answer

serverspec nginx should be listening using packer

I am using packer to build an ami on aws, after the provision of the ami, I am testing the image using serverspec, but the test fail testing nginx, this is the test cat test/spec/localhost/nginx_spec.rb …
c4f4t0r
  • 5,301
  • 3
  • 31
  • 42
0
votes
1 answer

How do I use debconf in salt with pillars?

I have the following: newrelic-debconf: debconf.set: - name: newrelic-php5 - data: 'newrelic-php5/application-name': { 'type': 'string', 'value': '{{ salt['pillar.get']('newrelic:applicationName', '') }}' } …
0
votes
1 answer

Using Packer to build a GCE with "error creating instance" error, next steps?

I've been working with using Packer v0.10.1 to build an image and am running into this access security issue when trying to run via Hashicorp's Atlas tool. Packer v0.10.1 [1;32mgooglecompute output will be in this color.[0m [1;32m==>…
Adron
  • 614
  • 1
  • 8
  • 16
0
votes
1 answer

Ansible not executing within Packer Build

I am currently experimenting with deploying using Packer’s Ansible local provisioning and for some odd reason, it doesn’t appear to be executing the tasks in the playbook. Packer, after installing the pre-requiresites for Ansible, uploads the…
Rilindo
  • 5,078
  • 5
  • 28
  • 46
0
votes
3 answers

How to configure ssh access for an unattended linux-distro ISO image for local development env similar to accessing cloud service VM instances?

I configured Packer to build unattended ISO installs of various Debian-derived distros to VMware fusion. As I configure the VMs manually for ssh access, it times out and the build artifacts created are erased. How do you go about pre-installing ssh…
mamusr
  • 61
  • 1
  • 1
  • 6
0
votes
1 answer

Chef installation in a chroot (packer): not starting services

I'm trying to use packer.io to create a machine image for a server who's deployment I already have automated using Chef (chef-solo specifically), using the amazon-chroot builder and the chef-solo provisioner (with a few shell provisining steps…
shevron
  • 326
  • 2
  • 4
  • 10
0
votes
1 answer

No builder returned for name: vagrant Packer.io error

I just want to provision a standard Ubuntu 12.04 image with a shell script, and then package it so I can use it with Vagrant. This is the configuration I wrote: { "builders": [{ "type": "vagrant", "iso_url":…
Hyperfocus
  • 1,177
  • 4
  • 14
  • 23
0
votes
0 answers

Create Azure Red hat template with custom LVM partitions

I want to prepare Azure template for Red Hat 8 servers with packer and I'm facing problem with setting custom LVM partitions. For example, I want separate /var/tmp, /var/log etc. I deployed some VMs based on marketplace image and they have default…
0
votes
0 answers

Can Packer connect to a VM in vSphere via SSH?

I'm just getting started with configuring a VM on VMware vSphere and I'm using HashiCorp Packer to create the VM template. I'm very pleased with how most things are working out for me, but I have a couple of questions regarding how Packer connects…
lindhe
  • 126
  • 1
  • 11
0
votes
2 answers

Advices on automating installation for Debian 11

I'm currently trying to automate Debian 11 template creation through Packer for Nutanix environment and need some advices about preseeding/automating Debian installation. First of all, after reading this bible…
motorbass
  • 303
  • 2
  • 12