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
0
votes
0 answers

Unattended.xml encrypt admin password in packer

I'm using packer and answerfile to build windows server image. When I set autologon and AdministratorPassword as plaintext, it works fine. However, when I set autologon and AdministratorPassword as plaintext=false, I get an error shown below. …
0
votes
0 answers

Packer build with Ubuntu 20.4 and autoinstall with vSphere 7.0

I am trying to build a packer image with packer 1.8.1 and Ubuntu 20.4 My HCL manifest is correct but I always get the prompt with " Continue with Autoinstall ? Add autoinstall in kernel command line to avoid this" I tried many configurations without…
Mandala
  • 23
  • 4
0
votes
0 answers

Centos Stream 9 boot iso stuck during kickstart

I am trying to install a Centos Stream 9 boot iso on my mac M1 via VMware Fusion. I already solved a lot of issues that were preventing me to start installation. Now I get to the installation (I am using packer and a kickstart file) but it gets…
YFrickx
  • 1
  • 2
0
votes
1 answer

Add Windows VM to domain using Packer

I'm trying to create Windows images for usage on Azure using Packer. As part of this process, I need to put some files, which are located on an existing VM in Azure, in the image. My idea was to add the VM to the domain, so that I can copy the files…
Pieter
  • 101
  • 2
0
votes
3 answers

Immutable Linux images - how far can and should I go?

Immutability is cool in order to realize consistency, predictability and reliability, and I don’t see any reason why I shouldn’t strive for OS-level immutability when deploying my application on Linux VPS’es from different cloud providers around the…
0
votes
1 answer

journalctl stops working randomly after boot on DigitalOcean droplet

I am building servers from a custom image I made using Packer on DigitalOcean, and I'm having a recurring issue where journalctl doesn't have any logs: # journalctl No journal files were found. Sometimes I have this issue with images I build,…
ZoFreX
  • 308
  • 1
  • 3
  • 9
0
votes
1 answer

Disconnected NIC on customized & deployed Ubuntu 18.04 templates

Within my vSphere 6.7 U3 environment, I have an Ubuntu 18.04 template generated by packer which I am then using Terraform to deploy two copies of. I am running into an issue where the deployed VMs come up with their NIC's disconnected, preventing…
0
votes
2 answers

How to provide sudo pwd in packer shell provisioner

I want to create an AWS AMI using packer. Part of the setup process is running a build script, that will setup services and configure the environment for a system user averagejoe that is not root. The setup script basically looks like this: # some…
rexford
  • 111
  • 1
  • 5
0
votes
0 answers

Issues getting networking working Packer VSphere-ISO Centos 7

While new to Packer and Kickstart scripts, I am trying to automate the setup of CentOS 7 (eventually 8) boxes in a VSphere cluster. My Packer code is calling a Kickstart script to complete the setup, but running into issues getting networking…
0
votes
1 answer

Make image with packer for Google cloud

when I user packer build command I face this error and I gave the service account user but still have same issue googlecompute: * The user does not have access to service account 'service-76109290228@compute-system.iam.gserviceaccount.com'. User:…
farzin
  • 1
  • 1
  • 3
0
votes
1 answer

unable to ssh into local qemu instance via port forward

I am trying to build a custom Ubuntu (ISO built from bionic - 18.04.2) qcow2 image via packer. This fails in the step where packer tries to SSH to the instance via port forward. I can see from VNC that the instance spins up fine, and I can login…
Ani
  • 32
  • 2
  • 13
-1
votes
1 answer

Adding arguments to Packer's Ansible provisioner

My Friday brain is really struggling to convert an Ansible command line into the format my Packer .json wants. The Ansible: ansible-playbook playbook.yml -e @env/users/user01.yml --ask-vault --ask-become My attempted Packer block: "provisioners":…
Sam
  • 183
  • 1
  • 5
-2
votes
1 answer

Create a VM using terraform on an Azure image created by Packer

Team, I need to provision an Azure VM (Windows/Linux) and I followed the below link to create the image…
1 2 3 4
5