I am trying to build a cloud-init version of 1.5.0.
So following this
https://docs.vyos.io/en/latest/automation/cloud-init.html#generate-qcow-image
I went and downloaded the rolling release of 1.5.0,
then built and ran a docker image with --privileged set ad described in the docs.
docker build --tag vyos-vm-images:latest -f ./Dockerfile .
docker run --rm -it --privileged -v $(pwd):/vm-build -v $(pwd)/images:/images -w /vm-build vyos-vm-images:latest bash
git clone https://github.com/vyos/vyos-vm-images.git && cd vyos-vm-images
I will note that vyos-vm-images is marked deprecated in gitlab with no note as to why in gitlab or the docs.
Attempting to run the command:
ansible-playbook qemu.yml -e disk_size=10 -e iso_local=/tmp/vyos-1.5-rolling-202409060006-generic-amd64.iso -e grub_console=serial -e vyos_version=1.5.0 -e cloud_init=true -e cloud_init_ds=NoCloud -e enable_ssh=true -e guest_agent=qemu
results in:
TASK [mount-iso : Mount squashfs image from ISO] ********************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Error mounting /mnt/cdsquash: mount: /mnt/cdsquash: failed to setup loop device for /mnt/cdrom/live/filesystem.squashfs.\n"}
in the ansible logs. Is there a flag missing on the docker command, or some other requirement that I am missing?
Thanks!