Comments (14)
I have left the issue closed (as it seems to be fixed on main), but pinned it so that anyone experiencing that problem can find it on top of the issue list
from nixos-wsl.
Ah sorry, I only looked at the open bugs.
from nixos-wsl.
Commenting here because this is resurfacing for me when installing the latest release. The entire unpacking step works perfectly fine, but then it just sits there, claiming to start systemd but never actually carrying on. SIGKILL is required to continue (I let it sit for well over 20 mins). Afterwards, any attempt to start wsl -d NixOS
results in the same error.
Log of the install attempt, click to expand
> wsl -d NixOS
Unpacking root file system...
307MiB 0:00:17 [18.0MiB/s] [=========================================================================================>] 100%
Activating nix configuration...
Copying /usr/share/applications
Copying /usr/share/icons
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
setting up /etc...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
setting up /bin...
Cleaning up installer files...
finding garbage collector roots...
removing stale link from '/nix/var/nix/gcroots/auto/6yfbrv8wfkyl40wq6827lamr9m29z7wg' to '/build/nix/var/nix/profiles/per-user/root/channels-1-link'
removing stale link from '/nix/var/nix/gcroots/auto/zxi8v969la5n36bg7gs016wgcif4qjhp' to '/build/nix/var/nix/profiles/system-1-link'
deleting garbage...
deleting '/nix/store/ab5mixyq1zg0x5lnr5i7m4l5815fp1h8-wsl-prepare'
deleting '/nix/store/scr6balqjknqpgm7igd0b4pagmp2ldbl-installer.sh'
deleting '/nix/store/pmb55f6rk98cdycqf589vb3xpbg15k28-source'
deleting '/nix/store/cq6l0b0iv2y3gln3xi6nzxs57mz5rxws-tarball'
deleting '/nix/store/0p9v7yvblgxsds9pbsrir3af6gw0x77s-busybox-1.35.0'
deleting '/nix/store/5mism3qrfc3ah9ahvf7sczxy4bax9cgq-pv-1.6.20'
deleting unused links...
note: currently hard linking saves -0.00 MiB
6 store paths deleted, 309.05 MiB freed
Optimizing store...
5.74 MiB freed by hard-linking 3714 files
Starting systemd...
At this point, ctrl
+C
is the only way to continue. The shell hangs on this, presumably because of the following:
> wsl -d NixOS
nsenter: failed to parse pid: '-p'
In the meantime I'll try installing the previous (-fixed) release and upgrading from there to see if it helps
from nixos-wsl.
@dliberalesso The link I shared doesn't go to the latest release, but the latest CI run of the main branch, which is a few commits ahead and contains a full rewrite of syschdemd (the systemd wrapper script)
from nixos-wsl.
Duplicate of #67
Please try the -fixed
installer.
from nixos-wsl.
@nzbr is it possible to delete the old tarball on the release page?
from nixos-wsl.
I did (again). The CI re-uploads it every time I change the release text
from nixos-wsl.
I can't force-push the tag, unfortunately. It stopped working a while ago. @Mic92 ist that on purpose? Or is something broken on my end?
from nixos-wsl.
Works with the newer release!
from nixos-wsl.
@RivenSkaye Did you manage to get it to work? If not, can you try the latest build? (the installer tarball is inside the "installer" artifact, so you'll need to unpack that first)
from nixos-wsl.
@RivenSkaye You can install direclty via the tarball available in the latest build using the command wsl --import NixOS .\NixOS\ nixos-wsl-x86_64-linux.tar.gz --version 2
.
from nixos-wsl.
@nzbr In that case, I'll try it too. Thanks!
from nixos-wsl.
I also had the exact same issue as @RivenSkaye and @nzbr's fix worked perfectly (thank you!) It might be worth re-opening this issue so that it's visible to anyone else having the same problem without removing issue:open
.
from nixos-wsl.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
from nixos-wsl.
Related Issues (20)
- The new tarballBuilder fails when HOME variable set on execution host HOT 1
- Allow running custom commands in the tarball builder
- Clean install fails at sudo nixos-rebuild switch HOT 3
- /run/user/$UID has 0755 access permissions by default HOT 4
- 23.11: `types.string` is deprecated HOT 3
- nixos-rebuild fails after import due to clap_lex requiring rust >= 1.70.0 HOT 7
- nixos-wsl-utils build fail (rustc ist too old) HOT 5
- WSLg desktop integration does not show apps in Start menu and correct icons for GUI apps HOT 2
- 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
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.