Comments (9)
The file you have contains the fix. That means there is another problem here
EDIT: I can reproduce the issue on my setup
from nixos-wsl.
The problem was introduced by a change from #64. The commit just before it was merged works just fine
from nixos-wsl.
Solves the problem for me. Thank you!
from nixos-wsl.
This nsenter: failed to parse pid: '-p'
only occurs with the latest release 21.11-d89f18a1
.
20.09-1c1f5649
works.
PS C:\Users\erik.smit.ALETHO\Downloads> wsl --distribution NixOS
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
[nixos@nixos:/mnt/c/Users/erik.smit.ALETHO/Downloads]$
Seems like the An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
is a red herring and a separate issue.
from nixos-wsl.
Rebooting or terminating the instance after importing 'solves' the problem.
It looks like the installer leaves the system in a bad state.
PS C:\Users\erik.smit.ALETHO> wsl -d NixOS
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
nsenter: failed to parse pid: '-p'
PS C:\Users\erik.smit.ALETHO> wsl -t NixOS
PS C:\Users\erik.smit.ALETHO> wsl -d NixOS
Copying /usr/share/applications
Copying /usr/share/icons
setting up /etc...
[nixos@Budapest:/mnt/c/Users/erik.smit.ALETHO]$
from nixos-wsl.
The "An error occurred mounting one of your file systems. Please run 'dmesg' for more details." on first launch can be safely ignored. It should not happen after the installer has ran though. It happens because there is no /bin/mount
present in the installer image.
You should not drop back to powershell after the installer finishes, instead a bash should open. There was an issue that caused the activation script to fail on the first start. I have pushed a fix for that issue and moved the release to that commit. The issue might be that you have a copy of the installer tarball that does not contain the fix. Can you give me the timestamp of the tarball you downloaded?
from nixos-wsl.
smite@Budapest:/mnt/c/Users/erik.smit.ALETHO/Downloads$ md5sum nixos-wsl-installer.tar.gz
d0f5078b774229964b88d1aa526819e5 nixos-wsl-installer.tar.gz
smite@Budapest:/mnt/c/Users/erik.smit.ALETHO/Downloads$ ls -la nixos-wsl-installer.tar.gz
-rwxrwxrwx 1 smite smite 203271183 Mar 31 14:36 nixos-wsl-installer.tar.gz
from nixos-wsl.
I have created a PR that should fix the issue. The CI should have built a tarball soon, so you can try if it works
https://github.com/nix-community/NixOS-WSL/suites/5882551859/artifacts/198820817
from nixos-wsl.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
from nixos-wsl.
Related Issues (20)
- Systemctl with user flag don't work HOT 5
- Make configuration.nix writeable by root HOT 6
- Processing fstab with mount -a failed. HOT 8
- Possibilty to add search entry when /etc/resolv.conf is generated HOT 2
- Symbolic Link Error When Using `wsl.useWindowsDriver` HOT 1
- Add rescue shell to launcher
- Allow rollbacks through the launcher
- Embed version information in channels HOT 1
- nu shell (nushell) with no PATH set on nixos-wsl HOT 15
- How can I run NixOS on WSL2 on Windows 11 inside VirtualBox?
- Unable to connect to internet and update channels upon creating NixOS WSL2 instance HOT 8
- Launcher: Check if WSL is installed
- Launcher: Start in home directory if started from shortcut
- Mount path /tmp/.X11-unix/X0 is not canonical (contains a symlink) HOT 20
- How to edit wsl.conf for initial config? HOT 4
- nvidia-container-toolkit-cdi-generator not work HOT 5
- `sudo` did not request for a password HOT 4
- Configure NIX_SSL_CERT_FILE with WSL2 and ZSCALER or similar enterprise Proxy HOT 1
- Rancher desktop support HOT 2
- How-To Doc HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixos-wsl.