Skip to main content

Questions tagged [packer]

The software tool used for creating machine images for multiple virtualization platforms from a single configuration.

Filter by
Sorted by
Tagged with
0 votes
0 answers
72 views

exec: "vmware": executable file not found in $PATH error using WSL2

I'm running Ubuntu 20 inside the WSL2 on Windows 11. VMWare Workstation Pro installed with license. I run packer build and get this error Build 'vmware-vmx' errored after 48 milliseconds 826 ...
Drorit Zilberberg's user avatar
0 votes
0 answers
138 views

Permission denied error when executing file or plugin

I'm trying to create a packer build as follows, and am getting permission denied. As I'm also seeing the same problem when trying to execute a shell script, I think the root cause may be an OS layer ...
Burvil's user avatar
  • 1
2 votes
2 answers
1k views

How to setup networking for Packer and Virtualbox to enable connection between host and guest?

This is driving me crazy. I am trying to build a Debian image from an ISO using Packer and the VirtualBox builder (on macOS, if that matters). This process involves the VM downloading a Debian preseed ...
fpbhb's user avatar
  • 121
1 vote
1 answer
139 views

Packer Template incorrectly pre-pending EC2

A prefix of ec2 is being added in the packer AMI bake job which is causing some issues as we need the URL to be ebs-fips.us-east-1.amazonaws.com as per FIPS - Amazon Web Services (AWS) but currently ...
ianh11's user avatar
  • 21
0 votes
1 answer
220 views

Packer VM creation in Azure hangs while configuring openssh-server

While creating a Ubuntu VM in Azure with Packer, the installation process stops and hangs while configuring openssh-server. The command line prompts for you to select an option, and since this is an ...
KollKode's user avatar
  • 101
0 votes
1 answer
2k views

Ubuntu 20.04 autoinstall event (subiquity/Network/_send_update: CHANGE eth0)

I'm building an Ubuntu 20.04 VM using packer and I'm having a strange issue with the build. On VM console during build time I'm receiving a lot of messages: 'ubuntu-server subiquity_event.1890[1890]: ...
Alex_N's user avatar
  • 1
4 votes
1 answer
1k views

Modprobe floppy not found for Rocky Linux 8.4

On installing Rocky Linux 8.4 with Packer and vCenter 6.5., there is an error message that modprobe cannot find floppy module in the kernel folder. Does this mean this distribution has no support for ...
J. Doe's user avatar
  • 471
1 vote
0 answers
850 views

