Build vyos 1.4.0-epa2 image with https://github.com/vyos/vyos-vm-images error:
bash TASK [setup-root-partition : Create a fileystem on EFI partition] *********************************************************************************************************************************** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Device /dev/loop8\n/dev/loop7p2 not found."}
Even change another vm still got error like this.
Full build log:
bash ansible-playbook qemu.yml \ -e disk_size=3 \ -e iso_local=tmp/vyos-1.4.0-epa2-amd64.iso \ -e grub_console=serial \ -e cloud_init=true \ -e cloud_init_ds=NoCloud \ -e guest_agent=qemu \ -e enable_ssh=true \ -e custom_files=true PLAY [qemu] ***************************************************************************************************************************************************************************************** TASK [include_role : {{ roleinputvar }}] ************************************************************************************************************************************************************ TASK [install-packages : Install required packages] ************************************************************************************************************************************************* [WARNING]: Updating cache and auto-installing missing dependency: python3-apt ok: [localhost] TASK [mount-iso : Mount ISO] ************************************************************************************************************************************************************************ changed: [localhost] TASK [mount-iso : Verify checksums of all the files in the ISO image] ******************************************************************************************************************************* ok: [localhost] TASK [mount-iso : Mount squashfs image from ISO] **************************************************************************************************************************************************** changed: [localhost] TASK [get-version : Read version string from iso packages] ****************************************************************************************************************************************** changed: [localhost] TASK [get-version : Set vyos_version] *************************************************************************************************************************************************************** ok: [localhost] TASK [get-version : Debug version string as read from ISO] ****************************************************************************************************************************************** ok: [localhost] => { "msg": "This is version 1.4.0-epa2" } TASK [create-disk : Create the target disk image] *************************************************************************************************************************************************** changed: [localhost] TASK [setup-root-partition : Partition disk (MBR)] ************************************************************************************************************************************************** skipping: [localhost] TASK [setup-root-partition : Partition disk (GPT)] ************************************************************************************************************************************************** skipping: [localhost] TASK [setup-root-partition : Partition disk (hybrid)] *********************************************************************************************************************************************** changed: [localhost] TASK [setup-root-partition : Set partition numbers for next actions (MBR)] ************************************************************************************************************************** skipping: [localhost] TASK [setup-root-partition : Set partition numbers for next actions (GPT)] ************************************************************************************************************************** skipping: [localhost] TASK [setup-root-partition : Set partition numbers for next actions (hybrid)] *********************************************************************************************************************** ok: [localhost] TASK [setup-root-partition : Reread partitions from image and mount to loopback] ******************************************************************************************************************** changed: [localhost] TASK [setup-root-partition : Find loop device path] ************************************************************************************************************************************************* changed: [localhost] TASK [setup-root-partition : Set vyos_target_drive fact] ******************************************************************************************************************************************** ok: [localhost] TASK [setup-root-partition : Create a fileystem on EFI partition] *********************************************************************************************************************************** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Device /dev/loop8\n/dev/loop7p2 not found."} TASK [include_role : {{ roleinputvar }}] ************************************************************************************************************************************************************ TASK [unmount-pre : Unmount /mnt/inst_root/sys, /mnt/inst_root/proc, /mnt/inst_root/dev] ************************************************************************************************************ ok: [localhost] => (item=sys) ok: [localhost] => (item=proc) ok: [localhost] => (item=dev) TASK [unmount-pre : Unmount /mnt/inst_root/sys, /mnt/inst_root/proc, /mnt/inst_root/dev] ************************************************************************************************************ ok: [localhost] => (item=sys) ok: [localhost] => (item=proc) ok: [localhost] => (item=dev) TASK [unmount-all : Unmount /mnt/inst_root/boot] **************************************************************************************************************************************************** ok: [localhost] TASK [unmount-all : Unmount /mnt/inst_root/boot] **************************************************************************************************************************************************** ok: [localhost] TASK [unmount-all : Unmount /mnt/inst_root] ********************************************************************************************************************************************************* ok: [localhost] TASK [unmount-all : Unmount /mnt/squashfs] ********************************************************************************************************************************************************** ok: [localhost] TASK [unmount-all : Unmount /mnt/wroot] ************************************************************************************************************************************************************* ok: [localhost] TASK [unmount-all : Check if the raw image file exists] ********************************************************************************************************************************************* ok: [localhost] TASK [unmount-all : Remove image partitions] ******************************************************************************************************************************************************** changed: [localhost] TASK [unmount-all : Remove /dev/mapper entries] ***************************************************************************************************************************************************** changed: [localhost] => (item=loop8p1) changed: [localhost] => (item=loop8p2) changed: [localhost] => (item=loop8p3) TASK [unmount-all : Detach /dev/loop8 /dev/loop7] *************************************************************************************************************************************************** changed: [localhost] TASK [unmount-all : Unmount /mnt/cdsquash] ********************************************************************************************************************************************************** changed: [localhost] TASK [unmount-all : Unmount /mnt/cdrom] ************************************************************************************************************************************************************* changed: [localhost] PLAY RECAP ****************************************************************************************************************************************************************************************** localhost : ok=26 changed=12 unreachable=0 failed=0 skipped=4 rescued=1 ignored=0