Qemu kvm - Timeout waiting for SSH

Hello folks,

I’m really struggling to get images created using kvm on a rhel79 VM, i continually get the “Timeout waiting for SSH” error.

Now here’s a thing, I’ve even tried to recreate images using templates that worked in the past on this VM and they get the same error so I’m wondering if the issue is external to packer/the template, I’m totally lost :slight_smile:

Anyway here is the template I’m using and the corresponding output.

[root@linux-packer au344525]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
[root@linux-packer au344525]# ./packer -version
Packer v1.10.0
[root@linux-packer au344525]# cat rhel9-jt.json.pkr.hcl
packer {
required_plugins {
qemu = {
source = “github.com/hashicorp/qemu
version = “~> 1”
}
}
}

source “qemu” “JT-RHEL93-packer-v1” {
accelerator = “kvm”
boot_command = [“”, “”, " append inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ksrhel9.cfg", “”]
boot_wait = “5s”
cpus = 2
disk_interface = “virtio”
disk_size = “61440M”
format = “qcow2”
headless = true
host_port_max = 2229
host_port_min = 2222
http_directory = “/appl/packer/ks”
http_port_max = 10089
http_port_min = 10082
iso_checksum = “sha256:5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8”
iso_url = “file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso”
memory = 2048
net_device = “virtio-net”
output_directory = “/appl/packer/output_image”
qemu_binary = “/usr/libexec/qemu-kvm”
shutdown_command = “shutdown -P now”
ssh_password = “"
ssh_port = 22
ssh_timeout = “3m”
ssh_username = "
"
vm_name = "
***************”
vnc_bind_address = “0.0.0.0”
vnc_port_max = “5996”
vnc_port_min = “5996”
}

build {
sources = [“source.qemu.JT-RHEL93-packer-v1”]

provisioner “file” {
destination = “/root/ksrhel9.cfg”
source = “/appl/packer/ks/ksrhel9.cfg”
}

provisioner “shell” {
inline = [“rm /etc/cloud/cloud-init.disabled”, “touch /BUILD_VERSION-$PACKER_BUILD_NAME”, “echo ‘localhost’ > /etc/hostname”]
}

}

[root@linux-packer au344525]# ./packer build rhel9-jt.json.pkr.hcl
qemu.SPW-RHEL93-packer-v1: output will be in this color.

==> qemu.SPW-RHEL93-packer-v1: Retrieving ISO
==> qemu.SPW-RHEL93-packer-v1: Trying file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso
==> qemu.SPW-RHEL93-packer-v1: Trying file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso?checksum=sha256%3A5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8
==> qemu.SPW-RHEL93-packer-v1: file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso?checksum=sha256%3A5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8 => /appl/packer/ISO/rhel-9.3-x86_64-dvd.iso
==> qemu.SPW-RHEL93-packer-v1: Starting HTTP server on port 10087
==> qemu.SPW-RHEL93-packer-v1: Found port for communicator (SSH, WinRM, etc): 2222.
==> qemu.SPW-RHEL93-packer-v1: Looking for available port between 5996 and 5996 on 0.0.0.0
==> qemu.SPW-RHEL93-packer-v1: Starting VM, booting from CD-ROM
qemu.SPW-RHEL93-packer-v1: The VM will be run headless, without a GUI. If you want to
qemu.SPW-RHEL93-packer-v1: view the screen of the VM, connect via VNC without a password to
qemu.SPW-RHEL93-packer-v1: vnc://0.0.0.0:5996
==> qemu.SPW-RHEL93-packer-v1: Waiting 5s for boot…
==> qemu.SPW-RHEL93-packer-v1: Connecting to VM via VNC (0.0.0.0:5996)
==> qemu.SPW-RHEL93-packer-v1: Typing the boot commands over VNC…
qemu.SPW-RHEL93-packer-v1: Not using a NetBridge – skipping StepWaitGuestAddress
==> qemu.SPW-RHEL93-packer-v1: Using SSH communicator to connect: 127.0.0.1
==> qemu.SPW-RHEL93-packer-v1: Waiting for SSH to become available…
==> qemu.SPW-RHEL93-packer-v1: Timeout waiting for SSH.
==> qemu.SPW-RHEL93-packer-v1: Deleting output directory…
Build ‘qemu.SPW-RHEL93-packer-v1’ errored after 4 minutes 241 milliseconds: Timeout waiting for SSH.

==> Wait completed after 4 minutes 331 milliseconds

==> Some builds didn’t complete successfully and had errors:
→ qemu.SPW-RHEL93-packer-v1: Timeout waiting for SSH.

==> Builds finished but no artifacts were created.

I would suggest that your ssh_timeout is too small, you are expecting a VM to be built, boot and install the operating system all within 3mins.

To start with I would want to watch packer boot up the vm, receive the kickstart file and start the install.

From your log it looks like you can do that with the following cmd:
qemu.SPW-RHEL93-packer-v1: view the screen of the VM, connect via VNC without a password to qemu.SPW-RHEL93-packer-v1: vnc://0.0.0.0:5996

As a test you could set the value to 30m and see if you can ssh to the templateVM yourself to check connectivity. Then take it from there… :upside_down_face:

ssh_timeout (duration string | ex: “1h5m2s”) - The time to wait for SSH to become available. Packer uses this to determine when the machine has booted so this is usually quite long. Example value: 10m. This defaults to 5m, unless ssh_handshake_attempts is set.

Hello,

Thanks for getting back to, I’ve increased to 30 minutes but the issue still persists.

Something I’ve noticed is once the build is initiated at no point is it present in the output of virsh list --all.

I can’t see anything on the console either, please note I’ve ommited the port as when it’s included the build gets killed.

[au344525@linux-packer ~]$ vncviewer localhost

TigerVNC Viewer 64-bit v1.8.0
Built on: 2023-11-02 10:04
Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.

Tue Jan 30 09:46:04 2024
DecodeManager: Detected 1 CPU core(s)
DecodeManager: Decoding data on main thread
CConn: unable to create socket: Address family not supported by protocol
(97)

I’ve attached the most recent log for info.

[root@linux-packer packer]# cat packer.log
2024/01/30 09:37:37 [INFO] Packer version: 1.10.0 [go1.20.11 linux amd64]
2024/01/30 09:37:37 Old default config directory found: /root/.packer.d
2024/01/30 09:37:37 [TRACE] discovering plugins in /home/au344525
2024/01/30 09:37:37 [TRACE] discovering plugins in .
2024/01/30 09:37:37 [TRACE] discovering plugins in /root/.packer.d/plugins
2024/01/30 09:37:37 [INFO] Discovered potential plugin: qemu = /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64
2024/01/30 09:37:37 [INFO] found external [-packer-default-plugin-name-] builders from qemu plugin
2024/01/30 09:37:37 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/01/30 09:37:37 [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/01/30 09:37:37 [WARN] Config file doesn’t exist: /root/.packerconfig
2024/01/30 09:37:37 Old default config directory found: /root/.packer.d
2024/01/30 09:37:37 [INFO] Setting cache directory: /root/.cache/packer
2024/01/30 09:37:37 Old default config directory found: /root/.packer.d
2024/01/30 09:37:37 [TRACE] listing potential installations for “github.com/hashicorp/qemu” that match “~> 1”. plugingetter.ListInstallationsOptions{FromFolders:string{“/home/au344525”, “.”, “/root/.packer.d/plugins”}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:“5”, APIVersionMinor:“0”, OS:“linux”, ARCH:“amd64”, Ext:“”, Checksummers:plugingetter.Checksummer{plugingetter.Checksummer{Type:“sha256”, Hash:(*sha256.digest)(0xc000344100)}}}}
2024/01/30 09:37:37 [TRACE] Found the following “github.com/hashicorp/qemu” installations: [{/root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 v1.0.10}]
2024/01/30 09:37:37 [INFO] found external [-packer-default-plugin-name-] builders from qemu plugin
2024/01/30 09:37:37 [INFO] Starting external plugin /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 start builder -packer-default-plugin-name-
2024/01/30 09:37:37 Starting plugin: /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 string{“/root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64”, “start”, “builder”, “-packer-default-plugin-name-”}
2024/01/30 09:37:37 Waiting for RPC address for: /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64
2024/01/30 09:37:37 Received unix RPC address for /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64: addr is /tmp/packer-plugin1002177776
2024/01/30 09:37:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:37:37 Plugin address: unix /tmp/packer-plugin1002177776
2024/01/30 09:37:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:37:37 Waiting for connection…
2024/01/30 09:37:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:37:37 Serving a plugin connection…
2024/01/30 09:37:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:37:37 [TRACE] starting builder -packer-default-plugin-name-
2024/01/30 09:37:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:37:37 use specified accelerator: kvm
2024/01/30 09:37:37 [INFO] Starting internal plugin packer-provisioner-file
2024/01/30 09:37:37 Starting plugin: /home/au344525/packer string{“/home/au344525/packer”, “plugin”, “packer-provisioner-file”}
2024/01/30 09:37:37 Waiting for RPC address for: /home/au344525/packer
2024/01/30 09:37:37 packer-provisioner-file plugin: [INFO] Packer version: 1.10.0 [go1.20.11 linux amd64]
2024/01/30 09:37:37 packer-provisioner-file plugin: Old default config directory found: /root/.packer.d
2024/01/30 09:37:37 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/01/30 09:37:37 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/01/30 09:37:37 packer-provisioner-file plugin: [WARN] Config file doesn’t exist: /root/.packerconfig
2024/01/30 09:37:37 packer-provisioner-file plugin: Old default config directory found: /root/.packer.d
2024/01/30 09:37:37 packer-provisioner-file plugin: [INFO] Setting cache directory: /root/.cache/packer
2024/01/30 09:37:37 packer-provisioner-file plugin: args: string{“packer-provisioner-file”}
2024/01/30 09:37:37 packer-provisioner-file plugin: Old default config directory found: /root/.packer.d
2024/01/30 09:37:37 Received unix RPC address for /home/au344525/packer: addr is /tmp/packer-plugin2370750440
2024/01/30 09:37:37 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin2370750440
2024/01/30 09:37:37 packer-provisioner-file plugin: Waiting for connection…
2024/01/30 09:37:37 packer-provisioner-file plugin: Serving a plugin connection…
2024/01/30 09:37:37 [INFO] Starting internal plugin packer-provisioner-shell
2024/01/30 09:37:37 Starting plugin: /home/au344525/packer string{“/home/au344525/packer”, “plugin”, “packer-provisioner-shell”}
2024/01/30 09:37:37 Waiting for RPC address for: /home/au344525/packer
2024/01/30 09:37:37 packer-provisioner-shell plugin: [INFO] Packer version: 1.10.0 [go1.20.11 linux amd64]
2024/01/30 09:37:37 packer-provisioner-shell plugin: Old default config directory found: /root/.packer.d
2024/01/30 09:37:37 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/01/30 09:37:37 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/01/30 09:37:37 packer-provisioner-shell plugin: [WARN] Config file doesn’t exist: /root/.packerconfig
2024/01/30 09:37:37 packer-provisioner-shell plugin: Old default config directory found: /root/.packer.d
2024/01/30 09:37:37 packer-provisioner-shell plugin: [INFO] Setting cache directory: /root/.cache/packer
2024/01/30 09:37:37 packer-provisioner-shell plugin: args: string{“packer-provisioner-shell”}
2024/01/30 09:37:37 packer-provisioner-shell plugin: Old default config directory found: /root/.packer.d
2024/01/30 09:37:37 Received unix RPC address for /home/au344525/packer: addr is /tmp/packer-plugin3846656817
2024/01/30 09:37:37 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin3846656817
2024/01/30 09:37:37 packer-provisioner-shell plugin: Waiting for connection…
2024/01/30 09:37:37 packer-provisioner-shell plugin: Serving a plugin connection…
2024/01/30 09:37:37 ui: qemu.JT-RHEL93-packer-v1: output will be in this color.
2024/01/30 09:37:37 ui:
2024/01/30 09:37:37 Build debug mode: false
2024/01/30 09:37:37 Force build: false
2024/01/30 09:37:37 On error:
2024/01/30 09:37:37 Waiting on builds to complete…
2024/01/30 09:37:37 Starting build run: qemu.JT-RHEL93-packer-v1
2024/01/30 09:37:37 Running builder:
2024/01/30 09:37:37 [INFO] (telemetry) Starting builder qemu.JT-RHEL93-packer-v1
2024/01/30 09:37:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:37:37 Qemu path: /usr/libexec/qemu-kvm, Qemu Image path: /bin/qemu-img
2024/01/30 09:37:37 ui: ==> qemu.JT-RHEL93-packer-v1: Retrieving ISO
2024/01/30 09:37:37 ui: ==> qemu.JT-RHEL93-packer-v1: Trying file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso
2024/01/30 09:37:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:37:37 Acquiring lock for: file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso?checksum=sha256%3A5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8 (/root/.cache/packer/ab69324c3eace5e53743eb3a345ab58968e6385d.iso.lock)
2024/01/30 09:37:37 ui: ==> qemu.JT-RHEL93-packer-v1: Trying file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso?checksum=sha256%3A5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8
2024/01/30 09:37:40 [ERR] Checkpoint error: Get “https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=b9263ca5-1cde-e091-0190-a5e77c24b085&version=1.10.0”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/01/30 09:37:40 packer-provisioner-file plugin: [ERR] Checkpoint error: Get “https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=b9263ca5-1cde-e091-0190-a5e77c24b085&version=1.10.0”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/01/30 09:37:40 packer-provisioner-shell plugin: [ERR] Checkpoint error: Get “https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=b9263ca5-1cde-e091-0190-a5e77c24b085&version=1.10.0”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/01/30 09:38:20 ui: ==> qemu.JT-RHEL93-packer-v1: file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso?checksum=sha256%3A5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8 => /appl/packer/ISO/rhel-9.3-x86_64-dvd.iso
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Leaving retrieve loop for ISO
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 No floppy files specified. Floppy disk will not be made.
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 No CD files specified. CD disk will not be made.
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 [INFO] Creating disk with Path: /appl/packer/output_image/JT-RHEL93-packer-v1 and Size: 61440M
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Executing qemu-img: string{“create”, “-f”, “qcow2”, “/appl/packer/output_image/JT-RHEL93-packer-v1”, “61440M”}
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 stdout: Formatting ‘/appl/packer/output_image/JT-RHEL93-packer-v1’, fmt=qcow2 size=64424509440 encryption=off cluster_size=65536 lazy_refcounts=off
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 stderr:
2024/01/30 09:38:20 ui: ==> qemu.JT-RHEL93-packer-v1: Starting HTTP server on port 10083
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Found available port: 10083 on IP: 0.0.0.0
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Looking for available communicator (SSH, WinRM, etc) port between 2222 and 2229
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Found available port: 2225 on IP: 0.0.0.0
2024/01/30 09:38:20 ui: ==> qemu.JT-RHEL93-packer-v1: Found port for communicator (SSH, WinRM, etc): 2225.
2024/01/30 09:38:20 ui: ==> qemu.JT-RHEL93-packer-v1: Looking for available port between 5996 and 5996 on 0.0.0.0
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Looking for available port between 5996 and 5996 on 0.0.0.0
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Found available port: 5996 on IP: 0.0.0.0
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Found available VNC port: 5996 on IP: 0.0.0.0
2024/01/30 09:38:20 ui: ==> qemu.JT-RHEL93-packer-v1: Starting VM, booting from CD-ROM
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Qemu --version output: QEMU emulator version 1.5.3 (qemu-kvm-1.5.3-175.el7_9.6), Copyright (c) 2003-2008 Fabrice Bellard
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Qemu version: 1.5.3
2024/01/30 09:38:20 ui: qemu.JT-RHEL93-packer-v1: The VM will be run headless, without a GUI. If you want to
qemu.JT-RHEL93-packer-v1: view the screen of the VM, connect via VNC without a password to
qemu.JT-RHEL93-packer-v1: vnc://0.0.0.0:5996
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Qemu Builder has no floppy files, not attaching a floppy.
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Executing /usr/libexec/qemu-kvm: string{“-vnc”, “0.0.0.0:96”, “-netdev”, “user,id=user.0,hostfwd=tcp::2225-:22”, “-m”, “2048M”, “-smp”, “2”, “-machine”, “type=pc,accel=kvm”, “-name”, “JT-RHEL93-packer-v1”, “-drive”, “file=/appl/packer/output_image/JT-RHEL93-packer-v1,if=virtio,cache=writeback,format=qcow2”, “-drive”, “file=/appl/packer/ISO/rhel-9.3-x86_64-dvd.iso,media=cdrom”, “-boot”, “once=d”, “-device”, “virtio-net,netdev=user.0”}
2024/01/30 09:38:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:20 Started Qemu. Pid: 232078
2024/01/30 09:38:22 ui: ==> qemu.JT-RHEL93-packer-v1: Waiting 5s for boot…
2024/01/30 09:38:27 ui: ==> qemu.JT-RHEL93-packer-v1: Connecting to VM via VNC (0.0.0.0:5996)
2024/01/30 09:38:27 ui: ==> qemu.JT-RHEL93-packer-v1: Typing the boot commands over VNC…
2024/01/30 09:38:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:27 Connected to VNC desktop: QEMU (JT-RHEL93-packer-v1)
2024/01/30 09:38:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:27 Special code ‘’ found, replacing with: 0xFF52
2024/01/30 09:38:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:27 Special code ‘’ found, replacing with: 0xFF09
2024/01/30 09:38:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:27 Sending char ’ ', code 0x20, shift false
2024/01/30 09:38:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:27 Sending char ‘a’, code 0x61, shift false
2024/01/30 09:38:28 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:28 Sending char ‘p’, code 0x70, shift false
2024/01/30 09:38:28 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:28 Sending char ‘p’, code 0x70, shift false
2024/01/30 09:38:28 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:28 Sending char ‘e’, code 0x65, shift false
2024/01/30 09:38:28 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:28 Sending char ‘n’, code 0x6E, shift false
2024/01/30 09:38:29 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:29 Sending char ‘d’, code 0x64, shift false
2024/01/30 09:38:29 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:29 Sending char ’ ', code 0x20, shift false
2024/01/30 09:38:29 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:29 Sending char ‘i’, code 0x69, shift false
2024/01/30 09:38:29 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:29 Sending char ‘n’, code 0x6E, shift false
2024/01/30 09:38:29 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:29 Sending char ‘s’, code 0x73, shift false
2024/01/30 09:38:30 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:30 Sending char ‘t’, code 0x74, shift false
2024/01/30 09:38:30 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:30 Sending char ‘.’, code 0x2E, shift false
2024/01/30 09:38:30 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:30 Sending char ‘k’, code 0x6B, shift false
2024/01/30 09:38:30 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:30 Sending char ‘s’, code 0x73, shift false
2024/01/30 09:38:30 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:30 Sending char ‘=’, code 0x3D, shift false
2024/01/30 09:38:31 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:31 Sending char ‘h’, code 0x68, shift false
2024/01/30 09:38:31 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:31 Sending char ‘t’, code 0x74, shift false
2024/01/30 09:38:31 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:31 Sending char ‘t’, code 0x74, shift false
2024/01/30 09:38:31 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:31 Sending char ‘p’, code 0x70, shift false
2024/01/30 09:38:31 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:31 Sending char ‘:’, code 0x3A, shift true
2024/01/30 09:38:32 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:32 Sending char ‘/’, code 0x2F, shift false
2024/01/30 09:38:32 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:32 Sending char ‘/’, code 0x2F, shift false
2024/01/30 09:38:32 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:32 Sending char ‘1’, code 0x31, shift false
2024/01/30 09:38:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:33 Sending char ‘0’, code 0x30, shift false
2024/01/30 09:38:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:33 Sending char ‘.’, code 0x2E, shift false
2024/01/30 09:38:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:33 Sending char ‘0’, code 0x30, shift false
2024/01/30 09:38:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:33 Sending char ‘.’, code 0x2E, shift false
2024/01/30 09:38:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:33 Sending char ‘2’, code 0x32, shift false
2024/01/30 09:38:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:34 Sending char ‘.’, code 0x2E, shift false
2024/01/30 09:38:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:34 Sending char ‘2’, code 0x32, shift false
2024/01/30 09:38:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:34 Sending char ‘:’, code 0x3A, shift true
2024/01/30 09:38:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:34 Sending char ‘1’, code 0x31, shift false
2024/01/30 09:38:35 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:35 Sending char ‘0’, code 0x30, shift false
2024/01/30 09:38:35 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:35 Sending char ‘0’, code 0x30, shift false
2024/01/30 09:38:35 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:35 Sending char ‘8’, code 0x38, shift false
2024/01/30 09:38:35 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:35 Sending char ‘3’, code 0x33, shift false
2024/01/30 09:38:35 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:35 Sending char ‘/’, code 0x2F, shift false
2024/01/30 09:38:36 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:36 Sending char ‘k’, code 0x6B, shift false
2024/01/30 09:38:36 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:36 Sending char ‘s’, code 0x73, shift false
2024/01/30 09:38:36 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:36 Sending char ‘r’, code 0x72, shift false
2024/01/30 09:38:36 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:36 Sending char ‘h’, code 0x68, shift false
2024/01/30 09:38:36 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:36 Sending char ‘e’, code 0x65, shift false
2024/01/30 09:38:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:37 Sending char ‘l’, code 0x6C, shift false
2024/01/30 09:38:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:37 Sending char ‘9’, code 0x39, shift false
2024/01/30 09:38:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:37 Sending char ‘.’, code 0x2E, shift false
2024/01/30 09:38:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:37 Sending char ‘c’, code 0x63, shift false
2024/01/30 09:38:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:37 Sending char ‘f’, code 0x66, shift false
2024/01/30 09:38:38 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:38 Sending char ‘g’, code 0x67, shift false
2024/01/30 09:38:38 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:38 Special code ‘’ found, replacing with: 0xFF0D
2024/01/30 09:38:38 ui: qemu.JT-RHEL93-packer-v1: Not using a NetBridge – skipping StepWaitGuestAddress
2024/01/30 09:38:38 ui: ==> qemu.JT-RHEL93-packer-v1: Using SSH communicator to connect: 127.0.0.1
2024/01/30 09:38:38 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:38 [INFO] Waiting for SSH, up to timeout: 30m0s
2024/01/30 09:38:38 ui: ==> qemu.JT-RHEL93-packer-v1: Waiting for SSH to become available…
2024/01/30 09:38:38 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:38 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:38:38 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:38 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:38:38 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:38:38 [DEBUG] handshaking with SSH
2024/01/30 09:39:38 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:39:38 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:39:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:39:45 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:39:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:39:45 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:39:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:39:45 [DEBUG] handshaking with SSH
2024/01/30 09:40:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:40:45 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:40:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:40:52 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:40:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:40:52 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:40:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:40:52 [DEBUG] handshaking with SSH
2024/01/30 09:41:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:41:52 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:41:59 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:41:59 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:41:59 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:41:59 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:41:59 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:41:59 [DEBUG] handshaking with SSH
2024/01/30 09:42:59 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:42:59 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:43:06 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:43:06 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:43:06 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:43:06 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:43:06 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:43:06 [DEBUG] handshaking with SSH
2024/01/30 09:44:06 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:44:06 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:44:13 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:44:13 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:44:13 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:44:13 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:44:13 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:44:13 [DEBUG] handshaking with SSH
2024/01/30 09:45:13 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:45:13 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:45:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:45:20 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:45:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:45:20 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:45:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:45:20 [DEBUG] handshaking with SSH
2024/01/30 09:46:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:46:20 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:46:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:46:27 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:46:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:46:27 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:46:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:46:27 [DEBUG] handshaking with SSH
2024/01/30 09:47:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:47:27 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:47:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:47:34 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:47:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:47:34 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:47:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:47:34 [DEBUG] handshaking with SSH
2024/01/30 09:48:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:48:34 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:48:41 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:48:41 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:48:41 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:48:41 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:48:41 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:48:41 [DEBUG] handshaking with SSH
2024/01/30 09:49:41 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:49:41 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:49:48 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:49:48 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:49:48 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:49:48 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:49:48 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:49:48 [DEBUG] handshaking with SSH
2024/01/30 09:50:48 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:50:48 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:50:55 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:50:55 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:50:55 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:50:55 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:50:55 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:50:55 [DEBUG] handshaking with SSH
2024/01/30 09:51:55 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:51:55 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:52:02 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:52:02 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:52:02 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:52:02 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:52:02 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:52:02 [DEBUG] handshaking with SSH
2024/01/30 09:53:02 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:53:02 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 09:53:09 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:53:09 [INFO] Attempting SSH connection to 127.0.0.1:2225…
2024/01/30 09:53:09 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:53:09 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 09:53:09 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 09:53:09 [DEBUG] handshaking with SSH