VirtualBox: Cannot write compressed data block (VERR_DISK_FULL

I am trying to export a virtual-machine with packer, and after the installation process process is completed I am prompted the following error: Error Message My disk is not full - I have 750GB of free ...
someone's user avatar
  • 11
0 votes
1 answer
230 views

Interactive SSH session for provisioning

Is there anyway to open an interactive SSH connection after provisioner phase, but before the cleanup? Something similar to how a debugger works in scripting languages. This is useful to debug my ...
Franklin Yu's user avatar
0 votes
1 answer
100 views

Vagrantcloud packer upload error

I get the error virtualbox-iso: Running post-processor: vagrant-cloud ==> virtualbox-iso (vagrant-cloud): Verifying box is accessible: redacted/ubuntu2004 Build 'virtualbox-iso' errored: 1 ...
OneStrokeAtATime's user avatar
0 votes
1 answer
648 views

How to join a windows machine to an AD domain automatically?

I can add any user to a windows ISO using packer and add that user to the local administrators group. The question what is the best way to automate the step of joining a newly created windows machine ...
Edik Mkoyan's user avatar
1 vote
0 answers
207 views

How to derive a new vagrant box from an existing one with new MAC address?

I want to build a virtual machine (with some Linux distribution) with Virtualbox and then use the built virtual machine to somehow "derive" (for lack of a better term) other virtual machines from it ...
trane's user avatar
  • 11
1 vote
1 answer
400 views

Packer and Qemu - Qemu hangs during SIGKILL - reboot requested

I'm attempting to build an Ubuntu 19.04 server image with packer. I have it booting and running the install seemingly fine, and after an hour and change, Qemu shows that the install is finished and a ...
h4ckNinja's user avatar
  • 111
1 vote
1 answer
2k views

Choco install within Packer

I am running Packer within Jenkins using Chocolatey to install packages onto that Windows Server before it's created into an AMI, I am currently having an issue with chocolatey within packer not ...
Dave's user avatar
  • 13
2 votes
0 answers
7k views

ping: : Name or service not known - while pinging a valid ip

Well, This appears to be a known issue to many but I've applied many of the workarounds I found online but none of them worked! I'm running packer from a docker container to build an image on ...
harshavmb's user avatar
  • 121
0 votes
1 answer
148 views

Is it possible to make equally sized multipart rar archives from a big file?

Size of multipart archives is maximized at 200 MB. I would like to determine the part size (<200 MB), to achieve equally sized multipart archives.
Konstantin's user avatar
8 votes
4 answers
19k views

Truly delete all traces of a Vagrant machine

How do I remove all traces of a Vagrant box without having to go into the file system manually? I am creating a custom box using Packer, building and destroying a lot of test cases. When finished ...
Lorem Ipsum's user avatar
2 votes
1 answer
997 views

Connect to Azure machine via public ip from terraform

I successfull made the virtual machine in Azure with Terraform ( from a Packer image). After the Virtual machine created, I would run some commands remotely on the newly created machine. The machine ...
GergA's user avatar
  • 173
0 votes
1 answer
1k views

Can not login the packer created ubuntu vm in Azure

I created an ubuntu linux image with packer. ( packer.io) Here is a slice from the .json "os_type": "Linux", "image_publisher": "Canonical", "image_offer": "UbuntuServer", "image_sku": "...
GergA's user avatar
  • 173
2 votes
0 answers
206 views

clone vagrant box into a fresh one

I built a vagrant box via using packer. It generates a .box file and I was able to use vagrant to bring it up. Now I would like to build a cluster of, say, 2 machines. So I'd like a new machine from ...
lang2's user avatar
  • 2,282
0 votes
1 answer
356 views

Variable to disk of VM in vboxmanage like {{.Name}}

I would like to use vboxmanage modifyhd /path/to/thedisk.vdi --compact with packer in vboxmanage_post to shrink the size of the vm which will be exported afterwards. E.g. "vboxmanage_post": [ ["...
emi-le's user avatar
  • 101
0 votes
0 answers
449 views

Creating a Hyper-V Vagrant box from a vhdx

i have a vhdx, i want to create a vagrant box from it. this is my vhdx after i create vagrant box and vagrant file from that box how do i create the hyper-v virtual machine from it? how do i change ...
Lakshan's user avatar
  • 55
0 votes
1 answer
853 views

Packer build hangs on SSH when building Win 2012 Server + Virtualbox

I'm trying to use virtualbox+packer+vagrant to automate the provisioning of VMs. I've got the json template setup to show the VM UI (so headless=false), and configured the autounattend.xml with my ...
Tom's user avatar
  • 1
1 vote
1 answer
544 views

packer.io exit code of provisioning script

I got packer.io for building VM images. I provision VMs with shell script which uses puppet. Now sometimes there is situation where this provisioning script fails to provision VM correctly. I am ...
David Strejc's user avatar
0 votes
1 answer
162 views

Where do you place the “preseed.cfg” file?

I’m trying to create a Ubuntu Vagrant box using Packer. I’m confused about where to place the preseed.cfg file. Does it have to be in directory mentioned in http_directory?
avellable's user avatar
  • 103
1 vote
1 answer
2k views

Networking not working on Packer created Ubuntu VirtualBox VM

I'm trying to build a VirtualBox Ubuntu VM using Packer. My image was successfully created and I configured it to use my Wi-Fi (Mac OS X AirPort) interface for bridged networking. However, after ...
dmayo3's user avatar
  • 11
3 votes
1 answer
3k views

Packer build of a virtualbox windows 7 ISO hangs

When I am building a win 7 box using packer, it hangs waiting for SSH to be available: ==> virtualbox-iso: Downloading or copying Guest additions virtualbox-iso: Downloading or copying: file://...
socgen hacker's user avatar
1 vote
2 answers
12k views

How do I create seperate 7z files from each selected directory with 7zip command line?

FOR %i IN (*.*) DO 7z.exe a "%~ni.7z" "%i" Does the job for each selected file. However I've got tons of directories (with files inside them obviously) I need to pack. Say I have d:\dir1, d:\dir2, ...
Grumpy ol' Bear's user avatar
2 votes
3 answers
12k views

How do I convert my existing zip files to 7z with 7-zip comand line?

I'd like to convert a couple thousand zip files to 7z, with maximum compression and multithreading enabled. Also in another place. Like c:\temp\file.zip to f:\converted\file.7z
Grumpy ol' Bear's user avatar
50 votes
5 answers
170k views

How do I create separate zip files for each selected file/directory in 7zip?

This is the internal zip packer from Total Commander: However I want to use my 7zip packer. When I select 5 files, I get 5 separate .zip archives for each selected file. How do I do that in 7zip?
Grumpy ol' Bear's user avatar
6 votes
1 answer
5k views

Are there any 64-bit Executable Packers? [closed]

Is there a good, free packer out there for 64-bit executables? I'm looking for something like UPX, except that UPX doesn't seem to support 64-bit executables.
user541686's user avatar
  • 23.2k