-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qubes backup restore fails #5393
Comments
I just did another backup and verified it. I got "verified with errors" error |
After facing the same problem and doing quite a bit of research I found the reason for that. If I do backup to a fast medium (e.g. ssd) things work ok. If I do backup to a slow medium (usb 2 hdd or over network) then my backup size become smaller (can be as bad as 25Gb turning into 4Gb over very slow network connection) and large vm get affected (not restoring from that backup) while small vms are ok. I tried changing qubes.Backup replacing 'cat > $TARGET' with 'dd obs=10240000 of=$TARGET' and things become better but 20Gb+ vms are still not backed up properly. So the problem is linked to qubes (xen?) vm interconnect mechanism. As a side note, obs=10240000 crashes dom0 unless it has 2Gb of memory allocated (I usually run it with 768Mb) which is surprising as we are talking about 10Mb buffer. Sort of confirms this is an inter-vm issue. |
Looking further into this I think I found the simplest solution: 'qubes-backup' shall allow piping backup to dom0 script (currently not allowed in backup app as this is not supported by admin.Backup.Execute). This would allow to pipe backup to 'pv' command that limits the throughput rate and then pipes it to 'qubes.Backup' in a target vm. Currently I need to backup to dom0 and then pipe to pv manually. |
@a-barinov thanks, this is the only thing that is affecting my qubes usage right know. Would be nice to have reliable backups |
Bug is still present. I cant restore in qubes 4.1 after moving from 4.0 Is there no plausibility Check After Backup creation? I created some Backups and the estimated size Never fitted to the finale size (Tested without compression). |
I encountered this as well when migrating from 4.0 to 4.1, both when using the GUI or CLI. The rest of my qubes restored successfully after I excluded the broken one. Trimmed log of restoring the one that didn't work:
|
This issue is being closed because:
If anyone believes that this issue should be reopened and reassigned to an active milestone, please leave a brief comment. |
Qubes OS version
4.0.1
Affected component(s) or functionality
Qubes Backup Restore
Brief summary
When I restore the backup I get
Error: unable to extract files for /var/tmp/restoregsvtnc34/vm10/private.img.044.tar output: gzip: stdin: unexpected end of fike
Error extracting data: fialed to decrypt /var/tmp/restoregsvtnc34/vm10/private.img.045.enc: b'scrypt input is not valid scrypt-encrypted block\n
done
and then "finished succesfully" popup window.
At first I tried it was a problem with my backup, but it's the second time it happens in two different backups.
My two VMs got restored but only the small one worked, the other gives:
Domain: my_vm has failed to start: qrexec-daemon startup failed: Connection to the VM failed
To Reproduce
Steps to reproduce the behavior:
_1. do backup
_2. reinstall qubes
_3. restore
_4. See error
Expected behavior
backups restored without errors and launching
The VM that got problem is a standalone based on template, I did not restore its template but since its standalone I don't think I need. The first time I also restored all VMs including the templates and I got the same problem
I also noticed that this VM before restoring had 60gb iin system and ike 80 in private storage, but in the restore it had 100gb in system and 2gb in restore
The text was updated successfully, but these errors were encountered: