O
O
Outsider V.2016-02-02 10:46:57
linux
Outsider V., 2016-02-02 10:46:57

How to restore systemd-sysctl.service and systemd-vconsole-setup services to start on Centos 7?

centos-7-amd64 is on VDS (OpenVZ). I enter systemctl list-units, I see this nonsense:

* systemd-sysctl.service loaded failed failed Apply Kernel Variables
* systemd-vconsole-setup.service loaded failed failed Setup Virtual Console

84183ea76dc5461aa9142be33ecc6cff.PNG
I'm trying to run them manually:
[[email protected] ~]# service systemd-vconsole-setup start
Redirecting to /bin/systemctl start systemd-vconsole-setup.service
Job for systemd-vconsole-setup.service failed because the control process exited with error code. See "systemctl status systemd-vconsole-setup.service" and "journalctl -xe" for details.
[[email protected] ~]# service systemd-vconsole-setup status
Redirecting to /bin/systemctl status systemd-vconsole-setup.service
* systemd-vconsole-setup.service - Setup Virtual Console
Loaded: loaded (/usr/lib/systemd /system/systemd-vconsole-setup.service;static;vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2016-02-02 07:45:16 GMT; 7s ago
Docs: man:systemd-vconsole-setup.
man:vconsole.conf(5)
Process: 32522 ExecStart=/usr/lib/systemd/systemd-vconsole-setup (code=exited, status=1/FAILURE)
Main PID: 32522 (code=exited, status=1/FAILURE )
Feb 02 07:45:16 audiophilesoft systemd[1]: Starting Setup Virtual Console...
Feb 02 07:45:16 audiophilesoft systemd-vconsole-setup[32522]: Device /dev/tty0 is not a virtual console.
Feb 02 07:45:16 audiophilesoft systemd[1]: systemd-vconsole-setup.service: main process exited, code=exited, status=1/FAILURE
Feb 02 07:45:16 audiophilesoft systemd[1]: Failed to start Setup Virtual Console.
Feb 02 07:45:16 audiophilesoft systemd[1]: Unit systemd-vconsole-setup.service entered failed state.
Feb 02 07:45:16 audiophilesoft systemd[1]: systemd-vconsole-setup.service failed.
[[email protected]~]#

[[email protected] ~]# service systemd-sysctl start
Redirecting to /bin/systemctl start systemd-sysctl.service
Job for systemd-sysctl.service failed because the control process exited with error code. See "systemctl status systemd-sysctl.service" and "journalctl -xe" for details.
[[email protected] ~]# service systemd-sysctl status
Redirecting to /bin/systemctl status systemd-sysctl.service
* systemd-sysctl.service - Apply Kernel Variables
Loaded: loaded (/usr/lib/systemd/system/systemd-sysctl .service;static;vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2016-02-02 07:46:07 GMT; 3s ago
Docs: man:systemd-sysctl.service(8)
man:sysctl.d(5)
Process: 32567 ExecStart=/usr/lib/systemd/systemd-sysctl (code=exited, status=1/FAILURE)
Main PID: 32567 (code=exited, status=1/FAILURE)
Feb 02 07:46:07 audiophilesoft systemd [1]: Starting Apply Kernel Variables...
Feb 02 07:46:07 audiophilesoft systemd-sysctl[32567]: Failed to write '16' to '/proc/sys/kernel/sysrq': Permission denied
Feb 02 07: 46:07 audiophilesoft systemd-sysctl[32567]: Failed to write '1' to '/proc/sys/kernel/core_uses_pid': Permission denied
Feb 02 07:46:07 audiophilesoft systemd[1]: systemd-sysctl.service: main process exited, code=exited, status=1/FAILURE
Feb 02 07:46:07 audiophilesoft systemd[1]: Failed to start Apply Kernel Variables.
Feb 02 07:46:07 audiophilesoft systemd[1]: Unit systemd-sysctl.service entered failed state.
Feb 02 07:46:07 audiophilesoft systemd[1]: systemd-sysctl.service failed.

What are these bugs and how to fix them?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
N
nvo, 2016-02-25
@Audiophile

It's about openvz. The technology does not allow changing the kernel parameters from the container.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question