I am currently using Ubuntu 18.04 within WSL 2 (windows sub system) and what I am essentially trying to accomplish is transferring over my ubuntu 18.04 install on another VM into the new one. I've followed the instructions From here to create a .img of my old VM drive and mount that into the new ubuntu and rsync my files. The problem is I followed the instructions to the T and now old my files have been transferred over into a folder i made
/media/oldinstall. I am new to linux but I think what I wanted to do was to rsync the mounted directory directly into
/ to replace all the existing environment with everything from my old install instead of placing it in a sub directory.
I can do things like chroot into the
/media/oldinstall folder and use all the old binaries i had but being that I am running ubuntu through WSL things like vscode are not working properly since my old environment is not being used.
Now seems like a pretty straightforward problem, how to correspond the environment located in
/media/oldinstall into the new environment and leave things running as if it were my old system?