New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing systemd
Services in CentOS 8-Stream
#141
Comments
Just put details on known-problematic units here: https://github.com/arkane-systems/genie/wiki/Systemd-units-known-to-be-problematic-under-WSL Short version: you'll probably want to disable those three. (But full details are there.) Also:
You don't need to do this. genie -s, -l, and -c all initialize the bottle if it isn't already preinitialized. -i exists so you can preinit it on startup and thus speed up the others/have services already running in the background. If you aren't doing either of those, you don't need it. |
|
@cerebrate Thank you so much! That is great news! Yes, I will safely disable those then. FYI, @tdcosta100 uses
in his gist for installing GUIs in WSL2.
@PavelSosin-320 Thank you very much! That is very useful information. It appears that from your and @cerebrate 's information that I can safely disable these services in WSL 2, which is great! Your help is much appreciated! |
You'll always get "Waiting for systemd...!!!" to a degree, because that's literally what it's doing - waiting for everything to be set up before you try to do anything in the bottle, in the same way that native Linux won't give you a login prompt until the system's booted up enough to support a user session. But it will be quicker when it's not waiting on units that can't start properly. |
@adamgranthendry You can also create additional Linux users and user Windows Terminal sessions to create new rootles user sessions. Just create a new Linux user and add a new entry in the WT setting: |
@cerebrate In CentOS 8, as root, I cannot stop
but this is failing for some reason:
How can I stop |
@cerebrate My bad once again. I should have just issued (as
|
@adamgranthendry Don't stop audit, simply disable. The corresponding module is missed in the hard-built MS WSL Kernel and there is no way to load it dynamically. Such a security issue is OK from the Microsoft point of view. Even passing audit=1 as a Kernel Command string parameter does nothing. |
@PavelSosin-320 Thank you. FYI,
doesn't work, but
does. Not sure why. Now when I restart WSL ( |
@PavelSosin-320 and @cerebrate If I put just
in my Other than that, I edited
i.e. set and manually created And also, even putting the script at the end of my existing |
@cerebrate and @PavelSosin-320 There's only one other thing I see that I don't understand. When I run
What is that and how do I fix it? |
@adamgranthendry I use more straightforward way to start my distro with genie: Windows shortcut for the command line |
@adamgranthendry
Shortening the timeout this much effectively bypasses the mechanism that keeps you from trying to invoke systemd services before systemd has initialized. (The timeout should be long enough that under any possible non-failure scenario systemd should have reached the running state before the timeout expires.) This is not a supportable or supported configuration. |
Windows version (build number):
1909, Build 18363.1440
Linux distribution:
CentOS 8-Stream
downloaded from mishamosher and installed via.exe
in.zip
asset (version20210210
)Genie version:
1.36
Describe the bug
Within an open
zshell
in WSL2 with Windows Terminal (version 1.6.10571.0), I execute3 services are failing upon initialization of
genie
:auditd.service
systemd-modules-load.service
systemd-remount-fs.service
The failure was first noticed by running
and noticing the state was
degraded
. The specific failing units were determined by runningThe specific errors for each service are found by running
where
<name.service>
is the name of the service.auditd.service
systemd-modules-load.service
systemd-remount-fs.service
Questions
If so, I can run
for each
Any help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: