Open ghost opened 3 years ago
@3nueves Can you please confirm that your preseed.cfg
works by creating a VM without using packer? It looks like you might have a typo in it on this line, with two backslashes \
:
2000 10000 100000000 ext4 \ \
@karliemeads, Oooh, I haven't seen this typo. I will try to build a VM now by correcting this typo and testing if it works. The truth is that now I do not remember if it works without using packer. I think so but I don't remember. Thank you!!
Hi @karliemeads , I've tried it but it hasn't worked, it behaves the same, thanks anyway.
@3nueves Were you able to fix it? I am having the same issue. Blue screen after network config with DHCP, however the same preseed file works well and install Debian 12 correctly when creating the VM manually. I am on Proxmox 8.1, packer 1.9.4. Proxmox plugin 1.1.8
Update on my side, it was a networking issue. Running the same preseed from S3 would work. I had two routers, and the provisioning machine was in a different subnet than the guest. I was expecting Debian to not find the file and stop but I guess it runs up to the DHCP section and halts.
This issue was originally opened by @3nueves as hashicorp/packer#10403. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.
When filing a bug, please include the following headings if possible. Any example text in this template can be deleted.
Overview of the Issue
Before we start, I apologize for my English.
When the packer reaches the boot_command and uploads the preseed.cfg file this file works the problem is when we get to the step to configure the storage, at this moment the process stops and does not continue, we only see the blue screen.
Reproduction Steps
I have a 6.2-4 version of the proxmox server where I run virtual machines and I would like to have my custom ISO.
To create ISO I have two files, a configuration file and the packer file. I launch the command from my desktop:
$ packer build -var-file = config.json debian-9.13.json proxmox: the output will be in this color.
==> proxmox: Creating VM ==> proxmox: Starting VM ==> proxmox: starting the HTTP server on port 8902 ==> proxmox: Waiting 10 seconds for boot ==> proxmox: typing boot command ==> proxmox: Waiting for SSH to be available ...
It loads the proseed.cfg file without problems and runs the whole process until it reaches the storage configuration. It stops here and does not continue, it reaches the timeout.
Packer version
From packer v1.6.5
Simplified Packer Buildfile
debian-9.13.json
Vars file: config.json
proseed.cfg
Operating system and Environment details
proxmox: pve-manager/6.2-4/9824574a kernel version: Linux 5.4.34-1-pve hashicorp/packer#1 SMP PVE 5.4.34-2
ISO: debian-9.13.0-amd64-netinst.iso
Log Fragments and crash.log files
$ packer build -debug -var-file=config.json debian-9.13.json
==> proxmox: Pausing after run of step 'StepDownload'. Press enter to continue. ==> proxmox: Pausing after run of step 'stepUploadISO'. Press enter to continue. ==> proxmox: Pausing after run of step 'stepUploadAdditionalISOs'. Press enter to continue. ==> proxmox: Creating VM ==> proxmox: Starting VM ==> proxmox: Pausing after run of step 'stepStartVM'. Press enter to continue. ==> proxmox: Starting HTTP server on port 8605 ==> proxmox: Pausing after run of step 'StepHTTPServer'. Press enter to continue. ==> proxmox: Waiting 10s for boot ==> proxmox: Typing the boot command ==> proxmox: Pausing after run of step 'stepTypeBootCommand'. Press enter to continue. ==> proxmox: Waiting for SSH to become available... Cancelling build after receiving interrupt ==> proxmox: Pausing before cleanup of step 'stepTypeBootCommand'. Press enter to continue. ==> proxmox: Pausing before cleanup of step 'StepHTTPServer'. Press enter to continue. ==> proxmox: Pausing before cleanup of step 'stepStartVM'. Press enter to continue. ==> proxmox: Stopping VM ==> proxmox: Deleting VM ==> proxmox: Pausing before cleanup of step 'stepUploadAdditionalISOs'. Press enter to continue. ==> proxmox: Pausing before cleanup of step 'stepUploadISO'. Press enter to continue. ==> proxmox: Pausing before cleanup of step 'StepDownload'. Press enter to continue. Build 'proxmox' errored after 2 minutes 52 seconds: build was cancelled