hi,
I play to emulate the Raspberry Pi and, to avoid having to wait for the (re)start of my slow VM, I recorded a snapshot at the end of the first boot.
but when I reload this snapshot, I have a lot of error messages (EXT4-fs error (device mmcblk0p2) ... reading directory lblock 0) and I cannot use my virtual machine anymore.
are snapshots functional with this type of VM or is the problem elsewhere ?
$ qemu-system-arm -M raspi2b -kernel kernel7l.img -dtb bcm2709-rpi-2-b.dtb -drive file=bullseye.img,if=sd -append "rw console=ttyAMA0 loglevel=8 root=/dev/mmcblk0p2 fsck.repair=yes rootwait" -serial mon:stdio
$ qemu-img info bullseye.img
image: bullseye.img
file format: qcow2
virtual size: 4 GiB (4294967296 bytes)
disk size: 227 MiB
cluster_size: 65536
backing file: 2022-04-04-raspios-bullseye-armhf-lite.img
backing file format: raw
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK ICOUNT
1 vm-20220601113350 115 MiB 2022-06-01 11:33:50 00:02:10.684
Format specific information:
compat: 1.1
compression type: zlib
lazy refcounts: false
refcount bits: 16
corrupt: false
extended l2: false