Hi,
As stated on the title, I’m unable to start the build process due to being stuck at the installation process window. My boot commands are sent but I cannot move forward. Below is the Packer log.
`2020/08/05 15:16:21 [INFO] Packer version: 1.5.6 [go1.14.2 linux amd64]
2020/08/05 15:16:21 Checking ‘PACKER_CONFIG’ for a config file path
2020/08/05 15:16:21 ‘PACKER_CONFIG’ not set; checking the default config file path
2020/08/05 15:16:21 Attempting to open config file: /root/.packerconfig
2020/08/05 15:16:21 [WARN] Config file doesn’t exist: /root/.packerconfig
2020/08/05 15:16:21 Setting cache directory: /build/Images/Cloud-imagebuild/packer_cache
2020/08/05 15:16:21 Creating plugin client for path: /usr/bin/packer
2020/08/05 15:16:21 Starting plugin: /usr/bin/packer string{"/usr/bin/packer", “plugin”, “packer-builder-qemu”}
2020/08/05 15:16:21 Waiting for RPC address for: /usr/bin/packer
2020/08/05 15:16:21 packer-builder-qemu plugin: [INFO] Packer version: 1.5.6 [go1.14.2 linux amd64]
2020/08/05 15:16:21 packer-builder-qemu plugin: Checking ‘PACKER_CONFIG’ for a config file path
2020/08/05 15:16:21 packer-builder-qemu plugin: ‘PACKER_CONFIG’ not set; checking the default config file path
2020/08/05 15:16:21 packer-builder-qemu plugin: Attempting to open config file: /root/.packerconfig
2020/08/05 15:16:21 packer-builder-qemu plugin: [WARN] Config file doesn’t exist: /root/.packerconfig
2020/08/05 15:16:21 packer-builder-qemu plugin: Setting cache directory: /build/Images/Cloud-imagebuild/packer_cache
2020/08/05 15:16:21 packer-builder-qemu plugin: args: string{“packer-builder-qemu”}
2020/08/05 15:16:21 packer-builder-qemu plugin: Plugin address: unix /tmp/packer-plugin223197801
2020/08/05 15:16:21 packer-builder-qemu plugin: Waiting for connection…
2020/08/05 15:16:21 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin223197801
2020/08/05 15:16:21 packer-builder-qemu plugin: Serving a plugin connection…
2020/08/05 15:16:21 Build debug mode: false
2020/08/05 15:16:21 Force build: true
2020/08/05 15:16:21 On error:
2020/08/05 15:16:21 Preparing build: qemu
qemu: output will be in this color.
2020/08/05 15:16:21 packer-builder-qemu plugin: use specified accelerator: kvm
2020/08/05 15:16:21 packer-builder-qemu plugin: MemorySize 0 is too small, using default: 512
2020/08/05 15:16:21 Waiting on builds to complete…
2020/08/05 15:16:21 Starting build run: qemu
2020/08/05 15:16:21 Running builder: qemu
2020/08/05 15:16:21 [INFO] (telemetry) Starting builder qemu
2020/08/05 15:16:21 packer-builder-qemu plugin: Qemu path: /usr/bin/qemu-system-x86_64, Qemu Image page: /usr/bin/qemu-img
==> qemu: Retrieving ISO
==> qemu: Trying /build/Images/Cloud-imagebuild/ISOs/rhel-server-7.8-x86_64-dvd.iso
2020/08/05 15:16:21 packer-builder-qemu plugin: Acquiring lock for: /build/Images/Cloud-imagebuild/ISOs/rhel-server-7.8-x86_64-dvd.iso?checksum=md5%3A03e744681b67cbfe4c89b9fc7a89f21b (/build/Images/Cloud-imagebuild/packer_cache/f6ffef63d4b928733ec159bca1ecb6ac73481cad.iso.lock)
==> qemu: Trying /build/Images/Cloud-imagebuild/ISOs/rhel-server-7.8-x86_64-dvd.iso?checksum=md5%3A03e744681b67cbfe4c89b9fc7a89f21b
2020/08/05 15:16:32 packer-builder-qemu plugin: Leaving retrieve loop for ISO
2020/08/05 15:16:32 packer-builder-qemu plugin: No floppy files specified. Floppy disk will not be made.
2020/08/05 15:16:32 packer-builder-qemu plugin: [INFO] Creating disk with Path: output-qemu/rhel78 and Size: 60000M
2020/08/05 15:16:32 packer-builder-qemu plugin: Executing qemu-img: string{“create”, “-f”, “qcow2”, “output-qemu/rhel78”, “60000M”}
==> qemu: /build/Images/Cloud-imagebuild/ISOs/rhel-server-7.8-x86_64-dvd.iso?checksum=md5%3A03e744681b67cbfe4c89b9fc7a89f21b => /build/Images/Cloud-imagebuild/packer_cache/f6ffef63d4b928733ec159bca1ecb6ac73481cad.iso
==> qemu: Creating required virtual machine disks
2020/08/05 15:16:32 packer-builder-qemu plugin: stdout: Formatting ‘output-qemu/rhel78’, fmt=qcow2 size=62914560000 cluster_size=65536 lazy_refcounts=off refcount_bits=16
2020/08/05 15:16:32 packer-builder-qemu plugin: stderr:
2020/08/05 15:16:32 packer-builder-qemu plugin: Found available port: 8431 on IP: 0.0.0.0
==> qemu: Starting HTTP server on port 8431
2020/08/05 15:16:32 packer-builder-qemu plugin: Looking for available communicator (SSH, WinRM, etc) port between 2222 and 4444
2020/08/05 15:16:32 packer-builder-qemu plugin: Found available port: 3979 on IP: 127.0.0.1
==> qemu: Found port for communicator (SSH, WinRM, etc): 3979.
==> qemu: Looking for available port between 5900 and 6000 on 127.0.0.1
2020/08/05 15:16:32 packer-builder-qemu plugin: Looking for available port between 5900 and 6000 on 127.0.0.1
2020/08/05 15:16:32 packer-builder-qemu plugin: Found available port: 5996 on IP: 127.0.0.1
2020/08/05 15:16:32 packer-builder-qemu plugin: Found available VNC port: 5996 on IP: 127.0.0.1
==> qemu: Starting VM, booting from CD-ROM
2020/08/05 15:16:32 packer-builder-qemu plugin: Qemu --version output: QEMU emulator version 4.2.0 (Debian 1:4.2-3ubuntu6.3)
2020/08/05 15:16:32 packer-builder-qemu plugin: Copyright © 2003-2019 Fabrice Bellard and the QEMU Project developers
2020/08/05 15:16:32 packer-builder-qemu plugin: Qemu version: 4.2.0
2020/08/05 15:16:32 packer-builder-qemu plugin: Qemu Builder has no floppy files, not attaching a floppy.
==> qemu: Overriding defaults Qemu arguments with QemuArgs…
2020/08/05 15:16:32 packer-builder-qemu plugin: Executing /usr/bin/qemu-system-x86_64: string{"-m", “4048M”, “-netdev”, “user,id=user.0,hostfwd=tcp::3979-:22”, “-smp”, “cpus=2,sockets=2”, “-name”, “rhel78”, “-vnc”, “127.0.0.1:96”, “-machine”, “type=pc,accel=kvm”, “-display”, “gtk”, “-drive”, “file=output-qemu/rhel78,if=virtio,cache=writeback,discard=ignore,format=qcow2”, “-boot”, “once=d”, “-cdrom”, “/build/Images/Cloud-imagebuild/packer_cache/f6ffef63d4b928733ec159bca1ecb6ac73481cad.iso”, “-device”, “virtio-net,netdev=user.0”}
2020/08/05 15:16:32 packer-builder-qemu plugin: Started Qemu. Pid: 542731
==> qemu: Waiting 14s for boot…
2020/08/05 15:16:43 packer-builder-qemu plugin: Qemu stderr: qemu-system-x86_64: warning: host doesn’t support requested feature: CPUID.80000001H:ECX.svm [bit 2]
2020/08/05 15:16:43 packer-builder-qemu plugin: Qemu stderr: qemu-system-x86_64: warning: host doesn’t support requested feature: CPUID.80000001H:ECX.svm [bit 2]
==> qemu: Connecting to VM via VNC (127.0.0.1:5996)
==> qemu: Typing the boot command over VNC…
2020/08/05 15:16:51 packer-builder-qemu plugin: Connected to VNC desktop: QEMU (rhel78)
2020/08/05 15:16:51 packer-builder-qemu plugin: Special code ‘’ found, replacing with: 0xFF52
2020/08/05 15:16:51 packer-builder-qemu plugin: [INFO] Waiting 1s
2020/08/05 15:16:52 packer-builder-qemu plugin: Special code ‘’ found, replacing with: 0xFF09
2020/08/05 15:16:52 packer-builder-qemu plugin: Sending char ‘t’, code 0x74, shift false
2020/08/05 15:16:52 packer-builder-qemu plugin: Sending char ‘e’, code 0x65, shift false
2020/08/05 15:16:53 packer-builder-qemu plugin: Sending char ‘x’, code 0x78, shift false
2020/08/05 15:16:53 packer-builder-qemu plugin: Sending char ‘t’, code 0x74, shift false
2020/08/05 15:16:53 packer-builder-qemu plugin: Sending char ’ ', code 0x20, shift false
2020/08/05 15:16:53 packer-builder-qemu plugin: Sending char ‘a’, code 0x61, shift false
2020/08/05 15:16:53 packer-builder-qemu plugin: Sending char ‘p’, code 0x70, shift false
2020/08/05 15:16:54 packer-builder-qemu plugin: Sending char ‘p’, code 0x70, shift false
2020/08/05 15:16:54 packer-builder-qemu plugin: Sending char ‘e’, code 0x65, shift false
2020/08/05 15:16:54 packer-builder-qemu plugin: Sending char ‘n’, code 0x6E, shift false
2020/08/05 15:16:54 packer-builder-qemu plugin: Sending char ‘d’, code 0x64, shift false
2020/08/05 15:16:54 packer-builder-qemu plugin: Sending char ’ ', code 0x20, shift false
2020/08/05 15:16:55 packer-builder-qemu plugin: Sending char ‘k’, code 0x6B, shift false
2020/08/05 15:16:55 packer-builder-qemu plugin: Sending char ‘s’, code 0x73, shift false
2020/08/05 15:16:55 packer-builder-qemu plugin: Sending char ‘=’, code 0x3D, shift false
2020/08/05 15:16:55 packer-builder-qemu plugin: Sending char ‘h’, code 0x68, shift false
2020/08/05 15:16:55 packer-builder-qemu plugin: Sending char ‘t’, code 0x74, shift false
2020/08/05 15:16:56 packer-builder-qemu plugin: Sending char ‘t’, code 0x74, shift false
2020/08/05 15:16:56 packer-builder-qemu plugin: Sending char ‘p’, code 0x70, shift false
2020/08/05 15:16:56 packer-builder-qemu plugin: Sending char ‘:’, code 0x3A, shift true
2020/08/05 15:16:56 packer-builder-qemu plugin: Sending char ‘/’, code 0x2F, shift false
2020/08/05 15:16:57 packer-builder-qemu plugin: Sending char ‘/’, code 0x2F, shift false
2020/08/05 15:16:57 packer-builder-qemu plugin: Sending char ‘1’, code 0x31, shift false
2020/08/05 15:16:57 packer-builder-qemu plugin: Sending char ‘0’, code 0x30, shift false
2020/08/05 15:16:57 packer-builder-qemu plugin: Sending char ‘.’, code 0x2E, shift false
2020/08/05 15:16:57 packer-builder-qemu plugin: Sending char ‘0’, code 0x30, shift false
2020/08/05 15:16:58 packer-builder-qemu plugin: Sending char ‘.’, code 0x2E, shift false
2020/08/05 15:16:58 packer-builder-qemu plugin: Sending char ‘2’, code 0x32, shift false
2020/08/05 15:16:58 packer-builder-qemu plugin: Sending char ‘.’, code 0x2E, shift false
2020/08/05 15:16:58 packer-builder-qemu plugin: Sending char ‘2’, code 0x32, shift false
2020/08/05 15:16:59 packer-builder-qemu plugin: Sending char ‘:’, code 0x3A, shift true
2020/08/05 15:16:59 packer-builder-qemu plugin: Sending char ‘8’, code 0x38, shift false
2020/08/05 15:16:59 packer-builder-qemu plugin: Sending char ‘4’, code 0x34, shift false
2020/08/05 15:16:59 packer-builder-qemu plugin: Sending char ‘3’, code 0x33, shift false
2020/08/05 15:17:00 packer-builder-qemu plugin: Sending char ‘1’, code 0x31, shift false
2020/08/05 15:17:00 packer-builder-qemu plugin: Sending char ‘/’, code 0x2F, shift false
2020/08/05 15:17:00 packer-builder-qemu plugin: Sending char ‘r’, code 0x72, shift false
2020/08/05 15:17:00 packer-builder-qemu plugin: Sending char ‘h’, code 0x68, shift false
2020/08/05 15:17:00 packer-builder-qemu plugin: Sending char ‘e’, code 0x65, shift false
2020/08/05 15:17:01 packer-builder-qemu plugin: Sending char ‘l’, code 0x6C, shift false
2020/08/05 15:17:01 packer-builder-qemu plugin: Sending char ‘7’, code 0x37, shift false
2020/08/05 15:17:01 packer-builder-qemu plugin: Sending char ‘.’, code 0x2E, shift false
2020/08/05 15:17:01 packer-builder-qemu plugin: Sending char ‘8’, code 0x38, shift false
2020/08/05 15:17:01 packer-builder-qemu plugin: Sending char ‘.’, code 0x2E, shift false
2020/08/05 15:17:02 packer-builder-qemu plugin: Sending char ‘c’, code 0x63, shift false
2020/08/05 15:17:02 packer-builder-qemu plugin: Sending char ‘f’, code 0x66, shift false
2020/08/05 15:17:02 packer-builder-qemu plugin: Sending char ‘g’, code 0x67, shift false
2020/08/05 15:17:02 packer-builder-qemu plugin: Sending char ’ ', code 0x20, shift false
2020/08/05 15:17:02 packer-builder-qemu plugin: Special code ‘’ found, replacing with: 0xFF0D
2020/08/05 15:17:03 packer-builder-qemu plugin: [INFO] Waiting 1s
==> qemu: Using ssh communicator to connect: 127.0.0.1
2020/08/05 15:17:04 packer-builder-qemu plugin: [INFO] Waiting for SSH, up to timeout: 26m40s
==> qemu: Waiting for SSH to become available…
2020/08/05 15:17:04 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:3979…
2020/08/05 15:17:04 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/08/05 15:17:04 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/08/05 15:18:04 packer-builder-qemu plugin: [DEBUG] SSH handshake err: Timeout during SSH handshake
2020/08/05 15:18:11 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:3979…
2020/08/05 15:18:11 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/08/05 15:18:11 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/08/05 15:19:11 packer-builder-qemu plugin: [DEBUG] SSH handshake err: Timeout during SSH handshake
2020/08/05 15:19:18 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:3979…
2020/08/05 15:19:18 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/08/05 15:19:18 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/08/05 15:20:18 packer-builder-qemu plugin: [DEBUG] SSH handshake err: Timeout during SSH handshake
2020/08/05 15:20:25 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:3979…
2020/08/05 15:20:25 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/08/05 15:20:25 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/08/05 15:21:25 packer-builder-qemu plugin: [DEBUG] SSH handshake err: Timeout during SSH handshake
2020/08/05 15:21:32 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:3979…
2020/08/05 15:21:32 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/08/05 15:21:32 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/08/05 15:22:32 packer-builder-qemu plugin: [DEBUG] SSH handshake err: Timeout during SSH handshake
2020/08/05 15:22:39 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:3979…
2020/08/05 15:22:39 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/08/05 15:22:39 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/08/05 15:23:39 packer-builder-qemu plugin: [DEBUG] SSH handshake err: Timeout during SSH handshake
2020/08/05 15:23:46 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:3979…
2020/08/05 15:23:46 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/08/05 15:23:46 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/08/05 15:24:46 packer-builder-qemu plugin: [DEBUG] SSH handshake err: Timeout during SSH handshake
2020/08/05 15:24:53 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:3979…
2020/08/05 15:24:53 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/08/05 15:24:53 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/08/05 15:25:53 packer-builder-qemu plugin: [DEBUG] SSH handshake err: Timeout during SSH handshake
2020/08/05 15:26:00 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:3979…
2020/08/05 15:26:00 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/08/05 15:26:00 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/08/05 15:27:00 packer-builder-qemu plugin: [DEBUG] SSH handshake err: Timeout during SSH handshake
2020/08/05 15:27:07 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:3979…
2020/08/05 15:27:07 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/08/05 15:27:07 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/08/05 15:27:32 packer-builder-qemu plugin: Received interrupt signal (count: 1). Ignoring.
2020/08/05 15:27:32 Cancelling builder after context cancellation context canceled
2020/08/05 15:27:32 packer-builder-qemu plugin: [WARN] Interrupt detected, quitting waiting for SSH.`
Here’s my json file
{
“variables”: {},
“builders”: [
{
“type”: “qemu”,
“accelerator”: “kvm”,
“iso_checksum_type”: “md5”,
“ssh_username”: “administrator”,
“ssh_password”: “password”,
“ssh_wait_timeout”: “1600s”,
“http_directory”: “http”,
“boot_wait”: “14s”,
“format”: “qcow2”,
“boot_command”: [
“”,
"text append ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rhel7.8.cfg ",
“”
],
“shutdown_command”: “echo root | sudo -S shutdown -P now”,
“headless”: “false”,
“iso_checksum”: “03e744681b67cbfe4c89b9fc7a89f21b”,
“iso_url”: “/ISOs/rhel-server-7.8-x86_64-dvd.iso”,
“vm_name”: “rhel78”,
“disk_size”: 60000,
“qemuargs”: [
[ “-m”, “4048M” ]
],
“cpus”: 2
}
],
“provisioners”: ,
“sensitive-variables”: [
“ssh_pass”
]
}