wsldl-pg / CentWSL

[DISCONTINUED] CentOS based WSL distribution
MIT License
1.13k stars 181 forks source link

Restore procedure #28

Closed rovall closed 4 years ago

rovall commented 4 years ago

Hi, I need to migrate my installation from one laptop to another. I have made backup.tar.gz on the old laptop using CentOS7.exe, moved it together with CentOS7.exe to the new laptop... and what next?

Trying to launch just CentOS7.exe results in error:

C:\CentOS>CentOS.exe
Installing...
ERROR:Installation Failed!
HRESULT:0x80070005
Press any key to continue...

I tried downloading Launcher.exe - same issue. I have re-downloaded the whole distribution and it installed successfully. After manually unpacking backup.tar.gz and replacing rootfs folder, I get this:

C:\CentOS>CentOS7.exe
Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution...
The specified network name is no longer available.

Could you please write a bit about restore procedure? In the README maybe. I think it would be helpful.

yuk7 commented 4 years ago

Please execute this command:

CentOS.exe install backup.tar.gz

or

rename backup.tar.gz to rootfs.tar.gz and execute exe for installation.

rovall commented 4 years ago

Hi, Thank you for your answer, but I have described what happens when I do exactly what you asked me to do. An attempt ends in error.

On Wed, Dec 25, 2019, 15:57 yuk7 notifications@github.com wrote:

Please execute this command:

CentOS.exe install backup.tar.gz

or

rename backup.tar.gz to rootfs.tar.gz and execute exe for installation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yuk7/CentWSL/issues/28?email_source=notifications&email_token=AAVGWXOG5JZJONHKZLYXTNDQ2NYG7A5CNFSM4J7AADQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUNLSQ#issuecomment-568907210, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVGWXOWHUWJFT33JBRTYOTQ2NYG7ANCNFSM4J7AADQQ .

yuk7 commented 4 years ago

What is error code? Could you uninstall instance and retry...? wslconfig /u CentOS7

rovall commented 4 years ago

That was a completely new installation of Windows. And I have already solved it using LxRunOffline utility, so I'm not sure I can reproduce the problem.

But that's probably good to know for others that you can specify an archive in an "install" command.

On Wed, Dec 25, 2019, 17:24 yuk7 notifications@github.com wrote:

What is error code? Could you uninstall instance and retry...? wslconfig /u CentOS7

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yuk7/CentWSL/issues/28?email_source=notifications&email_token=AAVGWXOYXJ7F6KA6KWEM52DQ2OCK5A5CNFSM4J7AADQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHUOZAQ#issuecomment-568913026, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVGWXJ52IWSP2PG3SAXUPDQ2OCK5ANCNFSM4J7AADQQ .

yuk7 commented 4 years ago

Ok.