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

WSL2: WSL_INTEROP within Gentoo - ERROR: UtilConnectToInteropServer:300: connect failed 2 #13

Open
JvD007 opened this issue Jul 13, 2020 · 1 comment

Comments

@JvD007
Copy link

JvD007 commented Jul 13, 2020

After running startprefix the following env information is gone and the interoperability with Windows 10 is lost.

You can't run Windows applications anymore from the Linux env

  • Default PATH is not longer available
  • WSL_INTEROP is not available

Is it possible to add this env settings in the gentoo environment

Workaround:

export PATH="old-path:${PATH}"
export WSL_INTEROP=/run/WSL/XXXX_interop (Check with pstree -p the console port XXXX)

Windows 10 commands / applications are working again.

Can we fix this within the startprefix?

@JvD007
Copy link
Author

JvD007 commented Jul 13, 2020

Workaround for this problem:

Update your .profile, not the best solution...it works for now.

.profile

if [[ ${SHELL#/cvmfs/pilot.eessi-hpc.org/test/gentoo/2020} != ${SHELL} ]]
then
echo "=============================================================================="
echo " lmod, modules, WSL Interop "
echo "=============================================================================="
source $HOME/.wsl_interop
source $HOME/.win_path

source /cvmfs/pilot.eessi-hpc.org/test/gentoo/2020/usr/lmod/lmod/init/profile
module use /cvmfs/pilot.eessi-hpc.org/test/easybuild/modules/all
module avail
export PATH=$WIN_PATH:$PATH
else
echo "=============================================================================="
echo " EESSI Client mounts Repository "
echo "=============================================================================="
echo WSL_INTEROP=$WSL_INTEROP >$HOME/.wsl_interop
echo WIN_PATH="'$PATH'" >$HOME/.win_path

cvmfs_config probe pilot.eessi-hpc.org
/cvmfs/pilot.eessi-hpc.org/test/gentoo/2020/startprefix
fi

poksumdo pushed a commit to poksumdo/compatibility-layer that referenced this issue Jun 8, 2023
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

1 participant