QEMU build failing

Hi all,

I’m attempting a build for OpenStack using the Docker build method, but I’m having issues. Everything seems to go fine up until the QEMU image build, which fails at SSH.
I’m following these:


https://docs.vyos.io/en/latest/contributing/build-vyos.html

My build workflow is as follows:

sudo docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:current bash

./configure --debug --architecture amd64 --build-type release --version 1.3.0

sudo make openstack

sudo make qemu

ISO build seems to go fine, but QEMU build fails with SSH timing out, below is a snippet from packer build.log and link to full log. I’ve already increased SSH timeout to 15 minutes, so clearly it’s not a timing problem, but rather SSH service not coming up on the VyOS VM:

2020/04/02 00:17:43 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:2228…
2020/04/02 00:17:43 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/04/02 00:17:43 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/04/02 00:18:43 packer-builder-qemu plugin: [DEBUG] SSH handshake err: Timeout during SSH handshake
2020/04/02 00:18:50 packer-builder-qemu plugin: [INFO] Attempting SSH connection to 127.0.0.1:2228…
2020/04/02 00:18:50 packer-builder-qemu plugin: [DEBUG] reconnecting to TCP connection for SSH
2020/04/02 00:18:50 packer-builder-qemu plugin: [DEBUG] handshaking with SSH
2020/04/02 00:19:19 ui error: ==> qemu-image: Timeout waiting for SSH.
2020/04/02 00:19:19 packer-builder-qemu plugin: failed to unlock port lockfile: close tcp 127.0.0.1:5978: use of closed network connection
2020/04/02 00:19:19 packer-builder-qemu plugin: failed to unlock port lockfile: close tcp 127.0.0.1:2228: use of closed network connection
2020/04/02 00:19:19 ui: ==> qemu-image: Deleting output directory…
2020/04/02 00:19:19 [INFO] (telemetry) ending qemu
2020/04/02 00:19:19 ui error: Build ‘qemu-image’ errored: Timeout waiting for SSH.
2020/04/02 00:19:19 machine readable: error-count []string{“1”}
2020/04/02 00:19:19 ui error:
==> Some builds didn’t complete successfully and had errors:
2020/04/02 00:19:19 machine readable: qemu-image,error []string{“Timeout waiting for SSH.”}
2020/04/02 00:19:19 ui error: --> qemu-image: Timeout waiting for SSH.
2020/04/02 00:19:19 ui:
==> Builds finished but no artifacts were created.
2020/04/02 00:19:19 [INFO] (telemetry) Finalizing.
2020/04/02 00:19:19 packer-builder-qemu plugin: [DEBUG] SSH handshake err: ssh: handshake failed: read tcp 127.0.0.1:34318->127.0.0.1:2228: read: connection reset by peer
2020/04/02 00:19:19 waiting for all plugin processes to complete…
2020/04/02 00:19:19 /usr/bin/packer: plugin process exited

Full packer build log is here: https://pastebin.com/zqVTFknP

P.S. I’ve also tried building on the crux branch, but I get the same result.

Hi again,

Sorry to ask but, is there a particular reason why this topic was completely ignored? Did I break some community guideline?

Or should I just assume that nobody else has ever had this problem or finds it relevant?

Cheers