Comment 0 for bug 1903959

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

I have created a UC20 image with latest snaps in stable. Then, I create a small disk image to hold a system-user assertion:

dd if=/dev/zero of=import.img bs=1024 count=100
mkfs.vfat import.img
mkdir mnt
mount import.img mnt/
cp auto-import.assert mnt/
umount mnt

I run qemu with both UC20 and import images attached as disks:

qemu-system-x86_64 -enable-kvm \
                   -bios /usr/share/OVMF/OVMF_CODE.fd \
                   -m 4096 -net nic \
                   -net user,hostfwd=tcp:127.0.0.1:8022-:22 \
                   -drive if=ide,format=raw,file=uc20.img \
                   -drive if=ide,format=raw,file=import.img

But, I cannot ssh into the device after waiting for a few minutes. If I stop qemu (by hard kill), then re-start it and wait again, I still cannot ssh into the VM. However, the *third time* I start qemu, I can finally ssh in the device with the user and password specified in the system-user assertion. I assume this should have been possible on first boot.

See attached tarball for the assertions.