Questions tagged [packer]
The software tool used for creating machine images for multiple virtualization platforms from a single configuration.
30
questions
0
votes
0
answers
25
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 ...
1
vote
1
answer
38
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 ...
0
votes
0
answers
277
views
Packer config for making QEMU Debian 10 Vagrant Box for
I've got a Vagrantfile for setting up/provisioning an x86/amd64 Debian10/Buster dev environment guest VM that's normally run on an Ubuntu host. I need to get it running on an M1/ARM macbook and QEMU ...
0
votes
1
answer
74
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 ...
0
votes
1
answer
891
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]: ...
4
votes
1
answer
589
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 ...
1
vote
0
answers
504
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 ...
0
votes
1
answer
93
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 ...
0
votes
1
answer
68
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 ...
0
votes
1
answer
505
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 ...
1
vote
0
answers
162
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 ...
1
vote
1
answer
263
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 ...
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 ...
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 ...
0
votes
1
answer
99
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.
4
votes
3
answers
11k
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 ...
2
votes
1
answer
891
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 ...
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": "...
2
votes
0
answers
183
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 ...
0
votes
1
answer
322
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": [
["...
0
votes
0
answers
371
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 ...
0
votes
1
answer
789
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 ...
1
vote
1
answer
513
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 ...
0
votes
1
answer
132
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?
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 ...
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://...
1
vote
2
answers
11k
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, ...
2
votes
3
answers
10k
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
46
votes
5
answers
151k
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?
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.