-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Packer - can't lock file '/var/lock/qemu-server/lock- #290
Comments
Anyone can help me please ? |
@steveDecot this could be that the QEMU agent (package A Ctrl+C during a packer build executes a Power Off (hard stop) which doesn't wait for the OS to signal that it's shut down. |
@mpywell Hi ! Thx for answer me ! :) I've this on my ks file `%post Reboot after the installation is complete.--eject attempt to eject the media before rebooting.reboot --eject` The machine reboot correctly and I check the logs
I think it's my nic card is not correctly enabled or qemu issues . I will try and tell you |
Hi ! I found the problem, In my ks.cfg file, I disable acpi ! --> acpi=off This command create my issue, even the shutdown command was stuck in the same way than packer I remove them and it's work fine ! Have nice day ! |
Hi everyone !
I' ve issues with packer and my proxmox cluster.
I would like create a Rocky Linux 9.4 template for starting. After that the idea is to use Terraform with this template.
I'm stuck on packer step.
This is the permissions through my token
Code:
My packer version
Code:
I've my kickstart file in http dir and my variables.pkvars.hcl.
Everything is fine exept at the end, especially on stopping VM for create the template.
On pve side I've this
Code:
and on packer side
Code:
rocky-linux-with-ks.proxmox.rocky-linux: output will be in this color.
==> rocky-linux-with-ks.proxmox.rocky-linux: Creating VM
==> rocky-linux-with-ks.proxmox.rocky-linux: No VM ID given, getting next free from Proxmox
==> rocky-linux-with-ks.proxmox.rocky-linux: Starting VM
==> rocky-linux-with-ks.proxmox.rocky-linux: Starting HTTP server on port 8098
==> rocky-linux-with-ks.proxmox.rocky-linux: Waiting 15s for boot
==> rocky-linux-with-ks.proxmox.rocky-linux: Typing the boot command
==> rocky-linux-with-ks.proxmox.rocky-linux: Waiting for SSH to become available...
==> rocky-linux-with-ks.proxmox.rocky-linux: Connected to SSH!
==> rocky-linux-with-ks.proxmox.rocky-linux: Stopping VM
==> rocky-linux-with-ks.proxmox.rocky-linux: Error converting VM to template, could not stop: VM quit/powerdown failed
==> rocky-linux-with-ks.proxmox.rocky-linux: Provisioning step had errors: Running the cleanup provisioner, if present...
==> rocky-linux-with-ks.proxmox.rocky-linux: Stopping VM
==> rocky-linux-with-ks.proxmox.rocky-linux: Deleting VM
Build 'rocky-linux-with-ks.proxmox.rocky-linux' errored after 8 minutes 13 seconds: Error converting VM to template, could not stop: VM quit/powerdown failed
I tried
I think the problem is on the templating phase.
I check the new version of code here : https://github.com/hashicorp/packer-plugin-proxmox/blob/main/docs/builders/iso.mdx . But elements are missing ( like
iso_storage_pool , umount_iso ... )
Do you have any ideas please ?
The text was updated successfully, but these errors were encountered: