Package: cloud.debian.org Severity: importantI was trying to use the daily image debian-12-genericcloud-amd64-daily-20221104-1189.qcow2. I booted it in QEMU as follows:
$ qemu-system-x86_64 -m 1G -device virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd -drive file=test.qcow2,if=none,id=hd -drive file=user-data.iso,if=ide,media=cdrom -nographic
When cloud-init gets to the step of resizing the root file system to fit the disk, it fails with the following error:
[ 160.037486] cloud-init[292]: 2022-11-04 12:56:50,913 - schema.py[WARNING]: Invalid cloud-config provided: Please run 'sudo cloud-init schema --system' to see the schema errors. [ 163.701342] EXT4-fs (sda1): resizing filesystem from 491515 to 4161531 blocks
[ 163.870631] EXT4-fs (sda1): resized filesystem to 4161531 [ 163.914439] EXT4-fs (sda1): Invalid checksum for backup superblock 32768 [ 163.914439][ 163.914892] EXT4-fs error (device sda1) in ext4_update_backup_sb:174: Filesystem failed CRC
[ 163.915287] Aborting journal on device sda1-8.[ 163.919235] EXT4-fs error (device sda1): ext4_journal_check_start:83: comm systemd-journal: Detected aborted journal
[ 163.922561] EXT4-fs (sda1): Remounting filesystem read-only[ 163.922993] EXT4-fs error (device sda1) in ext4_update_backup_sb:174: Journal has aborted
Many of the following steps fail too, because the root file system is mounted read-only.
The test.qcow2 above has been created as follows:qemu-img create -F qcow2 -b debian-12-genericcloud-amd64-daily-20221104-1189.qcow2 -f qcow2 test.qcow2 16G
The user-data.iso has been created as follows:genisoimage -output ../user-data.iso -volid cidata -joliet -rock user-data meta-data
where meta-data is an empty file and user-data has the following contents: #cloud-config hostname: test users: - name: admin sudo: ['ALL=(ALL) ALL']passwd: $6$CZ6uhDC3EwuDlkLR$tXGFBbAnunjYwT202gdT9idnjE2EAspHn6Dxn7uL7u.WmOUPYa/5D7Bz9XrSnaSpyv7uh.5Mok9bLD/JIhWq21
Regards Sven
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature