You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
plans for alternative distributions: e.g. Fedora, ArchLinux, etc? #8
My Windows machines always have a dual-booting Linux partition: playing games in Windows, and getting work done in Linux. As such, I'm extremely excited about WSL and Ubuntu on WSL.
I'm curious about whether or not there is room for more choice in distributions? Is there an open specification that describes what was necessary for Ubuntu to do? Can alternative distribution images that conform to this specification be used instead? Is it possible to build such an image myself, or is there a signing requirement?
I'd love to see ArchLinux and Fedora alternatives, once the dust settles of course.
Reacted by Ben Pye, Caleb Joseph, wullxz, Thiago, Aokromes, Tony Kelman, jonas-maj, Matthew Klein, zakaria ridouh, Sam Neirinck and 16 more
I replaced the userland with a Gentoo stage 3, which didn't seem to break anything (however, emerge doesn't work due to failing sanity checks on /dev).
Reacted by Takuya ASADA, Shusui MOYATANI, Sorah Fukumori, ykomano, Andrey Vihrov, zakaria ridouh, axlrose, Jan Segre, Bryce Glover and nimbosa
Reacted by axlrose, Aloïs de Gouvello, Mateusz Łoskot and nimbosa
Reacted by hanetzer, Krutonium, jbaribeault, theblazehen, Artem Grinev, Cholerae Hu, Govind Sahai, Matt Shindala, Daniel Hladík, Christoph Loy and 7 more
Reacted by Daniel Kamil Kozar, Govind Sahai, Mara Robin B., Kenneth Browder and Ashok Arora
I would say that they should make Windows Subsystem for Linux open-source, so that, developers can add their own flavors. Because WSL team will never have enough resources to meet the expectations of such broad community.
WSL doesn't need to be open source for this to be possible. WSL is kernel mode code anyway (I think, correct me if I'm wrong) so I don't think the community would have the ability to compile and run custom patched copies of WSL easily. But for this item, all we'd need is documentation on what modifications Canonical made between the standard Ubuntu distribution (iso or whatever) and the userland-only version that Bash on Windows downloads. And either documentation or source for the C:\Windows\System32\bash.exe launcher/installer, which is a win32 executable so presumably anyone would be able to build an equivalent or modified version to pull down an alternate distro's userland.
Tony Kelman (@tkelman) You are correct. We would not need to make the project open source to open up to other distributions. Currently we're focused on delivering a solid bash shell but there are many other exciting potential applications of our technology, including allowing people to select their distro of choice.
As far as the image we got from Canonical it has absolutely zero modifications. Dustin Kirkland from Canonical has a great blog post with some more info if you are interested.
You are correct, it's just the userspace pieces. It's kind of hidden in his post but he points you to the exact .tar.gz:
So as part of the engineering work, I needed to wrap the stock Ubuntu root filesystem into a Windows application package (.appx) file for suitable upload to the Windows Store.
(his link points to the xenial version and we're using trusty, but you get the idea)
D'oh, thanks for that! Does make sense that this would have some commonality with "cloud images" you might use in a container. So it's the "wrap [...] into a Windows application package" equivalent step that we'd need to reverse engineer or get source or documentation of some kind to be able to recreate on a different distro. Should look into whether any other distros have equivalent userspace-only images already prepared.
The install is not user friendly as lxrun.exe is hardcoded for the Ubuntu userspace tarball and seems to be the only utility in all of Windows that can actually create proper symlinks on NTFS.
Need the source for lxrun.exe please!
# strings lxrun.exe | grep base
base\subsys\lxss\lxrun\main.cpp
base\subsys\lxss\lxrun\download.cpp
base\subsys\lxss\lxrun\install.cpp
base\subsys\lxss\lxrun\uninstall.cpp
base\subsys\lxss\lxrun\update.cpp
base\subsys\lxss\lxcmdlineshared\console.cpp
base\subsys\lxss\lxcmdlineshared\svccomm.cpp
base\subsys\lxss\lxcmdlineshared\helpers.cpp
base\subsys\lxss\tar2lx\lib\tar2lx.cpp <-- I assume this is the symlink magic
Reacted by Ron Waldon-Howe, Aida Lie, darkf, Hideyuki Tanaka, Cholerae Hu, Matt Shindala, Harald Glatt, Felix Schwarz, Dave, Bryce Glover and 2 more
Reacted by Dusty Mabe, Ivan171, Krutonium, Carl Patenaude-Poulin, Roland Bogosi, Matheus, Martin Bříza, Cholerae Hu and Dave
Further search revealed the fakechroot package, which hooks the file I/O functions and actually rewrites the paths.
After installation with pacman, you can add /usr/lib/libfakeroot/fakechroot/libfakechroot.so to /etc/ld.so.preload, which will cause all chroot-using applications to not only not fail, but behave as expected if chroot was available.
This does, however, load the library into all applications. I haven't tested the performance implications just yet, but based on the source, not many operations are done, if chroot is not called by the process.
If you are brave, you can try the (undocumented, unstable) dev branch of alwsl.
alwsl is really two parts:
the alwsl.bat management utility (manage WSL, users, snapshots etc.) on the windows side and
a custom archlinux distribution containing many custom builds of pacman, root-related libs, makepgk, yaourt etc. in order to operate smoothly within WSL.
The batchfile version is not the final product, more like a proof-of-concept. The final version of alwsl will be released at some point next week. The final version contains a plugin system for user-defined addons to alwsl systems (like Audio from WSL, a better X setup etc.).
As I said, ATM the dev branch is undocumented. Download a copy of the alwsl.bat and run it without arguments to see usage information.
minxomat Have you tried Roland Bogosi (@RoliSoft) 's scripts? I looked at the alwsl.bat thing, and it doesn't even look like it is fixing chroot and fakeroot (fakechroot and fakeroot-tcp). Roland Bogosi (@RoliSoft) has got all the little Arch compatibility hacks ready to go, just remove the ".sample" from the hook script.
fpqc If you looked at the script and my above post, I clearly stated that this is a custom distribution. it contains all fixes necessarily for WSL. The distro is downloaded during the install task. It not only fixes fakeroot, but every other error or warning (that I know of atm) you might get in WSL otherwise.
Think of it as a replacement for lxrun. Instead of installing and managing a ubuntu server WSL, it does the same with archlinux. Sure you can make a vanilla arch compatible, but this is meant for folks who look for something as simple to run as lxrun itself.
fpqc Well, I don't recommend to use it just now. But you can try. Backup everything in any case.
Full documentation is ofc included in the final version. Also, not all mods are applied in the dev branch, so there might be some warnings until testing is finished. If you find something, open an issue. It's better to have duplicate issues to be reminded of important things 😄
My questions Tara Raj (@tara-raj) 1. Who does provide the install.tar.gz file? Does Microsoft make that own or the developer of that distro? 2. Who publish the appx in Windows Store? 3. And last, who build the added distro_name.exe in Appx package?
Biswapriyo Nath (@Biswa96) - Tara Raj (@tara-raj) is currently working with several Linux distro vendors to help them bundle & publish their distros to the store - we feel it's best for the distro owners to control and manage the release of their distros on their schedule.
We believe that it's best for all concerned, if a distro is published from the store under the auspices of the owning organization. This way, when you see "Ubuntu" published by "Canonical Inc.", you can feel confident that it's the real-deal, whereas if you saw "Ubuntu" published by "Joe Bloggzzz the MegaGeek", you might pause and question whether the app is legitimate.
Distro owners are responsible for everything that goes into their APPX- the distro tar.gz itself, along with the launcher, and any icons/images etc.
Distro owners fork the sample distro launcher, modify a few settings, and build their launcher app. The launcher app is (deliberately) very simple, and basically handles registering a distro and launching of a distro instance when the user clicks a start menu tile, or calls the launcher's app execution alias (e.g. "ubuntu.exe").
Activity
primeinc commentedon Apr 7, 2016
This was the first question I had when watching the demo video +1
jokeyrhyme commentedon Apr 7, 2016
An effort to release an open specification could be related to #1 ?
jokeyrhyme commentedon Apr 7, 2016
https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13253418-plan-to-support-other-linux-offerings-i-e-coreos
Krutonium commentedon Apr 7, 2016
I would be all over an Arch version of this.
jernejs commentedon Apr 7, 2016
I replaced the userland with a Gentoo stage 3, which didn't seem to break anything (however, emerge doesn't work due to failing sanity checks on /dev).
eugenelet commentedon Apr 7, 2016
I think that Manjaro is a great arch distribution
RaeesBhatti commentedon Apr 13, 2016
I would say that they should make Windows Subsystem for Linux open-source, so that, developers can add their own flavors. Because WSL team will never have enough resources to meet the expectations of such broad community.
UserVoice issue for making Windows Subsystem for Linux open-source
tkelman commentedon Apr 15, 2016
WSL doesn't need to be open source for this to be possible. WSL is kernel mode code anyway (I think, correct me if I'm wrong) so I don't think the community would have the ability to compile and run custom patched copies of WSL easily. But for this item, all we'd need is documentation on what modifications Canonical made between the standard Ubuntu distribution (iso or whatever) and the userland-only version that Bash on Windows downloads. And either documentation or source for the C:\Windows\System32\bash.exe launcher/installer, which is a win32 executable so presumably anyone would be able to build an equivalent or modified version to pull down an alternate distro's userland.
benhillis commentedon Apr 15, 2016
Tony Kelman (@tkelman) You are correct. We would not need to make the project open source to open up to other distributions. Currently we're focused on delivering a solid bash shell but there are many other exciting potential applications of our technology, including allowing people to select their distro of choice.
As far as the image we got from Canonical it has absolutely zero modifications. Dustin Kirkland from Canonical has a great blog post with some more info if you are interested.
tkelman commentedon Apr 15, 2016
I read that blog post when it went up, I'm curious on the technical specifics of which image it's using though. Is it literally the exact http://releases.ubuntu.com/releases/trusty/ubuntu-14.04.4-server-amd64.iso image, or is it a userspace-only version derived from it with the Linux kernel removed?
benhillis commentedon Apr 15, 2016
You are correct, it's just the userspace pieces. It's kind of hidden in his post but he points you to the exact .tar.gz:
(his link points to the xenial version and we're using trusty, but you get the idea)
tkelman commentedon Apr 15, 2016
D'oh, thanks for that! Does make sense that this would have some commonality with "cloud images" you might use in a container. So it's the "wrap [...] into a Windows application package" equivalent step that we'd need to reverse engineer or get source or documentation of some kind to be able to recreate on a different distro. Should look into whether any other distros have equivalent userspace-only images already prepared.
sjenning commentedon Apr 19, 2016
I've done it for Fedora:
https://www.youtube.com/watch?v=lRg0BXhxncM
How to:
https://www.variantweb.net/blog/running-fedora-on-windows-10-using-wsl/
The install is not user friendly as lxrun.exe is hardcoded for the Ubuntu userspace tarball and seems to be the only utility in all of Windows that can actually create proper symlinks on NTFS.
Need the source for lxrun.exe please!
15 remaining items
RoliSoft commentedon Sep 1, 2016
fpqc I wrote a small lib which you can put in
/etc/ld.so.preload, and will only affectpacman, so it's safe:Compile it with:
fpqc commentedon Sep 1, 2016
Roland Bogosi (@RoliSoft) I hope you are putting this in your project, I pull it every time you update it!
RoliSoft commentedon Sep 1, 2016
Further search revealed the
fakechrootpackage, which hooks the file I/O functions and actually rewrites the paths.After installation with pacman, you can add
/usr/lib/libfakeroot/fakechroot/libfakechroot.soto/etc/ld.so.preload, which will cause all chroot-using applications to not only not fail, but behave as expected ifchrootwas available.This does, however, load the library into all applications. I haven't tested the performance implications just yet, but based on the source, not many operations are done, if
chrootis not called by the process.turbo commentedon Sep 1, 2016
If you are brave, you can try the (undocumented, unstable)
devbranch ofalwsl.alwslis really two parts:alwsl.batmanagement utility (manage WSL, users, snapshots etc.) on the windows side andThe batchfile version is not the final product, more like a proof-of-concept. The final version of alwsl will be released at some point next week. The final version contains a plugin system for user-defined addons to alwsl systems (like Audio from WSL, a better X setup etc.).
As I said, ATM the dev branch is undocumented. Download a copy of the
alwsl.batand run it without arguments to see usage information.fpqc commentedon Sep 1, 2016
minxomat Have you tried Roland Bogosi (@RoliSoft) 's scripts? I looked at the alwsl.bat thing, and it doesn't even look like it is fixing chroot and fakeroot (fakechroot and fakeroot-tcp). Roland Bogosi (@RoliSoft) has got all the little Arch compatibility hacks ready to go, just remove the ".sample" from the hook script.
turbo commentedon Sep 1, 2016
fpqc If you looked at the script and my above post, I clearly stated that this is a custom distribution. it contains all fixes necessarily for WSL. The distro is downloaded during the install task. It not only fixes fakeroot, but every other error or warning (that I know of atm) you might get in WSL otherwise.
turbo commentedon Sep 1, 2016
Think of it as a replacement for lxrun. Instead of installing and managing a ubuntu server WSL, it does the same with archlinux. Sure you can make a vanilla arch compatible, but this is meant for folks who look for something as simple to run as lxrun itself.
fpqc commentedon Sep 1, 2016
minxomat Interesting, I'll try it out. It won't delete my /home and /root, will it?
Also, in the readme you really ought to explain what changed packages you're using.
turbo commentedon Sep 1, 2016
fpqc Well, I don't recommend to use it just now. But you can try. Backup everything in any case.
Full documentation is ofc included in the final version. Also, not all mods are applied in the dev branch, so there might be some warnings until testing is finished. If you find something, open an issue. It's better to have duplicate issues to be reminded of important things 😄
WSLUser commentedon Oct 23, 2017
Are there plans for Red Hat Linux, Kali, and SELinux to be added to the Windows Store?
marcthe12 commentedon Oct 31, 2017
Can we sdk to create our own from chroot or tarball
WSLUser commentedon Jan 17, 2018
Just to give everyone an update to Kali, see this Twitter post from Kali https://twitter.com/kalilinux/status/951140177510006793/photo/1
WSLUser commentedon Mar 7, 2018
Both Kali Linux and Debian are now available on the Windows Store
Biswa96 commentedon Mar 7, 2018
My questions Tara Raj (@tara-raj) 1. Who does provide the install.tar.gz file? Does Microsoft make that own or the developer of that distro? 2. Who publish the appx in Windows Store? 3. And last, who build the added distro_name.exe in Appx package?
bitcrazed commentedon Mar 27, 2018
Biswapriyo Nath (@Biswa96) - Tara Raj (@tara-raj) is currently working with several Linux distro vendors to help them bundle & publish their distros to the store - we feel it's best for the distro owners to control and manage the release of their distros on their schedule.
We believe that it's best for all concerned, if a distro is published from the store under the auspices of the owning organization. This way, when you see "Ubuntu" published by "Canonical Inc.", you can feel confident that it's the real-deal, whereas if you saw "Ubuntu" published by "Joe Bloggzzz the MegaGeek", you might pause and question whether the app is legitimate.
Distro owners are responsible for everything that goes into their APPX- the distro tar.gz itself, along with the launcher, and any icons/images etc.
Distro owners fork the sample distro launcher, modify a few settings, and build their launcher app. The launcher app is (deliberately) very simple, and basically handles registering a distro and launching of a distro instance when the user clicks a start menu tile, or calls the launcher's app execution alias (e.g. "ubuntu.exe").