-
-
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 does not restore dom0 from 3.2 backup #3467
Comments
Do you get any specific error? Or simply dom0 is ignored? |
dom0 is simply ignored, as if absent, however when I modified the source to force an attempt at restoring it, it did error like #3362 . |
fwiw, I'm encountering more or less the same problem (4.0rc3, fully updated with -testing packages). 1- with 3.2, I've made a backup of dom0 only
the backup made at 1- is functional, ie. I could extract dom0's home from the backup file with the manual emergency restore procedure described in https://www.qubes-os.org/doc/backup-emergency-restore-v3/ (that really saved me - I thought I had lost all my dom0 customizations !) |
@marmarek There was a dom0-related change from PR#43. I think this went to qubes-core-admin-client 4.0.13.* but not sure. I'm using 4.0.13 and testing with an R4.0-produced dom0 archive (after backing up home with tar) yields an error: "skipping; VM dom0 already exists" I'll locate a Qubes 3.2 archive and test with that also. _restore_vms_metadata(), in restore.py:
The loop at the above comment seems to need a conditional so it doesn't try to create a new 'dom0'. |
Loop in The reported problem is due to the xml parsing of the older qubes.xml format, I believe. This is called from I'll see if I can fix it. |
@marmarek - A number of problems here. Most significant is that What I've done to get it working is to change the 'tar2_cmdline' in the case of dom0 to simply run What do you think? |
👍 The tar command in That would also ease testing it, without breaking the test machine. Currently dom0 backup test check only if backup do not crash, but not even try to restore it... |
@marmarek - OK, but currently handler-assignment is skipped when verify-only is true, from the fixes I made in December to get verify-only working. That means the outer tar and the scrypt verification are checked, but not the inner tar. So that fix would have to be changed for the inner tar to be checked, and each handle* method would need a conditional for verify-only. |
Side note: XML parser sees dom0 in V3 archive as "StandaloneVM" and in V4 archive as "AdminVM". Had to switch a check from using vm.klass to vm.name to get both versions working. |
Oh, but if verify-only, then inner tar is called with BTW currently verify-only (and actual restore) do not notice if some VM data is completely missing in the archive. Only corrupted data is detected.
Better keep using vm.klass and fix core2.py to correctly detect dom0 class. Looks like beginning of |
Branched to enhancement issue #3498. |
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
Automated announcement from builder-github The package
|
Qubes OS version:
4.0 rc3
Affected TemplateVMs:
n/a
Steps to reproduce the behavior:
backup appvms and dom0 from an up to date qubes 3.2 machine, and attempt to restore them on a 4.0 rc3 machine with $ qubes-backup-restore
Expected behavior:
appvms and dom0 are restored successfully
Actual behavior:
appvms are restored but dom0 is not
General notes:
Related issues:
The text was updated successfully, but these errors were encountered: