wsldl-pg / centwsl Goto Github PK
View Code? Open in Web Editor NEW[DISCONTINUED] CentOS based WSL distribution
License: MIT License
[DISCONTINUED] CentOS based WSL distribution
License: MIT License
I have Windows 10 Pro Version 2004 (OS Build 19041.450)
I downloaded CentOS 7.6 1907 zip file to C:\users\myuser\Download and followed the installation instructions.
I removed the folder without cleaning it.
I then tried to clean it in Powershell using
./CentOS.exe clean
I got this error message
./CentOS.exe : The term './CentOS.exe' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ CategoryInfo : ObjectNotFound: (./CentOS.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I re-downloaded the zip file to C:\centos7
I unzipped and executed again but it doesn't run. It seems it is looking for the deleted folder
Now I'm not able to clean or re-install. How can I resolve this please
I have tried to follow the directions for a clean uninstall but I keep getting the error message to make sure to reinstall, if it even starts at all. Most recently when I click the .exe it just shows a fast console open and close. Please help me correct this. I am running Windows Server 2019. It all crashed when I unsuccessfully tried to install and use GNOME desktop and Graphical User Interface Groups with this distro. Please and thank you!
Can I update 8.1 to the official version? Thank you
Has anyone gotten CentOS 6 to work with WSL? I've a feeling it won't.
I have install some soft on old version instance , I want to upgrade to new version and keep there softs in new version instance
I already #issue WSL repleaceService using systemctl
But all failed ,could you help?thx a lot ? ありがとうございます
I ran commad: yum -y update && yum -y upgrade
and it cames: grubby fatal error: unable to find a suitable template
How to solve this problem?
in centos instance, i get error "Failed to get D-Bus connection" when exec command "systemctl start docker".
Kindly help!
Hi there,
Windows 10 1909, OS Build 17763.504
1- When I launch CentOS.exe, I get the following error:
Installing...
ERROR:Installation Failed!
HRESULT:0x80070005
Press any key to continue...
2- Do you plan to release the source code of the CentOS.exe ?
Bye
Can you make one for Centos 6 please? Or if anyone can provide me with instructions on how to do so. Thanks!
after installing i could login with no password, so I tried changing it, but passwd did not appear to be installed. Tried installing it:
dnf install passwd
Last metadata expiration check: 0:00:59 ago on Mon 13 Apr 2020 05:24:57 PM CEST.
Dependencies resolved.
========================================================================================================================
Package Architecture Version Repository Size
========================================================================================================================
Installing:
passwd x86_64 0.80-2.el8 BaseOS 114 k
Installing dependencies:
libuser x86_64 0.62-23.el8 BaseOS 417 k
Transaction Summary
========================================================================================================================
Install 2 Packages
Total size: 531 k
Installed size: 2.4 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] libuser-0.62-23.el8.x86_64.rpm: Already downloaded
[SKIPPED] passwd-0.80-2.el8.x86_64.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
RPM: error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
RPM: error: cannot open Packages index using db5 - (-30969)
RPM: error: cannot open Packages database in /var/lib/rpm
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: Could not run transaction.
When I install and start CentWSL, I then generally do a yum update
. However this then fails due to verion problems between glibc-common i686 and x86_64.
I assume this happens for everyone, as at this point it's the basic instance of CentOS? Any idea how to resolve it?
Protected multilib versions: glibc-2.17-260.el7_6.6.x86_64 != glibc-2.17-260.el7_6.5.i686
P.S. Thanks for creating this - it's been a huge boon. Also, I previously set this up a few months ago without any issue - but now it doesn't matter if I use the latest release, or the one I used last time - both error.
How can I make a similar exe for Centos7.5?
I downloaded the .zip, I see CentOS.exe, now what?
If I double click CentOS.exe, I get the following:
c:\os\wsl\centos_wsl>.\CentOS.exe
Installation directory not found: .
Make sure it exists or reinstall.
Press any key to continue...
same when I run from the command line.
Is there a .tar anywhere for CentOS7 that will work if I do: cmd>wsl --import ?
I just want CentOS to work under WSL.
What is the password of the root user?
Greetings:
This page has a .zip file listed:
https://github.com/yuk7/CentWSL/releases/tag/7.0.1905.1
There is an indication that it contains 7.0.1905.1, but when expanded and used, it's still 1810.
is this still a work in progress?
Would you be willing to share how 'rootfs.tar' is created so I could roll my own?
I posted here asking that question:
https://www.centos.org/forums/viewtopic.php?f=47&t=70999
I'm on WSL2, which supports 'systemd', however, after running CentOS8.exe to install CentOS 8, I found out that there's no systemd.
$ sudo dnf install nginx -y
$ sudo systemctl start nginx
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
May CentWSL (CentOS 8) come with systemd please?
Hey,
I'm running W10 2004 and here's what I get when trying to run CentOS 8.1:
Installing...
ERROR:Installation Failed!
HRESULT:0x8000000d
Do I need to mandatory run a higher Insider build?
Thank you!
How to activate WSL2 on CentWSL? Thanks
I'm on Windows 10 v2004 (build 19041), recently updated from Microsoft.
I find the installation from CentOS7.exe rather complete, with everything ready, however, the installation from CentOS8.exe is missing a lot of stuff.
CentOS7.zip == 350MB
CentOS8.zip == 70MB
Even 'passwd' is not useable, I had to install this package to use 'passwd':
sudo dnf install cracklib-dicts -y
Also CentOS8.zip doesn't come with libs for GUI apps on virtual X display, so I had to install these too:
sudo dnf install mesa-libGL -y
sudo dnf install mesa-dri-drivers -y
Possibly, CentOS8.zip could be complete like CentOS7.zip?
Hey, thanks for this addition.
I was wondering if there's source available for the executable. Thanks.
I'm running CentOS.exe config --default-user someuser
to set the default user to "someuser".
It doesn't show any output (but if I replace "someuser" with a user that doesn't exist, I get an error).
When I run CentOS.exe, it still just defaults to "root" instead of "someuser".
Am I doing something wrong?
edit: fixed typo in command
In some reason i had to use wsl in non-admin user.
Then i got HRESULT:0x80070005. So how can i install this distro correctly??
Thanks for reading.
Hello and Thank you for CentWSL !
I like automating everything and especially my laptop installation.
Here is the output when I register CentOS7 by calling the first time CentOS7.exe
without parameter the first time:
PS C:\CentOS7> .\CentOS7.exe
Installing...
Installation Complete!
Press any key to continue...
Is it possible to avoid the "Press any key to continue..." so that I can automate the registration ?
I get the same error when trying to install either the latest CentOS 7 or 8. I am on the latest Insider Preview edition of Windows, and have tried both versions as myself and running as Administrator.
Installing...
ERROR:Installation Failed!
HRESULT:0x80070569
Press any key to continue...
Failed to get D-Bus connection: Operation not permitted
How to restore backup.tar.gz file ?
I have try to rename backup file to rootfs.tar.gz and it work, is this the right way to use it ?
Not sure I got it well, but after installation, when I try to start the same launcher, I get an "access denied" error. Am I doing something wrong and should I start it another way ? Thanks !
hi, i reinstall my os, but i forget to backup the wsl, so how i re-register wsl, i don't wannt to reinstall it.
thanks!
I've been using this WSL distro and I'm really fan!
But I have a few questions about this. If there is any mailing list, feel free to close it and point it to me.
.exe
file?yum
). Should I also update the whole package when here it is a new version?Thanks.
What would I need to download, and what steps would I need to follow to recreate the CentOS8.zip that is downloadable here, except do this with the newest release of CentOS 8.2?
I want to run CentOS 8.2 under WSL,
thank you for the instructions.
C:\CentOS7>CentOS7.exe backup
Running backup Script.
If a password is requested, please enter the root password.
tar: Cowardly refusing to create an empty archive
Try tar --help' or
tar --usage' for more information.
bash: line 1: --exclude: command not found
bash: line 2: --exclude: command not found
How can I fix it?
I already finish bellow steps , and it shows me the installation is completed successfully
If I install ubuntu or kali linux from Microsoft store , I can launch them by click on the lunch button , but here , after the installation of centos , I don't how to launch it.
Sorry for stupid, I am not a programmer , just a normal user.
I'm sure Microsoft antivirus alert is a false positive, but I though it was anyway important to report this. While installing, Microsoft AV flagged as sever threat both
.\CentOS7\rootfs\usr\bin\dbus-daemon
and
.\CentOS7\rootfs\usr\bin\systemctl
as affected by Trojan:Win64/Longage
.
Thanks
Hi,green hand in linux and already met a dozen of problem,cuz it is based on the same PC, want to copy directly ,but i couldn't find where it installed,thx a lot !谢谢
After installing I tried to set default-user but got an error
PS C:\Users\i_skiridomov\Downloads\CentOS7> .\CentOS7.exe config --default-uid 1000
PS C:\Users\i_skiridomov\Downloads\CentOS7> .\CentOS7.exe config --default-user i_skiridomov
ERROR
HRESULT:0x80004005
Press any key to continue...
PS C:\Users\i_skiridomov\Downloads\CentOS7>
mysql.connector.errors.InterfaceError: 2003: Can't connect to MySQL server on 'localhost:3306'
I use the eth0 ip of wsl2 , it works.
but another ubuntu mysql instance support 'localhost' connect
It will be wonderfull to have CentOS 8 / CentOS Stream in wsl.
like WSL ubuntu,I can use xshell to connect it。but now,i set the CentWSL in the same way like WSL Ubuntu,but I still can not connect it with xshell... the command line replay: Failed to get D-Bus connection: Operation not permitted
Ive tried to execute <centos.exe config --default-user test> on CLI.
But I faced with ERROR HRESULT:0x80004005
how do we import a backup tar.gz?
Anyone have succefully run Docker with CentOS in WLS2?
I get error related to d-bus/systemctl
After I have try:
Try https://github.com/gdraheim/docker-systemctl-replacement
And this kind of error :
-bash-4.2# docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
Today I tested this awesome way of using new distros for WSL.
I installed (registered) it, with a custom name.
Executed the following command
yum -y update; \
yum -y groupinstall 'Development Tools' && \
yum -y install \
kernel-devel \
ImageMagick-devel \
bzip2-devel \
libcurl \
libcurl-devel \
libevent-devel \
libffi-devel \
glib2-devel \
libjpeg-devel \
mysql-devel \
postgresql-devel \
ncurses-devel \
readline \
readline-devel \
sqlite-devel \
openssl \
openssl-devel \
libxml2-devel \
libxslt-devel \
zlib-devel \
libyaml-devel
(which spent a lot of time)
Installed more packages, yum clean all
, executed some commands and exited.
Then whe I tried to clean
(unregister) the distro, I got this output
This will remove this distro (<>) from the filesystem.
Are you sure you would like to proceed? (This cannot be undone)
Type "y" to continue:y
Unregistering...
ERROR
HRESULT:0x80070002
Press any key to continue...
Maybe is related to #1, and I don't know where to get more logs to share with you.
wslconfig /l
does not shows this distro as registered.
But the rootfs
folder was still there. I could not delete but after restart it was not anymore.
Thanks!
Hi
Please could you advice how to upgrade a WSL 1 instance into your WSL 2?
Hi,
I need to migrate my installation from one laptop to another. I have made backup.tar.gz on the old laptop using CentOS7.exe, moved it together with CentOS7.exe to the new laptop... and what next?
Trying to launch just CentOS7.exe results in error:
C:\CentOS>CentOS.exe
Installing...
ERROR:Installation Failed!
HRESULT:0x80070005
Press any key to continue...
I tried downloading Launcher.exe - same issue.
I have re-downloaded the whole distribution and it installed successfully. After manually unpacking backup.tar.gz and replacing rootfs folder, I get this:
C:\CentOS>CentOS7.exe
Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution...
The specified network name is no longer available.
Could you please write a bit about restore procedure? In the README maybe. I think it would be helpful.
Hi,
This is how I messed it up :
1- installed successfully
2- deleted the whole installation directory just manually!
3- trying to clean it and it doesn't work.
wondering how to clean it up or re-install. It says:
.\CentOS.exe
Installing...
ERROR:Installation Failed!
HRESULT:0x80070005
OS Windows 10 Enterprise
Version 10.0.17134 Build 17134
C:\Users\zmumin\Documents\WSLDistro\CentOS>centos.exe config --default-user zmumin
ERROR
HRESULT:0x80004005
Press any key to continue...
Kindly help!
I am running command prompt in administrator mode.
I am accessing /mnt/c/Users/myUserName in centos, there are no files in this path, in fact there are files in windows, why doesn't it show up, how can I copy the files in windows to wsl centos?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.