As you have identified it sounds like the templateVM is not being built at all…

I would take the vanilla example given in the QEMU Builder.
Try and get that the example to work. Proving that Packer can interact with Qemu and has permissions to build a VM.

It might be worth telling packer not to destroy/delete the vm as part of it’s clean up whilst you are testing:

source “qemu” “JT-RHEL93-packer-v1” {
...
destroy = false
}

I am presuming that you are running packer and Qemu on the same box. If not of the options that I would be interested in is ssh_bastion_*.

Hello,

Yep you’re correct, qemu and packer are on the same VM.

So i’ve got two variants of the template now using the link you provided, first version uses the native rhel qemu_binary and the second from epel, neither of which i can get working.

[root@linux-packer au344525]# cat qemu-template.pkr.hcl
source “qemu” “example” {
iso_url = “file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso”
iso_checksum = “sha256:5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8”
output_directory = “output_centos_tdhtest”
shutdown_command = “echo ‘packer’ | sudo -S shutdown -P now”
disk_size = “5000M”
format = “qcow2”
accelerator = “kvm”
http_directory = “/appl/packer/ks”
ssh_username = “root”
ssh_password = “s0m3password”
ssh_timeout = “20m”
vm_name = “tdhtest”
net_device = “virtio-net”
qemu_binary = “/usr/libexec/qemu-kvm”
disk_interface = “virtio”
boot_wait = “10s”
boot_command = [“ text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos6-ks.cfg”]
}

build {
sources = [“source.qemu.example”]
}
[root@linux-packer au344525]#
[root@linux-packer au344525]#
[root@linux-packer au344525]# cat /appl/packer/packer.log
2024/01/30 14:35:53 [INFO] Packer version: 1.10.0 [go1.20.11 linux amd64]
2024/01/30 14:35:53 Old default config directory found: /root/.packer.d
2024/01/30 14:35:53 [TRACE] discovering plugins in /home/au344525
2024/01/30 14:35:53 [TRACE] discovering plugins in .
2024/01/30 14:35:53 [TRACE] discovering plugins in /root/.packer.d/plugins
2024/01/30 14:35:53 [INFO] Discovered potential plugin: qemu = /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64
2024/01/30 14:35:53 [INFO] found external [-packer-default-plugin-name-] builders from qemu plugin
2024/01/30 14:35:53 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/01/30 14:35:53 [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/01/30 14:35:53 [WARN] Config file doesn’t exist: /root/.packerconfig
2024/01/30 14:35:53 Old default config directory found: /root/.packer.d
2024/01/30 14:35:53 [INFO] Setting cache directory: /root/.cache/packer
2024/01/30 14:35:53 Old default config directory found: /root/.packer.d
2024/01/30 14:35:53 [INFO] Starting external plugin /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 start builder -packer-default-plugin-name-
2024/01/30 14:35:53 Starting plugin: /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 string{“/root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64”, “start”, “builder”, “-packer-default-plugin-name-”}
2024/01/30 14:35:53 Waiting for RPC address for: /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64
2024/01/30 14:35:53 Received unix RPC address for /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64: addr is /tmp/packer-plugin3463297181
2024/01/30 14:35:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:35:53 Plugin address: unix /tmp/packer-plugin3463297181
2024/01/30 14:35:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:35:53 Waiting for connection…
2024/01/30 14:35:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:35:53 Serving a plugin connection…
2024/01/30 14:35:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:35:53 [TRACE] starting builder -packer-default-plugin-name-
2024/01/30 14:35:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:35:53 use specified accelerator: kvm
2024/01/30 14:35:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:35:53 MemorySize 0 is too small, using default: 512
2024/01/30 14:35:53 ui: qemu.example: output will be in this color.
2024/01/30 14:35:53 ui:
2024/01/30 14:35:53 Build debug mode: false
2024/01/30 14:35:53 Force build: false
2024/01/30 14:35:53 On error:
2024/01/30 14:35:53 Waiting on builds to complete…
2024/01/30 14:35:53 Starting build run: qemu.example
2024/01/30 14:35:53 Running builder:
2024/01/30 14:35:53 [INFO] (telemetry) Starting builder qemu.example
2024/01/30 14:35:53 ui: ==> qemu.example: Retrieving ISO
2024/01/30 14:35:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:35:53 Qemu path: /usr/libexec/qemu-kvm, Qemu Image path: /bin/qemu-img
2024/01/30 14:35:53 ui: ==> qemu.example: Trying file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso
2024/01/30 14:35:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:35:53 Acquiring lock for: file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso?checksum=sha256%3A5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8 (/root/.cache/packer/ab69324c3eace5e53743eb3a345ab58968e6385d.iso.lock)
2024/01/30 14:35:53 ui: ==> qemu.example: Trying file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso?checksum=sha256%3A5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8
2024/01/30 14:35:56 [ERR] Checkpoint error: Get “https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=b9263ca5-1cde-e091-0190-a5e77c24b085&version=1.10.0”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/01/30 14:36:32 ui: ==> qemu.example: file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso?checksum=sha256%3A5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8 => /appl/packer/ISO/rhel-9.3-x86_64-dvd.iso
2024/01/30 14:36:32 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:32 Leaving retrieve loop for ISO
2024/01/30 14:36:32 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:32 No floppy files specified. Floppy disk will not be made.
2024/01/30 14:36:32 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:32 No CD files specified. CD disk will not be made.
2024/01/30 14:36:32 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:32 [INFO] Creating disk with Path: output_centos_tdhtest/tdhtest and Size: 5000M
2024/01/30 14:36:32 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:32 Executing qemu-img: string{“create”, “-f”, “qcow2”, “output_centos_tdhtest/tdhtest”, “5000M”}
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 stdout: Formatting ‘output_centos_tdhtest/tdhtest’, fmt=qcow2 size=5242880000 encryption=off cluster_size=65536 lazy_refcounts=off
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 stderr:
2024/01/30 14:36:33 ui: ==> qemu.example: Starting HTTP server on port 8051
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 Found available port: 8051 on IP: 0.0.0.0
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 Looking for available communicator (SSH, WinRM, etc) port between 2222 and 4444
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 Found available port: 3206 on IP: 127.0.0.1
2024/01/30 14:36:33 ui: ==> qemu.example: Found port for communicator (SSH, WinRM, etc): 3206.
2024/01/30 14:36:33 ui: ==> qemu.example: Looking for available port between 5900 and 6000 on 127.0.0.1
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 Looking for available port between 5900 and 6000 on 127.0.0.1
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 Found available port: 5983 on IP: 127.0.0.1
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 Found available VNC port: 5983 on IP: 127.0.0.1
2024/01/30 14:36:33 ui: ==> qemu.example: Starting VM, booting from CD-ROM
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 Qemu --version output: QEMU emulator version 1.5.3 (qemu-kvm-1.5.3-175.el7_9.6), Copyright (c) 2003-2008 Fabrice Bellard
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 Qemu version: 1.5.3
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 Qemu Builder has no floppy files, not attaching a floppy.
2024/01/30 14:36:33 ui: qemu.example: WARNING: The version of qemu on your host doesn’t support display mode.
qemu.example: The display parameter will be ignored.
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 Executing /usr/libexec/qemu-kvm: string{“-netdev”, “user,id=user.0,hostfwd=tcp::3206-:22”, “-smp”, “1”, “-device”, “virtio-net,netdev=user.0”, “-drive”, “file=output_centos_tdhtest/tdhtest,if=virtio,cache=writeback,format=qcow2”, “-drive”, “file=/appl/packer/ISO/rhel-9.3-x86_64-dvd.iso,media=cdrom”, “-boot”, “once=d”, “-name”, “tdhtest”, “-machine”, “type=pc,accel=kvm”, “-m”, “512M”, “-vnc”, “127.0.0.1:83”}
2024/01/30 14:36:33 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:33 Started Qemu. Pid: 6408
2024/01/30 14:36:35 ui: ==> qemu.example: Waiting 10s for boot…
2024/01/30 14:36:45 ui: ==> qemu.example: Connecting to VM via VNC (127.0.0.1:5983)
2024/01/30 14:36:45 ui: ==> qemu.example: Typing the boot commands over VNC…
2024/01/30 14:36:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:45 Connected to VNC desktop: QEMU (tdhtest)
2024/01/30 14:36:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:45 Special code ‘’ found, replacing with: 0xFF09
2024/01/30 14:36:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:45 Sending char ’ ', code 0x20, shift false
2024/01/30 14:36:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:45 Sending char ‘t’, code 0x74, shift false
2024/01/30 14:36:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:45 Sending char ‘e’, code 0x65, shift false
2024/01/30 14:36:46 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:46 Sending char ‘x’, code 0x78, shift false
2024/01/30 14:36:46 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:46 Sending char ‘t’, code 0x74, shift false
2024/01/30 14:36:46 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:46 Sending char ’ ', code 0x20, shift false
2024/01/30 14:36:46 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:46 Sending char ‘k’, code 0x6B, shift false
2024/01/30 14:36:46 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:46 Sending char ‘s’, code 0x73, shift false
2024/01/30 14:36:47 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:47 Sending char ‘=’, code 0x3D, shift false
2024/01/30 14:36:47 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:47 Sending char ‘h’, code 0x68, shift false
2024/01/30 14:36:47 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:47 Sending char ‘t’, code 0x74, shift false
2024/01/30 14:36:47 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:47 Sending char ‘t’, code 0x74, shift false
2024/01/30 14:36:47 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:47 Sending char ‘p’, code 0x70, shift false
2024/01/30 14:36:48 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:48 Sending char ‘:’, code 0x3A, shift true
2024/01/30 14:36:48 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:48 Sending char ‘/’, code 0x2F, shift false
2024/01/30 14:36:48 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:48 Sending char ‘/’, code 0x2F, shift false
2024/01/30 14:36:49 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:49 Sending char ‘1’, code 0x31, shift false
2024/01/30 14:36:49 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:49 Sending char ‘0’, code 0x30, shift false
2024/01/30 14:36:49 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:49 Sending char ‘.’, code 0x2E, shift false
2024/01/30 14:36:49 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:49 Sending char ‘0’, code 0x30, shift false
2024/01/30 14:36:49 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:49 Sending char ‘.’, code 0x2E, shift false
2024/01/30 14:36:50 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:50 Sending char ‘2’, code 0x32, shift false
2024/01/30 14:36:50 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:50 Sending char ‘.’, code 0x2E, shift false
2024/01/30 14:36:50 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:50 Sending char ‘2’, code 0x32, shift false
2024/01/30 14:36:50 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:50 Sending char ‘:’, code 0x3A, shift true
2024/01/30 14:36:51 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:51 Sending char ‘8’, code 0x38, shift false
2024/01/30 14:36:51 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:51 Sending char ‘0’, code 0x30, shift false
2024/01/30 14:36:51 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:51 Sending char ‘5’, code 0x35, shift false
2024/01/30 14:36:51 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:51 Sending char ‘1’, code 0x31, shift false
2024/01/30 14:36:51 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:51 Sending char ‘/’, code 0x2F, shift false
2024/01/30 14:36:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:52 Sending char ‘c’, code 0x63, shift false
2024/01/30 14:36:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:52 Sending char ‘e’, code 0x65, shift false
2024/01/30 14:36:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:52 Sending char ‘n’, code 0x6E, shift false
2024/01/30 14:36:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:52 Sending char ‘t’, code 0x74, shift false
2024/01/30 14:36:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:52 Sending char ‘o’, code 0x6F, shift false
2024/01/30 14:36:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:53 Sending char ‘s’, code 0x73, shift false
2024/01/30 14:36:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:53 Sending char ‘6’, code 0x36, shift false
2024/01/30 14:36:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:53 Sending char ‘-’, code 0x2D, shift false
2024/01/30 14:36:53 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:53 Sending char ‘k’, code 0x6B, shift false
2024/01/30 14:36:54 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:54 Sending char ‘s’, code 0x73, shift false
2024/01/30 14:36:54 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:54 Sending char ‘.’, code 0x2E, shift false
2024/01/30 14:36:54 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:54 Sending char ‘c’, code 0x63, shift false
2024/01/30 14:36:54 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:54 Sending char ‘f’, code 0x66, shift false
2024/01/30 14:36:54 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:54 Sending char ‘g’, code 0x67, shift false
2024/01/30 14:36:55 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:55 Special code ‘’ found, replacing with: 0xFF0D
2024/01/30 14:36:55 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:55 [INFO] Waiting 1s
2024/01/30 14:36:56 ui: qemu.example: Not using a NetBridge – skipping StepWaitGuestAddress
2024/01/30 14:36:56 ui: ==> qemu.example: Using SSH communicator to connect: 127.0.0.1
2024/01/30 14:36:56 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:56 [INFO] Waiting for SSH, up to timeout: 20m0s
2024/01/30 14:36:56 ui: ==> qemu.example: Waiting for SSH to become available…
2024/01/30 14:36:56 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:56 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:36:56 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:56 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:36:56 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:36:56 [DEBUG] handshaking with SSH
2024/01/30 14:37:56 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:37:56 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:38:03 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:38:03 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:38:03 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:38:03 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:38:03 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:38:03 [DEBUG] handshaking with SSH
2024/01/30 14:39:03 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:39:03 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:39:10 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:39:10 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:39:10 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:39:10 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:39:10 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:39:10 [DEBUG] handshaking with SSH
2024/01/30 14:40:10 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:40:10 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:40:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:40:17 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:40:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:40:17 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:40:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:40:17 [DEBUG] handshaking with SSH
2024/01/30 14:41:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:41:17 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:41:24 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:41:24 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:41:24 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:41:24 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:41:24 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:41:24 [DEBUG] handshaking with SSH
2024/01/30 14:42:24 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:42:24 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:42:31 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:42:31 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:42:31 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:42:31 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:42:31 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:42:31 [DEBUG] handshaking with SSH
2024/01/30 14:43:31 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:43:31 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:43:38 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:43:38 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:43:38 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:43:38 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:43:38 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:43:38 [DEBUG] handshaking with SSH
2024/01/30 14:44:38 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:44:38 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:44:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:44:45 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:44:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:44:45 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:44:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:44:45 [DEBUG] handshaking with SSH
2024/01/30 14:45:45 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:45:45 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:45:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:45:52 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:45:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:45:52 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:45:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:45:52 [DEBUG] handshaking with SSH
2024/01/30 14:46:52 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:46:52 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:46:59 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:46:59 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:46:59 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:46:59 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:46:59 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:46:59 [DEBUG] handshaking with SSH
2024/01/30 14:47:59 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:47:59 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:48:06 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:48:06 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:48:06 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:48:06 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:48:06 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:48:06 [DEBUG] handshaking with SSH
2024/01/30 14:49:06 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:49:06 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:49:13 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:49:13 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:49:13 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:49:13 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:49:13 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:49:13 [DEBUG] handshaking with SSH
2024/01/30 14:50:13 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:50:13 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:50:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:50:20 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:50:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:50:20 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:50:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:50:20 [DEBUG] handshaking with SSH
2024/01/30 14:51:20 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:51:20 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:51:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:51:27 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:51:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:51:27 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:51:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:51:27 [DEBUG] handshaking with SSH
2024/01/30 14:52:27 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:52:27 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:52:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:52:34 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:52:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:52:34 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:52:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:52:34 [DEBUG] handshaking with SSH
2024/01/30 14:53:34 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:53:34 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:53:41 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:53:41 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:53:41 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:53:41 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:53:41 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:53:41 [DEBUG] handshaking with SSH
2024/01/30 14:54:41 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:54:41 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:54:48 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:54:48 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:54:48 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:54:48 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:54:48 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:54:48 [DEBUG] handshaking with SSH
2024/01/30 14:55:48 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:55:48 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:55:55 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:55:55 [INFO] Attempting SSH connection to 127.0.0.1:3206…
2024/01/30 14:55:55 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:55:55 [DEBUG] reconnecting to TCP connection for SSH
2024/01/30 14:55:55 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:55:55 [DEBUG] handshaking with SSH
2024/01/30 14:56:55 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:56:55 [DEBUG] SSH handshake err: Timeout during SSH handshake
2024/01/30 14:56:56 ui error: ==> qemu.example: Timeout waiting for SSH.
2024/01/30 14:56:56 ui: ==> qemu.example: Deleting output directory…
2024/01/30 14:56:56 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:56:56 failed to unlock port lockfile: close tcp 127.0.0.1:5983: use of closed network connection
2024/01/30 14:56:56 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:56:56 failed to unlock port lockfile: close tcp 127.0.0.1:3206: use of closed network connection
2024/01/30 14:56:56 [INFO] (telemetry) ending qemu.example
2024/01/30 14:56:56 ui error: Build ‘qemu.example’ errored after 21 minutes 2 seconds: Timeout waiting for SSH.
2024/01/30 14:56:56 ui:
==> Wait completed after 21 minutes 2 seconds
2024/01/30 14:56:56 machine readable: error-count string{“1”}
2024/01/30 14:56:56 ui error:
==> Some builds didn’t complete successfully and had errors:
2024/01/30 14:56:56 machine readable: qemu.example,error string{“Timeout waiting for SSH.”}
2024/01/30 14:56:56 ui error: → qemu.example: Timeout waiting for SSH.
2024/01/30 14:56:56 ui:
==> Builds finished but no artifacts were created.
2024/01/30 14:56:56 [INFO] (telemetry) Finalizing.
2024/01/30 14:56:57 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:56:57 [DEBUG] SSH wait cancelled. Exiting loop.
2024/01/30 14:56:58 [WARN] (telemetry) Error finalizing report. This is safe to ignore. Post “https://checkpoint-api.hashicorp.com/v1/telemetry/packer”: context deadline exceeded
2024/01/30 14:56:58 waiting for all plugin processes to complete…
2024/01/30 14:56:58 /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64: plugin process exited

In the second version i removed that entry and installed qemu-system from the epel repo.

[root@linux-packer au344525]# yum list installed | grep qemu-system
qemu-system-x86.x86_64 2:2.0.0-5.el7 @epel

[root@linux-packer au344525]# cat qemu-template.pkr.hcl
source “qemu” “example” {
iso_url = “file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso”
iso_checksum = “sha256:5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8”
output_directory = “output_centos_tdhtest”
shutdown_command = “echo ‘packer’ | sudo -S shutdown -P now”
disk_size = “5000M”
format = “qcow2”
accelerator = “kvm”
http_directory = “/appl/packer/ks”
ssh_username = “root”
ssh_password = “s0m3password”
ssh_timeout = “20m”
vm_name = “tdhtest”
net_device = “virtio-net"disk_interface = “virtio”
boot_wait = “10s”
boot_command = [” text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos6-ks.cfg"]
}

build {
sources = [“source.qemu.example”]
}

root@linux-packer au344525]#
[root@linux-packer au344525]# cat /tmp/qemu-system.log
2024/01/30 14:12:37 [INFO] Packer version: 1.10.0 [go1.20.11 linux amd64]
2024/01/30 14:12:37 Old default config directory found: /root/.packer.d
2024/01/30 14:12:37 [TRACE] discovering plugins in /home/au344525
2024/01/30 14:12:37 [TRACE] discovering plugins in .
2024/01/30 14:12:37 [TRACE] discovering plugins in /root/.packer.d/plugins
2024/01/30 14:12:37 [INFO] Discovered potential plugin: qemu = /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64
2024/01/30 14:12:37 [INFO] found external [-packer-default-plugin-name-] builders from qemu plugin
2024/01/30 14:12:37 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2024/01/30 14:12:37 [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2024/01/30 14:12:37 [WARN] Config file doesn’t exist: /root/.packerconfig
2024/01/30 14:12:37 Old default config directory found: /root/.packer.d
2024/01/30 14:12:37 [INFO] Setting cache directory: /root/.cache/packer
2024/01/30 14:12:37 Old default config directory found: /root/.packer.d
2024/01/30 14:12:37 [INFO] Starting external plugin /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 start builder -packer-default-plugin-name-
2024/01/30 14:12:37 Starting plugin: /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 string{“/root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64”, “start”, “builder”, “-packer-default-plugin-name-”}
2024/01/30 14:12:37 Waiting for RPC address for: /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64
2024/01/30 14:12:37 Received unix RPC address for /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64: addr is /tmp/packer-plugin903211178
2024/01/30 14:12:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:12:37 Plugin address: unix /tmp/packer-plugin903211178
2024/01/30 14:12:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:12:37 Waiting for connection…
2024/01/30 14:12:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:12:37 Serving a plugin connection…
2024/01/30 14:12:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:12:37 [TRACE] starting builder -packer-default-plugin-name-
2024/01/30 14:12:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:12:37 use specified accelerator: kvm
2024/01/30 14:12:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:12:37 MemorySize 0 is too small, using default: 512
2024/01/30 14:12:37 ui: qemu.example: output will be in this color.
2024/01/30 14:12:37 ui:
2024/01/30 14:12:37 Build debug mode: false
2024/01/30 14:12:37 Force build: false
2024/01/30 14:12:37 On error:
2024/01/30 14:12:37 Waiting on builds to complete…
2024/01/30 14:12:37 Starting build run: qemu.example
2024/01/30 14:12:37 Running builder:
2024/01/30 14:12:37 [INFO] (telemetry) Starting builder qemu.example
2024/01/30 14:12:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:12:37 Qemu path: /bin/qemu-system-x86_64, Qemu Image path: /bin/qemu-img
2024/01/30 14:12:37 ui: ==> qemu.example: Retrieving ISO
2024/01/30 14:12:37 ui: ==> qemu.example: Trying file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso
2024/01/30 14:12:37 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:12:37 Acquiring lock for: file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso?checksum=sha256%3A5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8 (/root/.cache/packer/ab69324c3eace5e53743eb3a345ab58968e6385d.iso.lock)
2024/01/30 14:12:37 ui: ==> qemu.example: Trying file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso?checksum=sha256%3A5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8
2024/01/30 14:12:40 [ERR] Checkpoint error: Get “https://checkpoint-api.hashicorp.com/v1/check/packer?arch=amd64&os=linux&signature=b9263ca5-1cde-e091-0190-a5e77c24b085&version=1.10.0”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)
2024/01/30 14:13:17 ui: ==> qemu.example: file:///appl/packer/ISO/rhel-9.3-x86_64-dvd.iso?checksum=sha256%3A5c802147aa58429b21e223ee60e347e850d6b0d8680930c4ffb27340ffb687a8 => /appl/packer/ISO/rhel-9.3-x86_64-dvd.iso
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Leaving retrieve loop for ISO
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 No floppy files specified. Floppy disk will not be made.
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 No CD files specified. CD disk will not be made.
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 [INFO] Creating disk with Path: output_centos_tdhtest/tdhtest and Size: 5000M
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Executing qemu-img: string{“create”, “-f”, “qcow2”, “output_centos_tdhtest/tdhtest”, “5000M”}
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 stdout: Formatting ‘output_centos_tdhtest/tdhtest’, fmt=qcow2 size=5242880000 encryption=off cluster_size=65536 lazy_refcounts=off
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 stderr:
2024/01/30 14:13:17 ui: ==> qemu.example: Starting HTTP server on port 8337
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Found available port: 8337 on IP: 0.0.0.0
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Looking for available communicator (SSH, WinRM, etc) port between 2222 and 4444
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Found available port: 2804 on IP: 127.0.0.1
2024/01/30 14:13:17 ui: ==> qemu.example: Found port for communicator (SSH, WinRM, etc): 2804.
2024/01/30 14:13:17 ui: ==> qemu.example: Looking for available port between 5900 and 6000 on 127.0.0.1
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Looking for available port between 5900 and 6000 on 127.0.0.1
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Found available port: 5914 on IP: 127.0.0.1
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Found available VNC port: 5914 on IP: 127.0.0.1
2024/01/30 14:13:17 ui: ==> qemu.example: Starting VM, booting from CD-ROM
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Qemu --version output: QEMU emulator version 2.0.0, Copyright (c) 2003-2008 Fabrice Bellard
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Qemu version: 2.0.0
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Qemu Builder has no floppy files, not attaching a floppy.
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Executing /bin/qemu-system-x86_64: string{“-vnc”, “127.0.0.1:14”, “-smp”, “1”, “-boot”, “once=d”, “-name”, “tdhtest”, “-drive”, “file=output_centos_tdhtest/tdhtest,if=virtio,cache=writeback,discard=ignore,format=qcow2”, “-drive”, “file=/appl/packer/ISO/rhel-9.3-x86_64-dvd.iso,media=cdrom”, “-device”, “virtio-net,netdev=user.0”, “-machine”, “type=pc,accel=kvm”, “-netdev”, “user,id=user.0,hostfwd=tcp::2804-:22”, “-m”, “512M”, “-display”, “gtk”}
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Started Qemu. Pid: 4874
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Qemu stderr:
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Qemu stderr: (process:4874): GLib-WARNING **: 14:13:17.618: gmem.c:489: custom memory allocation vtable not supported
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Qemu stderr:
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 Qemu stderr: (qemu-system-x86_64:4874): Gtk-WARNING **: 14:13:17.697: cannot open display:
2024/01/30 14:13:17 ui error: ==> qemu.example: Error launching VM: Qemu failed to start. Please run with PACKER_LOG=1 to get more info.
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 failed to unlock port lockfile: close tcp 127.0.0.1:5914: use of closed network connection
2024/01/30 14:13:17 packer-plugin-qemu_v1.0.10_x5.0_linux_amd64 plugin: 2024/01/30 14:13:17 failed to unlock port lockfile: close tcp 127.0.0.1:2804: use of closed network connection
2024/01/30 14:13:17 ui: ==> qemu.example: Deleting output directory…
2024/01/30 14:13:17 [INFO] (telemetry) ending qemu.example
2024/01/30 14:13:17 ui error: Build ‘qemu.example’ errored after 39 seconds 717 milliseconds: Build was halted.
2024/01/30 14:13:17 ui:
==> Wait completed after 39 seconds 727 milliseconds
2024/01/30 14:13:17 machine readable: error-count string{“1”}
2024/01/30 14:13:17 ui error:
==> Some builds didn’t complete successfully and had errors:
2024/01/30 14:13:17 machine readable: qemu.example,error string{“Build was halted.”}
2024/01/30 14:13:17 ui error: → qemu.example: Build was halted.
2024/01/30 14:13:17 ui:
==> Builds finished but no artifacts were created.
2024/01/30 14:13:17 [INFO] (telemetry) Finalizing.
2024/01/30 14:13:19 [WARN] (telemetry) Error finalizing report. This is safe to ignore. Post “https://checkpoint-api.hashicorp.com/v1/telemetry/packer”: context deadline exceeded
2024/01/30 14:13:19 waiting for all plugin processes to complete…
2024/01/30 14:13:19 /root/.packer.d/plugins/github.com/hashicorp/qemu/packer-plugin-qemu_v1.0.10_x5.0_linux_amd64: plugin process exited