Skip to content
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

How to backup the installed distributions and install to another machine? #29

Closed
lihuixian001 opened this issue Feb 24, 2018 · 7 comments

Comments

@lihuixian001
Copy link

I have installed a distribution called ubuntu1. I tried to compress it to ubuntu1.tar.gz, and then unzip and
LxRunOffline register it , but run failed:

[LOG] Calling Win32 API WslLaunchInteractive.
[LOG] Exit code is 1.
@DDoSolitary
Copy link
Owner

How did you create the .tar.gz file (the command you used)?

@lihuixian001
Copy link
Author

in wsl:

cd /
tar vzcpf /tmp/ubuntu_`date +%Y%m%d_%H`.tar.gz --exclude=/proc --exclude=/dev --exclude=/mnt --exclude=/media --exclude=/lost+found  --exclude=/tmp --exclude=/sys  --exclude=/run / > /tmp/ubuntu_`date +%Y%m%d_%H`.log 2> /tmp/ubuntu_`date +%Y%m%d_%H`.error

@DDoSolitary
Copy link
Owner

And how did you unzip it? I just created a .tar.gz file using the command you provided and installed it with LxRunOffline install. It worked without problems.

@lihuixian001
Copy link
Author

mkdir ubuntu2/rootfs
tar vxzpf ubuntu*.tar.gz -C ./ubuntu2/rootfs
and then LxRunOffline register ...
but it got error :0x80070040

I try to install the .tar.gz file with LxRunOffline install , but when I LxRunOffline run, got:

[ERROR] Couldn't open the file or directory "C:\work\ubuntu1\rootfs\.\.\@LongLink".

I follow the steps belowed,Then I set up LongPathsEnabled for enable, but it didn't work

1) run regedit.exe as administrator
(2) locate [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
(3) change data value [LongPathsEnabled] (DWORD) to "1"
(4) close regedit and restart Windows

environmental :

Windows 10 RS4 Build 17101
LxRunOffline 2.2.2
16.04.2-server-cloudimg-amd64-root 

@DDoSolitary
Copy link
Owner

DDoSolitary commented Feb 25, 2018

You can not extract this way because files created via /mnt/* paths lacks NTFS extended attributes required by WSL.

And the error occurred when installing is caused by the fact that LxRunOffline currently doesn't support the GNU extensions of tar format. I'll try to fix it ASAP.

@DDoSolitary
Copy link
Owner

@lihuixian001 BTW, before this bug is fixed, you can use the LxRunOffline duplicate command and a USB stick to copy your installation to other machines.

@DDoSolitary
Copy link
Owner

Fixed in v3.
#36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants