Thank you David and haaber for your help, it is much appreciated!
On 4/18/21 11:23 AM, David Hobach wrote:
> Use `qvm-volume revert` to go back to previous snapshots for a VM.
Oh, I saw that page [1] at some point, but didn't try it before. Thanks
for the reminder.
[dom0] qvm-volume info vmname:private
> Available revisions (for revert): old
looking good!
however:
[dom0] qvm-volume revert vmname:private old
> Got empty response from qubesd. See journalctl in dom0 for details.
Journal says:
> unhandled exception while calling src=b' dom0' meth=b' \
> admin.vm.volume.Revert' dest=b'vmname' arg=b' private' \
> len(untrusted_payload)=3
[..]
> NotImplementedError: Volume Filevolume has revert() not implemented
Both the revert command as well as the entry in journal are the same no
matter if I include or omit 'old' in the revert command.
On 4/18/21 11:25 AM, haaber wrote:
> These are real disc-image files! There is a filesystem, but it is not
> in sector 1 :)
Interesting and promising!
After way too long I figured out that the regular 'private.img' seems to
contain its filesystem beginning right at sector 1,
'private-cow.img.old' apparently as well, and 'private-cow.img' at
sector 560.
Testdisk could find them and correctly determine they are ext4
filesystems. But no matter if I loop-mount with offset, or deep-scan
with testdisk, or fsck, I can't find any data on the 'cow' images. The
regular 'private.img' is no problem here. The most I could get is
> /dev/xvdbc contains a DM_snapshot_cow file system
from fsck when letting it work on a rw copy of 'private-cow.img'.
Honestly, I don't understand why the last step fails so hard, after all
the files aren't corrupted, filesystems are detected, and the data
should just pop out by now?
I would be very grateful for hints :-)
Thank you,
Stickstoff
[1]
https://www.qubes-os.org/doc/volume-backup-revert