I’m running into an issue trying to build the qemu image inside the vyos-build docker container. Starting with a Debian 9 VM, I had no issues building the docker container, then building the ISO using ‘make iso’. Trying to build the qemu image after that fails though, relevant output below:
root@58c2693b0528:/vyos# make qemu
Checking if packages required for VyOS image build are installed
All dependencies are installed
qemu-image output will be in this color.
==> qemu-image: Retrieving ISO
qemu-image: Using file in-place: file:///vyos/build/live-image-amd64.hybrid.iso
==> qemu-image: Creating hard drive...
==> qemu-image: Found port for communicator (SSH, WinRM, etc): 2225.
==> qemu-image: Looking for available port between 5900 and 6000 on 127.0.0.1
==> qemu-image: Starting VM, booting from CD-ROM
qemu-image: The VM will be run headless, without a GUI. If you want to
qemu-image: view the screen of the VM, connect via VNC without a password to
qemu-image: vnc://127.0.0.1:5969
==> qemu-image: Waiting 5s for boot...
==> qemu-image: Connecting to VM via VNC (127.0.0.1:5969)
==> qemu-image: Typing the boot command over VNC...
==> qemu-image: Using ssh communicator to connect: 127.0.0.1
==> qemu-image: Waiting for SSH to become available...
==> qemu-image: Timeout waiting for SSH.
==> qemu-image: Deleting output directory...
Build 'qemu-image' errored: Timeout waiting for SSH.
==> Some builds didn't complete successfully and had errors:
--> qemu-image: Timeout waiting for SSH.
==> Builds finished but no artifacts were created.
Makefile:47: recipe for target 'qemu' failed
make: *** [qemu] Error 1
I can provide the full list of commands used to get here, but they pretty much mirror the instructions in the github repo. I had the same results in a local VM and a cloud VM. I haven’t tried using a different docker host OS, but I can’t see why that should matter.
I’m also unable to build the GCE target, but that can get its own topic, since I don’t think its related to this error.
I’m up for contributing some documentation on building images using the vyos-build docker container if I can get this all working.