GNU bug report logs -
#53912
[PATCH 0/5] WIP Add WSL support.
Previous Next
Reported by: Alex Griffin <a <at> ajgrf.com>
Date: Thu, 10 Feb 2022 06:07:01 UTC
Severity: normal
Tags: patch
Done: Mathieu Othacehe <othacehe <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Sun, 25 Sep 2022 13:56:29 +0200
with message-id <87k05rk6qa.fsf_-_ <at> gnu.org>
and subject line Re: bug#53912: [PATCH 0/5] WIP Add WSL support.
has caused the debbugs.gnu.org bug report #53912,
regarding [PATCH 0/5] WIP Add WSL support.
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
53912: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=53912
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
These patches are a work-in-progress, adding support for running Guix
System under [WSL].
Windows Subsystem for Linux (WSL) lets developers run a GNU/Linux
environment – including most command-line tools, utilities, and
applications – directly on Windows, unmodified, without the overhead
of a traditional virtual machine or dual-boot setup.
Things mostly just work already. To try it out, first generate an
os tarball:
┌────
│ guix system image gnu/system/images/wsl.scm
└────
Then copy the result to your Windows system and run:
┌────
│ wsl --import guix ./guix/ image.tar.gz
└────
You can now run Guix System under WSL:
┌────
│ wsl -d guix
└────
The approach I took is copied from the [NixOS-WSL] project. Since WSL
doesn’t run the guest distro’s init system, as a work-around I set the
root user’s shell to a script that boots the system and then starts a
user login shell.
Thanks,
–
Alex Griffin
[WSL] <https://docs.microsoft.com/en-us/windows/wsl/>
[NixOS-WSL] <https://github.com/nix-community/NixOS-WSL>
[Message part 3 (message/rfc822, inline)]
Hey,
> Tested all of it by creating a WSL image with some web services (nginx,
> tailon), they are started by Shepherd in the WSL and accessible from
> Windows.
And pushed, with a documentation update. I'll come up with a blog post
in the next coming days.
Thanks,
Mathieu
This bug report was last modified 2 years and 297 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.